summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/gem.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-07-18 16:44:14 -0600
committerAndre Arko <andre@arko.net>2015-07-18 16:45:36 -0600
commit0f8bc78180ce4f8bae5dc48e2078b44cd4fafe44 (patch)
treec175c911a748afd50c0045038499a5a349fec135 /lib/bundler/cli/gem.rb
parent14a7eb25ee03c9fb4ecf3e4c6b1f44a8267a413a (diff)
downloadbundler-0f8bc78180ce4f8bae5dc48e2078b44cd4fafe44.tar.gz
Fix Style/SpaceInsideBlockBraces
closes #3853
Diffstat (limited to 'lib/bundler/cli/gem.rb')
-rw-r--r--lib/bundler/cli/gem.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/gem.rb b/lib/bundler/cli/gem.rb
index 7918397055..383602d6ec 100644
--- a/lib/bundler/cli/gem.rb
+++ b/lib/bundler/cli/gem.rb
@@ -20,7 +20,7 @@ module Bundler
underscored_name = name.tr("-", "_")
namespaced_path = name.tr("-", "/")
- constant_name = name.gsub(/-[_-]*(?![_-]|$)/){ "::" }.gsub(/([_-]+|(::)|^)(.|$)/){ $2.to_s + $3.upcase }
+ constant_name = name.gsub(/-[_-]*(?![_-]|$)/) { "::" }.gsub(/([_-]+|(::)|^)(.|$)/) { $2.to_s + $3.upcase }
constant_array = constant_name.split("::")
test_task = options[:test] == "minitest" ? "test" : "spec"