adm 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adm/message.rb +13 -2
- data/lib/adm/version.rb +1 -1
- 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: 1e2a57c1cbed791e5324b006e90a99bf221f3622
|
4
|
+
data.tar.gz: 870567b84b03f7bc3e11039a4c6fe9d391808176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a002a8ecd2b392c97edbb6e3c437ff008cf29fa73bf4e5976114921f7373dc30810783bfd08109d8653cfea21269ff0a1ef3b4c8a34ed2b5ceaf99eb4d455a79
|
7
|
+
data.tar.gz: fb520a505e827be3c4310471d5d4d0721a128955592b414fdeb5d8f65d42c8f38173d9b74074be808ff62e9e35318703d62d7fa56337fa8c3f1ad59a06596857
|
data/lib/adm/message.rb
CHANGED
@@ -29,8 +29,19 @@ class ADM::Message
|
|
29
29
|
def compile
|
30
30
|
@json ||= begin
|
31
31
|
@compiled = true
|
32
|
-
|
33
|
-
|
32
|
+
compiled_data = data.dup
|
33
|
+
|
34
|
+
if compiled_data[:data]
|
35
|
+
compiled_data[:data].each do |k,v|
|
36
|
+
compiled_data[:data][k] = MultiJson.dump(compiled_data[:data][k])
|
37
|
+
end
|
38
|
+
elsif compiled_data['data']
|
39
|
+
compiled_data['data'].each do |k,v|
|
40
|
+
compiled_data['data'][k] = MultiJson.dump(compiled_data['data'][k])
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
MultiJson.dump(compiled_data)
|
34
45
|
end
|
35
46
|
end
|
36
47
|
end
|
data/lib/adm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tal Atlas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|