prepor-beefcake 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/beefcake/generator.rb +9 -4
- data/lib/beefcake/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 694c5e4e744ba3f270fc63716041af2b1eda2367
|
4
|
+
data.tar.gz: 4245d297c8d4fe48243b820de642a204e5f78681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca37c0a884855c543487b2ac35f4e840883d3c3ff185e31b51d81a0e0c97fcc1e6da48c6756c999736d59b0435661794666ff5dddb8ee6228c88667ba5a87d1c
|
7
|
+
data.tar.gz: 413ee2e1c10edf7bb480442b572302462331c57badc51785ab6c1b40ee795eda1c84bc60dd61c437580fdad0d5750b37985fb6eba20df38f96480eafa15eec41
|
data/lib/beefcake/generator.rb
CHANGED
@@ -303,10 +303,15 @@ module Beefcake
|
|
303
303
|
|
304
304
|
def camelize(term)
|
305
305
|
string = term.to_s
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
306
|
+
if /^[A-Z\d]+(?:_[A-Z\d]+)+$/ =~ string
|
307
|
+
# Do not mess with SNAKE_CONSTANTS
|
308
|
+
string
|
309
|
+
else
|
310
|
+
string = string.sub(/^[a-z\d]*/) { $&.capitalize }
|
311
|
+
string.gsub!(/(?:_|(\/))([a-z\d]*)/i) { "#{$1}#{$2.capitalize}" }
|
312
|
+
string.gsub!('/', '::')
|
313
|
+
string
|
314
|
+
end
|
310
315
|
end
|
311
316
|
|
312
317
|
end
|
data/lib/beefcake/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prepor-beefcake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Mizerany
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.2.2
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: A pure-Ruby protobuf library
|