gherkin_format 0.0.5 → 0.0.7

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: 82b88f0a289bc19d4f3c37ab56d2fb2612d9330a
4
- data.tar.gz: 1467300a2842413da56e60f8ae2bb354d1e8b655
3
+ metadata.gz: 2029d4864a07ac2115136c9319d43d0614e1a11b
4
+ data.tar.gz: 2d7d8216bf05282fb0cebe3346b9b3ee37a16f1f
5
5
  SHA512:
6
- metadata.gz: 3d26d244a2fec03239fabb55d1b6010bb1866e65e8fba0e1f0bd7e519213919915ce0e135a19ca1d82d28a9f72ce760f4b699135a403e8dc1b734b10e854c75b
7
- data.tar.gz: f8547e2df6f39290188d63b03ae081e8c14e9df0009143c61cd85ecc36218da74b2d7899a333fc155bc1494dc755eaae3bbd7e9d5297076a55d2daacb189963a
6
+ metadata.gz: 39d0668eafc288066cb4ce8ac8b24fc5759c0eb188a3f19cfd8a53e0752f52792618510878656fa0e6a06d661b9709dbbcb9f1e928f54f645b2fdab5d2828b6f
7
+ data.tar.gz: de5c7b74fe6a76a747b3aa920142d439bde07e3aba85aec6f04032cd0bcfe813a7ce142ef98007234589d1176ea6dd13c20a3c9e7d747c8470c2de23aea057db
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.5.gem'
15
+ sh 'gem push gherkin_format-0.0.7.gem'
16
16
  end
17
17
 
18
18
  desc 'Checks ruby style'
data/bin/gherkin_format CHANGED
@@ -22,7 +22,7 @@ end.parse!
22
22
  formatter = GherkinFormat.new
23
23
 
24
24
  if options.key? :json
25
- fail 'Provide exactly one file' unless ARGV.length == 1
25
+ raise 'Provide exactly one file' unless ARGV.length == 1
26
26
  require 'multi_json'
27
27
  feature = formatter.to_json(File.read(ARGV.first), ARGV.first)
28
28
  puts MultiJson.dump feature.first
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gherkin_format'
3
- s.version = '0.0.5'
4
- s.date = '2016-01-17'
3
+ s.version = '0.0.7'
4
+ s.date = '2016-04-01'
5
5
  s.summary = 'Gherkin Format'
6
6
  s.description = 'Format Gherkin Files'
7
7
  s.authors = ['Stefan Rohe']
@@ -22,13 +22,10 @@ class GherkinFormat
22
22
  output = format_string input, file
23
23
  return if input == output
24
24
 
25
- if options.key? :replace
26
- File.write("#{file}_orig", input)
27
- File.write(file, output)
28
- end
25
+ File.write(file, output) if options.key? :replace
29
26
 
30
27
  puts "File #{file} is not formatted well."
31
- fail "File #{file} is not formatted well."
28
+ raise "File #{file} is not formatted well."
32
29
  end
33
30
 
34
31
  def render(template, files)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Rohe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-17 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gherkin
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.2.5
85
+ rubygems_version: 2.2.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Gherkin Format