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 +4 -4
- data/lib/cql/version.rb +1 -1
- data/testing/gemfiles/cuke_modeler0.gemfile +7 -0
- data/testing/gemfiles/cuke_modeler1.gemfile +3 -0
- data/testing/gemfiles/cuke_modeler2.gemfile +33 -0
- data/testing/gemfiles/cuke_modeler3.gemfile +10 -0
- data/testing/helper_methods.rb +13 -0
- data/testing/model_helper.rb +1 -1
- data/testing/rspec/spec/model_query_spec.rb +1 -1
- data/testing/rspec/spec/spec_helper.rb +3 -5
- metadata +12 -8
- data/testing/cucumber/support/transforms.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cef04f054cecd8e489f46daa063be8ac02360c53f5d7d8fe8e551ce337e5d34
|
|
4
|
+
data.tar.gz: 6714fecd35d662a966cb82f9bda4a43e308b38597834a53d03c337fe9ad1d75d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5779cca5eef6d487d88fc9089bc4374b03ccea619443f333490217fbf2b747288b7f297078d8c148969bc53c50c00ea5fa4d0f876473cb9e22afe70bbfbbe795
|
|
7
|
+
data.tar.gz: 4def191c2d3dd5ee166980dde04f3f05599614797d015ca242574a467dcdb1a6bab05c3b6648e70c50d5a66f8b960da6f1790cd44117ec699ee7902b040a3909
|
data/lib/cql/version.rb
CHANGED
|
@@ -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
|
|
|
@@ -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
|
data/testing/model_helper.rb
CHANGED
|
@@ -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 |
|
|
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.
|
|
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:
|
|
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: '
|
|
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: '
|
|
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:
|
|
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:
|
|
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
|