active_record-acts_as 3.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8c154ba79657fb9d0f37bf212375dd1c948f3603d822e66b577c4d83abf383c
4
- data.tar.gz: 3ea39c3f20af0cc3d842d619d5cc381c422ad1eb64a47f100d5133fcdfb88f7d
3
+ metadata.gz: ad7cc10dec0e65531ba3493f3951fbd8136fb858d1fc757494faf84d5e70262d
4
+ data.tar.gz: 18a893ad2fc804c09db7d9adb219367e64c191cf1f7a9d4f582f39f9a68de548
5
5
  SHA512:
6
- metadata.gz: 3c94bddeccbdc361c0d05616f98113a8054ffab19bcaf89f7c269462162eec7eff38d30f44304a875a8245d6040584bda99c9e37026b672e6523fb4b4579c4e5
7
- data.tar.gz: a16eae6ff16a7611f9192add9e2e9b4bc500b4f9e8d17e6ead89d443e3ab10baa8f93d15490d7e2c193406c0e3576e9afbc19cd801d822c21d2e7c7904a6a463
6
+ metadata.gz: 31d62e2fdd9c141b5081d1db2357b546cd2e6306cd994f14079eaea309e65744457c0eb39782f644227513910c967de62da280d525fc6580b694e510d2501b96
7
+ data.tar.gz: c193592e2c20f3820ea80857bea2a8310e18d740637913f64429f4981c62bfad52bb7869c8ce80b8302ef8572d5f6b5674f5c098fd44210fdf1f001bbf9068eb
@@ -1,12 +1,11 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - 2.2.7
5
- - 2.3.4
6
- - 2.4.1
4
+ - 2.4
5
+ - 2.5
6
+ - 2.6
7
7
  before_install:
8
8
  - gem update --system
9
- - gem update bundler
10
9
  gemfile:
11
10
  - gemfiles/rails_4.2.gemfile
12
11
  - gemfiles/rails_5.0.gemfile
data/Appraisals CHANGED
@@ -10,6 +10,14 @@ appraise 'rails-5.1' do
10
10
  gem 'rails', '~> 5.1.0'
11
11
  end
12
12
 
13
+ appraise 'rails-5.2.1' do
14
+ gem 'rails', '5.2.1'
15
+ end
16
+
17
+ appraise 'rails-5.2.1.1' do
18
+ gem 'rails', '5.2.1.1'
19
+ end
20
+
13
21
  appraise 'rails-5.2' do
14
- gem 'rails', '~> 5.2.0.rc1'
22
+ gem 'rails', '~> 5.2.0'
15
23
  end
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [4.0.0] - 2019-01-09
8
+
9
+ ## [3.1.0] - 2018-12-13
10
+
11
+ ## [3.0.2] - 2018-08-12
12
+
13
+ ## [3.0.1] - 2018-04-25
14
+
15
+ ## [3.0.0] - 2019-02-21
16
+
17
+ ## [2.5.0] - 2017-07-29
18
+ ### Changed
19
+ - Drop support for Rails >= 5.0
20
+ - Remove warnings occurring in Rails 5.1
21
+
7
22
  ## [2.4.2] - 2017-04-20
8
23
  ### Fixed
9
24
  - Fix querying for conditions with hashes.
@@ -22,10 +37,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
22
37
 
23
38
  ## [2.3.0] - 2017-04-12
24
39
  ### Fixed
25
- - Prevent duplicate validation errors (fixes https://github.com/krautcomputing/active_record-acts_as/issues/2)
40
+ - Prevent duplicate validation errors (fixes https://github.com/manuelmeurer/active_record-acts_as/issues/2)
26
41
 
27
42
  ### Added
28
- - Added support for touching submodel attributes (https://github.com/krautcomputing/active_record-acts_as/pull/3, thanks to [dezmathio](https://github.com/dezmathio)!)
43
+ - Added support for touching submodel attributes (https://github.com/manuelmeurer/active_record-acts_as/pull/3, thanks to [dezmathio](https://github.com/dezmathio)!)
29
44
 
30
45
  ## [2.2.1] - 2017-04-08
31
46
  ### Fixed
@@ -92,33 +107,38 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
92
107
  ### Fixed
93
108
  - Fixed `remove_actable` migration helper (https://github.com/hzamani/active_record-acts_as/pull/71, thanks to [nuclearpidgeon](https://github.com/nuclearpidgeon)!)
94
109
 
95
- [Unreleased]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.4.2...HEAD
96
- [2.4.2]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.4.1...v2.4.2
97
- [2.4.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.4.0...v2.4.1
98
- [2.4.0]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.3.1...v2.4.0
99
- [2.3.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.3.0...v2.3.1
100
- [2.3.0]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.2.1...v2.3.0
101
- [2.2.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.2.0...v2.2.1
102
- [2.2.0]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.1.1...v2.2.0
103
- [2.1.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.1.0...v2.1.1
104
- [2.1.0]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.9...v2.1.0
105
- [2.0.9]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.8...v2.0.9
106
- [2.0.8]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.7...v2.0.8
107
- [2.0.7]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.6...v2.0.7
108
- [2.0.6]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.5...v2.0.6
109
- [2.0.5]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.4...v2.0.5
110
- [2.0.4]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.3...v2.0.4
111
- [2.0.3]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.2...v2.0.3
112
- [2.0.2]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.1...v2.0.2
113
- [2.0.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.0.0...v2.0.1
114
- [2.0.0]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.8...v2.0.0
115
- [1.0.8]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.7...v1.0.8
116
- [1.0.7]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.6...v1.0.7
117
- [1.0.6]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.5...v1.0.6
118
- [1.0.5]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.4...v1.0.5
119
- [1.0.4]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.3...v1.0.4
120
- [1.0.3]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.2...v1.0.3
121
- [1.0.2]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.1...v1.0.2
122
- [1.0.1]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.0...v1.0.1
123
- [1.0.0]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.0.rc...v1.0.0
124
- [1.0.0.rc]: https://github.com/krautcomputing/active_record-acts_as/compare/v1.0.0.pre...v1.0.0.rc
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,8 +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/krautcomputing/active_record-acts_as.svg)](https://travis-ci.org/krautcomputing/active_record-acts_as)
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)
5
- [![Dependency Status](https://gemnasium.com/krautcomputing/active_record-acts_as.svg)](https://gemnasium.com/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)
6
3
 
7
4
  # ActiveRecord::ActsAs
8
5
 
@@ -21,7 +18,7 @@ a separate table for each product type, i.e. a `pens` table with `color` column.
21
18
 
22
19
  ## Requirements
23
20
 
24
- * Ruby >= 2.2
21
+ * Ruby >= 2.4
25
22
  * ActiveSupport >= 4.2
26
23
  * ActiveRecord >= 4.2
27
24
 
@@ -220,7 +217,7 @@ end
220
217
 
221
218
  ## Contributing
222
219
 
223
- 1. Fork it ( https://github.com/krautcomputing/active_record-acts_as/fork )
220
+ 1. Fork it (https://github.com/manuelmeurer/active_record-acts_as/fork)
224
221
  2. Create your feature branch (`git checkout -b my-new-feature`)
225
222
  3. Test changes don't break anything (`rspec`)
226
223
  4. Add specs for your new feature
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Hassan Zamani", "Manuel Meurer"]
10
10
  spec.email = ["hsn.zamani@gmail.com", "manuel@krautcomputing.com"]
11
11
  spec.summary = %q{Simulate multi-table inheritance for activerecord models}
12
- spec.description = %q{Simulate multi-table inheritance for activerecord models using a plymorphic association}
13
- spec.homepage = "http://github.com/krautcomputing/active_record-acts_as"
12
+ spec.description = %q{Simulate multi-table inheritance for activerecord models using a polymorphic association}
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")
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.required_ruby_version = ">= 2.2"
21
+ spec.required_ruby_version = ">= 2.4"
22
22
 
23
- spec.add_development_dependency "sqlite3", "~> 1.3"
24
- spec.add_development_dependency "bundler", "~> 1.6"
23
+ spec.add_development_dependency "sqlite3", "~> 1.3.6"
24
+ spec.add_development_dependency "bundler"
25
25
  spec.add_development_dependency "rspec", "~> 3"
26
26
  spec.add_development_dependency "rake", "~> 10"
27
27
  spec.add_development_dependency "appraisal", "~> 2.1"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", require: false
6
+ gem "rails", "5.2.1.1"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "coveralls", require: false
6
+ gem "rails", "5.2.1"
7
+
8
+ gemspec path: "../"
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "coveralls", require: false
6
- gem "rails", "~> 5.2.0.rc1"
6
+ gem "rails", "~> 5.2.0"
7
7
 
8
8
  gemspec path: "../"
@@ -28,10 +28,17 @@ module ActiveRecord
28
28
 
29
29
  module ScopeForCreate
30
30
  def scope_for_create(attributes = nil)
31
- scope = ActiveRecord.version.to_s.to_f >= 5.2 ? super(attributes) : where_values_hash
32
- if acting_as?
33
- scope.merge!(where_values_hash(acting_as_model.table_name))
31
+ unless acting_as?
32
+ if Gem::Dependency.new('', '>= 5.2.1', '< 5.2.2').match?('', ActiveRecord.version)
33
+ return super(attributes)
34
+ else
35
+ return super()
36
+ end
34
37
  end
38
+
39
+ scope = respond_to?(:values_for_create) ? values_for_create(attributes) : where_values_hash
40
+ scope.merge!(where_values_hash(acting_as_model.table_name))
41
+ scope.merge!(attributes) if attributes
35
42
  scope.merge(create_with_value)
36
43
  end
37
44
  end
@@ -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
@@ -76,10 +76,14 @@ module ActiveRecord
76
76
  super || acting_as?(klass)
77
77
  end
78
78
 
79
- def actable(options = {})
79
+ def actable(scope = nil, **options)
80
80
  name = options.delete(:as) || :actable
81
81
 
82
- reflections = belongs_to(name, options.reverse_merge(validate: false, polymorphic: true, dependent: :destroy, autosave: true, inverse_of: to_s.underscore))
82
+ reflections = belongs_to(name, scope, **options.reverse_merge(validate: false,
83
+ polymorphic: true,
84
+ dependent: :destroy,
85
+ autosave: true,
86
+ inverse_of: to_s.underscore))
83
87
 
84
88
  cattr_reader(:actable_reflection) { reflections.stringify_keys[name.to_s] }
85
89
 
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord
2
2
  module ActsAs
3
- VERSION = "3.0.2"
3
+ VERSION = "4.0.3"
4
4
  end
5
5
  end
6
6
 
@@ -411,6 +411,28 @@ RSpec.describe "ActiveRecord::Base model with #acts_as called" do
411
411
  end
412
412
  end
413
413
 
414
+ describe '.actable' do
415
+ class User < ActiveRecord::Base
416
+ actable -> { unscope(:where) }
417
+ end
418
+
419
+ class Customer < ActiveRecord::Base
420
+ default_scope { where('identifier > 1') }
421
+ acts_as :user
422
+
423
+ validates_presence_of :identifier
424
+ end
425
+
426
+ context 'with scope' do
427
+ it 'unscopes default scope' do
428
+ customer = Customer.create!(identifier: 1)
429
+ user = customer.user.reload
430
+ expect(user).to be_a User
431
+ expect(user.actable).to eq(customer)
432
+ end
433
+ end
434
+ end
435
+
414
436
  context 'class methods' do
415
437
  before(:each) { clear_database }
416
438
 
@@ -0,0 +1,23 @@
1
+ require 'models'
2
+
3
+ RSpec.describe 'Model Initialization' do
4
+ subject { Pen }
5
+
6
+ let(:pen_attributes) { { name: 'pen', color: 'red' } }
7
+
8
+ before(:each) { clear_database }
9
+
10
+ it 'find_or_initialize_by works' do
11
+ pen = subject.find_or_initialize_by(pen_attributes)
12
+ expect(pen.persisted?).to be false
13
+ expect(pen.name).to eq(pen_attributes[:name])
14
+ expect(pen.color).to eq(pen_attributes[:color])
15
+ end
16
+
17
+ it 'where.first_or_initialize works' do
18
+ pen = subject.where(pen_attributes).first_or_initialize
19
+ expect(pen.persisted?).to be false
20
+ expect(pen.name).to eq(pen_attributes[:name])
21
+ expect(pen.color).to eq(pen_attributes[:color])
22
+ end
23
+ end
@@ -91,6 +91,15 @@ end
91
91
 
92
92
  def initialize_schema
93
93
  initialize_database do
94
+ create_table :users do |t|
95
+ t.timestamps null: true
96
+ t.actable
97
+ end
98
+
99
+ create_table :customers do |t|
100
+ t.integer :identifier
101
+ end
102
+
94
103
  create_table :pen_collections do |t|
95
104
  t.timestamps null: true
96
105
  end
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: 3.0.2
4
+ version: 4.0.3
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: 2018-08-12 00:00:00.000000000 Z
12
+ date: 2020-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.3'
20
+ version: 1.3.6
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '1.3'
27
+ version: 1.3.6
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '1.6'
34
+ version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '1.6'
41
+ version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ dependencies:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '4.2'
126
- description: Simulate multi-table inheritance for activerecord models using a plymorphic
126
+ description: Simulate multi-table inheritance for activerecord models using a polymorphic
127
127
  association
128
128
  email:
129
129
  - hsn.zamani@gmail.com
@@ -149,6 +149,8 @@ files:
149
149
  - gemfiles/rails_4.2.gemfile
150
150
  - gemfiles/rails_5.0.gemfile
151
151
  - gemfiles/rails_5.1.gemfile
152
+ - gemfiles/rails_5.2.1.1.gemfile
153
+ - gemfiles/rails_5.2.1.gemfile
152
154
  - gemfiles/rails_5.2.gemfile
153
155
  - lib/active_record/acts_as.rb
154
156
  - lib/active_record/acts_as/class_methods.rb
@@ -162,15 +164,16 @@ files:
162
164
  - spec/active_record_spec.rb
163
165
  - spec/acts_as_spec.rb
164
166
  - spec/database_helper.rb
167
+ - spec/find_or_initialize_by_spec.rb
165
168
  - spec/migrations_spec.rb
166
169
  - spec/models.rb
167
170
  - spec/rspec_matchers_spec.rb
168
171
  - spec/spec_helper.rb
169
- homepage: http://github.com/krautcomputing/active_record-acts_as
172
+ homepage: http://github.com/manuelmeurer/active_record-acts_as
170
173
  licenses:
171
174
  - MIT
172
175
  metadata: {}
173
- post_install_message:
176
+ post_install_message:
174
177
  rdoc_options: []
175
178
  require_paths:
176
179
  - lib
@@ -178,16 +181,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
181
  requirements:
179
182
  - - ">="
180
183
  - !ruby/object:Gem::Version
181
- version: '2.2'
184
+ version: '2.4'
182
185
  required_rubygems_version: !ruby/object:Gem::Requirement
183
186
  requirements:
184
187
  - - ">="
185
188
  - !ruby/object:Gem::Version
186
189
  version: '0'
187
190
  requirements: []
188
- rubyforge_project:
189
- rubygems_version: 2.7.6
190
- signing_key:
191
+ rubygems_version: 3.1.3
192
+ signing_key:
191
193
  specification_version: 4
192
194
  summary: Simulate multi-table inheritance for activerecord models
193
195
  test_files:
@@ -195,6 +197,7 @@ test_files:
195
197
  - spec/active_record_spec.rb
196
198
  - spec/acts_as_spec.rb
197
199
  - spec/database_helper.rb
200
+ - spec/find_or_initialize_by_spec.rb
198
201
  - spec/migrations_spec.rb
199
202
  - spec/models.rb
200
203
  - spec/rspec_matchers_spec.rb