pluck_map 1.0.0.rc2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +5 -0
- data/CHANGELOG.md +4 -0
- data/gemfiles/rails_6.0.gemfile +8 -0
- data/lib/pluck_map/relationships.rb +5 -1
- data/lib/pluck_map/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d907de27fded6b459dbff8787f939019823dc589ab3922df031afbdc891a63c5
|
4
|
+
data.tar.gz: 1282d91b22bebf374f39ac90f8cac489325c76b2abea949ce5c4c88343739228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af29f7f130881691cd7ec5d49b6fbb781fb2f21c16bb4762682a77e00404098806f94b70e0fdce488966a52a6be2859a783fb3fdc4a94f2ed3912ec1b55dd220
|
7
|
+
data.tar.gz: 9993639be1838a7653501b52df366f318b7b67032adb481e72d7ad675b0e470264af87fb4b16e834814d9e26856e8fd24582a0edf8429c243d27d3e4795fdfbe
|
data/Appraisals
CHANGED
@@ -19,6 +19,11 @@ appraise "rails-5.2" do
|
|
19
19
|
gem "sqlite3", "~> 1.3.6"
|
20
20
|
end
|
21
21
|
|
22
|
+
appraise "rails-6.0" do
|
23
|
+
gem "activerecord", "~> 6.0.0.rc1"
|
24
|
+
gem "sqlite3", "~> 1.4.0"
|
25
|
+
end
|
26
|
+
|
22
27
|
appraise "rails-edge" do
|
23
28
|
gem "rails", git: "https://github.com/rails/rails.git", branch: "master", require: "activerecord"
|
24
29
|
gem "sqlite3", "~> 1.4.0"
|
data/CHANGELOG.md
CHANGED
@@ -53,7 +53,11 @@ module PluckMap
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def scope_for(association)
|
56
|
-
AssociationScope.create.scope(association)
|
56
|
+
default_scope_for(association).merge(AssociationScope.create.scope(association))
|
57
|
+
end
|
58
|
+
|
59
|
+
def default_scope_for(association)
|
60
|
+
association.klass.all
|
57
61
|
end
|
58
62
|
|
59
63
|
# ActiveRecord constructs an Association from a Reflection and an
|
data/lib/pluck_map/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pluck_map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -255,6 +255,7 @@ files:
|
|
255
255
|
- gemfiles/rails_5.0.gemfile
|
256
256
|
- gemfiles/rails_5.1.gemfile
|
257
257
|
- gemfiles/rails_5.2.gemfile
|
258
|
+
- gemfiles/rails_6.0.gemfile
|
258
259
|
- gemfiles/rails_edge.gemfile
|
259
260
|
- lib/pluck_map.rb
|
260
261
|
- lib/pluck_map/association_scope.rb
|
@@ -296,9 +297,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
296
297
|
version: '0'
|
297
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
299
|
requirements:
|
299
|
-
- - "
|
300
|
+
- - ">="
|
300
301
|
- !ruby/object:Gem::Version
|
301
|
-
version:
|
302
|
+
version: '0'
|
302
303
|
requirements: []
|
303
304
|
rubyforge_project:
|
304
305
|
rubygems_version: 2.7.6
|