zombie_record 1.3.0 → 1.3.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: d3f8292fbf152824abdd2e88b7e565f883d591a6
4
- data.tar.gz: e17a37b90ca66b26cc27330847cad5a9cd5e5bd3
3
+ metadata.gz: eea378400a5d0ed7e8fca681c1a9c8d3930729db
4
+ data.tar.gz: 0de41938e4b71a6460241fa1be73d53daa5db4c1
5
5
  SHA512:
6
- metadata.gz: 8b453ed7119257f5380b4b08e22228b1f27d05324c2bfeaae644f4118d40c9e91e0da5149cfa33920f748cfecc86c130cf3720e372d71075435f968d2d1d0af7
7
- data.tar.gz: 6c9e58b70d2454fc1a09aa8fcd93196bf88aa48e424127d5a764ad87da0b8158e3e51f350a74656ac280aa218650b4d095cd1ff0406c03b34f9c435e9b4947ae
6
+ metadata.gz: 68b89647924130a7a41d14b8881dcbff500935179a4fd73d9b010cf75332c29e0e997dc558af443d13fd34e8d513a1d5251b2cede37cefecf6887bd2235a35b1
7
+ data.tar.gz: e8af2f78981866fbe8bbad28c2fb71ebc1cdf29ac6ff4538edb7d7cc417b705db3e2224c454f6f4a3624ff1647a6b37becaddf6e5d99f2c2764c4bd2c5e38cb0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ###### Unreleased
2
2
 
3
+ ###### v1.3.1
4
+
5
+ * Fix a `to_a` vs `records` bug for Rails 5.0.
6
+
3
7
  ###### v1.3.0
4
8
 
5
9
  * Test against Rails 5.0.
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
  require "wwtd/tasks"
4
+ require "bump/tasks"
4
5
 
5
6
  RSpec::Core::RakeTask.new(:spec)
6
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- zombie_record (1.3.0)
4
+ zombie_record (1.3.1)
5
5
  activerecord (>= 4.0, < 5.1)
6
6
  mysql2
7
7
 
@@ -23,6 +23,7 @@ GEM
23
23
  tzinfo (~> 1.1)
24
24
  arel (5.0.1.20140414130214)
25
25
  builder (3.2.2)
26
+ bump (0.5.3)
26
27
  byebug (8.2.1)
27
28
  diff-lcs (1.2.5)
28
29
  i18n (0.7.0)
@@ -49,6 +50,7 @@ PLATFORMS
49
50
 
50
51
  DEPENDENCIES
51
52
  activerecord (~> 4.1.8)
53
+ bump
52
54
  bundler (~> 1.3)
53
55
  byebug
54
56
  mysql2 (~> 0.3.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- zombie_record (1.3.0)
4
+ zombie_record (1.3.1)
5
5
  activerecord (>= 4.0, < 5.1)
6
6
  mysql2
7
7
 
@@ -23,6 +23,7 @@ GEM
23
23
  tzinfo (~> 1.1)
24
24
  arel (6.0.3)
25
25
  builder (3.2.2)
26
+ bump (0.5.3)
26
27
  byebug (8.2.1)
27
28
  diff-lcs (1.2.5)
28
29
  i18n (0.7.0)
@@ -49,6 +50,7 @@ PLATFORMS
49
50
 
50
51
  DEPENDENCIES
51
52
  activerecord (~> 4.2.0)
53
+ bump
52
54
  bundler (~> 1.3)
53
55
  byebug
54
56
  rake
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: "../"
4
4
 
5
- gem "activerecord", "~> 5.0.0.beta1"
5
+ gem "activerecord", "~> 5.0.0.beta3"
@@ -1,36 +1,31 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- zombie_record (1.3.0)
4
+ zombie_record (1.3.1)
5
5
  activerecord (>= 4.0, < 5.1)
6
6
  mysql2
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (5.0.0.beta1)
12
- activesupport (= 5.0.0.beta1)
13
- builder (~> 3.1)
14
- activerecord (5.0.0.beta1)
15
- activemodel (= 5.0.0.beta1)
16
- activesupport (= 5.0.0.beta1)
11
+ activemodel (5.0.0.beta3)
12
+ activesupport (= 5.0.0.beta3)
13
+ activerecord (5.0.0.beta3)
14
+ activemodel (= 5.0.0.beta3)
15
+ activesupport (= 5.0.0.beta3)
17
16
  arel (~> 7.0)
18
- activesupport (5.0.0.beta1)
17
+ activesupport (5.0.0.beta3)
19
18
  concurrent-ruby (~> 1.0)
20
19
  i18n (~> 0.7)
21
- json (~> 1.7, >= 1.7.7)
22
- method_source
23
20
  minitest (~> 5.1)
24
21
  tzinfo (~> 1.1)
25
22
  arel (7.0.0)
26
- builder (3.2.2)
23
+ bump (0.5.3)
27
24
  byebug (8.2.1)
28
- concurrent-ruby (1.0.0)
25
+ concurrent-ruby (1.0.1)
29
26
  diff-lcs (1.2.5)
30
27
  i18n (0.7.0)
31
- json (1.8.3)
32
- method_source (0.8.2)
33
- minitest (5.8.3)
28
+ minitest (5.8.4)
34
29
  mysql2 (0.4.2)
35
30
  rake (10.4.2)
36
31
  rspec (2.14.1)
@@ -51,7 +46,8 @@ PLATFORMS
51
46
  ruby
52
47
 
53
48
  DEPENDENCIES
54
- activerecord (~> 5.0.0.beta1)
49
+ activerecord (~> 5.0.0.beta3)
50
+ bump
55
51
  bundler (~> 1.3)
56
52
  byebug
57
53
  rake
@@ -148,8 +148,14 @@ module ZombieRecord
148
148
  end
149
149
 
150
150
  module WithDeletedAssociationsWrapper
151
- def to_a
152
- super.map(&:with_deleted_associations)
151
+ if ActiveRecord::VERSION::MAJOR < 5
152
+ def to_a
153
+ super.map(&:with_deleted_associations)
154
+ end
155
+ else
156
+ def records
157
+ super.map(&:with_deleted_associations)
158
+ end
153
159
  end
154
160
  end
155
161
 
@@ -1,3 +1,3 @@
1
1
  module ZombieRecord
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -1,7 +1,4 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'zombie_record/version'
1
+ require './lib/zombie_record/version'
5
2
 
6
3
  Gem::Specification.new do |spec|
7
4
  spec.name = "zombie_record"
@@ -24,6 +21,7 @@ Gem::Specification.new do |spec|
24
21
  spec.add_development_dependency "bundler", "~> 1.3"
25
22
  spec.add_development_dependency "byebug"
26
23
  spec.add_development_dependency "rake"
24
+ spec.add_development_dependency "bump"
27
25
  spec.add_development_dependency "rspec", "~> 2.14.1"
28
26
  spec.add_development_dependency "timecop", "~> 0.7.0"
29
27
  spec.add_development_dependency "wwtd", ">= 0.5.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zombie_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-22 00:00:00.000000000 Z
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -86,6 +86,20 @@ dependencies:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: bump
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
89
103
  - !ruby/object:Gem::Dependency
90
104
  name: rspec
91
105
  requirement: !ruby/object:Gem::Requirement
@@ -175,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
189
  version: '0'
176
190
  requirements: []
177
191
  rubyforge_project:
178
- rubygems_version: 2.5.0
192
+ rubygems_version: 2.5.2
179
193
  signing_key:
180
194
  specification_version: 4
181
195
  summary: Allows restoring your Active Records from the dead!