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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cc9dd98571838e55aa51d8740f049e1442bc6c4
4
- data.tar.gz: 43964f84f3ad689446e4a2f7189f6ad652b45675
3
+ metadata.gz: 1e2a57c1cbed791e5324b006e90a99bf221f3622
4
+ data.tar.gz: 870567b84b03f7bc3e11039a4c6fe9d391808176
5
5
  SHA512:
6
- metadata.gz: 19dde55a780c33c692563615ddb53ebaa743195aeb0d462607aac5d7b98d65c003a20ef53b94520b72f696f14f6d74a3b5d486a7482d81e6b607daf1a9bf234d
7
- data.tar.gz: 7aa4f557157f6057f82bf9d887ad0d6f5dc6e8d784330fd7e19216194f0752a7ed58d7e0da321b26542f9191fc6c39bc4b2f5828c4fd9e93e13e827833cbc5f9
6
+ metadata.gz: a002a8ecd2b392c97edbb6e3c437ff008cf29fa73bf4e5976114921f7373dc30810783bfd08109d8653cfea21269ff0a1ef3b4c8a34ed2b5ceaf99eb4d455a79
7
+ data.tar.gz: fb520a505e827be3c4310471d5d4d0721a128955592b414fdeb5d8f65d42c8f38173d9b74074be808ff62e9e35318703d62d7fa56337fa8c3f1ad59a06596857
@@ -29,8 +29,19 @@ class ADM::Message
29
29
  def compile
30
30
  @json ||= begin
31
31
  @compiled = true
32
-
33
- MultiJson.dump(data)
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
@@ -1,3 +1,3 @@
1
1
  module ADM
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-07 00:00:00.000000000 Z
11
+ date: 2013-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler