scoped_associations 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b4c09ec153513b2cb5bb7cce12c42fdd1ac19af
4
- data.tar.gz: 012bf692223a1f4ce858e13e0ffb204fa1d5890a
3
+ metadata.gz: a5bbda34bec628821cb2c1cafb031bb405a2a9a9
4
+ data.tar.gz: a92a1ee8a19c7268c005067428c71c123595dd9f
5
5
  SHA512:
6
- metadata.gz: 500c1dc4a436b1eae7f5a5068a931c6a3c90aceb1069db99be0651cce5a6a60193e3cf574ad6abb677cbe2111689ff3f74c018dd42b79a43bef96d552d996897
7
- data.tar.gz: 5921290133545291742c7750cecab8434897719bafa2c5199a4a7afd6469020dfd99af7147a8afa7b8d12922238486c066716e3094a67abac3676b9779aeaade
6
+ metadata.gz: 398792f479884ca19c683fc154e49c0585d8abe993fb4c2c0be8301b783d81035bf5a24018b4059ef8acc9c541527099c277d84637d80bbd7ef79730ab1bcd0a
7
+ data.tar.gz: ce5926840c2fed1cba4b62920f7101b67c4f16e38501dc89c8a88908ee0dd69f0f22a970a7acb5e757dfde7c7f123801a054897a6eda86af1f2c8cccf79b5f3e
data/.gitignore CHANGED
@@ -15,4 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ gemfiles/*.lock
18
19
 
data/Appraisals CHANGED
@@ -6,3 +6,7 @@ appraise "activerecord4" do
6
6
  gem "activerecord", "4.0.2"
7
7
  end
8
8
 
9
+ appraise "activerecord41" do
10
+ gem "activerecord", "4.1.1"
11
+ end
12
+
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "activerecord", "4.1.1"
7
+
8
+ gemspec :path => "../"
@@ -6,8 +6,8 @@ module ScopedAssociations
6
6
  super + [:scoped]
7
7
  end
8
8
 
9
- def build
10
- reflection = super
9
+ def build(attributes = {})
10
+ reflection = ActiveRecord::VERSION::MINOR == 0 ? super() : super(attributes)
11
11
  extend_reflection(reflection)
12
12
  reflection
13
13
  end
@@ -6,8 +6,8 @@ module ScopedAssociations
6
6
  super + [:scoped]
7
7
  end
8
8
 
9
- def build
10
- reflection = super
9
+ def build(attributes = {})
10
+ reflection = ActiveRecord::VERSION::MINOR == 0 ? super() : super(attributes)
11
11
  extend_reflection(reflection)
12
12
  reflection
13
13
  end
@@ -1,4 +1,4 @@
1
1
  module ScopedAssociations
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
4
4
 
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.required_ruby_version = ">= 1.9.3"
28
28
 
29
- spec.add_dependency 'activerecord', ['>= 3.2', '< 4.1']
29
+ spec.add_dependency 'activerecord', ['>= 3.2', '< 4.2']
30
30
  spec.add_dependency 'activesupport'
31
31
  end
32
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoped_associations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-10 00:00:00.000000000 Z
11
+ date: 2014-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,7 +89,7 @@ dependencies:
89
89
  version: '3.2'
90
90
  - - <
91
91
  - !ruby/object:Gem::Version
92
- version: '4.1'
92
+ version: '4.2'
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: '3.2'
100
100
  - - <
101
101
  - !ruby/object:Gem::Version
102
- version: '4.1'
102
+ version: '4.2'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: activesupport
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -130,9 +130,8 @@ files:
130
130
  - README.md
131
131
  - Rakefile
132
132
  - gemfiles/activerecord3.gemfile
133
- - gemfiles/activerecord3.gemfile.lock
134
133
  - gemfiles/activerecord4.gemfile
135
- - gemfiles/activerecord4.gemfile.lock
134
+ - gemfiles/activerecord41.gemfile
136
135
  - lib/scoped_associations.rb
137
136
  - lib/scoped_associations/activerecord3/has_many.rb
138
137
  - lib/scoped_associations/activerecord3/has_one.rb
@@ -163,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
162
  version: '0'
164
163
  requirements: []
165
164
  rubyforge_project:
166
- rubygems_version: 2.0.14
165
+ rubygems_version: 2.2.2
167
166
  signing_key:
168
167
  specification_version: 4
169
168
  summary: Create multiple `has_to` and `has_many` associations between two ActiveRecord
@@ -1,72 +0,0 @@
1
- PATH
2
- remote: /Users/stefanoverna/code/github/scoped_associations
3
- specs:
4
- scoped_associations (0.0.2)
5
- activerecord (>= 3.2, < 4.1)
6
- activesupport
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activemodel (3.2.14)
12
- activesupport (= 3.2.14)
13
- builder (~> 3.0.0)
14
- activerecord (3.2.14)
15
- activemodel (= 3.2.14)
16
- activesupport (= 3.2.14)
17
- arel (~> 3.0.2)
18
- tzinfo (~> 0.3.29)
19
- activesupport (3.2.14)
20
- i18n (~> 0.6, >= 0.6.4)
21
- multi_json (~> 1.0)
22
- appraisal (0.5.2)
23
- bundler
24
- rake
25
- arel (3.0.3)
26
- builder (3.0.4)
27
- coveralls (0.7.0)
28
- multi_json (~> 1.3)
29
- rest-client
30
- simplecov (>= 0.7)
31
- term-ansicolor
32
- thor
33
- diff-lcs (1.2.5)
34
- docile (1.1.3)
35
- i18n (0.6.9)
36
- mime-types (2.1)
37
- multi_json (1.8.4)
38
- rake (10.1.1)
39
- rest-client (1.6.7)
40
- mime-types (>= 1.16)
41
- rspec (2.14.1)
42
- rspec-core (~> 2.14.0)
43
- rspec-expectations (~> 2.14.0)
44
- rspec-mocks (~> 2.14.0)
45
- rspec-core (2.14.7)
46
- rspec-expectations (2.14.5)
47
- diff-lcs (>= 1.1.3, < 2.0)
48
- rspec-mocks (2.14.5)
49
- simplecov (0.8.2)
50
- docile (~> 1.1.0)
51
- multi_json
52
- simplecov-html (~> 0.8.0)
53
- simplecov-html (0.8.0)
54
- sqlite3 (1.3.8)
55
- term-ansicolor (1.3.0)
56
- tins (~> 1.0)
57
- thor (0.18.1)
58
- tins (1.0.0)
59
- tzinfo (0.3.38)
60
-
61
- PLATFORMS
62
- ruby
63
-
64
- DEPENDENCIES
65
- activerecord (= 3.2.14)
66
- appraisal
67
- bundler (~> 1.3)
68
- coveralls
69
- rake
70
- rspec
71
- scoped_associations!
72
- sqlite3
@@ -1,80 +0,0 @@
1
- PATH
2
- remote: /Users/stefanoverna/code/github/scoped_associations
3
- specs:
4
- scoped_associations (0.0.2)
5
- activerecord (>= 3.2, < 4.1)
6
- activesupport
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activemodel (4.0.2)
12
- activesupport (= 4.0.2)
13
- builder (~> 3.1.0)
14
- activerecord (4.0.2)
15
- activemodel (= 4.0.2)
16
- activerecord-deprecated_finders (~> 1.0.2)
17
- activesupport (= 4.0.2)
18
- arel (~> 4.0.0)
19
- activerecord-deprecated_finders (1.0.3)
20
- activesupport (4.0.2)
21
- i18n (~> 0.6, >= 0.6.4)
22
- minitest (~> 4.2)
23
- multi_json (~> 1.3)
24
- thread_safe (~> 0.1)
25
- tzinfo (~> 0.3.37)
26
- appraisal (0.5.2)
27
- bundler
28
- rake
29
- arel (4.0.2)
30
- atomic (1.1.14)
31
- builder (3.1.4)
32
- coveralls (0.7.0)
33
- multi_json (~> 1.3)
34
- rest-client
35
- simplecov (>= 0.7)
36
- term-ansicolor
37
- thor
38
- diff-lcs (1.2.5)
39
- docile (1.1.3)
40
- i18n (0.6.9)
41
- mime-types (2.1)
42
- minitest (4.7.5)
43
- multi_json (1.8.4)
44
- rake (10.1.1)
45
- rest-client (1.6.7)
46
- mime-types (>= 1.16)
47
- rspec (2.14.1)
48
- rspec-core (~> 2.14.0)
49
- rspec-expectations (~> 2.14.0)
50
- rspec-mocks (~> 2.14.0)
51
- rspec-core (2.14.7)
52
- rspec-expectations (2.14.5)
53
- diff-lcs (>= 1.1.3, < 2.0)
54
- rspec-mocks (2.14.5)
55
- simplecov (0.8.2)
56
- docile (~> 1.1.0)
57
- multi_json
58
- simplecov-html (~> 0.8.0)
59
- simplecov-html (0.8.0)
60
- sqlite3 (1.3.8)
61
- term-ansicolor (1.3.0)
62
- tins (~> 1.0)
63
- thor (0.18.1)
64
- thread_safe (0.1.3)
65
- atomic
66
- tins (1.0.0)
67
- tzinfo (0.3.38)
68
-
69
- PLATFORMS
70
- ruby
71
-
72
- DEPENDENCIES
73
- activerecord (= 4.0.2)
74
- appraisal
75
- bundler (~> 1.3)
76
- coveralls
77
- rake
78
- rspec
79
- scoped_associations!
80
- sqlite3