pickle 0.5.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/build.yml +62 -0
- data/.gitignore +3 -2
- data/.travis.yml +24 -4
- data/History.txt +52 -35
- data/README.md +19 -27
- data/Rakefile.d/cucumber.rake +13 -4
- data/Rakefile.d/repoclean.rake +3 -0
- data/features/app/app.rb +7 -7
- data/features/app/factories.rb +5 -5
- data/features/email/email.feature +1 -0
- data/features/step_definitions/email_steps.rb +1 -0
- data/features/step_definitions/extra_email_steps.rb +5 -5
- data/features/step_definitions/pickle_steps.rb +1 -0
- data/features/support/email.rb +1 -0
- data/features/support/env.rb +9 -3
- data/features/support/pickle.rb +2 -2
- data/gemfiles/Gemfile-rails.4.2.x +13 -0
- data/gemfiles/Gemfile-rails.5.0.x +12 -0
- data/gemfiles/Gemfile-rails.5.1.x +10 -0
- data/gemfiles/Gemfile-rails.5.2.x +11 -0
- data/gemfiles/Gemfile-rails.5.2.x-cukes-4 +11 -0
- data/gemfiles/Gemfile-rails.5.2.x-cukes-5 +11 -0
- data/gemfiles/Gemfile-rails.6.0.x-cukes-3 +10 -0
- data/gemfiles/Gemfile-rails.6.0.x-cukes-4 +10 -0
- data/gemfiles/Gemfile-rails.6.0.x-cukes-5 +11 -0
- data/gemfiles/Gemfile-rails.6.0.x-cukes-6 +11 -0
- data/gemfiles/Gemfile-rails.6.1.x-cukes-3 +10 -0
- data/gemfiles/Gemfile-rails.6.1.x-cukes-4 +10 -0
- data/gemfiles/Gemfile-rails.6.1.x-cukes-5 +11 -0
- data/gemfiles/Gemfile-rails.6.1.x-cukes-6 +11 -0
- data/gemfiles/Gemfile-rails.edge +9 -0
- data/lib/pickle.rb +0 -1
- data/lib/pickle/adapter.rb +9 -11
- data/lib/pickle/config.rb +1 -1
- data/lib/pickle/path.rb +1 -1
- data/lib/pickle/version.rb +1 -1
- data/pickle.gemspec +10 -9
- data/rails_generators/pickle/templates/pickle.rb +2 -2
- data/spec/pickle/adapter_spec.rb +19 -19
- data/spec/pickle/config_spec.rb +9 -9
- data/spec/pickle/email_spec.rb +1 -1
- data/spec/pickle/path_spec.rb +37 -18
- data/spec/pickle/session_spec.rb +5 -5
- data/spec/spec_helper.rb +6 -1
- metadata +62 -56
- data/Gemfile +0 -3
- data/Gemfile.lock.development +0 -158
- data/features/step_definitions/email_steps.rb +0 -65
- data/features/step_definitions/pickle_steps.rb +0 -105
- data/features/support/email.rb +0 -21
- data/init.rb +0 -0
data/lib/pickle/version.rb
CHANGED
data/pickle.gemspec
CHANGED
@@ -6,33 +6,34 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.version = Pickle::VERSION.dup
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.licenses = ["MIT"]
|
9
|
-
s.authors = ["Ian White", "James Le Cuirot"]
|
9
|
+
s.authors = ["Ian White", "James Le Cuirot", "Mathieu Jobin"]
|
10
10
|
s.description = "Easy model creation and reference in your cucumber features"
|
11
11
|
s.summary = "Easy model creation and reference in your cucumber features."
|
12
|
-
s.email = ["ian.w.white@gmail.com", "chewi@aura-online.co.uk"]
|
12
|
+
s.email = ["ian.w.white@gmail.com", "chewi@aura-online.co.uk", "mathieu.jobin@gmail.com"]
|
13
13
|
s.homepage = "https://github.com/ianwhite/pickle"
|
14
14
|
|
15
15
|
s.rubyforge_project = "pickle"
|
16
|
-
s.required_rubygems_version = ">=
|
16
|
+
s.required_rubygems_version = ">= 2.0"
|
17
17
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
19
19
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
20
|
s.require_paths = ["lib"]
|
21
|
-
|
22
|
-
s.add_dependency "cucumber", ">=0.
|
21
|
+
|
22
|
+
s.add_dependency "cucumber", ">=3.0", "< 7.0"
|
23
23
|
s.add_dependency "rake"
|
24
|
-
|
24
|
+
|
25
25
|
s.add_development_dependency "rack"
|
26
26
|
s.add_development_dependency "bundler"
|
27
27
|
s.add_development_dependency "git"
|
28
28
|
s.add_development_dependency "yard"
|
29
29
|
s.add_development_dependency "rspec-rails", "~>3.0"
|
30
|
-
s.add_development_dependency "rails", "
|
30
|
+
s.add_development_dependency "rails", ">= 4.2.0", "< 7.0"
|
31
31
|
s.add_development_dependency "cucumber-rails"
|
32
|
-
s.add_development_dependency "
|
32
|
+
s.add_development_dependency "factory_bot"
|
33
33
|
s.add_development_dependency "fabrication", '~> 2.0'
|
34
|
-
s.add_development_dependency "machinist", "~>2.0"
|
34
|
+
s.add_development_dependency "machinist" # , "~>2.0"
|
35
35
|
s.add_development_dependency "database_cleaner"
|
36
36
|
s.add_development_dependency "capybara"
|
37
37
|
s.add_development_dependency "sqlite3"
|
38
|
+
s.add_development_dependency "codecov"
|
38
39
|
end
|
@@ -7,9 +7,9 @@
|
|
7
7
|
# require 'machinist/active_record' # or your chosen adaptor
|
8
8
|
# require File.dirname(__FILE__) + '/../../spec/blueprints' # or wherever your blueprints are
|
9
9
|
#
|
10
|
-
# For
|
10
|
+
# For FactoryBot add: features/support/factory_bot.rb
|
11
11
|
#
|
12
|
-
# require '
|
12
|
+
# require 'factory_bot'
|
13
13
|
# require File.dirname(__FILE__) + '/../../spec/factories' # or wherever your factories are
|
14
14
|
#
|
15
15
|
# For Fabrication, just include it in the adapter list when configuring pickle as explained below.
|
data/spec/pickle/adapter_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
require 'active_record'
|
4
|
-
require '
|
4
|
+
require 'factory_bot'
|
5
5
|
require 'fabrication'
|
6
6
|
require 'machinist/active_record'
|
7
7
|
require 'pickle/adapters/active_record'
|
@@ -58,17 +58,17 @@ describe Pickle::Adapter do
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
describe '
|
61
|
+
describe 'FactoryBot' do
|
62
62
|
before do
|
63
|
-
allow(Pickle::Adapter::
|
64
|
-
|
65
|
-
if defined? ::
|
66
|
-
@orig_factories = ::
|
67
|
-
::
|
68
|
-
::
|
69
|
-
::
|
70
|
-
@factory1 = ::
|
71
|
-
@factory2 = ::
|
63
|
+
allow(Pickle::Adapter::FactoryBot).to receive(:model_classes).and_return([One, One::Two, Three])
|
64
|
+
|
65
|
+
if defined? ::FactoryBot
|
66
|
+
@orig_factories = ::FactoryBot.factories.dup
|
67
|
+
::FactoryBot.factories.clear
|
68
|
+
::FactoryBot::Syntax::Default::DSL.new.factory(:one, :class => One) {}
|
69
|
+
::FactoryBot::Syntax::Default::DSL.new.factory(:two, :class => One::Two) {}
|
70
|
+
@factory1 = ::FactoryBot.factories[:one]
|
71
|
+
@factory2 = ::FactoryBot.factories[:two]
|
72
72
|
else
|
73
73
|
@orig_factories, Factory.factories = Factory.factories, {}
|
74
74
|
Factory.define(:one, :class => One) {}
|
@@ -79,23 +79,23 @@ describe Pickle::Adapter do
|
|
79
79
|
end
|
80
80
|
|
81
81
|
after do
|
82
|
-
if defined? ::
|
83
|
-
::
|
84
|
-
@orig_factories.each {|f| ::
|
82
|
+
if defined? ::FactoryBot
|
83
|
+
::FactoryBot.factories.clear
|
84
|
+
@orig_factories.each {|f| ::FactoryBot.factories.add(f) }
|
85
85
|
else
|
86
86
|
Factory.factories = @orig_factories
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
90
|
it ".factories should create one for each factory" do
|
91
|
-
expect(Pickle::Adapter::
|
92
|
-
expect(Pickle::Adapter::
|
93
|
-
Pickle::Adapter::
|
91
|
+
expect(Pickle::Adapter::FactoryBot).to receive(:new).with(@factory1, @factory1.name).once
|
92
|
+
expect(Pickle::Adapter::FactoryBot).to receive(:new).with(@factory2, @factory2.name).once
|
93
|
+
Pickle::Adapter::FactoryBot.factories
|
94
94
|
end
|
95
95
|
|
96
96
|
describe ".new(factory, factory_name)" do
|
97
97
|
before do
|
98
|
-
@factory = Pickle::Adapter::
|
98
|
+
@factory = Pickle::Adapter::FactoryBot.new(@factory1, @factory1.name)
|
99
99
|
end
|
100
100
|
|
101
101
|
it "should have name of factory_name" do
|
@@ -106,7 +106,7 @@ describe Pickle::Adapter do
|
|
106
106
|
expect(@factory.klass).to eq(One)
|
107
107
|
end
|
108
108
|
|
109
|
-
unless defined? ::
|
109
|
+
unless defined? ::FactoryBot
|
110
110
|
it "#create(attrs) should call Factory(<:key>, attrs)" do
|
111
111
|
expect(Factory).to receive(:create).with("one", {:key => "val"})
|
112
112
|
@factory.create(:key => "val")
|
data/spec/pickle/config_spec.rb
CHANGED
@@ -5,12 +5,12 @@ describe Pickle::Config do
|
|
5
5
|
@config = Pickle::Config.new
|
6
6
|
end
|
7
7
|
|
8
|
-
it "#adapters should default to :machinist, :
|
9
|
-
expect(@config.adapters).to eq([:machinist, :
|
8
|
+
it "#adapters should default to :machinist, :factory_bot, :orm" do
|
9
|
+
expect(@config.adapters).to eq([:machinist, :factory_bot, :fabrication, :orm])
|
10
10
|
end
|
11
11
|
|
12
|
-
it "#adapter_classes should default to Adapter::Machinist, Adapter::
|
13
|
-
expect(@config.adapter_classes).to eq([Pickle::Adapter::Machinist, Pickle::Adapter::
|
12
|
+
it "#adapter_classes should default to Adapter::Machinist, Adapter::FactoryBot, Adapter::Orm" do
|
13
|
+
expect(@config.adapter_classes).to eq([Pickle::Adapter::Machinist, Pickle::Adapter::FactoryBot, Pickle::Adapter::Fabrication, Pickle::Adapter::Orm])
|
14
14
|
end
|
15
15
|
|
16
16
|
describe "setting adapters to [:machinist, SomeAdapter]" do
|
@@ -28,7 +28,7 @@ describe Pickle::Config do
|
|
28
28
|
describe "#factories" do
|
29
29
|
it "should call adaptor.factories for each adaptor" do
|
30
30
|
expect(Pickle::Adapter::Machinist).to receive(:factories).and_return([])
|
31
|
-
expect(Pickle::Adapter::
|
31
|
+
expect(Pickle::Adapter::FactoryBot).to receive(:factories).and_return([])
|
32
32
|
expect(Pickle::Adapter::Fabrication).to receive(:factories).and_return([])
|
33
33
|
expect(Pickle::Adapter::Orm).to receive(:factories).and_return([])
|
34
34
|
@config.factories
|
@@ -36,18 +36,18 @@ describe Pickle::Config do
|
|
36
36
|
|
37
37
|
it "should aggregate factories into a hash using factory name as key" do
|
38
38
|
expect(Pickle::Adapter::Machinist).to receive(:factories).and_return([@machinist = double('machinist', :name => 'machinist')])
|
39
|
-
expect(Pickle::Adapter::
|
39
|
+
expect(Pickle::Adapter::FactoryBot).to receive(:factories).and_return([@factory_bot = double('factory_bot', :name => 'factory_bot')])
|
40
40
|
expect(Pickle::Adapter::Fabrication).to receive(:factories).and_return([@fabrication = double('fabrication', :name => 'fabrication')])
|
41
41
|
expect(Pickle::Adapter::Orm).to receive(:factories).and_return([@orm = double('orm', :name => 'orm')])
|
42
|
-
expect(@config.factories).to eq({'machinist' => @machinist, '
|
42
|
+
expect(@config.factories).to eq({'machinist' => @machinist, 'factory_bot' => @factory_bot, 'fabrication' => @fabrication, 'orm' => @orm})
|
43
43
|
end
|
44
44
|
|
45
45
|
it "should give preference to adaptors first in the list" do
|
46
46
|
expect(Pickle::Adapter::Machinist).to receive(:factories).and_return([@machinist_one = double('one', :name => 'one')])
|
47
|
-
expect(Pickle::Adapter::
|
47
|
+
expect(Pickle::Adapter::FactoryBot).to receive(:factories).and_return([@factory_bot_one = double('one', :name => 'one'), @factory_bot_two = double('two', :name => 'two')])
|
48
48
|
expect(Pickle::Adapter::Fabrication).to receive(:factories).and_return([@fabrication_one = double('one', :name => 'one'), @fabrication_three = double('three', :name => 'three')])
|
49
49
|
expect(Pickle::Adapter::Orm).to receive(:factories).and_return([@orm_two = double('two', :name => 'two'), @orm_four = double('four', :name => 'four')])
|
50
|
-
expect(@config.factories).to eq({'one' => @machinist_one, 'two' => @
|
50
|
+
expect(@config.factories).to eq({'one' => @machinist_one, 'two' => @factory_bot_two, 'three' => @fabrication_three, 'four' => @orm_four})
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
data/spec/pickle/email_spec.rb
CHANGED
@@ -162,7 +162,7 @@ describe Pickle::Email do
|
|
162
162
|
it "should not raise an error when the email body is not a string, but needs to_s [#26]" do
|
163
163
|
allow(self).to receive(:visit)
|
164
164
|
allow(@email1).to receive(:body).and_return(:a_string_body)
|
165
|
-
|
165
|
+
click_first_link_in_email(@email1)
|
166
166
|
end
|
167
167
|
end
|
168
168
|
|
data/spec/pickle/path_spec.rb
CHANGED
@@ -4,7 +4,7 @@ require 'pickle/path'
|
|
4
4
|
|
5
5
|
describe Pickle::Path do
|
6
6
|
include Pickle::Path
|
7
|
-
|
7
|
+
|
8
8
|
describe "#path_to_pickle, when the model doesn't exist" do
|
9
9
|
before do
|
10
10
|
allow(self).to receive(:model).and_return(nil)
|
@@ -12,81 +12,81 @@ describe Pickle::Path do
|
|
12
12
|
it "('that user', :extra => 'new comment') should raise the error raised by model!" do
|
13
13
|
expect { path_to_pickle "that user", "new comment" }.to raise_error(RuntimeError, 'Could not figure out a path for ["that user", "new comment"] {}')
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
describe "#path_to_pickle" do
|
19
19
|
describe "when model returns a user" do
|
20
20
|
let :user_class do
|
21
21
|
double 'User', :name => 'User'
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
let :user do
|
25
25
|
double 'user', :class => user_class
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
before do
|
29
29
|
allow(self).to receive(:model).and_return(user)
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
32
|
it "('a user', 'the user: \"fred\"') should retrieve 'a user', and 'the user: \"fred\"' models" do
|
33
33
|
expect(self).to receive(:model).with('a user')
|
34
34
|
expect(self).to receive(:model).with('the user: "fred"')
|
35
35
|
allow(self).to receive(:user_user_path).and_return('the path')
|
36
36
|
expect(path_to_pickle('a user', 'the user: "fred"')).to eq('the path')
|
37
37
|
end
|
38
|
-
|
38
|
+
|
39
39
|
it "('a user', :action => 'foo') should return foo_user_path(<user>)" do
|
40
40
|
expect(self).to receive(:foo_user_path).with(user).and_return('the path')
|
41
41
|
expect(path_to_pickle('a user', :action => 'foo')).to eq('the path')
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
it "('a user', :action => 'foo') should raise informative error if foo_user_path not defined" do
|
45
45
|
expect(self).to receive(:foo_user_path).with(user).and_raise(NoMethodError)
|
46
46
|
expect { path_to_pickle('a user', :action => 'foo') }.to raise_error(Exception, /Could not figure out a path for/)
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
it "('a user', :segment => 'foo') should return user_foo_path(<user>)" do
|
50
50
|
expect(self).to receive(:user_foo_path).with(user).and_return('the path')
|
51
51
|
expect(path_to_pickle('a user', :segment => 'foo')).to eq('the path')
|
52
52
|
end
|
53
|
-
|
53
|
+
|
54
54
|
it "('a user', :segment => 'foo') should raise informative error if foo_user_path not defined" do
|
55
55
|
expect(self).to receive(:user_foo_path).with(user).and_raise(NoMethodError)
|
56
56
|
expect { path_to_pickle('a user', :segment => 'foo') }.to raise_error(Exception, /Could not figure out a path for/)
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
it "('a user', :action => 'new', :segment => 'comment') should return new_user_comment_path(<user>)" do
|
60
60
|
expect(self).to receive(:new_user_comment_path).with(user).and_return('the path')
|
61
61
|
expect(path_to_pickle('a user', :segment => 'comment', :action => 'new')).to eq('the path')
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
it "('a user', :action => 'new', :segment => 'comment') should raise informative error if new_user_comment_path not defined" do
|
65
65
|
expect(self).to receive(:new_user_comment_path).with(user).and_raise(NoMethodError)
|
66
66
|
expect { path_to_pickle('a user', :action => 'new', :segment => 'comment') }.to raise_error(Exception, /Could not figure out a path for/)
|
67
67
|
end
|
68
|
-
|
68
|
+
|
69
69
|
it "('a user', :extra => 'new comment') should return new_user_comment_path(<user>)" do
|
70
70
|
expect(self).to receive(:new_user_comment_path).with(user).and_return('the path')
|
71
71
|
expect(path_to_pickle('a user', :extra => 'new comment')).to eq('the path')
|
72
72
|
end
|
73
|
-
|
73
|
+
|
74
74
|
it "('a user', :extra => 'new comment') should raise informative error if new_user_comment_path not defined" do
|
75
75
|
expect(self).to receive(:new_user_comment_path).with(user).and_raise(NoMethodError)
|
76
76
|
expect { path_to_pickle('a user', :extra => 'new comment') }.to raise_error(Exception, /Could not figure out a path for/)
|
77
77
|
end
|
78
|
-
|
78
|
+
|
79
79
|
describe "when args is a list of pickle and non pickle models" do
|
80
80
|
before do
|
81
81
|
allow(self).to receive(:model).with("account").and_return(nil)
|
82
82
|
end
|
83
|
-
|
83
|
+
|
84
84
|
it "('account', 'the user') should return account_user_path(<user>)" do
|
85
85
|
expect(self).to receive(:account_user_path).with(user).and_return("the path")
|
86
86
|
expect(path_to_pickle('account', 'the user')).to eq('the path')
|
87
87
|
end
|
88
88
|
end
|
89
|
-
|
89
|
+
|
90
90
|
describe "(private API)" do
|
91
91
|
it "('a user', :extra => 'new ish comment') should try combinations of 'new', 'ish', 'comment'" do
|
92
92
|
expect(self).to receive(:pickle_path_for_resources_action_segment).with([user], '', 'new_ish_comment').once
|
@@ -97,5 +97,24 @@ describe Pickle::Path do
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
end
|
100
|
+
|
101
|
+
describe "when model returns namespaced user" do
|
102
|
+
let :user_class do
|
103
|
+
double 'User', :name => 'Admin::User'
|
104
|
+
end
|
105
|
+
|
106
|
+
let :user do
|
107
|
+
double 'user', :class => user_class
|
108
|
+
end
|
109
|
+
|
110
|
+
before do
|
111
|
+
allow(self).to receive(:model).and_return(user)
|
112
|
+
end
|
113
|
+
|
114
|
+
it "('a user', :action => 'foo') should return foo_admin_user_path(<user>)" do
|
115
|
+
expect(self).to receive(:foo_admin_user_path).with(user).and_return('the path')
|
116
|
+
expect(path_to_pickle('a user', :action => 'foo')).to eq('the path')
|
117
|
+
end
|
118
|
+
end
|
100
119
|
end
|
101
|
-
end
|
120
|
+
end
|
data/spec/pickle/session_spec.rb
CHANGED
@@ -37,7 +37,7 @@ describe Pickle::Session do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
it "should raise error if pickle_parser don't know about em" do
|
40
|
-
expect { subject.parse_infinity }.to raise_error
|
40
|
+
expect { subject.parse_infinity }.to raise_error(NoMethodError, /^undefined method `parse_infinity' for /)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
@@ -300,10 +300,10 @@ describe Pickle::Session do
|
|
300
300
|
let(:shirl) { double("shirl", :class => user_class, :id => 3) }
|
301
301
|
let(:noname) { double("noname", :class => user_class, :id => 4) }
|
302
302
|
|
303
|
-
if defined? ::
|
304
|
-
let(:super_admin_factory) { Pickle::Adapter::
|
303
|
+
if defined? ::FactoryBot
|
304
|
+
let(:super_admin_factory) { Pickle::Adapter::FactoryBot.new(double(:build_class => user_class, :name => :super_admin), :super_admin) }
|
305
305
|
else
|
306
|
-
let(:super_admin_factory) { Pickle::Adapter::
|
306
|
+
let(:super_admin_factory) { Pickle::Adapter::FactoryBot.new(double(:build_class => user_class, :factory_name => :super_admin), :super_admin) }
|
307
307
|
end
|
308
308
|
|
309
309
|
before do
|
@@ -391,7 +391,7 @@ describe Pickle::Session do
|
|
391
391
|
end
|
392
392
|
|
393
393
|
it "#parser.parse_fields 'author: user \"JIM\"' should raise Error, as model deos not refer" do
|
394
|
-
expect { pickle_parser.parse_fields('author: user "JIM"') }.to raise_error
|
394
|
+
expect { pickle_parser.parse_fields('author: user "JIM"') }.to raise_error(Pickle::Session::ModelNotKnownError, %q[The model: 'user "JIM"' is not known in this scenario. Use #create_model to create, or #find_model to find, and store a reference in this scenario.])
|
395
395
|
end
|
396
396
|
|
397
397
|
it "#parser.parse_fields 'author: the user' should return {\"author\" => <user>}" do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
+
require 'rails'
|
1
2
|
require 'active_support'
|
2
3
|
require 'active_record'
|
3
|
-
require '
|
4
|
+
require 'factory_bot'
|
5
|
+
|
6
|
+
require 'simplecov'
|
7
|
+
require 'codecov'
|
8
|
+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
4
9
|
|
5
10
|
$:.unshift(File.expand_path('../../lib', __FILE__))
|
6
11
|
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pickle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian White
|
8
8
|
- James Le Cuirot
|
9
|
+
- Mathieu Jobin
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2021-06-22 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: cucumber
|
@@ -17,14 +18,20 @@ dependencies:
|
|
17
18
|
requirements:
|
18
19
|
- - ">="
|
19
20
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0
|
21
|
+
version: '3.0'
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '7.0'
|
21
25
|
type: :runtime
|
22
26
|
prerelease: false
|
23
27
|
version_requirements: !ruby/object:Gem::Requirement
|
24
28
|
requirements:
|
25
29
|
- - ">="
|
26
30
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0
|
31
|
+
version: '3.0'
|
32
|
+
- - "<"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '7.0'
|
28
35
|
- !ruby/object:Gem::Dependency
|
29
36
|
name: rake
|
30
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,16 +120,22 @@ dependencies:
|
|
113
120
|
name: rails
|
114
121
|
requirement: !ruby/object:Gem::Requirement
|
115
122
|
requirements:
|
116
|
-
- - "
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 4.2.0
|
126
|
+
- - "<"
|
117
127
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
128
|
+
version: '7.0'
|
119
129
|
type: :development
|
120
130
|
prerelease: false
|
121
131
|
version_requirements: !ruby/object:Gem::Requirement
|
122
132
|
requirements:
|
123
|
-
- - "
|
133
|
+
- - ">="
|
124
134
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
135
|
+
version: 4.2.0
|
136
|
+
- - "<"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '7.0'
|
126
139
|
- !ruby/object:Gem::Dependency
|
127
140
|
name: cucumber-rails
|
128
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,7 +151,7 @@ dependencies:
|
|
138
151
|
- !ruby/object:Gem::Version
|
139
152
|
version: '0'
|
140
153
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
154
|
+
name: factory_bot
|
142
155
|
requirement: !ruby/object:Gem::Requirement
|
143
156
|
requirements:
|
144
157
|
- - ">="
|
@@ -169,16 +182,16 @@ dependencies:
|
|
169
182
|
name: machinist
|
170
183
|
requirement: !ruby/object:Gem::Requirement
|
171
184
|
requirements:
|
172
|
-
- - "
|
185
|
+
- - ">="
|
173
186
|
- !ruby/object:Gem::Version
|
174
|
-
version: '
|
187
|
+
version: '0'
|
175
188
|
type: :development
|
176
189
|
prerelease: false
|
177
190
|
version_requirements: !ruby/object:Gem::Requirement
|
178
191
|
requirements:
|
179
|
-
- - "
|
192
|
+
- - ">="
|
180
193
|
- !ruby/object:Gem::Version
|
181
|
-
version: '
|
194
|
+
version: '0'
|
182
195
|
- !ruby/object:Gem::Dependency
|
183
196
|
name: database_cleaner
|
184
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,25 +234,40 @@ dependencies:
|
|
221
234
|
- - ">="
|
222
235
|
- !ruby/object:Gem::Version
|
223
236
|
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: codecov
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
224
251
|
description: Easy model creation and reference in your cucumber features
|
225
252
|
email:
|
226
253
|
- ian.w.white@gmail.com
|
227
254
|
- chewi@aura-online.co.uk
|
255
|
+
- mathieu.jobin@gmail.com
|
228
256
|
executables: []
|
229
257
|
extensions: []
|
230
258
|
extra_rdoc_files: []
|
231
259
|
files:
|
260
|
+
- ".github/workflows/build.yml"
|
232
261
|
- ".gitignore"
|
233
262
|
- ".rspec"
|
234
263
|
- ".travis.yml"
|
235
|
-
- Gemfile
|
236
|
-
- Gemfile.lock.development
|
237
264
|
- History.txt
|
238
265
|
- License.txt
|
239
266
|
- README.md
|
240
267
|
- Rakefile
|
241
268
|
- Rakefile.d/cucumber.rake
|
242
269
|
- Rakefile.d/release.rake
|
270
|
+
- Rakefile.d/repoclean.rake
|
243
271
|
- Rakefile.d/rspec.rake
|
244
272
|
- Rakefile.d/yard.rake
|
245
273
|
- Todo.txt
|
@@ -270,7 +298,22 @@ files:
|
|
270
298
|
- features/support/paths.rb
|
271
299
|
- features/support/pickle.rb
|
272
300
|
- features/support/pickle_app.rb
|
273
|
-
-
|
301
|
+
- gemfiles/Gemfile-rails.4.2.x
|
302
|
+
- gemfiles/Gemfile-rails.4.2.x.lock
|
303
|
+
- gemfiles/Gemfile-rails.5.0.x
|
304
|
+
- gemfiles/Gemfile-rails.5.1.x
|
305
|
+
- gemfiles/Gemfile-rails.5.2.x
|
306
|
+
- gemfiles/Gemfile-rails.5.2.x-cukes-4
|
307
|
+
- gemfiles/Gemfile-rails.5.2.x-cukes-5
|
308
|
+
- gemfiles/Gemfile-rails.6.0.x-cukes-3
|
309
|
+
- gemfiles/Gemfile-rails.6.0.x-cukes-4
|
310
|
+
- gemfiles/Gemfile-rails.6.0.x-cukes-5
|
311
|
+
- gemfiles/Gemfile-rails.6.0.x-cukes-6
|
312
|
+
- gemfiles/Gemfile-rails.6.1.x-cukes-3
|
313
|
+
- gemfiles/Gemfile-rails.6.1.x-cukes-4
|
314
|
+
- gemfiles/Gemfile-rails.6.1.x-cukes-5
|
315
|
+
- gemfiles/Gemfile-rails.6.1.x-cukes-6
|
316
|
+
- gemfiles/Gemfile-rails.edge
|
274
317
|
- lib/generators/pickle_generator.rb
|
275
318
|
- lib/pickle.rb
|
276
319
|
- lib/pickle/adapter.rb
|
@@ -323,47 +366,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
366
|
requirements:
|
324
367
|
- - ">="
|
325
368
|
- !ruby/object:Gem::Version
|
326
|
-
version:
|
369
|
+
version: '2.0'
|
327
370
|
requirements: []
|
328
|
-
|
329
|
-
rubygems_version: 2.4.8
|
371
|
+
rubygems_version: 3.0.9
|
330
372
|
signing_key:
|
331
373
|
specification_version: 4
|
332
374
|
summary: Easy model creation and reference in your cucumber features.
|
333
|
-
test_files:
|
334
|
-
- features/app/app.rb
|
335
|
-
- features/app/blueprints.rb
|
336
|
-
- features/app/fabricators.rb
|
337
|
-
- features/app/factories.rb
|
338
|
-
- features/app/views/notifier/email.erb
|
339
|
-
- features/app/views/notifier/user_email.erb
|
340
|
-
- features/email/email.feature
|
341
|
-
- features/generator/generators.feature
|
342
|
-
- features/path/models_page.feature
|
343
|
-
- features/path/named_route_page.feature
|
344
|
-
- features/pickle/create_from_active_record.feature
|
345
|
-
- features/pickle/create_from_fabrication.feature
|
346
|
-
- features/pickle/create_from_factory_girl.feature
|
347
|
-
- features/pickle/create_from_machinist.feature
|
348
|
-
- features/step_definitions/email_steps.rb
|
349
|
-
- features/step_definitions/extra_email_steps.rb
|
350
|
-
- features/step_definitions/fork_steps.rb
|
351
|
-
- features/step_definitions/generator_steps.rb
|
352
|
-
- features/step_definitions/path_steps.rb
|
353
|
-
- features/step_definitions/pickle_steps.rb
|
354
|
-
- features/step_definitions/raise_error_steps.rb
|
355
|
-
- features/support/email.rb
|
356
|
-
- features/support/env.rb
|
357
|
-
- features/support/paths.rb
|
358
|
-
- features/support/pickle.rb
|
359
|
-
- features/support/pickle_app.rb
|
360
|
-
- spec/pickle/adapter_spec.rb
|
361
|
-
- spec/pickle/config_spec.rb
|
362
|
-
- spec/pickle/email/parser_spec.rb
|
363
|
-
- spec/pickle/email_spec.rb
|
364
|
-
- spec/pickle/parser/matchers_spec.rb
|
365
|
-
- spec/pickle/parser_spec.rb
|
366
|
-
- spec/pickle/path_spec.rb
|
367
|
-
- spec/pickle/session_spec.rb
|
368
|
-
- spec/pickle_spec.rb
|
369
|
-
- spec/spec_helper.rb
|
375
|
+
test_files: []
|