assignable_values 0.13.0 → 0.13.1
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/.travis.yml +5 -0
- data/gemfiles/Gemfile.2.3.lock +1 -1
- data/gemfiles/Gemfile.3.2.lock +1 -1
- data/gemfiles/Gemfile.4.2.lock +1 -1
- data/gemfiles/Gemfile.5.0.lock +1 -1
- data/gemfiles/Gemfile.5.1 +16 -0
- data/gemfiles/Gemfile.5.1.lock +68 -0
- data/lib/assignable_values/active_record/restriction/belongs_to_association.rb +1 -3
- data/lib/assignable_values/version.rb +1 -1
- data/spec/assignable_values/active_record_spec.rb +0 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c64f8e5f3fa58f5d618e5f38b34700b78c7448e1
|
|
4
|
+
data.tar.gz: b90a4dc2764d21648b4a05aacc82df635d66c344
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4775a81d5bf1cf18e5b91aa4bebe4f0115f304a23d8c64430f38239cf32df51b7ca9b60b0a8d053d206886c2c279249ea01067dd11ea05e89006dfac33fbf687
|
|
7
|
+
data.tar.gz: 3681d4acbc2c467654806b955aa12d3e5325442ef02dfec8409b3ce9329c2d0478e701ecc64f8bd48c9569929fb526f952229b0f2563cc6c258d2f4e3cd8b920
|
data/.travis.yml
CHANGED
|
@@ -10,6 +10,7 @@ gemfile:
|
|
|
10
10
|
- gemfiles/Gemfile.3.2
|
|
11
11
|
- gemfiles/Gemfile.4.2
|
|
12
12
|
- gemfiles/Gemfile.5.0
|
|
13
|
+
- gemfiles/Gemfile.5.1
|
|
13
14
|
|
|
14
15
|
matrix:
|
|
15
16
|
exclude:
|
|
@@ -25,6 +26,10 @@ matrix:
|
|
|
25
26
|
rvm: 2.1.8
|
|
26
27
|
- gemfile: gemfiles/Gemfile.5.0
|
|
27
28
|
rvm: 1.8.7
|
|
29
|
+
- gemfile: gemfiles/Gemfile.5.1
|
|
30
|
+
rvm: 2.1.8
|
|
31
|
+
- gemfile: gemfiles/Gemfile.5.1
|
|
32
|
+
rvm: 1.8.7
|
|
28
33
|
|
|
29
34
|
sudo: false
|
|
30
35
|
|
data/gemfiles/Gemfile.2.3.lock
CHANGED
data/gemfiles/Gemfile.3.2.lock
CHANGED
data/gemfiles/Gemfile.4.2.lock
CHANGED
data/gemfiles/Gemfile.5.0.lock
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
|
|
3
|
+
# Runtime dependencies
|
|
4
|
+
gem 'activerecord', '~>5.1.0'
|
|
5
|
+
gem 'i18n'
|
|
6
|
+
gem 'mysql2'
|
|
7
|
+
|
|
8
|
+
# Development dependencies
|
|
9
|
+
gem 'rake'
|
|
10
|
+
gem 'database_cleaner'
|
|
11
|
+
gem 'rspec'
|
|
12
|
+
gem 'rspec_candy'
|
|
13
|
+
gem 'gemika'
|
|
14
|
+
|
|
15
|
+
# Gem under test
|
|
16
|
+
gem 'assignable_values', :path => '..'
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
assignable_values (0.13.1)
|
|
5
|
+
activerecord (>= 2.3)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
activemodel (5.1.4)
|
|
11
|
+
activesupport (= 5.1.4)
|
|
12
|
+
activerecord (5.1.4)
|
|
13
|
+
activemodel (= 5.1.4)
|
|
14
|
+
activesupport (= 5.1.4)
|
|
15
|
+
arel (~> 8.0)
|
|
16
|
+
activesupport (5.1.4)
|
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
|
+
i18n (~> 0.7)
|
|
19
|
+
minitest (~> 5.1)
|
|
20
|
+
tzinfo (~> 1.1)
|
|
21
|
+
arel (8.0.0)
|
|
22
|
+
concurrent-ruby (1.0.5)
|
|
23
|
+
database_cleaner (1.6.1)
|
|
24
|
+
diff-lcs (1.3)
|
|
25
|
+
gemika (0.3.2)
|
|
26
|
+
i18n (0.9.0)
|
|
27
|
+
concurrent-ruby (~> 1.0)
|
|
28
|
+
minitest (5.10.3)
|
|
29
|
+
mysql2 (0.4.9)
|
|
30
|
+
rake (12.1.0)
|
|
31
|
+
rspec (3.7.0)
|
|
32
|
+
rspec-core (~> 3.7.0)
|
|
33
|
+
rspec-expectations (~> 3.7.0)
|
|
34
|
+
rspec-mocks (~> 3.7.0)
|
|
35
|
+
rspec-core (3.7.0)
|
|
36
|
+
rspec-support (~> 3.7.0)
|
|
37
|
+
rspec-expectations (3.7.0)
|
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
39
|
+
rspec-support (~> 3.7.0)
|
|
40
|
+
rspec-mocks (3.7.0)
|
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
42
|
+
rspec-support (~> 3.7.0)
|
|
43
|
+
rspec-support (3.7.0)
|
|
44
|
+
rspec_candy (0.4.1)
|
|
45
|
+
rspec
|
|
46
|
+
sneaky-save
|
|
47
|
+
sneaky-save (0.1.2)
|
|
48
|
+
activerecord (>= 3.2.0)
|
|
49
|
+
thread_safe (0.3.6)
|
|
50
|
+
tzinfo (1.2.3)
|
|
51
|
+
thread_safe (~> 0.1)
|
|
52
|
+
|
|
53
|
+
PLATFORMS
|
|
54
|
+
ruby
|
|
55
|
+
|
|
56
|
+
DEPENDENCIES
|
|
57
|
+
activerecord (~> 5.1.0)
|
|
58
|
+
assignable_values!
|
|
59
|
+
database_cleaner
|
|
60
|
+
gemika
|
|
61
|
+
i18n
|
|
62
|
+
mysql2
|
|
63
|
+
rake
|
|
64
|
+
rspec
|
|
65
|
+
rspec_candy
|
|
66
|
+
|
|
67
|
+
BUNDLED WITH
|
|
68
|
+
1.15.4
|
|
@@ -320,7 +320,6 @@ describe AssignableValues::ActiveRecord do
|
|
|
320
320
|
record = klass.new
|
|
321
321
|
record.stub(:artist => association, :artist_id => -1) # This is a stale association: The associated object's id doesn't match the foreign key. This can happen in Rails 2, not Rails 3.
|
|
322
322
|
record.should_receive(:artist).ordered.and_return(association)
|
|
323
|
-
record.should_receive(:artist).ordered.with(true).and_return(association)
|
|
324
323
|
record.valid?
|
|
325
324
|
end
|
|
326
325
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: assignable_values
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.13.
|
|
4
|
+
version: 0.13.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henning Koch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -48,6 +48,8 @@ files:
|
|
|
48
48
|
- gemfiles/Gemfile.4.2.lock
|
|
49
49
|
- gemfiles/Gemfile.5.0
|
|
50
50
|
- gemfiles/Gemfile.5.0.lock
|
|
51
|
+
- gemfiles/Gemfile.5.1
|
|
52
|
+
- gemfiles/Gemfile.5.1.lock
|
|
51
53
|
- lib/assignable_values.rb
|
|
52
54
|
- lib/assignable_values/active_record.rb
|
|
53
55
|
- lib/assignable_values/active_record/restriction/base.rb
|
|
@@ -85,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
85
87
|
version: '0'
|
|
86
88
|
requirements: []
|
|
87
89
|
rubyforge_project:
|
|
88
|
-
rubygems_version: 2.6.
|
|
90
|
+
rubygems_version: 2.6.6
|
|
89
91
|
signing_key:
|
|
90
92
|
specification_version: 4
|
|
91
93
|
summary: Restrict the values assignable to ActiveRecord attributes or associations
|
|
@@ -98,3 +100,4 @@ test_files:
|
|
|
98
100
|
- spec/support/database.travis.yml
|
|
99
101
|
- spec/support/i18n.yml
|
|
100
102
|
- spec/support/models.rb
|
|
103
|
+
has_rdoc:
|