autoconfig 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/autoconfig.rb +3 -3
- 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(
|
6
|
+
def camelize(first_letter_in_uppercase = true)
|
7
7
|
if first_letter_in_uppercase
|
8
|
-
|
8
|
+
self.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
|
9
9
|
else
|
10
|
-
|
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- tjbladez
|