gherkin 1.0.0-i386-mswin32 → 1.0.1-i386-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -3
- data/Rakefile +2 -1
- data/VERSION.yml +1 -1
- data/bin/gherkin-purdy +16 -0
- data/gherkin.gemspec +4 -3
- metadata +4 -2
data/README.rdoc
CHANGED
@@ -10,8 +10,7 @@ that makes it possible to plug in a builder that can build an AST.
|
|
10
10
|
|
11
11
|
== Testing
|
12
12
|
|
13
|
-
rake
|
14
|
-
rake spec cucumber
|
13
|
+
rake clean spec cucumber
|
15
14
|
|
16
15
|
== Cleaning generated code
|
17
16
|
|
@@ -25,7 +24,7 @@ Run just "rake clean spec cucumber" for each platform (1.8.6, 1.8.7, 1.9, jruby)
|
|
25
24
|
2) Bump version in the VERSION file
|
26
25
|
3) rake clean jar compile
|
27
26
|
2) rake gemspec
|
28
|
-
3)
|
27
|
+
3) git commit -a -m "Release vX.Y.Z"
|
29
28
|
4) rake release
|
30
29
|
5) ./nativegems.sh
|
31
30
|
6) gem push pkg/... (for each native gem)
|
data/Rakefile
CHANGED
@@ -13,7 +13,8 @@ begin
|
|
13
13
|
gem.email = "cukes@googlegroups.com"
|
14
14
|
gem.homepage = "http://github.com/aslakhellesoy/gherkin"
|
15
15
|
gem.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
|
16
|
-
gem.
|
16
|
+
gem.default_executable = "gherkin"
|
17
|
+
gem.executables = ["gherkin", "gherkin-purdy"]
|
17
18
|
gem.add_development_dependency "rspec", "1.2.9"
|
18
19
|
gem.add_development_dependency "cucumber", "0.4.4"
|
19
20
|
gem.add_development_dependency "rake-compiler", "0.6.0" unless defined?(JRUBY_VERSION)
|
data/VERSION.yml
CHANGED
data/bin/gherkin-purdy
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
|
3
|
+
|
4
|
+
require 'stringio'
|
5
|
+
require 'gherkin'
|
6
|
+
require 'gherkin/tools/pretty_printer'
|
7
|
+
|
8
|
+
Dir[ARGV[0]].each do |f|
|
9
|
+
purdy = StringIO.new
|
10
|
+
listener = Gherkin::Tools::PrettyPrinter.new(purdy)
|
11
|
+
parser = Gherkin::Parser.new(listener, true) # We could skip the parser here, if we don't want to verify well-formedness
|
12
|
+
lexer = Gherkin::I18nLexer.new(parser)
|
13
|
+
lexer.scan(IO.read(f))
|
14
|
+
purdy.rewind
|
15
|
+
File.open(f, 'w') {|io| io.write(purdy.read)}
|
16
|
+
end
|
data/gherkin.gemspec
CHANGED
@@ -5,16 +5,16 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{gherkin}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
s.platform = %q{i386-mswin32}
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Helles\303\270y"]
|
13
|
-
s.date = %q{2009-12-
|
13
|
+
s.date = %q{2009-12-02}
|
14
14
|
s.default_executable = %q{gherkin}
|
15
15
|
s.description = %q{A fast Gherkin lexer in Ragel}
|
16
16
|
s.email = %q{cukes@googlegroups.com}
|
17
|
-
s.executables = ["gherkin"]
|
17
|
+
s.executables = ["gherkin", "gherkin-purdy"]
|
18
18
|
s.extra_rdoc_files = [
|
19
19
|
"LICENSE",
|
20
20
|
"README.rdoc"
|
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
"Rakefile",
|
27
27
|
"VERSION.yml",
|
28
28
|
"bin/gherkin",
|
29
|
+
"bin/gherkin-purdy",
|
29
30
|
"cucumber.yml",
|
30
31
|
"features/feature_parser.feature",
|
31
32
|
"features/native_lexer.feature",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gherkin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: i386-mswin32
|
6
6
|
authors:
|
7
7
|
- Mike Sassak
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-12-
|
14
|
+
date: 2009-12-02 00:00:00 +01:00
|
15
15
|
default_executable: gherkin
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -48,6 +48,7 @@ description: A fast Gherkin lexer in Ragel
|
|
48
48
|
email: cukes@googlegroups.com
|
49
49
|
executables:
|
50
50
|
- gherkin
|
51
|
+
- gherkin-purdy
|
51
52
|
extensions: []
|
52
53
|
|
53
54
|
extra_rdoc_files:
|
@@ -60,6 +61,7 @@ files:
|
|
60
61
|
- Rakefile
|
61
62
|
- VERSION.yml
|
62
63
|
- bin/gherkin
|
64
|
+
- bin/gherkin-purdy
|
63
65
|
- cucumber.yml
|
64
66
|
- features/feature_parser.feature
|
65
67
|
- features/native_lexer.feature
|