gnawrnip 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfaa921e5175a5b9bd8377fd442d43acf7637dfe
4
- data.tar.gz: e0224a4b11f9cc62c657639795649cce1be3a5f1
3
+ metadata.gz: 942d894bb1da9392d457fc7cebf74988f6c8b725
4
+ data.tar.gz: 1174a74c99357234d163870d70d7d44606f5f647
5
5
  SHA512:
6
- metadata.gz: 95bb808337fa80a610730318cabc6727a19f1093d82f81345f2f0cdf229bec6d36b767fc9cad8287a628bd42027cfbc33004b6029c160f4d6eb8d5d9ffd64f91
7
- data.tar.gz: a87d7a6b2c67a1e6bfff665c73ab5d7354159d46a9ba678fcaa12fcfdf59cc965d51300bcb0cd23e3a9cd581284d47ef6151acdcc91e0b2625fcc67a21a89ef0
6
+ metadata.gz: 7637c66c03c8c25d99b37bbd500ff3374a943e035c1df8a00faeebe6c701cca133c0e0d3517fefd1ff42d9a2a100fa75ae5d79657308f3571ee39c9fa97175aa
7
+ data.tar.gz: 6aaea5915f78057942c25296a90f951fa9257b530b713e9803bd507090e46f35ae03525f86132e943b9a53e16b1c98fae50a3fcb90dfedf8dc16428972f53ddb
data/.travis.yml CHANGED
@@ -1,11 +1,19 @@
1
1
  language: ruby
2
+
3
+ sudo: false
4
+ cache: bundler
5
+
6
+ branches:
7
+ only:
8
+ - master
9
+
2
10
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.0
11
+ - 2.1
12
+ - 2.2
13
+
6
14
  script: bundle exec rspec
15
+
7
16
  gemfile:
8
- - spec/gemfiles/Gemfile-rspec-2.14.x
9
- - spec/gemfiles/Gemfile-rspec-2.99.x
10
- - spec/gemfiles/Gemfile-rspec-3.0.x
17
+ - gemfiles/Gemfile-rspec-3.3.x
18
+ - gemfiles/Gemfile-rspec-3.4.x
11
19
 
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :path => '..'
4
+ gem 'rspec', '~> 3.3.0'
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :path => '..'
4
+ gem 'rspec', '~> 3.4.0'
data/gnawrnip.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency 'capybara', "~> 2.2"
22
- spec.add_dependency 'turnip_formatter', '~> 0.3.2'
22
+ spec.add_dependency 'turnip_formatter', '~> 0.4.0'
23
23
  spec.add_dependency 'oily_png'
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
25
25
  spec.add_development_dependency "rake"
@@ -5,18 +5,14 @@ RSpec.configure do |config|
5
5
  Gnawrnip.ready!
6
6
  end
7
7
 
8
- # https://github.com/jnicklas/capybara/blob/master/lib/capybara/rspec.rb
9
- fetch_current_example = RSpec.respond_to?(:current_example) ?
10
- proc { RSpec.current_example } : proc { |context| context.example }
11
-
12
8
  config.before(:each, turnip: true) do
13
- example = fetch_current_example.call(self)
9
+ example = RSpec.current_example
14
10
  Gnawrnip.photographer.reset!
15
11
  example.metadata[:gnawrnip] = {}
16
12
  end
17
13
 
18
14
  config.after(:each, turnip: true) do
19
- example = fetch_current_example.call(self)
15
+ example = RSpec.current_example
20
16
 
21
17
  if example.exception
22
18
  Gnawrnip.photographer.take_shot
@@ -21,7 +21,7 @@ module Gnawrnip
21
21
  # @param [Fixnum] wait_second Second to repeat the retry
22
22
  # @return [Tempfile] Image file of screenshot
23
23
  #
24
- def take(wait_second = Capybara.default_wait_time)
24
+ def take(wait_second = Capybara.default_max_wait_time)
25
25
  start_time = Time.now
26
26
 
27
27
  begin
@@ -1,3 +1,3 @@
1
1
  module Gnawrnip
2
- VERSION = '0.3.2'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnawrnip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wataru MIYAGUNI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.2
33
+ version: 0.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.2
40
+ version: 0.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: oily_png
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,6 +128,8 @@ files:
128
128
  - example/spec/spec_helper.rb
129
129
  - example/spec/steps/hello_steps.rb
130
130
  - example/web.rb
131
+ - gemfiles/Gemfile-rspec-3.3.x
132
+ - gemfiles/Gemfile-rspec-3.4.x
131
133
  - gnawrnip.gemspec
132
134
  - lib/gnawrnip.rb
133
135
  - lib/gnawrnip/developer.rb
@@ -141,9 +143,6 @@ files:
141
143
  - lib/gnawrnip/screenshot.rb
142
144
  - lib/gnawrnip/step_screenshot.rb
143
145
  - lib/gnawrnip/version.rb
144
- - spec/gemfiles/Gemfile-rspec-2.14.x
145
- - spec/gemfiles/Gemfile-rspec-2.99.x
146
- - spec/gemfiles/Gemfile-rspec-3.0.x
147
146
  - spec/gnawrnip/developer_spec.rb
148
147
  - spec/gnawrnip/image_spec.rb
149
148
  - spec/gnawrnip/photographer_spec.rb
@@ -171,14 +170,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
170
  version: '0'
172
171
  requirements: []
173
172
  rubyforge_project:
174
- rubygems_version: 2.2.2
173
+ rubygems_version: 2.4.5
175
174
  signing_key:
176
175
  specification_version: 4
177
176
  summary: Add-on for TurnipFormatter with Capybara
178
177
  test_files:
179
- - spec/gemfiles/Gemfile-rspec-2.14.x
180
- - spec/gemfiles/Gemfile-rspec-2.99.x
181
- - spec/gemfiles/Gemfile-rspec-3.0.x
182
178
  - spec/gnawrnip/developer_spec.rb
183
179
  - spec/gnawrnip/image_spec.rb
184
180
  - spec/gnawrnip/photographer_spec.rb
@@ -1,4 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gemspec :path => '../..'
4
- gem 'rspec', '~> 2.14.0'
@@ -1,4 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gemspec :path => '../..'
4
- gem 'rspec', '~> 2.99.0'
@@ -1,4 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gemspec :path => '../..'
4
- gem 'rspec', '~> 3.0.0'