autoconfig 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/autoconfig.rb +3 -3
  2. metadata +3 -3
data/lib/autoconfig.rb CHANGED
@@ -3,11 +3,11 @@ require 'yaml'
3
3
 
4
4
  module StringCamelize
5
5
  # Taken straight from active support inflector.rb, line 161
6
- def camelize(lower_case_and_underscored_word, first_letter_in_uppercase = true)
6
+ def camelize(first_letter_in_uppercase = true)
7
7
  if first_letter_in_uppercase
8
- lower_case_and_underscored_word.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
8
+ self.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
9
9
  else
10
- lower_case_and_underscored_word.first + camelize(lower_case_and_underscored_word)[1..-1]
10
+ self.first + camelize(self)[1..-1]
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoconfig
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - tjbladez