cql 1.5.1 → 1.6.0

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
  SHA256:
3
- metadata.gz: 8e2ede22500087bd23e0fa23013c227997688d6689bf56f39b2586a2b355d215
4
- data.tar.gz: 4f19858e121c952b4acd0446d1d3658053914c0cea0ec94611e0b9fdb8343812
3
+ metadata.gz: 2cef04f054cecd8e489f46daa063be8ac02360c53f5d7d8fe8e551ce337e5d34
4
+ data.tar.gz: 6714fecd35d662a966cb82f9bda4a43e308b38597834a53d03c337fe9ad1d75d
5
5
  SHA512:
6
- metadata.gz: aa034bbfab89ca066255c714953a80494e2c5bf38fd4fcfae873707ea175f49d6f5584c63c7abc6f2ab51c82518e832a12b9f5079d98581d68e4bf8fa71ca8f4
7
- data.tar.gz: 6dcfa7d2993c2f0ffadce2836bd0a6a5eaec73c2030a67c217cae376a0f133275533ef3d495283fbd6206cf7e2f59f9360fc0a3e5b40a99088894b447628e5ec
6
+ metadata.gz: 5779cca5eef6d487d88fc9089bc4374b03ccea619443f333490217fbf2b747288b7f297078d8c148969bc53c50c00ea5fa4d0f876473cb9e22afe70bbfbbe795
7
+ data.tar.gz: 4def191c2d3dd5ee166980dde04f3f05599614797d015ca242574a467dcdb1a6bab05c3b6648e70c50d5a66f8b960da6f1790cd44117ec699ee7902b040a3909
@@ -1,4 +1,4 @@
1
1
  module CQL
2
2
  # The current version of the gem
3
- VERSION = '1.5.1'
3
+ VERSION = '1.6.0'
4
4
  end
@@ -24,6 +24,13 @@ end
24
24
 
25
25
  if RUBY_VERSION =~ /^2\.[23456789]/
26
26
  gem 'test-unit'
27
+ # Cucumber 4.x uses the `cucumber-gherkin` gem, which is incompatible with
28
+ # the `gherkin` gem, upon which the `cuke_modeler` gem depends
29
+ gem 'cucumber', '< 4.0'
30
+
31
+ # The oldest versions of the `cuke_modeler` gem did not properly limit their dependencies
32
+ # and CukeModeler 0.x can not handle a higher Gherkin 5.x+
33
+ gem 'gherkin', '< 5.0'
27
34
  end
28
35
 
29
36
 
@@ -24,6 +24,9 @@ end
24
24
 
25
25
  if RUBY_VERSION =~ /^2\.[23456789]/
26
26
  gem 'test-unit'
27
+ # Cucumber 4.x uses the `cucumber-gherkin` gem, which is incompatible with
28
+ # the `gherkin` gem, upon which the `cuke_modeler` gem depends
29
+ gem 'cucumber', '< 4.0'
27
30
  end
28
31
 
29
32
 
@@ -0,0 +1,33 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :path => "../../"
4
+
5
+
6
+ # cql can play with pretty much any version of these but they all play differently with Ruby
7
+ if RUBY_VERSION =~ /^1\.8/
8
+ gem 'cucumber', '< 1.3.0'
9
+ gem 'gherkin', '< 2.12.0'
10
+ gem 'rainbow', '< 2.0' # Ruby 1.8.x support dropped after this version
11
+ gem 'rake', '< 11.0' # Rake dropped 1.8.x support after this version
12
+ elsif RUBY_VERSION =~ /^1\./
13
+ gem 'cucumber', '< 2.0.0'
14
+ gem 'mime-types', '< 3.0.0' # Requires Ruby 2.x on/after this version
15
+ gem 'rake', '< 12.3.0' # Requires Ruby 2.x on/after this version
16
+ end
17
+
18
+ if RUBY_VERSION =~ /^1\./
19
+ gem 'tins', '< 1.7' # The 'tins' gem requires Ruby 2.x on/after this version
20
+ gem 'json', '< 2.0' # The 'json' gem drops pre-Ruby 2.x support on/after this version
21
+ gem 'term-ansicolor', '< 1.4' # The 'term-ansicolor' gem requires Ruby 2.x on/after this version
22
+ gem 'unf_ext', '< 0.0.7.3' # Requires Ruby 2.x on/after this version
23
+ end
24
+
25
+ if RUBY_VERSION =~ /^2\.[23456789]/
26
+ gem 'test-unit'
27
+ # Cucumber 4.x uses the `cucumber-gherkin` gem, which is incompatible with
28
+ # the `gherkin` gem, upon which the `cuke_modeler` gem depends
29
+ gem 'cucumber', '< 4.0'
30
+ end
31
+
32
+
33
+ gem 'cuke_modeler', '~> 2.0'
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :path => "../../"
4
+
5
+ # Cueumber 4.x doesn't work on all JRubies and this is the only earlier version
6
+ # that is compatible with the `cucumber-gherkin` gem, upon which CukeModler 3.x depends
7
+ gem 'cucumber', '2.2.0'
8
+
9
+ # The version of CukeModeler being tested
10
+ gem 'cuke_modeler', '~> 3.0'
@@ -0,0 +1,13 @@
1
+ module CQL
2
+ module HelperMethods
3
+
4
+ def cuke_modeler?(*versions)
5
+ versions.include?(cuke_modeler_major_version)
6
+ end
7
+
8
+ def cuke_modeler_major_version
9
+ Gem.loaded_specs['cuke_modeler'].version.version.match(/^(\d+)\./)[1].to_i
10
+ end
11
+
12
+ end
13
+ end
@@ -9,7 +9,7 @@ module CQL
9
9
  when model.is_a?(CukeModeler::Feature)
10
10
  file_model = CukeModeler::FeatureFile.new
11
11
 
12
- if Gem.loaded_specs['cuke_modeler'].version.version[/^0/]
12
+ if cuke_modeler?(0)
13
13
  file_model.features = [model]
14
14
  else
15
15
  file_model.feature = model
@@ -1,7 +1,7 @@
1
1
  require "#{File.dirname(__FILE__)}/spec_helper"
2
2
 
3
3
 
4
- describe 'a query enhanced model', :cuke_modeler_1x => true do
4
+ describe 'a query enhanced model', :unless => cuke_modeler?(0) do
5
5
 
6
6
  let(:clazz) { CukeModeler::Model }
7
7
  let(:model) { clazz.new }
@@ -12,6 +12,7 @@ require "#{this_dir}/../../../lib/cql/model_dsl"
12
12
 
13
13
  require "#{this_dir}/../../cql_test_model"
14
14
  require "#{this_dir}/../../model_helper"
15
+ require "#{this_dir}/../../helper_methods"
15
16
  require "#{this_dir}/tag_filterable_specs"
16
17
  require "#{this_dir}/name_filterable_specs"
17
18
  require "#{this_dir}/line_count_filterable_specs"
@@ -23,12 +24,9 @@ require 'rubygems/mock_gem_ui'
23
24
  CQL_FEATURE_FIXTURES_DIRECTORY = "#{this_dir}/../../fixtures/features"
24
25
 
25
26
 
26
- RSpec.configure do |config|
27
+ RSpec.configure do |_config|
27
28
 
28
29
  include CQL::ModelHelper
29
-
30
- if Gem.loaded_specs['cuke_modeler'].version.version[/^0/]
31
- config.filter_run_excluding :cuke_modeler_1x => true
32
- end
30
+ include CQL::HelperMethods
33
31
 
34
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kessler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-04-20 00:00:00.000000000 Z
12
+ date: 2020-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cuke_modeler
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "<"
19
19
  - !ruby/object:Gem::Version
20
- version: '2.0'
20
+ version: '4.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "<"
26
26
  - !ruby/object:Gem::Version
27
- version: '2.0'
27
+ version: '4.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: 3.0.0
62
+ version: 5.0.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "<"
68
68
  - !ruby/object:Gem::Version
69
- version: 3.0.0
69
+ version: 5.0.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: simplecov
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +171,6 @@ files:
171
171
  - testing/cucumber/step_definitions/setup_steps.rb
172
172
  - testing/cucumber/step_definitions/verification_steps.rb
173
173
  - testing/cucumber/support/env.rb
174
- - testing/cucumber/support/transforms.rb
175
174
  - testing/fixtures/features/combined/a/f1_4_scenarios_5_so.feature
176
175
  - testing/fixtures/features/combined/a/f2_7_scenarios_2_so.feature
177
176
  - testing/fixtures/features/combined/a/f3_2_scenarios_3_so.feature
@@ -221,6 +220,9 @@ files:
221
220
  - testing/fixtures/features/scenario/tags3/simple.feature
222
221
  - testing/gemfiles/cuke_modeler0.gemfile
223
222
  - testing/gemfiles/cuke_modeler1.gemfile
223
+ - testing/gemfiles/cuke_modeler2.gemfile
224
+ - testing/gemfiles/cuke_modeler3.gemfile
225
+ - testing/helper_methods.rb
224
226
  - testing/model_helper.rb
225
227
  - testing/rspec/spec/clauses/as_clause_spec.rb
226
228
  - testing/rspec/spec/clauses/from_clause_spec.rb
@@ -297,7 +299,6 @@ test_files:
297
299
  - testing/cucumber/step_definitions/setup_steps.rb
298
300
  - testing/cucumber/step_definitions/verification_steps.rb
299
301
  - testing/cucumber/support/env.rb
300
- - testing/cucumber/support/transforms.rb
301
302
  - testing/fixtures/features/combined/a/f1_4_scenarios_5_so.feature
302
303
  - testing/fixtures/features/combined/a/f2_7_scenarios_2_so.feature
303
304
  - testing/fixtures/features/combined/a/f3_2_scenarios_3_so.feature
@@ -347,6 +348,9 @@ test_files:
347
348
  - testing/fixtures/features/scen_outlines/name_filter/name.feature
348
349
  - testing/gemfiles/cuke_modeler0.gemfile
349
350
  - testing/gemfiles/cuke_modeler1.gemfile
351
+ - testing/gemfiles/cuke_modeler2.gemfile
352
+ - testing/gemfiles/cuke_modeler3.gemfile
353
+ - testing/helper_methods.rb
350
354
  - testing/model_helper.rb
351
355
  - testing/rspec/spec/clauses/as_clause_spec.rb
352
356
  - testing/rspec/spec/clauses/from_clause_spec.rb
@@ -1,3 +0,0 @@
1
- Transform /^(-?\d+)$/ do |number|
2
- number.to_i
3
- end