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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83dba25350831a0d7be00ac7b2682113c512eccc6197265aa32033b7a5df70ff
4
- data.tar.gz: faaf95d3df9d484497fed6e260fcef0bccac91d13f92a29cb9616771becb5ee6
3
+ metadata.gz: d907de27fded6b459dbff8787f939019823dc589ab3922df031afbdc891a63c5
4
+ data.tar.gz: 1282d91b22bebf374f39ac90f8cac489325c76b2abea949ce5c4c88343739228
5
5
  SHA512:
6
- metadata.gz: de5ad2aed4440bd810880f6200db09b2e97550c73c39716bf18d3afb060f44e4b95bd7da8b3a1fdc74ac6e022be1ea59518bc79f51113351952a7e9cedf9f979
7
- data.tar.gz: 0ee7091b52d833d4da0bf3588549857ec371f81731a269ae51d52879c2f74a163b07cd89cec866dd22f5acec0c05b30fbeebebc5dab558cabc2da65b53975026
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
@@ -1,3 +1,7 @@
1
+ ## v1.0.0 (2019 Jul 17)
2
+
3
+ * FIX: Respect default_scopes for relationships (@boblail)
4
+
1
5
  ## v1.0.0.rc2 (2019 Jun 17)
2
6
 
3
7
  * FEATURE: Add structured attributes to allow nesting attributes as a hash (@kobsy)
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6.0.0.rc1"
6
+ gem "sqlite3", "~> 1.4.0"
7
+
8
+ gemspec path: "../"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module PluckMapPresenter
2
- VERSION = "1.0.0.rc2"
2
+ VERSION = "1.0.0"
3
3
  end
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.rc2
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-06-18 00:00:00.000000000 Z
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: 1.3.1
302
+ version: '0'
302
303
  requirements: []
303
304
  rubyforge_project:
304
305
  rubygems_version: 2.7.6