active_record-acts_as 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -37
- data/README.md +2 -4
- data/active_record-acts_as.gemspec +1 -1
- data/lib/active_record/acts_as/relation.rb +1 -1
- data/lib/active_record/acts_as/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a53920fd5087c4ad5aa1bf9990ca90a85a071de04517913eeb501eafc45c8246
|
4
|
+
data.tar.gz: 472f85f050b6497cc3e8f53e65f8285410fad7c4808245869a91a98f227509e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc65211da036e1c386d8764f40fbddf378b499a4d218c8fd2fcca3bf8271b14431ad0a2a896916a1d9c8bde601df1e15c1cf6ee477f9a6336d118b06edbf22c3
|
7
|
+
data.tar.gz: 2f98ba8683fcbc3544d86eb62e8f2d4708ee4af9d2a4a106972391d936ea3960b05f382026054beff9e464f364080a0519b2a69515e48e5102010883c6032411
|
data/CHANGELOG.md
CHANGED
@@ -37,10 +37,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
37
37
|
|
38
38
|
## [2.3.0] - 2017-04-12
|
39
39
|
### Fixed
|
40
|
-
- Prevent duplicate validation errors (fixes https://github.com/
|
40
|
+
- Prevent duplicate validation errors (fixes https://github.com/manuelmeurer/active_record-acts_as/issues/2)
|
41
41
|
|
42
42
|
### Added
|
43
|
-
- Added support for touching submodel attributes (https://github.com/
|
43
|
+
- Added support for touching submodel attributes (https://github.com/manuelmeurer/active_record-acts_as/pull/3, thanks to [dezmathio](https://github.com/dezmathio)!)
|
44
44
|
|
45
45
|
## [2.2.1] - 2017-04-08
|
46
46
|
### Fixed
|
@@ -107,38 +107,38 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
107
107
|
### Fixed
|
108
108
|
- Fixed `remove_actable` migration helper (https://github.com/hzamani/active_record-acts_as/pull/71, thanks to [nuclearpidgeon](https://github.com/nuclearpidgeon)!)
|
109
109
|
|
110
|
-
[Unreleased]: https://github.com/
|
111
|
-
[3.1.0]: https://github.com/
|
112
|
-
[3.0.2]: https://github.com/
|
113
|
-
[3.0.1]: https://github.com/
|
114
|
-
[3.0.0]: https://github.com/
|
115
|
-
[2.5.0]: https://github.com/
|
116
|
-
[2.4.2]: https://github.com/
|
117
|
-
[2.4.1]: https://github.com/
|
118
|
-
[2.4.0]: https://github.com/
|
119
|
-
[2.3.1]: https://github.com/
|
120
|
-
[2.3.0]: https://github.com/
|
121
|
-
[2.2.1]: https://github.com/
|
122
|
-
[2.2.0]: https://github.com/
|
123
|
-
[2.1.1]: https://github.com/
|
124
|
-
[2.1.0]: https://github.com/
|
125
|
-
[2.0.9]: https://github.com/
|
126
|
-
[2.0.8]: https://github.com/
|
127
|
-
[2.0.7]: https://github.com/
|
128
|
-
[2.0.6]: https://github.com/
|
129
|
-
[2.0.5]: https://github.com/
|
130
|
-
[2.0.4]: https://github.com/
|
131
|
-
[2.0.3]: https://github.com/
|
132
|
-
[2.0.2]: https://github.com/
|
133
|
-
[2.0.1]: https://github.com/
|
134
|
-
[2.0.0]: https://github.com/
|
135
|
-
[1.0.8]: https://github.com/
|
136
|
-
[1.0.7]: https://github.com/
|
137
|
-
[1.0.6]: https://github.com/
|
138
|
-
[1.0.5]: https://github.com/
|
139
|
-
[1.0.4]: https://github.com/
|
140
|
-
[1.0.3]: https://github.com/
|
141
|
-
[1.0.2]: https://github.com/
|
142
|
-
[1.0.1]: https://github.com/
|
143
|
-
[1.0.0]: https://github.com/
|
144
|
-
[1.0.0.rc]: https://github.com/
|
110
|
+
[Unreleased]: https://github.com/manuelmeurer/active_record-acts_as/compare/v4.0.0...HEAD
|
111
|
+
[3.1.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v3.1.0...v4.0.0
|
112
|
+
[3.0.2]: https://github.com/manuelmeurer/active_record-acts_as/compare/v3.0.1...v3.0.2
|
113
|
+
[3.0.1]: https://github.com/manuelmeurer/active_record-acts_as/compare/v3.0.0...v3.0.1
|
114
|
+
[3.0.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.5.0...v3.0.0
|
115
|
+
[2.5.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.4.2...v2.5.0
|
116
|
+
[2.4.2]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.4.1...v2.4.2
|
117
|
+
[2.4.1]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.4.0...v2.4.1
|
118
|
+
[2.4.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.3.1...v2.4.0
|
119
|
+
[2.3.1]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.3.0...v2.3.1
|
120
|
+
[2.3.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.2.1...v2.3.0
|
121
|
+
[2.2.1]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.2.0...v2.2.1
|
122
|
+
[2.2.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.1.1...v2.2.0
|
123
|
+
[2.1.1]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.1.0...v2.1.1
|
124
|
+
[2.1.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.9...v2.1.0
|
125
|
+
[2.0.9]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.8...v2.0.9
|
126
|
+
[2.0.8]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.7...v2.0.8
|
127
|
+
[2.0.7]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.6...v2.0.7
|
128
|
+
[2.0.6]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.5...v2.0.6
|
129
|
+
[2.0.5]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.4...v2.0.5
|
130
|
+
[2.0.4]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.3...v2.0.4
|
131
|
+
[2.0.3]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.2...v2.0.3
|
132
|
+
[2.0.2]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.1...v2.0.2
|
133
|
+
[2.0.1]: https://github.com/manuelmeurer/active_record-acts_as/compare/v2.0.0...v2.0.1
|
134
|
+
[2.0.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.8...v2.0.0
|
135
|
+
[1.0.8]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.7...v1.0.8
|
136
|
+
[1.0.7]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.6...v1.0.7
|
137
|
+
[1.0.6]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.5...v1.0.6
|
138
|
+
[1.0.5]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.4...v1.0.5
|
139
|
+
[1.0.4]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.3...v1.0.4
|
140
|
+
[1.0.3]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.2...v1.0.3
|
141
|
+
[1.0.2]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.1...v1.0.2
|
142
|
+
[1.0.1]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.0...v1.0.1
|
143
|
+
[1.0.0]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.0.rc...v1.0.0
|
144
|
+
[1.0.0.rc]: https://github.com/manuelmeurer/active_record-acts_as/compare/v1.0.0.pre...v1.0.0.rc
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/active_record-acts_as.svg)](http://badge.fury.io/rb/active_record-acts_as)
|
2
|
-
[![Build Status](https://travis-ci.org/
|
3
|
-
[![Code Climate](https://codeclimate.com/github/krautcomputing/active_record-acts_as.png)](https://codeclimate.com/github/krautcomputing/active_record-acts_as)
|
4
|
-
[![Coverage Status](https://coveralls.io/repos/krautcomputing/active_record-acts_as/badge.png)](https://coveralls.io/r/krautcomputing/active_record-acts_as)
|
2
|
+
[![Build Status](https://travis-ci.org/manuelmeurer/active_record-acts_as.svg)](https://travis-ci.org/manuelmeurer/active_record-acts_as)
|
5
3
|
|
6
4
|
# ActiveRecord::ActsAs
|
7
5
|
|
@@ -219,7 +217,7 @@ end
|
|
219
217
|
|
220
218
|
## Contributing
|
221
219
|
|
222
|
-
1. Fork it (
|
220
|
+
1. Fork it (https://github.com/manuelmeurer/active_record-acts_as/fork)
|
223
221
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
224
222
|
3. Test changes don't break anything (`rspec`)
|
225
223
|
4. Add specs for your new feature
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["hsn.zamani@gmail.com", "manuel@krautcomputing.com"]
|
11
11
|
spec.summary = %q{Simulate multi-table inheritance for activerecord models}
|
12
12
|
spec.description = %q{Simulate multi-table inheritance for activerecord models using a polymorphic association}
|
13
|
-
spec.homepage = "http://github.com/
|
13
|
+
spec.homepage = "http://github.com/manuelmeurer/active_record-acts_as"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -14,7 +14,7 @@ module ActiveRecord
|
|
14
14
|
|
15
15
|
options = options.reverse_merge(as: as, validate: false, autosave: true, inverse_of: as)
|
16
16
|
|
17
|
-
reflections = has_one(name, scope, options)
|
17
|
+
reflections = has_one(name, scope, **options)
|
18
18
|
default_scope -> {
|
19
19
|
case association_method
|
20
20
|
when :eager_load
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record-acts_as
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hassan Zamani
|
8
8
|
- Manuel Meurer
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sqlite3
|
@@ -169,11 +169,11 @@ files:
|
|
169
169
|
- spec/models.rb
|
170
170
|
- spec/rspec_matchers_spec.rb
|
171
171
|
- spec/spec_helper.rb
|
172
|
-
homepage: http://github.com/
|
172
|
+
homepage: http://github.com/manuelmeurer/active_record-acts_as
|
173
173
|
licenses:
|
174
174
|
- MIT
|
175
175
|
metadata: {}
|
176
|
-
post_install_message:
|
176
|
+
post_install_message:
|
177
177
|
rdoc_options: []
|
178
178
|
require_paths:
|
179
179
|
- lib
|
@@ -188,8 +188,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: '0'
|
190
190
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
192
|
-
signing_key:
|
191
|
+
rubygems_version: 3.1.3
|
192
|
+
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: Simulate multi-table inheritance for activerecord models
|
195
195
|
test_files:
|