poly_belongs_to 0.1.3 → 0.1.4
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 +4 -4
- data/README.md +86 -16
- data/lib/poly_belongs_to.rb +57 -52
- data/lib/poly_belongs_to/dup.rb +43 -0
- data/lib/poly_belongs_to/hierarchy.rb +23 -0
- data/lib/poly_belongs_to/poly_belongs_to.rb +66 -0
- data/lib/poly_belongs_to/version.rb +1 -1
- data/test/dummy/Rakefile +1 -1
- data/test/dummy/app/models/address.rb +3 -0
- data/test/dummy/app/models/contact.rb +5 -0
- data/test/dummy/app/models/photo.rb +3 -0
- data/test/dummy/app/models/profile.rb +7 -0
- data/test/dummy/app/models/ssn.rb +3 -0
- data/test/dummy/app/models/user.rb +3 -1
- data/test/dummy/config.ru +1 -1
- data/test/dummy/config/application.rb +11 -1
- data/test/dummy/config/boot.rb +1 -0
- data/test/dummy/config/environment.rb +3 -3
- data/test/dummy/config/environments/development.rb +1 -1
- data/test/dummy/config/environments/production.rb +1 -1
- data/test/dummy/config/environments/test.rb +1 -1
- data/test/dummy/config/initializers/assets.rb +3 -3
- data/test/dummy/config/initializers/cookies_serializer.rb +1 -1
- data/test/dummy/config/initializers/filter_parameter_logging.rb +1 -1
- data/test/dummy/config/initializers/session_store.rb +1 -1
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20150211224139_create_users.rb +1 -0
- data/test/dummy/db/migrate/20150211224157_create_tags.rb +1 -0
- data/test/dummy/db/migrate/20150211224225_create_phones.rb +1 -0
- data/test/dummy/db/migrate/20150216092218_create_addresses.rb +10 -0
- data/test/dummy/db/migrate/20150216092338_create_profiles.rb +10 -0
- data/test/dummy/db/migrate/20150216092411_create_photos.rb +10 -0
- data/test/dummy/db/migrate/20150216092449_create_contacts.rb +11 -0
- data/test/dummy/db/migrate/20150216092519_create_ssns.rb +11 -0
- data/test/dummy/db/schema.rb +56 -5
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +50 -51
- data/test/dummy/log/test.log +49835 -1884
- data/test/dup_test.rb +39 -0
- data/test/fixtures/addresses.yml +18 -0
- data/test/fixtures/phones.yml +12 -3
- data/test/fixtures/photos.yml +16 -0
- data/test/fixtures/profiles.yml +15 -0
- data/test/fixtures/ssns.yml +14 -0
- data/test/fixtures/tags.yml +9 -2
- data/test/fixtures/users.yml +3 -1
- data/test/pbt_test.rb +61 -0
- data/test/poly_belongs_to_test.rb +75 -48
- data/test/test_helper.rb +13 -7
- metadata +58 -47
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/test/models/phone_test.rb +0 -7
- data/test/dummy/test/models/tag_test.rb +0 -7
- data/test/dummy/test/models/user_test.rb +0 -7
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poly_belongs_to
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel P. Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -45,61 +45,45 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.3'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name: minitest
|
48
|
+
name: minitest-rails
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.9'
|
54
|
+
- - "<"
|
52
55
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
56
|
+
version: '3'
|
54
57
|
type: :development
|
55
58
|
prerelease: false
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
60
|
requirements:
|
58
|
-
- - "
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.9'
|
64
|
+
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
66
|
+
version: '3'
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: minitest-reporters
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
64
70
|
requirements:
|
65
|
-
- - "
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '1.0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
71
|
+
- - ">="
|
73
72
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
75
|
-
-
|
76
|
-
name: minitest-rails
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
73
|
+
version: 0.7.1
|
74
|
+
- - "<"
|
80
75
|
- !ruby/object:Gem::Version
|
81
|
-
version: '2
|
76
|
+
version: '2'
|
82
77
|
type: :development
|
83
78
|
prerelease: false
|
84
79
|
version_requirements: !ruby/object:Gem::Requirement
|
85
80
|
requirements:
|
86
|
-
- - "
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '2.1'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: minitest-spec-rails
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
81
|
+
- - ">="
|
94
82
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
96
|
-
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
83
|
+
version: 0.7.1
|
84
|
+
- - "<"
|
101
85
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
86
|
+
version: '2'
|
103
87
|
description: A standard way to check belongs_to relations on any belongs_to Object
|
104
88
|
email:
|
105
89
|
- 6ftdan@gmail.com
|
@@ -111,14 +95,20 @@ files:
|
|
111
95
|
- README.md
|
112
96
|
- Rakefile
|
113
97
|
- lib/poly_belongs_to.rb
|
98
|
+
- lib/poly_belongs_to/dup.rb
|
99
|
+
- lib/poly_belongs_to/hierarchy.rb
|
100
|
+
- lib/poly_belongs_to/poly_belongs_to.rb
|
114
101
|
- lib/poly_belongs_to/version.rb
|
115
102
|
- lib/tasks/poly_belongs_to_tasks.rake
|
116
103
|
- test/dummy/Rakefile
|
117
|
-
- test/dummy/app/assets/javascripts/application.js
|
118
|
-
- test/dummy/app/assets/stylesheets/application.css
|
119
104
|
- test/dummy/app/controllers/application_controller.rb
|
120
105
|
- test/dummy/app/helpers/application_helper.rb
|
106
|
+
- test/dummy/app/models/address.rb
|
107
|
+
- test/dummy/app/models/contact.rb
|
121
108
|
- test/dummy/app/models/phone.rb
|
109
|
+
- test/dummy/app/models/photo.rb
|
110
|
+
- test/dummy/app/models/profile.rb
|
111
|
+
- test/dummy/app/models/ssn.rb
|
122
112
|
- test/dummy/app/models/tag.rb
|
123
113
|
- test/dummy/app/models/user.rb
|
124
114
|
- test/dummy/app/views/layouts/application.html.erb
|
@@ -145,9 +135,15 @@ files:
|
|
145
135
|
- test/dummy/config/locales/en.yml
|
146
136
|
- test/dummy/config/routes.rb
|
147
137
|
- test/dummy/config/secrets.yml
|
138
|
+
- test/dummy/db/development.sqlite3
|
148
139
|
- test/dummy/db/migrate/20150211224139_create_users.rb
|
149
140
|
- test/dummy/db/migrate/20150211224157_create_tags.rb
|
150
141
|
- test/dummy/db/migrate/20150211224225_create_phones.rb
|
142
|
+
- test/dummy/db/migrate/20150216092218_create_addresses.rb
|
143
|
+
- test/dummy/db/migrate/20150216092338_create_profiles.rb
|
144
|
+
- test/dummy/db/migrate/20150216092411_create_photos.rb
|
145
|
+
- test/dummy/db/migrate/20150216092449_create_contacts.rb
|
146
|
+
- test/dummy/db/migrate/20150216092519_create_ssns.rb
|
151
147
|
- test/dummy/db/schema.rb
|
152
148
|
- test/dummy/db/test.sqlite3
|
153
149
|
- test/dummy/log/development.log
|
@@ -156,12 +152,15 @@ files:
|
|
156
152
|
- test/dummy/public/422.html
|
157
153
|
- test/dummy/public/500.html
|
158
154
|
- test/dummy/public/favicon.ico
|
159
|
-
- test/
|
160
|
-
- test/
|
161
|
-
- test/dummy/test/models/user_test.rb
|
155
|
+
- test/dup_test.rb
|
156
|
+
- test/fixtures/addresses.yml
|
162
157
|
- test/fixtures/phones.yml
|
158
|
+
- test/fixtures/photos.yml
|
159
|
+
- test/fixtures/profiles.yml
|
160
|
+
- test/fixtures/ssns.yml
|
163
161
|
- test/fixtures/tags.yml
|
164
162
|
- test/fixtures/users.yml
|
163
|
+
- test/pbt_test.rb
|
165
164
|
- test/poly_belongs_to_test.rb
|
166
165
|
- test/test_helper.rb
|
167
166
|
homepage: https://github.com/danielpclark/PolyBelongsTo
|
@@ -190,15 +189,26 @@ specification_version: 4
|
|
190
189
|
summary: Shorthand belongs_to testing and universal identifiers.
|
191
190
|
test_files:
|
192
191
|
- test/poly_belongs_to_test.rb
|
192
|
+
- test/dup_test.rb
|
193
|
+
- test/fixtures/addresses.yml
|
194
|
+
- test/fixtures/photos.yml
|
195
|
+
- test/fixtures/profiles.yml
|
193
196
|
- test/fixtures/phones.yml
|
194
197
|
- test/fixtures/users.yml
|
195
198
|
- test/fixtures/tags.yml
|
199
|
+
- test/fixtures/ssns.yml
|
196
200
|
- test/test_helper.rb
|
197
201
|
- test/dummy/db/test.sqlite3
|
202
|
+
- test/dummy/db/development.sqlite3
|
198
203
|
- test/dummy/db/schema.rb
|
204
|
+
- test/dummy/db/migrate/20150216092449_create_contacts.rb
|
205
|
+
- test/dummy/db/migrate/20150216092218_create_addresses.rb
|
199
206
|
- test/dummy/db/migrate/20150211224225_create_phones.rb
|
207
|
+
- test/dummy/db/migrate/20150216092519_create_ssns.rb
|
200
208
|
- test/dummy/db/migrate/20150211224157_create_tags.rb
|
201
209
|
- test/dummy/db/migrate/20150211224139_create_users.rb
|
210
|
+
- test/dummy/db/migrate/20150216092338_create_profiles.rb
|
211
|
+
- test/dummy/db/migrate/20150216092411_create_photos.rb
|
202
212
|
- test/dummy/config/initializers/mime_types.rb
|
203
213
|
- test/dummy/config/initializers/session_store.rb
|
204
214
|
- test/dummy/config/initializers/assets.rb
|
@@ -219,12 +229,15 @@ test_files:
|
|
219
229
|
- test/dummy/config/database.yml
|
220
230
|
- test/dummy/app/controllers/application_controller.rb
|
221
231
|
- test/dummy/app/helpers/application_helper.rb
|
232
|
+
- test/dummy/app/models/ssn.rb
|
233
|
+
- test/dummy/app/models/contact.rb
|
222
234
|
- test/dummy/app/models/user.rb
|
235
|
+
- test/dummy/app/models/address.rb
|
223
236
|
- test/dummy/app/models/phone.rb
|
237
|
+
- test/dummy/app/models/profile.rb
|
224
238
|
- test/dummy/app/models/tag.rb
|
239
|
+
- test/dummy/app/models/photo.rb
|
225
240
|
- test/dummy/app/views/layouts/application.html.erb
|
226
|
-
- test/dummy/app/assets/stylesheets/application.css
|
227
|
-
- test/dummy/app/assets/javascripts/application.js
|
228
241
|
- test/dummy/public/422.html
|
229
242
|
- test/dummy/public/favicon.ico
|
230
243
|
- test/dummy/public/404.html
|
@@ -237,6 +250,4 @@ test_files:
|
|
237
250
|
- test/dummy/bin/rails
|
238
251
|
- test/dummy/bin/bundle
|
239
252
|
- test/dummy/bin/setup
|
240
|
-
- test/
|
241
|
-
- test/dummy/test/models/user_test.rb
|
242
|
-
- test/dummy/test/models/phone_test.rb
|
253
|
+
- test/pbt_test.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|