spreewald 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spreewald_support/mail_finder.rb +3 -1
  3. data/lib/spreewald_support/version.rb +1 -1
  4. data/tests/rails-2.3/Gemfile.lock +1 -1
  5. data/tests/rails-2.3/config/cucumber.yml +2 -0
  6. data/tests/rails-2.3/config/database.yml +3 -0
  7. data/tests/rails-2.3/features/support/paths.rb +16 -0
  8. data/tests/rails-2.3/features/support/selectors.rb +43 -0
  9. data/tests/rails-3.2/capybara-1/Gemfile.lock +1 -1
  10. data/tests/rails-3.2/capybara-1/config/cucumber.yml +2 -0
  11. data/tests/rails-3.2/capybara-1/config/database.yml +3 -0
  12. data/tests/rails-3.2/capybara-1/features/support/paths.rb +16 -0
  13. data/tests/rails-3.2/capybara-1/features/support/selectors.rb +43 -0
  14. data/tests/rails-3.2/capybara-2/Gemfile.lock +1 -1
  15. data/tests/rails-3.2/capybara-2/Rakefile +18 -0
  16. metadata +3 -29
  17. data/tests/rails-2.3/app +0 -1
  18. data/tests/rails-2.3/config/cucumber.yml +0 -1
  19. data/tests/rails-2.3/config/database.yml +0 -1
  20. data/tests/rails-2.3/db +0 -1
  21. data/tests/rails-2.3/features/shared +0 -1
  22. data/tests/rails-2.3/features/support/paths.rb +0 -1
  23. data/tests/rails-2.3/features/support/selectors.rb +0 -1
  24. data/tests/rails-2.3/public +0 -1
  25. data/tests/rails-3.2/capybara-1/app +0 -1
  26. data/tests/rails-3.2/capybara-1/config/cucumber.yml +0 -1
  27. data/tests/rails-3.2/capybara-1/config/database.yml +0 -1
  28. data/tests/rails-3.2/capybara-1/db +0 -1
  29. data/tests/rails-3.2/capybara-1/features/shared +0 -1
  30. data/tests/rails-3.2/capybara-1/features/support/paths.rb +0 -1
  31. data/tests/rails-3.2/capybara-1/features/support/selectors.rb +0 -1
  32. data/tests/rails-3.2/capybara-1/public +0 -1
  33. data/tests/rails-3.2/capybara-2/Rakefile +0 -1
  34. data/tests/rails-3.2/capybara-2/app +0 -1
  35. data/tests/rails-3.2/capybara-2/config +0 -1
  36. data/tests/rails-3.2/capybara-2/db +0 -1
  37. data/tests/rails-3.2/capybara-2/features +0 -1
  38. data/tests/rails-3.2/capybara-2/public +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55ded3e086740caf6ac28165cfd48086c18c0b22
4
- data.tar.gz: fffdfd8900911524d7cbe009a6b02dfb9ae8f917
3
+ metadata.gz: ddb58d920b2d353c52381c3caaf5fda8b0763148
4
+ data.tar.gz: 146398ad30ddd32881dd963a917abd893e1b7594
5
5
  SHA512:
6
- metadata.gz: 5bae98637f73c1c5dea74d902e3719664dfcefdb2632625acb60e5c7c754202f076bc437b185993a1ea892570954f03fc090eafd7d7de7488cd3395cfee70f05
7
- data.tar.gz: 2120c1f99fe262c5b11451205afe7c912725f0353a87e6d5763306c48305a23093c64d8020f2c0f8f8ed79744428d0d8bbcc83e09c7e077efb006842821e5d57
6
+ metadata.gz: c06aa970be4b5fa4202b80179a6c80d01809d00b1d604c523059a65cee76a45ccff82d77434489533e7bec6f1186ce2e8b5811e3cf23b8e1e1a5360d31e4145c
7
+ data.tar.gz: 031c387db597d798ede6f040cf268bee5a175bcc44620ca40f71d5be641588acd85a730925d6787cc89e16e491ed89aebb018d83365f5f89c6ec9e4011fef95c
@@ -52,11 +52,13 @@ class MailFinder
52
52
  else
53
53
  part.decoded
54
54
  end
55
+ elsif part.content_type.include?('multipart/alternative')
56
+ part.parts.map(&:decoded)
55
57
  else
56
58
  part.decoded
57
59
  end
58
60
  }
59
- utf8_parts = mail_bodies.select{ |part|
61
+ utf8_parts = mail_bodies.flatten.select{ |part|
60
62
  encoding = part.try(:encoding)
61
63
  encoding.nil? or # Ruby < 1.9.1
62
64
  encoding.name == 'UTF-8' # Ruby > 1.9.1
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = '1.9.1'
2
+ VERSION = '1.9.2'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (1.9.0)
4
+ spreewald (1.9.2)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -0,0 +1,2 @@
1
+ default: --require features --require features/shared features/shared
2
+
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: sqlite3
3
+ database: ":memory:"
@@ -0,0 +1,16 @@
1
+ module NavigationHelpers
2
+
3
+ def path_to(page_name)
4
+ case page_name
5
+ when /^"(.*)"$/
6
+ $1
7
+
8
+ else
9
+ raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
10
+ "Now, go and add a mapping in #{__FILE__}"
11
+ end
12
+ end
13
+
14
+ end
15
+
16
+ World(NavigationHelpers)
@@ -0,0 +1,43 @@
1
+ module HtmlSelectorsHelpers
2
+ # Maps a name to a selector. Used primarily by the
3
+ #
4
+ # When /^(.+) within (.+)$/ do |step, scope|
5
+ #
6
+ # step definitions in web_steps.rb
7
+ #
8
+ def selector_for(locator)
9
+ case locator
10
+
11
+ when /^a panel?$/
12
+ '.panel'
13
+
14
+ when /^the timeline?$/
15
+ '.timeline'
16
+
17
+ # Add more mappings here.
18
+ # Here is an example that pulls values out of the Regexp:
19
+ #
20
+ # when /^the (notice|error|info) flash$/
21
+ # ".flash.#{$1}"
22
+
23
+ # You can also return an array to use a different selector
24
+ # type, like:
25
+ #
26
+ # when /the header/
27
+ # [:xpath, "//header"]
28
+
29
+ # This allows you to provide a quoted selector as the scope
30
+ # for "within" steps as was previously the default for the
31
+ # web steps:
32
+ when /^"(.+)"$/
33
+ $1
34
+
35
+ else
36
+ raise "Can't find mapping from \"#{locator}\" to a selector.\n" +
37
+ "Now, go and add a mapping in #{__FILE__}"
38
+ end
39
+ end
40
+
41
+ end
42
+
43
+ World(HtmlSelectorsHelpers)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- spreewald (1.9.0)
4
+ spreewald (1.9.2)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -0,0 +1,2 @@
1
+ default: --require features --require features/shared features/shared
2
+
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: sqlite3
3
+ database: ":memory:"
@@ -0,0 +1,16 @@
1
+ module NavigationHelpers
2
+
3
+ def path_to(page_name)
4
+ case page_name
5
+ when /^"(.*)"$/
6
+ $1
7
+
8
+ else
9
+ raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
10
+ "Now, go and add a mapping in #{__FILE__}"
11
+ end
12
+ end
13
+
14
+ end
15
+
16
+ World(NavigationHelpers)
@@ -0,0 +1,43 @@
1
+ module HtmlSelectorsHelpers
2
+ # Maps a name to a selector. Used primarily by the
3
+ #
4
+ # When /^(.+) within (.+)$/ do |step, scope|
5
+ #
6
+ # step definitions in web_steps.rb
7
+ #
8
+ def selector_for(locator)
9
+ case locator
10
+
11
+ when /^a panel?$/
12
+ '.panel'
13
+
14
+ when /^the timeline?$/
15
+ '.timeline'
16
+
17
+ # Add more mappings here.
18
+ # Here is an example that pulls values out of the Regexp:
19
+ #
20
+ # when /^the (notice|error|info) flash$/
21
+ # ".flash.#{$1}"
22
+
23
+ # You can also return an array to use a different selector
24
+ # type, like:
25
+ #
26
+ # when /the header/
27
+ # [:xpath, "//header"]
28
+
29
+ # This allows you to provide a quoted selector as the scope
30
+ # for "within" steps as was previously the default for the
31
+ # web steps:
32
+ when /^"(.+)"$/
33
+ $1
34
+
35
+ else
36
+ raise "Can't find mapping from \"#{locator}\" to a selector.\n" +
37
+ "Now, go and add a mapping in #{__FILE__}"
38
+ end
39
+ end
40
+
41
+ end
42
+
43
+ World(HtmlSelectorsHelpers)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../..
3
3
  specs:
4
- spreewald (1.9.0)
4
+ spreewald (1.9.2)
5
5
  cucumber
6
6
  cucumber_priority
7
7
 
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env rake
2
+ require 'cucumber/rake/task'
3
+
4
+ desc 'Default: Run all specs for a specific rails version.'
5
+ task :default => :features
6
+
7
+ desc 'Run all specs for rails 3.2'
8
+ Cucumber::Rake::Task.new(:features) do |t|
9
+ feature = if ENV['SINGLE_FEATURE']
10
+ "../../shared/features/shared/#{ ENV['SINGLE_FEATURE'] }"
11
+ else
12
+ 'features/shared'
13
+ end
14
+
15
+ # tell cucumber where it finds it files (subdirectories and symlinks are confusing it)
16
+ t.cucumber_opts = "--require features --require features/shared #{feature}"
17
+ end
18
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreewald
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -167,7 +167,6 @@ files:
167
167
  - tests/rails-2.3/Gemfile
168
168
  - tests/rails-2.3/Gemfile.lock
169
169
  - tests/rails-2.3/Rakefile
170
- - tests/rails-2.3/app
171
170
  - tests/rails-2.3/config/boot.rb
172
171
  - tests/rails-2.3/config/cucumber.yml
173
172
  - tests/rails-2.3/config/database.yml
@@ -181,12 +180,9 @@ files:
181
180
  - tests/rails-2.3/config/initializers/session_store.rb
182
181
  - tests/rails-2.3/config/preinitializer.rb
183
182
  - tests/rails-2.3/config/routes.rb
184
- - tests/rails-2.3/db
185
- - tests/rails-2.3/features/shared
186
183
  - tests/rails-2.3/features/support/env.rb
187
184
  - tests/rails-2.3/features/support/paths.rb
188
185
  - tests/rails-2.3/features/support/selectors.rb
189
- - tests/rails-2.3/public
190
186
  - tests/rails-2.3/scripts/generate
191
187
  - tests/rails-3.2/.DS_Store
192
188
  - tests/rails-3.2/capybara-1/.firefox-version
@@ -194,7 +190,6 @@ files:
194
190
  - tests/rails-3.2/capybara-1/Gemfile
195
191
  - tests/rails-3.2/capybara-1/Gemfile.lock
196
192
  - tests/rails-3.2/capybara-1/Rakefile
197
- - tests/rails-3.2/capybara-1/app
198
193
  - tests/rails-3.2/capybara-1/config/application.rb
199
194
  - tests/rails-3.2/capybara-1/config/boot.rb
200
195
  - tests/rails-3.2/capybara-1/config/cucumber.yml
@@ -206,23 +201,15 @@ files:
206
201
  - tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
207
202
  - tests/rails-3.2/capybara-1/config/initializers/session_store.rb
208
203
  - tests/rails-3.2/capybara-1/config/routes.rb
209
- - tests/rails-3.2/capybara-1/db
210
- - tests/rails-3.2/capybara-1/features/shared
211
204
  - tests/rails-3.2/capybara-1/features/support/env.rb
212
205
  - tests/rails-3.2/capybara-1/features/support/paths.rb
213
206
  - tests/rails-3.2/capybara-1/features/support/selectors.rb
214
- - tests/rails-3.2/capybara-1/public
215
207
  - tests/rails-3.2/capybara-2/.firefox-version
216
208
  - tests/rails-3.2/capybara-2/.ruby-version
217
209
  - tests/rails-3.2/capybara-2/Gemfile
218
210
  - tests/rails-3.2/capybara-2/Gemfile.lock
219
211
  - tests/rails-3.2/capybara-2/Rakefile
220
- - tests/rails-3.2/capybara-2/app
221
- - tests/rails-3.2/capybara-2/config
222
212
  - tests/rails-3.2/capybara-2/config.ru
223
- - tests/rails-3.2/capybara-2/db
224
- - tests/rails-3.2/capybara-2/features
225
- - tests/rails-3.2/capybara-2/public
226
213
  - tests/rails-3.2/capybara-2/script/cucumber
227
214
  - tests/rails-3.2/capybara-2/script/rails
228
215
  - tests/shared/app/controllers/application_controller.rb
@@ -279,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
266
  version: '0'
280
267
  requirements: []
281
268
  rubyforge_project:
282
- rubygems_version: 2.6.11
269
+ rubygems_version: 2.2.2
283
270
  signing_key:
284
271
  specification_version: 4
285
272
  summary: Collection of useful cucumber steps.
@@ -289,7 +276,6 @@ test_files:
289
276
  - tests/rails-2.3/Gemfile
290
277
  - tests/rails-2.3/Gemfile.lock
291
278
  - tests/rails-2.3/Rakefile
292
- - tests/rails-2.3/app
293
279
  - tests/rails-2.3/config/boot.rb
294
280
  - tests/rails-2.3/config/cucumber.yml
295
281
  - tests/rails-2.3/config/database.yml
@@ -303,12 +289,9 @@ test_files:
303
289
  - tests/rails-2.3/config/initializers/session_store.rb
304
290
  - tests/rails-2.3/config/preinitializer.rb
305
291
  - tests/rails-2.3/config/routes.rb
306
- - tests/rails-2.3/db
307
- - tests/rails-2.3/features/shared
308
292
  - tests/rails-2.3/features/support/env.rb
309
293
  - tests/rails-2.3/features/support/paths.rb
310
294
  - tests/rails-2.3/features/support/selectors.rb
311
- - tests/rails-2.3/public
312
295
  - tests/rails-2.3/scripts/generate
313
296
  - tests/rails-3.2/.DS_Store
314
297
  - tests/rails-3.2/capybara-1/.firefox-version
@@ -316,7 +299,6 @@ test_files:
316
299
  - tests/rails-3.2/capybara-1/Gemfile
317
300
  - tests/rails-3.2/capybara-1/Gemfile.lock
318
301
  - tests/rails-3.2/capybara-1/Rakefile
319
- - tests/rails-3.2/capybara-1/app
320
302
  - tests/rails-3.2/capybara-1/config/application.rb
321
303
  - tests/rails-3.2/capybara-1/config/boot.rb
322
304
  - tests/rails-3.2/capybara-1/config/cucumber.yml
@@ -328,23 +310,15 @@ test_files:
328
310
  - tests/rails-3.2/capybara-1/config/initializers/secret_token.rb
329
311
  - tests/rails-3.2/capybara-1/config/initializers/session_store.rb
330
312
  - tests/rails-3.2/capybara-1/config/routes.rb
331
- - tests/rails-3.2/capybara-1/db
332
- - tests/rails-3.2/capybara-1/features/shared
333
313
  - tests/rails-3.2/capybara-1/features/support/env.rb
334
314
  - tests/rails-3.2/capybara-1/features/support/paths.rb
335
315
  - tests/rails-3.2/capybara-1/features/support/selectors.rb
336
- - tests/rails-3.2/capybara-1/public
337
316
  - tests/rails-3.2/capybara-2/.firefox-version
338
317
  - tests/rails-3.2/capybara-2/.ruby-version
339
318
  - tests/rails-3.2/capybara-2/Gemfile
340
319
  - tests/rails-3.2/capybara-2/Gemfile.lock
341
320
  - tests/rails-3.2/capybara-2/Rakefile
342
- - tests/rails-3.2/capybara-2/app
343
- - tests/rails-3.2/capybara-2/config
344
321
  - tests/rails-3.2/capybara-2/config.ru
345
- - tests/rails-3.2/capybara-2/db
346
- - tests/rails-3.2/capybara-2/features
347
- - tests/rails-3.2/capybara-2/public
348
322
  - tests/rails-3.2/capybara-2/script/cucumber
349
323
  - tests/rails-3.2/capybara-2/script/rails
350
324
  - tests/shared/app/controllers/application_controller.rb
data/tests/rails-2.3/app DELETED
@@ -1 +0,0 @@
1
- tests/rails-2.3/../shared/app
@@ -1 +0,0 @@
1
- tests/rails-2.3/config/../../shared/config/cucumber.yml
@@ -1 +0,0 @@
1
- tests/rails-2.3/config/../../shared/config/database.yml
data/tests/rails-2.3/db DELETED
@@ -1 +0,0 @@
1
- tests/rails-2.3/../shared/db
@@ -1 +0,0 @@
1
- tests/rails-2.3/features/../../shared/features/shared
@@ -1 +0,0 @@
1
- tests/rails-2.3/features/support/../../../shared/features/support/paths.rb
@@ -1 +0,0 @@
1
- tests/rails-2.3/features/support/../../../shared/features/support/selectors.rb
@@ -1 +0,0 @@
1
- tests/rails-2.3/../shared/public/
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-1/../../shared/app
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-1/config/../../../shared/config/cucumber.yml
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-1/config/../../../shared/config/database.yml
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-1/../../shared/db
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-1/features/../../../shared/features/shared
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-1/features/support/../../../../shared/features/support/paths.rb
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-1/features/support/../../../../shared/features/support/selectors.rb
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-1/../../shared/public/
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-2/../capybara-1/Rakefile
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-2/../capybara-1/app
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-2/../capybara-1/config
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-2/../capybara-1/db
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-2/../capybara-1/features
@@ -1 +0,0 @@
1
- tests/rails-3.2/capybara-2/../../shared/public/