producer-stdlib 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/producer/stdlib/json.rb +1 -4
- data/lib/producer/stdlib/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: 2a03ccae83c05c88f8ad3b3c5964770747a7dbf7
|
4
|
+
data.tar.gz: 6d6ce85fdd76811391caa4127d77fbafd24d327c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 396d5be731721b18791d26a420aeecf9b05e920b43bbd828a8716833f68d29aae3f8572e9cf3d5b54ba07bb97effe3c62168e125d0bb7eb6a4333cb4f793c7b3
|
7
|
+
data.tar.gz: f736f721724858701fefdce47c788f13181f5a5dad4b8da63bd74c71e9d9ad37b8ac2a20f720bc798d5977ea9a13667a09b229e27e1212f1303e74b5bf4fa084
|
data/lib/producer/stdlib/json.rb
CHANGED
@@ -4,13 +4,10 @@ require 'producer/stdlib/json/json_eq'
|
|
4
4
|
module Producer
|
5
5
|
module STDLib
|
6
6
|
module JSON
|
7
|
-
#STDLib.define_test :json_eq do |path, data|
|
8
|
-
# file_eq path, ::JSON.generate(data)
|
9
|
-
#end
|
10
7
|
STDLib.define_test :json_eq, JSONEq
|
11
8
|
|
12
9
|
STDLib.define_macro :json_write do |path, data|
|
13
|
-
file_write path, ::JSON.
|
10
|
+
file_write path, ::JSON.pretty_generate(data)
|
14
11
|
end
|
15
12
|
|
16
13
|
STDLib.define_macro :json_write_once do |path, data|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: producer-stdlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibault Jouan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: producer-core
|