deep_cloneable 3.0.0 → 3.1.0

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.
@@ -1,91 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (5.2.0)
5
- activesupport (= 5.2.0)
6
- activerecord (5.2.0)
7
- activemodel (= 5.2.0)
8
- activesupport (= 5.2.0)
9
- arel (>= 9.0)
10
- activesupport (5.2.0)
11
- concurrent-ruby (~> 1.0, >= 1.0.2)
12
- i18n (>= 0.7, < 2)
13
- minitest (~> 5.1)
14
- tzinfo (~> 1.1)
15
- addressable (2.4.0)
16
- appraisal (2.2.0)
17
- bundler
18
- rake
19
- thor (>= 0.14.0)
20
- arel (9.0.0)
21
- builder (3.2.3)
22
- concurrent-ruby (1.0.5)
23
- descendants_tracker (0.0.4)
24
- thread_safe (~> 0.3, >= 0.3.1)
25
- faraday (0.9.2)
26
- multipart-post (>= 1.2, < 3)
27
- git (1.2.9.1)
28
- github_api (0.16.0)
29
- addressable (~> 2.4.0)
30
- descendants_tracker (~> 0.0.4)
31
- faraday (~> 0.8, < 0.10)
32
- hashie (>= 3.4)
33
- mime-types (>= 1.16, < 3.0)
34
- oauth2 (~> 1.0)
35
- hashie (3.5.7)
36
- highline (1.6.21)
37
- i18n (1.0.0)
38
- concurrent-ruby (~> 1.0)
39
- jeweler (2.3.9)
40
- builder
41
- bundler
42
- git (>= 1.2.5)
43
- github_api (~> 0.16.0)
44
- highline (>= 1.6.15)
45
- nokogiri (>= 1.5.10)
46
- psych
47
- rake
48
- rdoc
49
- semver2
50
- jwt (1.5.6)
51
- mime-types (2.99.3)
52
- minitest (5.11.3)
53
- multi_json (1.13.1)
54
- multi_xml (0.6.0)
55
- multipart-post (2.0.0)
56
- nokogiri (1.5.11)
57
- oauth2 (1.4.0)
58
- faraday (>= 0.8, < 0.13)
59
- jwt (~> 1.0)
60
- multi_json (~> 1.3)
61
- multi_xml (~> 0.5)
62
- rack (>= 1.2, < 3)
63
- psych (3.0.2)
64
- rack (1.6.9)
65
- rake (10.5.0)
66
- rdoc (5.1.0)
67
- semver2 (3.4.2)
68
- sqlite3 (1.3.13)
69
- thor (0.20.0)
70
- thread_safe (0.3.6)
71
- tzinfo (1.2.5)
72
- thread_safe (~> 0.1)
73
-
74
- PLATFORMS
75
- ruby
76
-
77
- DEPENDENCIES
78
- activerecord (~> 5.2.0)
79
- appraisal
80
- git (~> 1.2.9)
81
- highline (~> 1.6.0)
82
- jeweler
83
- minitest
84
- nokogiri (~> 1.5.0)
85
- rack (~> 1.6)
86
- rake (~> 10.4)
87
- rdoc (>= 2.4.2, < 6)
88
- sqlite3
89
-
90
- BUNDLED WITH
91
- 1.16.1
data/gemfiles/6.0.gemfile DELETED
@@ -1,15 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source 'http://rubygems.org'
4
-
5
- gem 'activerecord', '~> 6.0.0.beta3'
6
- gem 'appraisal', :group => :test
7
- gem 'git', '~> 1.2.9', :group => :test
8
- gem 'highline', '~> 1.6.0', :group => :test
9
- gem 'jeweler', :group => :test
10
- gem 'minitest', :group => :test
11
- gem 'nokogiri', '~> 1.5.0', :group => :test
12
- gem 'rack', '~> 1.6', :group => :test
13
- gem 'rake', '~> 10.4', :group => :test
14
- gem 'rdoc', '>= 2.4.2', '< 6', :group => :test
15
- gem 'sqlite3', :group => :test
@@ -1,91 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (6.0.0.beta3)
5
- activesupport (= 6.0.0.beta3)
6
- activerecord (6.0.0.beta3)
7
- activemodel (= 6.0.0.beta3)
8
- activesupport (= 6.0.0.beta3)
9
- activesupport (6.0.0.beta3)
10
- concurrent-ruby (~> 1.0, >= 1.0.2)
11
- i18n (>= 0.7, < 2)
12
- minitest (~> 5.1)
13
- tzinfo (~> 1.1)
14
- zeitwerk (~> 1.3, >= 1.3.1)
15
- addressable (2.4.0)
16
- appraisal (2.2.0)
17
- bundler
18
- rake
19
- thor (>= 0.14.0)
20
- builder (3.2.3)
21
- concurrent-ruby (1.1.5)
22
- descendants_tracker (0.0.4)
23
- thread_safe (~> 0.3, >= 0.3.1)
24
- faraday (0.9.2)
25
- multipart-post (>= 1.2, < 3)
26
- git (1.2.9.1)
27
- github_api (0.16.0)
28
- addressable (~> 2.4.0)
29
- descendants_tracker (~> 0.0.4)
30
- faraday (~> 0.8, < 0.10)
31
- hashie (>= 3.4)
32
- mime-types (>= 1.16, < 3.0)
33
- oauth2 (~> 1.0)
34
- hashie (3.6.0)
35
- highline (1.6.21)
36
- i18n (1.6.0)
37
- concurrent-ruby (~> 1.0)
38
- jeweler (2.3.9)
39
- builder
40
- bundler
41
- git (>= 1.2.5)
42
- github_api (~> 0.16.0)
43
- highline (>= 1.6.15)
44
- nokogiri (>= 1.5.10)
45
- psych
46
- rake
47
- rdoc
48
- semver2
49
- jwt (2.1.0)
50
- mime-types (2.99.3)
51
- minitest (5.11.3)
52
- multi_json (1.13.1)
53
- multi_xml (0.6.0)
54
- multipart-post (2.0.0)
55
- nokogiri (1.5.11)
56
- oauth2 (1.4.1)
57
- faraday (>= 0.8, < 0.16.0)
58
- jwt (>= 1.0, < 3.0)
59
- multi_json (~> 1.3)
60
- multi_xml (~> 0.5)
61
- rack (>= 1.2, < 3)
62
- psych (3.1.0)
63
- rack (1.6.11)
64
- rake (10.5.0)
65
- rdoc (5.1.0)
66
- semver2 (3.4.2)
67
- sqlite3 (1.4.0)
68
- thor (0.20.3)
69
- thread_safe (0.3.6)
70
- tzinfo (1.2.5)
71
- thread_safe (~> 0.1)
72
- zeitwerk (1.4.3)
73
-
74
- PLATFORMS
75
- ruby
76
-
77
- DEPENDENCIES
78
- activerecord (~> 6.0.0.beta3)
79
- appraisal
80
- git (~> 1.2.9)
81
- highline (~> 1.6.0)
82
- jeweler
83
- minitest
84
- nokogiri (~> 1.5.0)
85
- rack (~> 1.6)
86
- rake (~> 10.4)
87
- rdoc (>= 2.4.2, < 6)
88
- sqlite3
89
-
90
- BUNDLED WITH
91
- 1.17.3
data/test/database.yml DELETED
@@ -1,6 +0,0 @@
1
- sqlite:
2
- adapter: sqlite
3
- database: ":memory:"
4
- sqlite3:
5
- adapter: sqlite3
6
- database: ":memory:"
data/test/models.rb DELETED
@@ -1,151 +0,0 @@
1
- module Animal
2
- class Human < ActiveRecord::Base
3
- has_many :pigs
4
-
5
- has_many :ownerships
6
- has_many :chickens, :through => :ownerships
7
- end
8
-
9
- class Pig < ActiveRecord::Base
10
- belongs_to :human
11
- end
12
-
13
- class Bird < ActiveRecord::Base
14
- belongs_to :planet
15
- end
16
-
17
- class Chicken < Bird
18
- has_many :ownerships
19
- has_many :humans, :through => :ownerships
20
- end
21
-
22
- class Dove < Bird
23
- end
24
-
25
- class Planet < ActiveRecord::Base
26
- has_many :birds
27
- end
28
-
29
- class Ownership < ActiveRecord::Base
30
- belongs_to :human
31
- belongs_to :chicken
32
-
33
- validates_uniqueness_of :chicken_id, :scope => :human_id
34
- end
35
- end
36
-
37
- class GoldPiece < ActiveRecord::Base; belongs_to :treasure end
38
- class Matey < ActiveRecord::Base; belongs_to :pirate end
39
- class BattleShip < ActiveRecord::Base; has_many :pirates, :as => :ship end
40
-
41
- class Parrot < ActiveRecord::Base
42
- belongs_to :pirate
43
- has_many :parrot_cages, :foreign_key => :owner_id, :inverse_of => :parrot, :class_name => 'Cage'
44
- attr_accessor :cloned_from_id
45
- end
46
-
47
- class Cage < ActiveRecord::Base
48
- belongs_to :parrot, :foreign_key => :owner_id, :inverse_of => :parrot_cages
49
- belongs_to :pirate, :foreign_key => :owner_id, :inverse_of => :pirate_cages
50
- end
51
-
52
- class Pirate < ActiveRecord::Base
53
- belongs_to :ship, :polymorphic => true
54
-
55
- has_many :mateys
56
- has_many :treasures, :foreign_key => 'owner'
57
- has_many :gold_pieces, :through => :treasures
58
- has_one :parrot
59
- has_many :pirate_cages, :inverse_of => :pirate, :foreign_key => :owner_id, :class_name => 'Cage'
60
-
61
- serialize :piastres
62
-
63
- attr_accessor :cloned_from_id
64
- end
65
-
66
- class Treasure < ActiveRecord::Base
67
- belongs_to :pirate, :foreign_key => :owner
68
- belongs_to :matey
69
- has_many :gold_pieces
70
- end
71
-
72
- class Person < ActiveRecord::Base
73
- has_and_belongs_to_many :cars
74
- end
75
-
76
- class Car < ActiveRecord::Base
77
- has_and_belongs_to_many :people
78
- end
79
-
80
- class Coin < ActiveRecord::Base
81
- has_and_belongs_to_many :people
82
- end
83
-
84
- class ChildWithValidation < ActiveRecord::Base
85
- belongs_to :parent, :class_name => 'ParentWithValidation'
86
- validates :name, :presence => true
87
- end
88
-
89
- class ParentWithValidation < ActiveRecord::Base
90
- has_many :children, :class_name => 'ChildWithValidation', :foreign_key => 'parent_id'
91
- validates :name, :presence => true
92
- end
93
-
94
- class Part < ActiveRecord::Base
95
- # belongs_to :parent_part, :class_name => 'Part'
96
- has_many :child_parts, :class_name => 'Part', :foreign_key => 'parent_part_id'
97
- end
98
-
99
- class Student < ActiveRecord::Base
100
- has_many :student_assignments, :dependent => :destroy
101
- has_many :subjects, :through => :student_assignments
102
- end
103
-
104
- class Subject < ActiveRecord::Base
105
- has_many :student_assignments, :dependent => :destroy
106
- has_many :students, :through => :student_assignments
107
- end
108
-
109
- class StudentAssignment < ActiveRecord::Base
110
- belongs_to :subject
111
- belongs_to :student
112
- end
113
-
114
- class Building < ActiveRecord::Base
115
- has_many :apartments
116
- has_many :contractors
117
- end
118
-
119
- class Apartment < ActiveRecord::Base
120
- belongs_to :building
121
- has_and_belongs_to_many :contractors
122
- end
123
-
124
- class Contractor < ActiveRecord::Base
125
- belongs_to :building
126
- has_and_belongs_to_many :apartments
127
- has_one :contract
128
- end
129
-
130
- class User < ActiveRecord::Base
131
- has_many :orders
132
- end
133
-
134
- class Order < ActiveRecord::Base
135
- belongs_to :user
136
- has_many :products
137
- end
138
-
139
- class Product < ActiveRecord::Base
140
- belongs_to :order
141
- end
142
-
143
- class Contract < ActiveRecord::Base
144
- belongs_to :contractor
145
- belongs_to :organization
146
- end
147
-
148
- class Organization < ActiveRecord::Base
149
- has_one :contract
150
- has_one :contractor, :through => :contract
151
- end
data/test/schema.rb DELETED
@@ -1,156 +0,0 @@
1
- ActiveRecord::Schema.define(:version => 1) do
2
- create_table :pirates, :force => true do |t|
3
- t.column :name, :string
4
- t.column :nick_name, :string, :default => 'no nickname'
5
- t.column :age, :string
6
- t.column :ship_id, :integer
7
- t.column :ship_type, :string
8
- t.column :piastres, :text, :default => [].to_yaml
9
- end
10
-
11
- create_table :parrots, :force => true do |t|
12
- t.column :name, :string
13
- t.column :age, :integer
14
- t.column :pirate_id, :integer
15
- end
16
-
17
- create_table :mateys, :force => true do |t|
18
- t.column :name, :string
19
- t.column :pirate_id, :integer
20
- end
21
-
22
- create_table :treasures, :force => true do |t|
23
- t.column :found_at, :string
24
- t.column :owner, :integer
25
- t.column :matey_id, :integer
26
- end
27
-
28
- create_table :cages, :force => true do |t|
29
- t.column :name, :string
30
- t.column :owner_id, :integer
31
- end
32
-
33
- create_table :gold_pieces, :force => true do |t|
34
- t.column :treasure_id, :integer
35
- end
36
-
37
- create_table :battle_ships, :force => true do |t|
38
- t.column :name, :string
39
- end
40
-
41
- create_table :pigs, :force => true do |t|
42
- t.column :name, :string
43
- t.column :human_id, :integer
44
- end
45
-
46
- create_table :humen, :force => true do |t|
47
- t.column :name, :string
48
- end
49
-
50
- create_table :planets, :force => true do |t|
51
- t.column :name, :string
52
- end
53
-
54
- create_table :birds, :force => true do |t|
55
- t.column :name, :string
56
- t.column :type, :string
57
- t.column :planet_id, :integer
58
- end
59
-
60
- create_table :ownerships, :force => true do |t|
61
- t.column :human_id, :integer
62
- t.column :chicken_id, :integer
63
- end
64
-
65
- create_table :cars, :force => true do |t|
66
- t.column :name, :string
67
- end
68
-
69
- create_table :coins, :force => true do |t|
70
- t.column :value, :integer
71
- end
72
-
73
- create_table :people, :force => true do |t|
74
- t.column :name, :string
75
- end
76
-
77
- create_table :cars_people, :id => false, :force => true do |t|
78
- t.column :car_id, :integer
79
- t.column :person_id, :integer
80
- end
81
-
82
- create_table :coins_people, :id => false, :force => true do |t|
83
- t.column :coin_id, :integer
84
- t.column :person_id, :integer
85
- end
86
-
87
- create_table :parent_with_validations, :force => true do |t|
88
- t.column :name, :string
89
- end
90
-
91
- create_table :child_with_validations, :force => true do |t|
92
- t.column :name, :string
93
- t.column :parent_id, :integer
94
- end
95
-
96
- create_table :parts, :force => true do |t|
97
- t.column :name, :string
98
- t.column :parent_part_id, :integer
99
- end
100
-
101
- create_table :students, :force => true do |t|
102
- t.column :name, :string
103
- end
104
-
105
- create_table :subjects, :force => true do |t|
106
- t.column :name, :string
107
- end
108
-
109
- create_table :student_assignments, :force => true do |t|
110
- t.column :student_id, :integer
111
- t.column :subject_id, :integer
112
- end
113
-
114
- create_table :buildings, :force => true do |t|
115
- t.column :name, :string
116
- end
117
-
118
- create_table :apartments, :force => true do |t|
119
- t.column :number, :string
120
- t.column :building_id, :integer
121
- end
122
-
123
- create_table :contractors, :force => true do |t|
124
- t.column :name, :string
125
- t.column :building_id, :integer
126
- end
127
-
128
- create_table :apartments_contractors, :force => true do |t|
129
- t.column :apartment_id, :integer
130
- t.column :contractor_id, :integer
131
- end
132
-
133
- create_table :users, :force => true do |t|
134
- t.column :name, :string
135
- t.column :contractor_id, :integer
136
- end
137
-
138
- create_table :orders, :force => true do |t|
139
- t.column :user_id, :integer
140
- end
141
-
142
- create_table :products, :force => true do |t|
143
- t.column :name, :string
144
- t.column :order_id, :integer
145
- end
146
-
147
- create_table :organizations, :force => true do |t|
148
- t.column :name, :string
149
- end
150
-
151
- create_table :contracts, :force => true do |t|
152
- t.column :number, :string
153
- t.column :contractor_id, :integer
154
- t.column :organization_id, :integer
155
- end
156
- end