prefactory 0.8.0 → 0.8.1

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: 0f879df086b73a9de646cc17f9a1f994d888957b
4
- data.tar.gz: a8232c6538a32d3de8e65acb24ba1ff5cb7de924
3
+ metadata.gz: 706afd3f58b7cf02a072f1090aa37123dfd99666
4
+ data.tar.gz: d602599b58d3696b4b4228d82912ed0c902bf202
5
5
  SHA512:
6
- metadata.gz: 03e35db9745634b13cc2d87a5f7beb8bde287b8962da5256a64f10b5f5d09897034c8cf355f10e8282873c73fb2b6e570f4f9e84918ad1f7c7c46355484db7bc
7
- data.tar.gz: d21a6f09b96f915bd3382c84b13521b1203a11d9986dea71002b19370e5e00d7f7d072af9544a8fab88e7e8dbc90a117d6b72a803f4694ade6d5823a090ea8cc
6
+ metadata.gz: 1c7debdd9a6504b400143727abb5c1a32bab7400274bc6c2d82c4aa6b3fcb4776d90cfe9f14c058a841a8d248123a730785b5959097950285e626d3f0527b438
7
+ data.tar.gz: de6fb8739868ee4620e857d3e80c4b400180ee5c5ca4fa35fa506377f20671ad77ce067ad4bc76be6cc4207dd2520ca6a28624d183481f85af1b5a6b0d3acd5b
@@ -1,9 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.4
4
3
  - 2.3.1
5
4
  env:
6
- - ACTIVE_RECORD_VERSION=4.0.0
7
5
  - ACTIVE_RECORD_VERSION=4.1.0 RSPEC_VERSION=2.99
8
6
  - ACTIVE_RECORD_VERSION=4.1.0
9
- - ACTIVE_RECORD_VERSION=4.2.0
7
+ - ACTIVE_RECORD_VERSION=4.2.7.1
8
+ - ACTIVE_RECORD_VERSION=5.0.0.1
@@ -54,7 +54,8 @@ module ActiveRecord
54
54
  end
55
55
  return_value
56
56
  end
57
- alias_method_chain :transaction, :transactional_specs
57
+ alias_method :transaction_without_transactional_specs, :transaction
58
+ alias_method :transaction, :transaction_with_transactional_specs
58
59
 
59
60
  end
60
61
  end
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module Prefactory
24
- VERSION = '0.8.0'
24
+ VERSION = '0.8.1'
25
25
  end
@@ -20,7 +20,6 @@
20
20
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  # SOFTWARE.
22
22
 
23
- require 'prefactory/active_record_integration'
24
23
  require 'rspec_around_all'
25
24
  require 'prefactory/prefactory_lookup'
26
25
  require 'yaml'
@@ -140,6 +139,7 @@ module Prefactory
140
139
 
141
140
  module Transactionality
142
141
  def self.included(base)
142
+ require 'prefactory/active_record_integration'
143
143
  base.extend RSpecAroundAll
144
144
  # Wrap outermost describe block in a transaction, so before(:all) data is rolled back at the end of this suite.
145
145
  base.before(:all) do
@@ -45,7 +45,8 @@ class CallbackMatcher
45
45
  }
46
46
  end
47
47
  end
48
- alias_method_chain :initialize, :callback_init
48
+ alias_method :initialize_without_callback_init, :initialize
49
+ alias_method :initialize, :initialize_with_callback_init
49
50
  end
50
51
  end
51
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prefactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - developers@socialcast.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec_around_all