snake_camel 0.2.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/lib/snake_camel/instance_methods.rb +4 -0
- data/lib/snake_camel/methods.rb +5 -2
- data/lib/snake_camel/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: 31c620ba5acdb1165247d486517d21ba8a4002a6
|
4
|
+
data.tar.gz: f35f25b38e1adc6da865b0a4898af854a8373ef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3a908bdb57725bd140e6d21bbd5cc362cf769de4d610844704af5a80a5e0c35e578cbae04260bd8c123764042c7bb8bed7cccb0da0d6e3afda199abbaf76899
|
7
|
+
data.tar.gz: b12bba3871b5cb86d4b10b6acd0fc908528c4bb46b20646bedd89afdab1fa1f6d0f3bfadd337621ba51e3fd46040a37b80038ff5b18c30b39865ee9e6eaebcd8
|
data/.gitignore
CHANGED
data/lib/snake_camel/methods.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
module SnakeCamel
|
3
2
|
module Methods
|
4
3
|
extend self
|
@@ -19,5 +18,9 @@ module SnakeCamel
|
|
19
18
|
string.replace(camelcase(string))
|
20
19
|
end
|
21
20
|
|
21
|
+
def constant_name(string)
|
22
|
+
string.split(File::Separator).map { |part| camelcase(part) }.join('::')
|
23
|
+
end
|
24
|
+
|
22
25
|
end
|
23
|
-
end
|
26
|
+
end
|
data/lib/snake_camel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snake_camel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Balint Bejczi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.2.2
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: conversation between CamelCase and snake_case
|