rspec-do_action 0.0.3 → 0.0.4

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: 5e8ce48fd85d3354e483a34aae882a6d96ad45a5
4
- data.tar.gz: ae0c96cd3ec6b7008c6f5efeb58eeef2c24d96d3
3
+ metadata.gz: cdd88582eefbbda5380d591287cf680e04f7aef4
4
+ data.tar.gz: 2be1cbd7f7ccfe6ddf12ec7c5d79ad43fd5bc185
5
5
  SHA512:
6
- metadata.gz: b9405e65c9d824b7b19f66dc09598acb3d8eb3437bb5c470b0f7c8999b220d2cb5e70c4b18dced8f87bd8a959daab15a3aaa8f4575097ea614a4605b04ca41f6
7
- data.tar.gz: 548e19eac8b9a1fc8850236fac6dd3e185e747f68bfe516923ff8cdea71f8c2c8a495a0ad36c730f814419efee316f9262d492b256b55e875846c143a3ed4f52
6
+ metadata.gz: 9bc561ed9b20ec45d35e678361c92a7acd84738701803c6537260a35879a9e14938484c7adf35802925199adffda3afae673ebee4c7dec5e159319966491d540
7
+ data.tar.gz: 3cb6f3204fa1e2b65665f9a2a16b6aed18b954b8d8fb53cc185294c4635c712dbfd0da4345a21eabb9e10123f703bd51a7abd125393ca7c5ca8d72105d1de0fe
data/.gitignore CHANGED
@@ -15,3 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ tags
19
+ gemfiles/*.lock
@@ -5,4 +5,4 @@ rvm:
5
5
  - 1.9.3
6
6
  gemfile:
7
7
  - Gemfile
8
- - gemfiles/rspec3.gemfile
8
+ - gemfiles/rspec2.gemfile
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in rspec-do_action.gemspec
4
+ gem "rspec", "~> 3.0.0"
4
5
  gemspec
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rspec", "3.0.0.beta1"
3
+ gem "rspec", "~> 2.14.1"
4
4
 
5
5
  # Specify your gem's dependencies in rspec-do_action.gemspec
6
6
  gemspec path: '..'
@@ -48,12 +48,18 @@ module Rspec
48
48
  end
49
49
 
50
50
  class RSpec::Core::Example
51
- def run_before_each_with_action
52
- run_before_each_without_action
51
+ def run_before_example_with_action
52
+ run_before_example_without_action
53
53
  example_group_instance.send(:auto_do_action_once)
54
54
  end
55
- alias_method :run_before_each_without_action, :run_before_each
56
- alias_method :run_before_each, :run_before_each_with_action
55
+
56
+ if private_method_defined?(:run_before_example)
57
+ alias_method :run_before_example_without_action, :run_before_example
58
+ alias_method :run_before_example, :run_before_example_with_action
59
+ else
60
+ alias_method :run_before_example_without_action, :run_before_each
61
+ alias_method :run_before_each, :run_before_example_with_action
62
+ end
57
63
  end
58
64
 
59
65
  RSpec.configure do |config|
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module DoAction
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler"
22
22
  spec.add_development_dependency "rake"
23
+
23
24
  spec.add_development_dependency "rspec"
24
25
  spec.add_development_dependency "pry-nav"
25
26
  spec.add_development_dependency "coveralls"
@@ -1,5 +1,6 @@
1
- require "rspec-do_action"
1
+ require "rspec"
2
2
  require "pry-nav"
3
+ require "rspec-do_action"
3
4
 
4
5
  require 'coveralls'
5
6
  Coveralls.wear!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-do_action
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sunteya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-08 00:00:00.000000000 Z
11
+ date: 2014-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,7 +94,7 @@ files:
94
94
  - LICENSE.txt
95
95
  - README.md
96
96
  - Rakefile
97
- - gemfiles/rspec3.gemfile
97
+ - gemfiles/rspec2.gemfile
98
98
  - lib/rspec-do_action.rb
99
99
  - lib/rspec-do_action/version.rb
100
100
  - rspec-do_action.gemspec
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.2.0
124
+ rubygems_version: 2.2.2
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: add 'acton' and some useful methods for rspec one-liner syntax.