record_collection 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/app/assets/stylesheets/record_collection/{multi_select.css.sass → multi_select.sass} +0 -0
- data/app/assets/stylesheets/record_collection/{optionals.css.sass → optionals.sass} +0 -0
- data/lib/record_collection/base.rb +1 -0
- data/lib/record_collection/version.rb +1 -1
- data/spec/base/inheritance_spec.rb +15 -0
- data/spec/dummy/app/assets/stylesheets/{application.css.sass → application.sass} +0 -0
- data/spec/dummy/app/assets/stylesheets/components/{_forms.css.sass → _forms.sass} +0 -0
- data/spec/dummy/app/assets/stylesheets/components/{_structure.css.sass → _structure.sass} +0 -0
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caaa7c7dfd1edddf70122ae473db11829f38b0af
|
4
|
+
data.tar.gz: e57cfdef72a6bcc00ad905a1a2de46abeb4ebba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 352c866f3a1bda5fddf1f8218d2e82ba1c9e5a005accb864b98bcba924b192fcce2256b3858718e00edfafcc06fca39b337c54a25449bd7c60f6bed58ff55ec2
|
7
|
+
data.tar.gz: 2319bf29dce876cfca1cf037b62709a84e08748d8d3c87f9e73d9063c40189bab289c53f2671de025d98509c4aad4d7426fb8ef6af5afbbf9feece0dc6922ae1
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# RecordCollection
|
2
2
|
[<img src="https://secure.travis-ci.org/bterkuile/record_collection.png?branch=master" alt="Build Status" />](http://travis-ci.org/bterkuile/record_collection)
|
3
|
+
[![Code Climate](https://codeclimate.com/github/bterkuile/record_collection/badges/gpa.svg)](https://codeclimate.com/github/bterkuile/record_collection)
|
3
4
|
|
4
5
|
record\_collection is a gem that adds functionality to rails to work
|
5
6
|
with collections. This consists of a few components:
|
@@ -372,11 +373,9 @@ en:
|
|
372
373
|
## Special thanks
|
373
374
|
|
374
375
|
Special thanks for this project goes to:<br>
|
375
|
-
<a href="http://companytools.nl/" target="_blank"><img src="http://companytools.nl/assets/logo2-
|
376
|
+
<a href="http://companytools.nl/" target="_blank"><img src="http://companytools.nl/assets/logo2-63318dd42aef154bd43548222b54be562f4c1059a4e7880892000224126d59bb.png" alt="Companytools"></a>
|
376
377
|
|
377
378
|
<a href="http://fourstack.nl" target="_blank"><img src="http://fourstack.nl/logo1.png" alt="FourStack"></a>
|
378
|
-
|
379
|
-
<a href="http://www.kpn.com" target="_blank"><img src="http://www.kpn.com/ss/Satellite/yavUnLl8hN7yMh6Gh2IPWqYD60HbUkXsNK4iD8PcUpR0bnBXyZZtwQUuCgSUG72CJE/MungoBlobs/kpn_logo.png"></a>
|
380
379
|
|
381
380
|
## Contributing
|
382
381
|
|
File without changes
|
File without changes
|
@@ -17,6 +17,7 @@ module RecordCollection
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def inherited(collection_class)
|
20
|
+
super
|
20
21
|
# Try to infer the baseclass from the collection inheritance and set it if possible
|
21
22
|
collection_class.send :cattr_accessor, :record_class
|
22
23
|
if base_class = collection_class.name.deconstantize.safe_constantize
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe RecordCollection::Base do
|
4
|
+
|
5
|
+
it 'Inherits attributes from parent classes' do
|
6
|
+
class TestClass1 < RecordCollection::Base
|
7
|
+
attribute :attr1
|
8
|
+
end
|
9
|
+
|
10
|
+
class TestClass2 < TestClass1
|
11
|
+
attribute :attr2
|
12
|
+
end
|
13
|
+
TestClass2.attribute_names.should eq %w[attr1 attr2]
|
14
|
+
end
|
15
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: record_collection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin ter Kuile
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -351,8 +351,8 @@ files:
|
|
351
351
|
- app/assets/javascripts/record_collection/multi_select.js.coffee
|
352
352
|
- app/assets/javascripts/record_collection/optionals.js.coffee
|
353
353
|
- app/assets/stylesheets/record_collection/all.css
|
354
|
-
- app/assets/stylesheets/record_collection/multi_select.
|
355
|
-
- app/assets/stylesheets/record_collection/optionals.
|
354
|
+
- app/assets/stylesheets/record_collection/multi_select.sass
|
355
|
+
- app/assets/stylesheets/record_collection/optionals.sass
|
356
356
|
- app/controllers/record_collection/application_controller.rb
|
357
357
|
- app/helpers/record_collection/application_helper.rb
|
358
358
|
- app/views/layouts/record_collection/application.html.erb
|
@@ -386,6 +386,7 @@ files:
|
|
386
386
|
- spec/base/after_record_update_spec.rb
|
387
387
|
- spec/base/behaviour_spec.rb
|
388
388
|
- spec/base/finding_records_spec.rb
|
389
|
+
- spec/base/inheritance_spec.rb
|
389
390
|
- spec/base/validations_spec.rb
|
390
391
|
- spec/dummy/README.rdoc
|
391
392
|
- spec/dummy/Rakefile
|
@@ -393,9 +394,9 @@ files:
|
|
393
394
|
- spec/dummy/app/assets/javascripts/application.js.coffee
|
394
395
|
- spec/dummy/app/assets/javascripts/foundation.min.js
|
395
396
|
- spec/dummy/app/assets/javascripts/modernizr.js
|
396
|
-
- spec/dummy/app/assets/stylesheets/application.
|
397
|
-
- spec/dummy/app/assets/stylesheets/components/_forms.
|
398
|
-
- spec/dummy/app/assets/stylesheets/components/_structure.
|
397
|
+
- spec/dummy/app/assets/stylesheets/application.sass
|
398
|
+
- spec/dummy/app/assets/stylesheets/components/_forms.sass
|
399
|
+
- spec/dummy/app/assets/stylesheets/components/_structure.sass
|
399
400
|
- spec/dummy/app/assets/stylesheets/foundation.css
|
400
401
|
- spec/dummy/app/assets/stylesheets/normalize.css
|
401
402
|
- spec/dummy/app/controllers/application_controller.rb
|
@@ -497,6 +498,7 @@ test_files:
|
|
497
498
|
- spec/base/after_record_update_spec.rb
|
498
499
|
- spec/base/behaviour_spec.rb
|
499
500
|
- spec/base/finding_records_spec.rb
|
501
|
+
- spec/base/inheritance_spec.rb
|
500
502
|
- spec/base/validations_spec.rb
|
501
503
|
- spec/dummy/README.rdoc
|
502
504
|
- spec/dummy/Rakefile
|
@@ -504,9 +506,9 @@ test_files:
|
|
504
506
|
- spec/dummy/app/assets/javascripts/application.js.coffee
|
505
507
|
- spec/dummy/app/assets/javascripts/foundation.min.js
|
506
508
|
- spec/dummy/app/assets/javascripts/modernizr.js
|
507
|
-
- spec/dummy/app/assets/stylesheets/application.
|
508
|
-
- spec/dummy/app/assets/stylesheets/components/_forms.
|
509
|
-
- spec/dummy/app/assets/stylesheets/components/_structure.
|
509
|
+
- spec/dummy/app/assets/stylesheets/application.sass
|
510
|
+
- spec/dummy/app/assets/stylesheets/components/_forms.sass
|
511
|
+
- spec/dummy/app/assets/stylesheets/components/_structure.sass
|
510
512
|
- spec/dummy/app/assets/stylesheets/foundation.css
|
511
513
|
- spec/dummy/app/assets/stylesheets/normalize.css
|
512
514
|
- spec/dummy/app/controllers/application_controller.rb
|