gherkin_format 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a00c6a5ecb825a8885474b20f39c8da775b3f953
4
- data.tar.gz: aa836409a9c1a37333b286d4e4e625a6426fcf76
3
+ metadata.gz: 9e95c44cb925ffcca50a751ae909e9fcb160addd
4
+ data.tar.gz: 1c715ec6276f5170f130e8cbbeb332e640b09889
5
5
  SHA512:
6
- metadata.gz: 48fa59409d904cf944ae7dc6bc89365e3617e7a902c9f56de39cb13216e125f0a4ac4c2ea4e6e52c63579bbe0cdb819105b4ad31c8ac08f36e84b3cddc35c33f
7
- data.tar.gz: d22cfe16c3b6904c834536d955bf7792161ac4800e830e300d7069c37171638fdaa0b9b2e21fa7fb6f78bdb8bfa32da9884603b22fab2470fc2fac3f7526bc71
6
+ metadata.gz: 65926549ee226e0bf7fa69e492c529007e86d862082c554360f38fa142b4b19eee322e973ac29fc1591855fa0b1f70b9a5b08027354da055fd7fa169acdfa888
7
+ data.tar.gz: 8383f1c8bcfbb19e98c07ec179edf70ae712dd676e9818985f8a9456138ce0a72b19da347e0cd83307dcf4ab004efe21182bc62991966ea99a625d77acb0906b
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ end
12
12
 
13
13
  desc 'Publishes the Gem'
14
14
  task :push do
15
- sh 'gem push gherkin_format-0.0.3.gem'
15
+ sh 'gem push gherkin_format-0.0.4.gem'
16
16
  end
17
17
 
18
18
  desc 'Checks ruby style'
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
- puts formatter.to_json(File.read(ARGV.first), ARGV.first)
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gherkin_format'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
4
4
  s.date = '2015-07-19'
5
5
  s.summary = 'Gherkin Format'
6
6
  s.description = 'Format Gherkin Files'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Rohe