gherkin_format 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/bin/gherkin_format +3 -1
- data/gherkin_format.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e95c44cb925ffcca50a751ae909e9fcb160addd
|
4
|
+
data.tar.gz: 1c715ec6276f5170f130e8cbbeb332e640b09889
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65926549ee226e0bf7fa69e492c529007e86d862082c554360f38fa142b4b19eee322e973ac29fc1591855fa0b1f70b9a5b08027354da055fd7fa169acdfa888
|
7
|
+
data.tar.gz: 8383f1c8bcfbb19e98c07ec179edf70ae712dd676e9818985f8a9456138ce0a72b19da347e0cd83307dcf4ab004efe21182bc62991966ea99a625d77acb0906b
|
data/Rakefile
CHANGED
data/bin/gherkin_format
CHANGED
@@ -23,7 +23,9 @@ formatter = GherkinFormat.new
|
|
23
23
|
|
24
24
|
if options.key? :json
|
25
25
|
fail 'Provide exactly one file' unless ARGV.length == 1
|
26
|
-
|
26
|
+
require 'multi_json'
|
27
|
+
feature = formatter.to_json(File.read(ARGV.first), ARGV.first)
|
28
|
+
puts MultiJson.dump feature.first
|
27
29
|
|
28
30
|
exit 0
|
29
31
|
end
|
data/gherkin_format.gemspec
CHANGED