spbtv_pickle 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.travis.yml +10 -0
- data/Gemfile +3 -0
- data/Gemfile.lock.development +158 -0
- data/History.txt +499 -0
- data/License.txt +20 -0
- data/README.md +566 -0
- data/Rakefile +20 -0
- data/Rakefile.d/cucumber.rake +27 -0
- data/Rakefile.d/release.rake +44 -0
- data/Rakefile.d/rspec.rake +3 -0
- data/Rakefile.d/yard.rake +5 -0
- data/Todo.txt +3 -0
- data/autotest/discover.rb +9 -0
- data/features/app/app.rb +128 -0
- data/features/app/blueprints.rb +6 -0
- data/features/app/fabricators.rb +6 -0
- data/features/app/factories.rb +25 -0
- data/features/app/views/notifier/email.erb +1 -0
- data/features/app/views/notifier/user_email.erb +6 -0
- data/features/email/email.feature +64 -0
- data/features/generator/generators.feature +59 -0
- data/features/path/models_page.feature +44 -0
- data/features/path/named_route_page.feature +10 -0
- data/features/pickle/create_from_active_record.feature +83 -0
- data/features/pickle/create_from_fabrication.feature +46 -0
- data/features/pickle/create_from_factory_girl.feature +66 -0
- data/features/pickle/create_from_machinist.feature +46 -0
- data/features/step_definitions/email_steps.rb +1 -0
- data/features/step_definitions/extra_email_steps.rb +12 -0
- data/features/step_definitions/fork_steps.rb +4 -0
- data/features/step_definitions/generator_steps.rb +52 -0
- data/features/step_definitions/path_steps.rb +14 -0
- data/features/step_definitions/pickle_steps.rb +1 -0
- data/features/step_definitions/raise_error_steps.rb +7 -0
- data/features/support/email.rb +1 -0
- data/features/support/env.rb +14 -0
- data/features/support/paths.rb +47 -0
- data/features/support/pickle.rb +27 -0
- data/features/support/pickle_app.rb +4 -0
- data/init.rb +0 -0
- data/lib/generators/pickle_generator.rb +44 -0
- data/lib/pickle.rb +26 -0
- data/lib/pickle/adapter.rb +183 -0
- data/lib/pickle/adapters/active_record.rb +67 -0
- data/lib/pickle/adapters/data_mapper.rb +42 -0
- data/lib/pickle/adapters/mongoid.rb +54 -0
- data/lib/pickle/config.rb +49 -0
- data/lib/pickle/email.rb +87 -0
- data/lib/pickle/email/parser.rb +18 -0
- data/lib/pickle/email/world.rb +13 -0
- data/lib/pickle/parser.rb +65 -0
- data/lib/pickle/parser/matchers.rb +87 -0
- data/lib/pickle/path.rb +45 -0
- data/lib/pickle/path/world.rb +5 -0
- data/lib/pickle/session.rb +244 -0
- data/lib/pickle/session/parser.rb +34 -0
- data/lib/pickle/version.rb +3 -0
- data/lib/pickle/world.rb +14 -0
- data/lib/spbtv_pickle.rb +1 -0
- data/rails_generators/pickle/pickle_generator.rb +31 -0
- data/rails_generators/pickle/templates/email.rb +21 -0
- data/rails_generators/pickle/templates/email_steps.rb +65 -0
- data/rails_generators/pickle/templates/paths.rb +47 -0
- data/rails_generators/pickle/templates/pickle.rb +29 -0
- data/rails_generators/pickle/templates/pickle_steps.rb +105 -0
- data/spbtv_pickle.gemspec +38 -0
- data/spec/pickle/adapter_spec.rb +203 -0
- data/spec/pickle/config_spec.rb +112 -0
- data/spec/pickle/email/parser_spec.rb +51 -0
- data/spec/pickle/email_spec.rb +187 -0
- data/spec/pickle/parser/matchers_spec.rb +70 -0
- data/spec/pickle/parser_spec.rb +165 -0
- data/spec/pickle/path_spec.rb +120 -0
- data/spec/pickle/session_spec.rb +448 -0
- data/spec/pickle_spec.rb +24 -0
- data/spec/spec_helper.rb +78 -0
- metadata +370 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f56b0ee29323a46fae3ea48d3a84397b9e6952d9
|
4
|
+
data.tar.gz: 622b58888e2e84d8dcfb231ee7848a6d613df077
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 11b88db0285d986fe9d081a9b2790c8e60424b6a5f33cb68bf681566ec561aea5b99352a5a719080a0b452e989ffd16c918e84b588e4e2578ba9220dfcbaab3c
|
7
|
+
data.tar.gz: 6608bc0038d31a6944941bb9a1225fb29d33cb5de74e3b0aeb8fc1aae85161f5db23027274240cdd3d69362f7fc47a2c7819138b8183157a9a756622eba7f103
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
spbtv_pickle (0.5.1)
|
5
|
+
cucumber (>= 0.8)
|
6
|
+
rake
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (3.1.12)
|
12
|
+
actionpack (= 3.1.12)
|
13
|
+
mail (~> 2.4.4)
|
14
|
+
actionpack (3.1.12)
|
15
|
+
activemodel (= 3.1.12)
|
16
|
+
activesupport (= 3.1.12)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
i18n (~> 0.6)
|
20
|
+
rack (~> 1.3.6)
|
21
|
+
rack-cache (~> 1.2)
|
22
|
+
rack-mount (~> 0.8.2)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.0.4)
|
25
|
+
activemodel (3.1.12)
|
26
|
+
activesupport (= 3.1.12)
|
27
|
+
builder (~> 3.0.0)
|
28
|
+
i18n (~> 0.6)
|
29
|
+
activerecord (3.1.12)
|
30
|
+
activemodel (= 3.1.12)
|
31
|
+
activesupport (= 3.1.12)
|
32
|
+
arel (~> 2.2.3)
|
33
|
+
tzinfo (~> 0.3.29)
|
34
|
+
activeresource (3.1.12)
|
35
|
+
activemodel (= 3.1.12)
|
36
|
+
activesupport (= 3.1.12)
|
37
|
+
activesupport (3.1.12)
|
38
|
+
multi_json (~> 1.0)
|
39
|
+
arel (2.2.3)
|
40
|
+
builder (3.0.4)
|
41
|
+
capybara (2.4.4)
|
42
|
+
mime-types (>= 1.16)
|
43
|
+
nokogiri (>= 1.3.3)
|
44
|
+
rack (>= 1.0.0)
|
45
|
+
rack-test (>= 0.5.4)
|
46
|
+
xpath (~> 2.0)
|
47
|
+
cucumber (1.3.18)
|
48
|
+
builder (>= 2.1.2)
|
49
|
+
diff-lcs (>= 1.1.3)
|
50
|
+
gherkin (~> 2.12)
|
51
|
+
multi_json (>= 1.7.5, < 2.0)
|
52
|
+
multi_test (>= 0.1.1)
|
53
|
+
cucumber-rails (1.4.2)
|
54
|
+
capybara (>= 1.1.2, < 3)
|
55
|
+
cucumber (>= 1.3.8, < 2)
|
56
|
+
mime-types (>= 1.16, < 3)
|
57
|
+
nokogiri (~> 1.5)
|
58
|
+
rails (>= 3, < 5)
|
59
|
+
database_cleaner (1.4.0)
|
60
|
+
diff-lcs (1.2.5)
|
61
|
+
erubis (2.7.0)
|
62
|
+
fabrication (2.12.0)
|
63
|
+
factory_girl (4.5.0)
|
64
|
+
activesupport (>= 3.0.0)
|
65
|
+
gherkin (2.12.2)
|
66
|
+
multi_json (~> 1.3)
|
67
|
+
git (1.2.9)
|
68
|
+
hike (1.2.3)
|
69
|
+
i18n (0.7.0)
|
70
|
+
json (1.8.2)
|
71
|
+
machinist (2.0)
|
72
|
+
mail (2.4.4)
|
73
|
+
i18n (>= 0.4.0)
|
74
|
+
mime-types (~> 1.16)
|
75
|
+
treetop (~> 1.4.8)
|
76
|
+
mime-types (1.25.1)
|
77
|
+
mini_portile (0.6.2)
|
78
|
+
multi_json (1.10.1)
|
79
|
+
multi_test (0.1.1)
|
80
|
+
nokogiri (1.6.5)
|
81
|
+
mini_portile (~> 0.6.0)
|
82
|
+
polyglot (0.3.5)
|
83
|
+
rack (1.3.10)
|
84
|
+
rack-cache (1.2)
|
85
|
+
rack (>= 0.4)
|
86
|
+
rack-mount (0.8.3)
|
87
|
+
rack (>= 1.0.0)
|
88
|
+
rack-ssl (1.3.4)
|
89
|
+
rack
|
90
|
+
rack-test (0.6.3)
|
91
|
+
rack (>= 1.0)
|
92
|
+
rails (3.1.12)
|
93
|
+
actionmailer (= 3.1.12)
|
94
|
+
actionpack (= 3.1.12)
|
95
|
+
activerecord (= 3.1.12)
|
96
|
+
activeresource (= 3.1.12)
|
97
|
+
activesupport (= 3.1.12)
|
98
|
+
bundler (~> 1.0)
|
99
|
+
railties (= 3.1.12)
|
100
|
+
railties (3.1.12)
|
101
|
+
actionpack (= 3.1.12)
|
102
|
+
activesupport (= 3.1.12)
|
103
|
+
rack-ssl (~> 1.3.2)
|
104
|
+
rake (>= 0.8.7)
|
105
|
+
rdoc (~> 3.4)
|
106
|
+
thor (~> 0.14.6)
|
107
|
+
rake (10.4.2)
|
108
|
+
rdoc (3.12.2)
|
109
|
+
json (~> 1.4)
|
110
|
+
rspec-core (3.1.7)
|
111
|
+
rspec-support (~> 3.1.0)
|
112
|
+
rspec-expectations (3.1.2)
|
113
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
114
|
+
rspec-support (~> 3.1.0)
|
115
|
+
rspec-mocks (3.1.3)
|
116
|
+
rspec-support (~> 3.1.0)
|
117
|
+
rspec-rails (3.1.0)
|
118
|
+
actionpack (>= 3.0)
|
119
|
+
activesupport (>= 3.0)
|
120
|
+
railties (>= 3.0)
|
121
|
+
rspec-core (~> 3.1.0)
|
122
|
+
rspec-expectations (~> 3.1.0)
|
123
|
+
rspec-mocks (~> 3.1.0)
|
124
|
+
rspec-support (~> 3.1.0)
|
125
|
+
rspec-support (3.1.2)
|
126
|
+
sprockets (2.0.5)
|
127
|
+
hike (~> 1.2)
|
128
|
+
rack (~> 1.0)
|
129
|
+
tilt (~> 1.1, != 1.3.0)
|
130
|
+
sqlite3 (1.3.10)
|
131
|
+
thor (0.14.6)
|
132
|
+
tilt (1.4.1)
|
133
|
+
treetop (1.4.15)
|
134
|
+
polyglot
|
135
|
+
polyglot (>= 0.3.1)
|
136
|
+
tzinfo (0.3.42)
|
137
|
+
xpath (2.0.0)
|
138
|
+
nokogiri (~> 1.3)
|
139
|
+
yard (0.8.7.6)
|
140
|
+
|
141
|
+
PLATFORMS
|
142
|
+
ruby
|
143
|
+
|
144
|
+
DEPENDENCIES
|
145
|
+
bundler
|
146
|
+
capybara
|
147
|
+
cucumber-rails
|
148
|
+
database_cleaner
|
149
|
+
fabrication (~> 2.0)
|
150
|
+
factory_girl
|
151
|
+
git
|
152
|
+
machinist (~> 2.0)
|
153
|
+
spbtv_pickle!
|
154
|
+
rack
|
155
|
+
rails (~> 3.1.0)
|
156
|
+
rspec-rails (~> 3.0)
|
157
|
+
sqlite3
|
158
|
+
yard
|
data/History.txt
ADDED
@@ -0,0 +1,499 @@
|
|
1
|
+
== 0.5.1
|
2
|
+
|
3
|
+
* Add support to use Factory.build [Erik Peterson]
|
4
|
+
* Support factory_girl2 aliases [Jon Kinney]
|
5
|
+
* Better email validation messages [Kevin Ross]
|
6
|
+
* Prefer the html_part in a multipart email [Jason Lee, Jon Kinney]
|
7
|
+
* Fix email open_in_browser function [Daniel Zollinger]
|
8
|
+
* Support Mongoid associations in find_model/s [Ches Martin]
|
9
|
+
* Fix Mongoid for anonymous classes [Matt Royal]
|
10
|
+
* Fix Mongoid finders for later versions [James Le Cuirot, Jules Copeland]
|
11
|
+
* Fix ActiveRecord finders for later versions [Blake Thomas]
|
12
|
+
* Support "should not exist" for models from a table [Pierre-Yves Chauveau]
|
13
|
+
* Reduce number of queries when creating multiple models [James Le Cuirot]
|
14
|
+
* Various test improvements [James Le Cuirot]
|
15
|
+
|
16
|
+
== 0.5.0
|
17
|
+
|
18
|
+
* Drop support for Machinist 1 [James Le Cuirot]
|
19
|
+
* Improve support for latest Fabrication and factory_girl [James Le Cuirot]
|
20
|
+
* Fix installation under recent cucumber-rails versions [James Le Cuirot]
|
21
|
+
* Fix up tests, including full migration to RSpec 3 [James Le Cuirot, Niklas Hofer]
|
22
|
+
|
23
|
+
== 0.4.11
|
24
|
+
|
25
|
+
* 1 minor improvement
|
26
|
+
* Changed find_first_model to cope with Mongoid 3.0.0 [Jules Copeland]
|
27
|
+
|
28
|
+
== 0.4.10
|
29
|
+
|
30
|
+
* 1 bugfix
|
31
|
+
* Don't blow up when fabrication not present [Ian White]
|
32
|
+
|
33
|
+
|
34
|
+
== 0.4.9
|
35
|
+
|
36
|
+
* 1 major improvement
|
37
|
+
* Fabrication factory adapter [David Padilla]
|
38
|
+
|
39
|
+
* 1 minor improvement
|
40
|
+
* Update development dependencies so tests/features run on rails 3.1 and friends
|
41
|
+
|
42
|
+
|
43
|
+
== 0.4.8
|
44
|
+
|
45
|
+
* 2 minor improvements
|
46
|
+
* Support factory_girl v1 and v2 API [Ari Epstein]
|
47
|
+
* Dev deps updated to latest cucumber & cucumber-rails, and test for factory_girl 2 [Ian White]
|
48
|
+
|
49
|
+
|
50
|
+
== 0.4.7
|
51
|
+
|
52
|
+
* 2 minor improvements
|
53
|
+
* Better error message for failing to find a model [Ian White, reported by Yuval Karmi]
|
54
|
+
* dev deps updated to latest cucumber & cucumber-rails [Ian White]
|
55
|
+
|
56
|
+
|
57
|
+
== 0.4.6
|
58
|
+
Documentation updates
|
59
|
+
|
60
|
+
* 1 minor improvement
|
61
|
+
* Add email steps documentation to Readme [Michael Moen, Ian White]
|
62
|
+
|
63
|
+
|
64
|
+
== 0.4.5
|
65
|
+
Development dependency upgrades
|
66
|
+
|
67
|
+
* 2 minor improvements
|
68
|
+
* Simplify release process, and change Gemspec handling to facilitate faster failing when a development dep becomes incompatible [Ian White]
|
69
|
+
* Upgrade development to use rspec 2, and a rails 3 application for the features [Ian White]
|
70
|
+
|
71
|
+
|
72
|
+
== 0.4.4
|
73
|
+
large object space fix, and allow escaped quotes as string values
|
74
|
+
|
75
|
+
* 1 bugfix
|
76
|
+
* When using super-huge GC limits (for speeding up tests), occasionally we'll see abandoned Mongoid::Document classes appear in the ObjectSpace.
|
77
|
+
This patch should fix that. [Devin Walters and Nick Karpenske]
|
78
|
+
|
79
|
+
* 1 improvement
|
80
|
+
* allow escaped quotes (\") in quoted fields [Jonathan Hinkle]
|
81
|
+
|
82
|
+
|
83
|
+
== 0.4.3
|
84
|
+
ruby 1.9.2 compatibility fix
|
85
|
+
|
86
|
+
* 1 bugfix
|
87
|
+
* Fix can't change hash during iteration error for ruby 1.9.2 [Ian White] [#33]
|
88
|
+
(This is fixed in orm_adapter, which pickle 0.5 will be using)
|
89
|
+
|
90
|
+
|
91
|
+
== 0.4.2
|
92
|
+
|
93
|
+
* 1 bugfix
|
94
|
+
* Use mongoid finder syntax, which requires a :conditions key [Marc Lee]
|
95
|
+
|
96
|
+
|
97
|
+
== 0.4.1
|
98
|
+
Docfix
|
99
|
+
|
100
|
+
* 1 improvement
|
101
|
+
* documentation fixes, and example of writing your own pickle steps
|
102
|
+
|
103
|
+
|
104
|
+
== 0.4.0
|
105
|
+
Mongoid adapter, fallback ORM adapter for those not using machinist or active_record, bugfixes
|
106
|
+
|
107
|
+
* 2 major improvements
|
108
|
+
* adapter for Mongoid [Sebastian Zuchmanski]
|
109
|
+
* replace ActiveRecord 'factory' adapter with Orm adapter.
|
110
|
+
|
111
|
+
If you don't have machinist or factory_girl, the Orm factory adapter will fallback to your Orm to create classes.
|
112
|
+
|
113
|
+
BC: if you have a line like this:
|
114
|
+
Pickle.configure do |config|
|
115
|
+
config.adapters = [:active_record]
|
116
|
+
end
|
117
|
+
|
118
|
+
You need to replace it with :orm
|
119
|
+
Pickle.configure do |config|
|
120
|
+
config.adapters = [:orm]
|
121
|
+
end
|
122
|
+
|
123
|
+
* 1 minor improvement
|
124
|
+
* Pickle::Session::ModelNotKnownError is raised instead of a generic RuntimeError
|
125
|
+
|
126
|
+
* 1 bugfix
|
127
|
+
* references to unknown models in fields now raise ModelNotKnownError instead of silently assigning nil
|
128
|
+
|
129
|
+
|
130
|
+
== 0.3.5
|
131
|
+
|
132
|
+
* 3 improvements
|
133
|
+
* bundler is used for setting up development dependencies
|
134
|
+
* gemspec specifies dependencies for using pickle
|
135
|
+
* Machinist 2 compatability [giddie]
|
136
|
+
|
137
|
+
* 1 bugfix
|
138
|
+
* find_models now works with a factory name with spaces in it [#27]
|
139
|
+
|
140
|
+
|
141
|
+
== 0.3.4
|
142
|
+
|
143
|
+
* 2 minor improvements
|
144
|
+
* Fix problem where email body is not a string, but is string like [#26] [Tom Meier]
|
145
|
+
* Minor code refactoring
|
146
|
+
|
147
|
+
|
148
|
+
== 0.3.3
|
149
|
+
|
150
|
+
* 1 minor improvement
|
151
|
+
* Pickle respects the default build strategy for factory girl. [Sean Hussey]
|
152
|
+
|
153
|
+
|
154
|
+
== 0.3.2
|
155
|
+
|
156
|
+
* 3 minor improvements
|
157
|
+
* Document how to use machinist named blueprints [Christopher Darroch]
|
158
|
+
* Email links now visit the url, rather than just the path, this allows for features that
|
159
|
+
make use of the domain to function correctly
|
160
|
+
* Deprecation warnings for Rails 3 removed [Brian Rose & Kevin Olsen]
|
161
|
+
|
162
|
+
|
163
|
+
== 0.3.1
|
164
|
+
|
165
|
+
* 1 major improvement
|
166
|
+
* Rails 3 support for generators [H.J. Blok, szimek]
|
167
|
+
|
168
|
+
|
169
|
+
== 0.3.0
|
170
|
+
|
171
|
+
* 2 major improvements
|
172
|
+
* Mechanism for registering ORM adapters for pickle [Daniel Neighman]
|
173
|
+
* Adapters for ActiveRecord and DataMapper [Josh Bassett, Daniel Neighman]
|
174
|
+
|
175
|
+
|
176
|
+
== 0.2.12
|
177
|
+
|
178
|
+
* 1 bugfix
|
179
|
+
* script/generate pickle paths now works correctly with cucumber-rails 0.3.2
|
180
|
+
|
181
|
+
|
182
|
+
== 0.2.11
|
183
|
+
|
184
|
+
* 1 improvement
|
185
|
+
* use correct type when converting STI pickle model to attributes
|
186
|
+
|
187
|
+
|
188
|
+
== 0.2.10
|
189
|
+
|
190
|
+
* 2 improvements
|
191
|
+
* pickle backend is rails 3 compatible (but generators are not yet)
|
192
|
+
* modular Rakefile, devs can run only what they're interested in without having to install all gems
|
193
|
+
|
194
|
+
|
195
|
+
== 0.2.9 - 27 Apr 2010 (the #railscamp7 release)
|
196
|
+
|
197
|
+
* 5 improvements
|
198
|
+
* Fixed problem with verifying model attribute using strings with escaped quotes [Michael MacDonald]
|
199
|
+
* Added handling for positive and negative floats [Michael MacDonald, #railscamp7]
|
200
|
+
* Added handling of ruby integer syntax (e.g. 1_000_000) [Ian White]
|
201
|
+
* Modified the way pickle handles predicates to match rspec [Michael MacDonald, #railscamp7]
|
202
|
+
* Added step to assert size of an association (e.g. Then the user should have 4 friends) [Ian White]
|
203
|
+
|
204
|
+
|
205
|
+
== 0.2.8 - 5 Apr 2010
|
206
|
+
|
207
|
+
* 1 minor improvement
|
208
|
+
* 'Then show me the email' works as expected now [#18]
|
209
|
+
|
210
|
+
|
211
|
+
== 0.2.7 - 5 Apr 2010
|
212
|
+
|
213
|
+
* 1 minor improvement
|
214
|
+
* just rake 'rake cucumber' and a rails app will be setup for you if required (rails 2.3 only ATM)
|
215
|
+
|
216
|
+
|
217
|
+
== 0.2.6 - 5 Apr 2010
|
218
|
+
|
219
|
+
* 2 improvements
|
220
|
+
* running specs is now doable without being in a rails app - just do 'rake spec'
|
221
|
+
* running features is more straightforward, 'rake cucumber' then follow the instructions
|
222
|
+
|
223
|
+
|
224
|
+
== 0.2.5 - 17 Mar 2010
|
225
|
+
|
226
|
+
* 2 improvements
|
227
|
+
* Bugfix for find_models_via_table (failing to find models was not causing an error) [Chris Flipse]
|
228
|
+
* find_models_via_table & create_models_via_table return the found/created models [Chris Flipse, Ian White]
|
229
|
+
|
230
|
+
|
231
|
+
== 0.2.4 - 9 Mar 2010
|
232
|
+
|
233
|
+
* 1 major improvement
|
234
|
+
* Finding models via a table now works in the same way as creating models via a table (0.2.3), you
|
235
|
+
can create pickle refs
|
236
|
+
|
237
|
+
|
238
|
+
== 0.2.3 - 9 Mar 2010
|
239
|
+
|
240
|
+
* 1 major improvement
|
241
|
+
* You can now use pickle refs in tables. If you add a column which is the single factory name, the
|
242
|
+
contents of the column will be used as the pickle ref. [Stephan Hagemann]
|
243
|
+
e.g.
|
244
|
+
Given the following users exist:
|
245
|
+
| user | name | status |
|
246
|
+
| jack | Jack Spratt | alone |
|
247
|
+
| pete | Pete Sprong | dead |
|
248
|
+
|
249
|
+
* 1 minor improvement
|
250
|
+
* Fix bug in error message for when pickle ref can't be found [Myron Marston]
|
251
|
+
|
252
|
+
|
253
|
+
== 0.2.2 - 25 Feb 2010
|
254
|
+
|
255
|
+
* 3 improvements
|
256
|
+
* Added ability to follow links in emails (see email_steps.rb) [Michael Moen]
|
257
|
+
* Added a step definition for doing stuff like: Then the user's name should be "Tobi" [Tobi Knaup]
|
258
|
+
* Docfixes, mostly about testing [Nicholas Rutherford]
|
259
|
+
|
260
|
+
|
261
|
+
== 0.2.1 - 1 Dec 2009
|
262
|
+
|
263
|
+
* 2 minor improvements
|
264
|
+
* Allow nil as field value [#14]
|
265
|
+
* Added negative email step for delivered to
|
266
|
+
|
267
|
+
|
268
|
+
== 0.2.0 - 24 Nov 2009
|
269
|
+
|
270
|
+
* 4 major improvements
|
271
|
+
* Added support for finding models using tables
|
272
|
+
Example:
|
273
|
+
Then the following users should exist:
|
274
|
+
| name |
|
275
|
+
| Fred |
|
276
|
+
| Ethel |
|
277
|
+
And the 1st user should be male
|
278
|
+
And the 2nd user should be female
|
279
|
+
|
280
|
+
* tables now support pickle refs in cells (see features/pickle/create_from_factory_girl.rb#37)
|
281
|
+
|
282
|
+
* features/support/email.rb adds an email helper for mapping names to email addresses (similar to NavigationHelper in paths.rb)
|
283
|
+
|
284
|
+
* Added ability for path_to_pickle to handle arbitrary segments
|
285
|
+
Example:
|
286
|
+
path_to_pickle('account', 'the enquiry') => account_enquiry_path(<enquiry>)
|
287
|
+
|
288
|
+
* 2 minor improvements
|
289
|
+
* fail faster in pickle steps when a pickle ref can't be found, by using model! in most places
|
290
|
+
|
291
|
+
* generated pickle steps are less picky about possessives so that pickle mappings accepted in more places
|
292
|
+
e.g. when you have
|
293
|
+
config.map 'my', 'I', 'myself', :to => 'user: "me"'
|
294
|
+
you can now do
|
295
|
+
Given I exist
|
296
|
+
...
|
297
|
+
Then the project should be one of my assigned projects
|
298
|
+
|
299
|
+
|
300
|
+
== 0.1.23 - 22 Nov 2009
|
301
|
+
|
302
|
+
* 1 major improvement
|
303
|
+
* script/generate pickle now adds its own pickle.rb support file, making it easier to regenerate cucumber
|
304
|
+
when a new release of cucumber appears [schlick, ianwhite]
|
305
|
+
|
306
|
+
* 1 minor improvement
|
307
|
+
* docs: more links
|
308
|
+
|
309
|
+
|
310
|
+
== 0.1.22 - 7 Nov 2009
|
311
|
+
|
312
|
+
* 2 minor enhancements
|
313
|
+
* Improved docs to include instructions for FactoryGirl users, and links/resources for pickle users
|
314
|
+
* Ruby 1.9.1 compatibility changes
|
315
|
+
|
316
|
+
|
317
|
+
== 0.1.21
|
318
|
+
|
319
|
+
* 1 minor enhancement
|
320
|
+
* Added 'should not' steps corresponding to model existence, and association exitsence [schlick]
|
321
|
+
|
322
|
+
|
323
|
+
== 0.1.20
|
324
|
+
|
325
|
+
* 1 minor enhancement
|
326
|
+
* Pickle now matches numeric field values preceded with a positive and negative sign eg +1.5 and -1 [schlick]
|
327
|
+
|
328
|
+
|
329
|
+
== 0.1.19
|
330
|
+
|
331
|
+
* 1 minor enhancement
|
332
|
+
* Add support for Cucumber tables [Tobi Knaup]
|
333
|
+
|
334
|
+
|
335
|
+
== 0.1.16, 0.1.17, 0.1.18 - 13 Oct 2009
|
336
|
+
|
337
|
+
* 1 minor enhancement
|
338
|
+
* release gem on gemcutter and code on github
|
339
|
+
|
340
|
+
|
341
|
+
== 0.1.15 - 28 Aug 2009
|
342
|
+
|
343
|
+
* 1 minor enhancement
|
344
|
+
* avoid namespace collision on replace by renaming mapping#replace -> mapping#replacement [nruth]
|
345
|
+
|
346
|
+
|
347
|
+
== 0.1.14 - 9 July 2009
|
348
|
+
|
349
|
+
* 1 minor enhancement
|
350
|
+
* update specs and features for latest cucumber and machinist changes
|
351
|
+
|
352
|
+
|
353
|
+
== 0.1.13 - 16 June 2009
|
354
|
+
|
355
|
+
* 2 minor enhancements
|
356
|
+
* model! and created_model! raise an error if pickle name can't be found
|
357
|
+
* path_to_pickle uses the above to give back a better error message
|
358
|
+
|
359
|
+
|
360
|
+
== 0.1.12 - 7 Apr 2009
|
361
|
+
|
362
|
+
* 2 minor enhancements
|
363
|
+
* rationalised Rakefile
|
364
|
+
* update World extensions for latest cucumber changes
|
365
|
+
|
366
|
+
|
367
|
+
== 0.1.11 - 22 Feb 2009
|
368
|
+
|
369
|
+
* 2 minor enhancements
|
370
|
+
* Pickle now supports multiple machinist blueprints
|
371
|
+
* Fix confusing adapter/adaptor comment generator comment
|
372
|
+
|
373
|
+
|
374
|
+
== 0.1.10 - 13 Feb 2009
|
375
|
+
|
376
|
+
* 2 minor enhancements
|
377
|
+
* Made pickle paths generator compatible with latest cucumber
|
378
|
+
* Simplified and Rakefile, including auto push api docs to gh-pages on ci build
|
379
|
+
|
380
|
+
|
381
|
+
== 0.1.9 - 29 Jan 2009
|
382
|
+
|
383
|
+
* 1 minor enhancement
|
384
|
+
* Pickle::Adapter.model_classes excludes those without tables
|
385
|
+
|
386
|
+
|
387
|
+
== 0.1.8 - 29 Jan 2009
|
388
|
+
|
389
|
+
* API change
|
390
|
+
* pickle_path becomes path_to_pickle, to avoid named route clashes
|
391
|
+
|
392
|
+
* 2 minor enhancements
|
393
|
+
* Updated features for cucumber 0.2 compat
|
394
|
+
* Made paths allow for optional possesives
|
395
|
+
|
396
|
+
|
397
|
+
== 0,1,7
|
398
|
+
|
399
|
+
* 2 API changes
|
400
|
+
* script/generate pickle path[s] now amends the features/support/paths.rb file
|
401
|
+
instead of creating pge_to_path and path_steps.
|
402
|
+
|
403
|
+
* pickle_email_steps is renamed email_steps
|
404
|
+
|
405
|
+
|
406
|
+
== 0.1.6
|
407
|
+
|
408
|
+
* 1 API change
|
409
|
+
* to use pickle env.rb should contain "require 'pickle/world'". You should remove all trace of
|
410
|
+
pickle from features/support/env.rb and re run script/generate pickle
|
411
|
+
|
412
|
+
* 2 major enhancements
|
413
|
+
|
414
|
+
* generate email steps with `script/generate pickle email`
|
415
|
+
email steps allow you to do things like this:
|
416
|
+
|
417
|
+
Then 2 emails should be delivered
|
418
|
+
And the first email should be delivered to fred@gmail.com
|
419
|
+
And the 2nd email should be delivered to the user: "ethel"
|
420
|
+
|
421
|
+
Then 1 email should be delivered with subject: "Activate your account"
|
422
|
+
And the email should link to the user's page
|
423
|
+
|
424
|
+
take a look at features/step_definitions/pickle_email_steps.rb
|
425
|
+
|
426
|
+
* generate path steps with `script/generate pickle path`
|
427
|
+
path steps allow you to do things like this
|
428
|
+
|
429
|
+
When I go to the comment's page
|
430
|
+
Then I should be at the user's new comment page
|
431
|
+
|
432
|
+
take a look at features/step_definitions/pickle_path_steps.rb, and modify page_to_path to suit your needs
|
433
|
+
|
434
|
+
* 4 minor enhancements
|
435
|
+
* Improved documentation
|
436
|
+
* abstract models no longer kill pickle
|
437
|
+
* Actually test that the generators work
|
438
|
+
* Made Pickle::Session a plain ole mixin, as a separate class was unnecessary
|
439
|
+
* Pickle uses the cucumber World API
|
440
|
+
|
441
|
+
|
442
|
+
== 0.1.5
|
443
|
+
|
444
|
+
* API change
|
445
|
+
* CaptureModel, etc are now 'capture_model' methods
|
446
|
+
|
447
|
+
* 3 major enhancements
|
448
|
+
* Steps for asserting that <n> models exist, matching certain criteria
|
449
|
+
* Steps for asserting associations added to generated pickle steps
|
450
|
+
'Then the user should be in the post's commenters'
|
451
|
+
'Then the forum: "awesome" should be the 2nd post's forum'
|
452
|
+
* configuration can now occur any time before a step is defined, which makes
|
453
|
+
for much more intuitive env.rb
|
454
|
+
|
455
|
+
* 2 minor enhancement
|
456
|
+
* predicate matching is less prone to step conflicts because we preload a
|
457
|
+
big list of all the predicate and column methods
|
458
|
+
* field values now handle booleans and numerics
|
459
|
+
|
460
|
+
|
461
|
+
== 0.1.4
|
462
|
+
|
463
|
+
* 1 major enhancement
|
464
|
+
* You can create multiple models with ease, for eg.
|
465
|
+
'Given 10 users exist with role: "admin"'
|
466
|
+
|
467
|
+
* 1 minor enhancement
|
468
|
+
* You can do Pickle.configure (just like Webrat.configure)
|
469
|
+
|
470
|
+
|
471
|
+
== 0.1.3 - Bugfix release
|
472
|
+
|
473
|
+
* 1 minor enhancement
|
474
|
+
* make generated steps compatible with Rails 2.1
|
475
|
+
|
476
|
+
|
477
|
+
== 0.1.2
|
478
|
+
|
479
|
+
* 2 major enhancements
|
480
|
+
* create your pickle steps with script/generate pickle
|
481
|
+
* Adapter based architecture, supports Machinist, FactoryGirl, and vanilla ActiveRecord
|
482
|
+
|
483
|
+
* 1 minor enhancement
|
484
|
+
* model_names now defaults to subclasses of AR::Base
|
485
|
+
* #original_model => #created_model
|
486
|
+
|
487
|
+
|
488
|
+
== 0.1.1
|
489
|
+
|
490
|
+
* 1 major enhancement:
|
491
|
+
* made pickle a github gem
|
492
|
+
|
493
|
+
* 1 minor enhancement:
|
494
|
+
* Added intentions for pickle in README.textile
|
495
|
+
|
496
|
+
|
497
|
+
== Prior to gems
|
498
|
+
|
499
|
+
* Initial release: everything is subject to sweeping change
|