gherkin 2.3.7-x86-mswin32 → 2.3.8-x86-mswin32

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -9,3 +9,4 @@ tmp
9
9
  release
10
10
  .bundle
11
11
  Gemfile.lock
12
+ npm-debug.log
data/History.txt CHANGED
@@ -1,4 +1,9 @@
1
- == (In Git)
1
+ == 2.3.8 (2011-05-16)
2
+
3
+ === Insignificant changes
4
+ * Improve build system so we don't need to add generated js lexers to git.
5
+
6
+ == 2.3.7 (2011-05-01)
2
7
 
3
8
  * Removed incorrect (and unneeded) case statement that could blow up if V8 is installed. (Aslak Hellesøy, Niklas H)
4
9
  * Added connect support for gherkin.js (Aslak Hellesøy)
data/README.rdoc CHANGED
@@ -97,6 +97,8 @@ If you're hacking and just want to rebuild the English parser:
97
97
 
98
98
  rake js/lib/gherkin/lexer/en.js
99
99
 
100
+ TODO: Make all specs pass with js lexer - replace 'c(listener)' with 'js(listener)' in i18n.rb
101
+
100
102
  === .NET and IronRuby
101
103
 
102
104
  You must install Mono and IKVM to build the pure .NET dll and the IronRuby gem:
@@ -156,7 +158,8 @@ Make sure you have openssl installed first.
156
158
  == Release process
157
159
 
158
160
  * Make sure GHERKIN_JS is defined (see Javascript section above)
159
- * Bump version in the VERSION file and:
161
+ * Bump version in:
162
+ ** gherkin.gemspec
160
163
  ** java/pom.xml
161
164
  ** ikvm/Gherkin/Gherkin.csproj (2 places)
162
165
  ** js/package.json
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ GHERKIN_VERSION = Gem::Specification.load(File.dirname(__FILE__) + '/gherkin.gemspec').version.version
2
3
  require 'rubygems'
3
4
  require 'bundler'
4
5
  unless ENV['RUBY_CC_VERSION']
@@ -10,7 +11,6 @@ ENV['RUBYOPT'] = nil # Necessary to prevent Bundler from *&^%$#ing up rake-compi
10
11
  require 'rake/clean'
11
12
 
12
13
  $:.unshift(File.dirname(__FILE__) + '/lib')
13
- require 'gherkin/version'
14
14
 
15
15
  Dir['tasks/**/*.rake'].each { |rake| load File.expand_path(rake) }
16
16
 
data/gherkin.gemspec CHANGED
@@ -1,16 +1,13 @@
1
1
  # -*- encoding: utf-8 -*-
2
- gherkin_dir = Dir.pwd =~ /gherkin\/tmp/ ? File.expand_path("../../../..", Dir.pwd) : File.expand_path("..", __FILE__)
3
- $LOAD_PATH.unshift File.join(gherkin_dir, 'lib')
4
- require "gherkin/version"
5
2
 
6
3
  Gem::Specification.new do |s|
7
4
  s.name = "gherkin"
8
- s.version = Gherkin::VERSION
5
+ s.version = "2.3.8"
9
6
  s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
10
7
  s.description = "A fast Gherkin lexer/parser for based on the Ragel State Machine Compiler."
11
- s.summary = "gherkin-#{Gherkin::VERSION}"
8
+ s.summary = "#{s.name}-#{s.version}"
12
9
  s.email = "cukes@googlegroups.com"
13
- s.homepage = "http://github.com/aslakhellesoy/gherkin"
10
+ s.homepage = "http://github.com/cucumber/gherkin"
14
11
 
15
12
  s.rubygems_version = "1.3.7"
16
13
  s.default_executable = "gherkin"
@@ -51,12 +48,12 @@ Gem::Specification.new do |s|
51
48
 
52
49
  s.add_dependency('json', '>= 1.4.6')
53
50
 
54
- s.add_development_dependency('cucumber', '>= 0.10.0')
51
+ s.add_development_dependency('cucumber', '>= 0.10.2')
55
52
  s.add_development_dependency('rake', '>= 0.8.7')
56
- s.add_development_dependency('bundler', '>= 1.0.10')
53
+ s.add_development_dependency('bundler', '>= 1.0.13')
57
54
  s.add_development_dependency('rspec', '>= 2.5.0')
58
55
  s.add_development_dependency('awesome_print', '>= 0.3')
59
- s.add_development_dependency('therubyracer', '>= 0.8.2.pre2') if ENV['GHERKIN_JS'] && !defined?(JRUBY_VERSION)
56
+ s.add_development_dependency('therubyracer', '>= 0.9.0.beta3') if ENV['GHERKIN_JS'] && !defined?(JRUBY_VERSION)
60
57
 
61
58
  # Only needed by Cucumber. Remove when Cucumber no longer needs those.
62
59
  s.add_development_dependency('term-ansicolor', '>= 1.0.5')
File without changes
data/ragel/lexer.c.rl.erb CHANGED
@@ -334,7 +334,7 @@ store_pystring_content(VALUE listener,
334
334
  static void
335
335
  raise_lexer_error(const char * at, int line)
336
336
  {
337
- rb_raise(rb_eGherkinLexingError, "Lexing error on line %d: '%s'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information.", line, at);
337
+ rb_raise(rb_eGherkinLexingError, "Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.", line, at);
338
338
  }
339
339
 
340
340
  static void lexer_init(lexer_state *lexer) {
@@ -131,7 +131,7 @@ public class <%= @i18n.underscored_iso_code.upcase %> implements Lexer {
131
131
  action end_feature {
132
132
  if(cs < lexer_first_final) {
133
133
  String content = currentLineContent(data, lastNewline);
134
- throw new LexingError("Lexing error on line " + lineNumber + ": '" + content + "'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information.");
134
+ throw new LexingError("Lexing error on line " + lineNumber + ": '" + content + "'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.");
135
135
  } else {
136
136
  listener.eof();
137
137
  }
@@ -106,7 +106,7 @@
106
106
  action end_feature {
107
107
  if(this.cs < lexer_first_final) {
108
108
  var content = this.current_line_content(data, p);
109
- throw "Lexing error on line " + this.line_number + ": '" + content + "'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information.";
109
+ throw "Lexing error on line " + this.line_number + ": '" + content + "'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.";
110
110
  } else {
111
111
  this.listener.eof();
112
112
  }
@@ -106,7 +106,7 @@ module Gherkin
106
106
  action end_feature {
107
107
  if cs < lexer_first_final
108
108
  content = current_line_content(data, p)
109
- raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/aslakhellesoy/gherkin/lexingerror for more information." % [@line_number, content])
109
+ raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
110
110
  else
111
111
  @listener.eof
112
112
  end
data/tasks/gems.rake CHANGED
@@ -20,7 +20,7 @@ namespace :gems do
20
20
  task :ironruby => [:jruby, 'ikvm:dll', 'ikvm:copy_ikvm_dlls']
21
21
 
22
22
  task :sanity do
23
- raise "The jruby gem looks too small" if File.stat("release/gherkin-#{Gherkin::VERSION}-java.gem").size < 1000000
23
+ raise "The jruby gem looks too small" if File.stat("release/gherkin-#{GHERKIN_VERSION}-java.gem").size < 1000000
24
24
  end
25
25
 
26
26
  desc "Prepare binaries for all gems"
data/tasks/ikvm.rake CHANGED
@@ -52,14 +52,14 @@ namespace :ikvm do
52
52
 
53
53
  desc 'Make a .NET .exe'
54
54
  task :exe => ['lib/gherkin.jar', :dependent_dlls] do
55
- ikvmc("-target:exe lib/gherkin.jar -out:release/gherkin-#{Gherkin::VERSION}.exe #{references}")
55
+ ikvmc("-target:exe lib/gherkin.jar -out:release/gherkin-#{GHERKIN_VERSION}.exe #{references}")
56
56
  end
57
57
 
58
58
  desc 'Make a .NET .dll'
59
59
  task :dll => ['lib/gherkin.jar', :dependent_dlls] do
60
60
  mkdir_p 'release' unless File.directory?('release')
61
- ikvmc("-target:library lib/gherkin.jar -out:release/gherkin-#{Gherkin::VERSION}.dll #{references}")
62
- cp "release/gherkin-#{Gherkin::VERSION}.dll", 'lib/gherkin.dll'
61
+ ikvmc("-target:library lib/gherkin.jar -out:release/gherkin-#{GHERKIN_VERSION}.dll #{references}")
62
+ cp "release/gherkin-#{GHERKIN_VERSION}.dll", 'lib/gherkin.dll'
63
63
  end
64
64
 
65
65
  desc 'Copy the IKVM .dll files over to the pkg dir'
@@ -74,7 +74,7 @@ end
74
74
 
75
75
  task :ikvm => ['ikvm:copy_ikvm_dlls', 'ikvm:exe', 'ikvm:dll'] do
76
76
  puts "************** Pretty printing some features with .NET. **************"
77
- mono "release/gherkin-#{Gherkin::VERSION}.exe features"
77
+ mono "release/gherkin-#{GHERKIN_VERSION}.exe features"
78
78
  puts "************** DONE Pretty printing some features with .NET. All OK. **************"
79
79
  end
80
80
 
data/tasks/rdoc.rake CHANGED
@@ -2,7 +2,7 @@ require 'rake/rdoctask'
2
2
 
3
3
  Rake::RDocTask.new do |rdoc|
4
4
  rdoc.rdoc_dir = 'rdoc'
5
- rdoc.title = "Gherkin #{Gherkin::VERSION}"
5
+ rdoc.title = "Gherkin"
6
6
  rdoc.rdoc_files.include('README.rdoc')
7
7
  rdoc.rdoc_files.include('lib/**/*.rb')
8
8
  rdoc.rdoc_files.exclude('lib/gherkin/lexer')
data/tasks/release.rake CHANGED
@@ -1,6 +1,6 @@
1
1
  namespace :release do
2
2
  desc 'Upload all packages and tag git'
3
- task :ALL => ['gems:sanity', :push_dll, :push_jar, :push_native_gems, :push_npm_package, :release]
3
+ task :ALL => ['gems:sanity', :ikvm, :push_jar, :push_native_gems, :push_npm_package, :release, :post_release]
4
4
 
5
5
  desc 'Push all gems to rubygems.org (gemcutter)'
6
6
  task :push_native_gems do
@@ -11,14 +11,8 @@ namespace :release do
11
11
  end
12
12
  end
13
13
 
14
- desc 'Push dll to Github'
15
- task :push_dll => :ikvm do
16
- Dir.chdir('release') do
17
- # No known way to do scripted uploads. github/upload or aslakhellesoy's fork of github-gem no longer work
18
- puts "Manually upload gherkin-#{Gherkin::VERSION}.dll to http://github.com/aslakhellesoy/gherkin/downloads"
19
- puts "Then press enter"
20
- STDIN.gets
21
- end
14
+ task :post_release => :ikvm do
15
+ puts "\n\n****** Manually upload gherkin-#{GHERKIN_VERSION}.dll to http://github.com/cucumber/gherkin/downloads ******\n\n"
22
16
  end
23
17
 
24
18
  desc 'Push jar to cukes.info Maven repo'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gherkin
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.3.7
5
+ version: 2.3.8
6
6
  platform: x86-mswin32
7
7
  authors:
8
8
  - Mike Sassak
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-05-02 00:00:00 +01:00
15
+ date: 2011-05-16 00:00:00 +01:00
16
16
  default_executable: gherkin
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: 0.10.0
37
+ version: 0.10.2
38
38
  type: :development
39
39
  version_requirements: *id002
40
40
  - !ruby/object:Gem::Dependency
@@ -56,7 +56,7 @@ dependencies:
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 1.0.10
59
+ version: 1.0.13
60
60
  type: :development
61
61
  version_requirements: *id004
62
62
  - !ruby/object:Gem::Dependency
@@ -89,7 +89,7 @@ dependencies:
89
89
  requirements:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 0.8.2.pre2
92
+ version: 0.9.0.beta3
93
93
  type: :development
94
94
  version_requirements: *id007
95
95
  - !ruby/object:Gem::Dependency
@@ -136,7 +136,6 @@ files:
136
136
  - LICENSE
137
137
  - README.rdoc
138
138
  - Rakefile
139
- - VERSION
140
139
  - build_native_gems.sh
141
140
  - cucumber.yml
142
141
  - features/escaped_pipes.feature
@@ -161,6 +160,7 @@ files:
161
160
  - js/.gitignore
162
161
  - js/.npmignore
163
162
  - js/lib/gherkin/lexer/.gitignore
163
+ - js/lib/gherkin/lexer/.npmignore
164
164
  - lib/.gitignore
165
165
  - lib/gherkin.rb
166
166
  - lib/gherkin/c_lexer.rb
@@ -197,7 +197,6 @@ files:
197
197
  - lib/gherkin/rb_lexer/README.rdoc
198
198
  - lib/gherkin/rubify.rb
199
199
  - lib/gherkin/tag_expression.rb
200
- - lib/gherkin/version.rb
201
200
  - ragel/i18n/.gitignore
202
201
  - ragel/lexer.c.rl.erb
203
202
  - ragel/lexer.java.rl.erb
@@ -347,7 +346,7 @@ files:
347
346
  - lib/1.9/gherkin_lexer_zh_cn.so
348
347
  - lib/1.9/gherkin_lexer_zh_tw.so
349
348
  has_rdoc: true
350
- homepage: http://github.com/aslakhellesoy/gherkin
349
+ homepage: http://github.com/cucumber/gherkin
351
350
  licenses: []
352
351
 
353
352
  post_install_message:
@@ -373,7 +372,7 @@ rubyforge_project:
373
372
  rubygems_version: 1.6.2
374
373
  signing_key:
375
374
  specification_version: 3
376
- summary: gherkin-2.3.7
375
+ summary: gherkin-2.3.8
377
376
  test_files:
378
377
  - features/escaped_pipes.feature
379
378
  - features/feature_parser.feature
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 2.3.7
@@ -1,3 +0,0 @@
1
- module Gherkin
2
- VERSION = IO.read(File.dirname(__FILE__) + '/../../VERSION').strip
3
- end