cloud_shaped 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_shaped/camelate.rb +13 -21
- data/lib/cloud_shaped/core_methods.rb +0 -2
- data/lib/cloud_shaped/version.rb +1 -1
- data/spec/cloud_shaped/camelate_spec.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b21a359b972abb22fad3f55b1be73a5bf6f77659
|
4
|
+
data.tar.gz: 69029374c81f2afe26925332398a5c1bddbc0490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac6dbf62ac5e9c3b939fc920b9fd125792ea9e7e54be79496bc94886de35c0cbb292fcb16f57bd7820633aa8d63957c2644187caece0a4ef731a3ecad1e7e95a
|
7
|
+
data.tar.gz: 2deb1051579c6ca6fa00809c72156c75ea48a2a3fa3bd27c385b7bc6b5a6472685a6138017599e2fcd712d731a8f7d3af669a7eac2881458daf3d2fdf0e3c63d
|
@@ -1,31 +1,23 @@
|
|
1
|
-
|
1
|
+
class Symbol
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
def camelate
|
8
|
-
to_s.split('_').map(&:capitalize).join
|
9
|
-
end
|
10
|
-
|
11
|
-
end
|
12
|
-
|
13
|
-
refine String do
|
3
|
+
def camelate
|
4
|
+
to_s.split('_').map(&:capitalize).join
|
5
|
+
end
|
14
6
|
|
15
|
-
|
16
|
-
self
|
17
|
-
end
|
7
|
+
end
|
18
8
|
|
19
|
-
|
9
|
+
class String
|
20
10
|
|
21
|
-
|
11
|
+
def camelate
|
12
|
+
self
|
13
|
+
end
|
22
14
|
|
23
|
-
|
24
|
-
Hash[map { |key, value| [key.camelate, value] }]
|
25
|
-
end
|
15
|
+
end
|
26
16
|
|
27
|
-
|
17
|
+
class Hash
|
28
18
|
|
19
|
+
def camelate_keys
|
20
|
+
Hash[map { |key, value| [key.camelate, value] }]
|
29
21
|
end
|
30
22
|
|
31
23
|
end
|
data/lib/cloud_shaped/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud_shaped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|