bogo 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bogo.rb +1 -0
- data/lib/bogo/smash.rb +5 -0
- data/lib/bogo/utility.rb +9 -0
- data/lib/bogo/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ef23bc2efa4e4bfcaf1de4a924eaa6e2ef4fd98
|
4
|
+
data.tar.gz: b6db055fcf8ae478a604078c1bb3ff8dcb814b9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09b6a5b951c920aaf1e8ba050ba703f70ade67efb61839ef7666d81120bd24b51a4aca5ceca43281499ce34601ba83d6cc6fb6925e2dc66ae02d012dbb4a9e3b
|
7
|
+
data.tar.gz: 80f99d175bc7a81233caaee8147adf367bb0985d3878bbda0e23094bafeb217849e4c97a134557e7a2c7a999015baa2c73da50a62db5dd5871db9d6b34b45635
|
data/CHANGELOG.md
CHANGED
data/lib/bogo.rb
CHANGED
data/lib/bogo/smash.rb
CHANGED
@@ -121,6 +121,11 @@ class Hash
|
|
121
121
|
process = self
|
122
122
|
end
|
123
123
|
process.each do |k,v|
|
124
|
+
if(args.include?(:snake))
|
125
|
+
k = Bogo::Utility.snake(k.to_s)
|
126
|
+
elsif(args.include?(:camel))
|
127
|
+
k = Bogo::Utility.camel(k.to_s)
|
128
|
+
end
|
124
129
|
smash[k.is_a?(Symbol) ? k.to_s : k] = smash_conversion(v, convert_call, *args)
|
125
130
|
end
|
126
131
|
end
|
data/lib/bogo/utility.rb
ADDED
data/lib/bogo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bogo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- lib/bogo/lazy.rb
|
56
56
|
- lib/bogo/memoization.rb
|
57
57
|
- lib/bogo/smash.rb
|
58
|
+
- lib/bogo/utility.rb
|
58
59
|
- lib/bogo/version.rb
|
59
60
|
homepage: https://github.com/spox/bogo
|
60
61
|
licenses:
|