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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03e13c2433410046e4f46f4410c2e0fac73c685e
4
- data.tar.gz: 9e23ee52e50ac5cec2b5998867b66665862548e2
3
+ metadata.gz: 694c5e4e744ba3f270fc63716041af2b1eda2367
4
+ data.tar.gz: 4245d297c8d4fe48243b820de642a204e5f78681
5
5
  SHA512:
6
- metadata.gz: eeccef4115492bb9c0538c1a07b14a4e26e84da0a5f722c08e7c54aeb63a3622790fa85e33660eb7ad65c90b0eb4c0d0886244ce86b1102e0d56191fbbd6b3aa
7
- data.tar.gz: dc3a659e657af7a5dc9e6b10577563ae18e6fd0cd2bd167efb4cb086c412bf6f5d7ca3e3130ecf8c8d89be35b3104cbbc18cfb8ba22c6a35afde0513c883994c
6
+ metadata.gz: ca37c0a884855c543487b2ac35f4e840883d3c3ff185e31b51d81a0e0c97fcc1e6da48c6756c999736d59b0435661794666ff5dddb8ee6228c88667ba5a87d1c
7
+ data.tar.gz: 413ee2e1c10edf7bb480442b572302462331c57badc51785ab6c1b40ee795eda1c84bc60dd61c437580fdad0d5750b37985fb6eba20df38f96480eafa15eec41
@@ -303,10 +303,15 @@ module Beefcake
303
303
 
304
304
  def camelize(term)
305
305
  string = term.to_s
306
- string = string.sub(/^[a-z\d]*/) { $&.capitalize }
307
- string.gsub!(/(?:_|(\/))([a-z\d]*)/i) { "#{$1}#{$2.capitalize}" }
308
- string.gsub!('/', '::')
309
- string
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
@@ -1,3 +1,3 @@
1
1
  module Beefcake
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
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.3
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-06-01 00:00:00.000000000 Z
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.4.3
97
+ rubygems_version: 2.2.2
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: A pure-Ruby protobuf library