deep_pluck 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +0 -0
- data/.github/workflows/ruby.yml +1 -1
- data/.gitignore +0 -0
- data/.rubocop.yml +0 -0
- data/CHANGELOG.md +15 -11
- data/CODE_OF_CONDUCT.md +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/deep_pluck.gemspec +1 -1
- data/gemfiles/3.2.gemfile +0 -0
- data/gemfiles/4.2.gemfile +0 -0
- data/gemfiles/5.0.gemfile +0 -0
- data/gemfiles/5.1.gemfile +0 -0
- data/gemfiles/5.2.gemfile +0 -0
- data/gemfiles/6.0.gemfile +0 -0
- data/gemfiles/6.1.gemfile +0 -0
- data/lib/deep_pluck.rb +0 -0
- data/lib/deep_pluck/data_combiner.rb +0 -0
- data/lib/deep_pluck/model.rb +0 -0
- data/lib/deep_pluck/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e7d7f2e3046068becf1488f871fa7c6dca77a49d96e5d73dc28fc04990f4f3c
|
4
|
+
data.tar.gz: 0316dc765cd0c74f9ccc2620a6134858737ea79f289237d7228e627429cb7bda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4adb7b51b8574b0beed0dd77dafd6fc6a95b2b783bdb6f4b657452551c9527c9466be49d62f4fc3340c00c9a52db649f350f8350587f652ed0053c31ad97c10
|
7
|
+
data.tar.gz: 5c1ef10f49b8f35e08d31098ab2a0b9069ab04302c1f4ba7d781cd3d7e2331dfcff6c95adcf739d31c160023e013e1582ae43dff3ab1e966da0ddef5a483707a
|
data/.github/FUNDING.yml
CHANGED
File without changes
|
data/.github/workflows/ruby.yml
CHANGED
@@ -56,7 +56,7 @@ jobs:
|
|
56
56
|
- name: Run tests
|
57
57
|
run: bundle exec rake
|
58
58
|
- name: Publish code coverage
|
59
|
-
if: ${{ success() }}
|
59
|
+
if: ${{ success() && github.event.pull_request.head.repo.full_name == github.repository }}
|
60
60
|
uses: paambaati/codeclimate-action@v2.7.5
|
61
61
|
env:
|
62
62
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
data/.gitignore
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
## Change Log
|
2
2
|
|
3
|
+
### [v1.1.6](https://github.com/khiav223577/deep_pluck/compare/v1.1.5...v1.1.6) 2021/02/09
|
4
|
+
- [#43](https://github.com/khiav223577/deep_pluck/pull/43) Fix has_and_belongs_to_many issues when it does not specify "through" table (@khiav223577)
|
5
|
+
- [#42](https://github.com/khiav223577/deep_pluck/pull/42) Migrating from Travis CI to GitHub Actions (@khiav223577)
|
6
|
+
|
3
7
|
### [v1.1.5](https://github.com/khiav223577/deep_pluck/compare/v1.1.4...v1.1.5) 2021/01/10
|
4
8
|
- [#39](https://github.com/khiav223577/deep_pluck/pull/39) Compatibility with Rails 6.1.1 (@klausbadelt)
|
5
9
|
- [#40](https://github.com/khiav223577/deep_pluck/pull/40) Exclude tests from coverage (@klausbadelt)
|
6
10
|
|
7
11
|
### [v1.1.4](https://github.com/khiav223577/deep_pluck/compare/v1.1.3...v1.1.4) 2020/01/13
|
8
|
-
- [#36](https://github.com/khiav223577/deep_pluck/pull/36) A workaround to fix mismatched association named
|
12
|
+
- [#36](https://github.com/khiav223577/deep_pluck/pull/36) A workaround to fix mismatched association named (@khiav223577)
|
9
13
|
- [#35](https://github.com/khiav223577/deep_pluck/pull/35) Support Ruby 2.7 (@khiav223577)
|
10
14
|
|
11
15
|
### [v1.1.3](https://github.com/khiav223577/deep_pluck/compare/v1.1.2...v1.1.3) 2019/12/17
|
@@ -22,7 +26,7 @@
|
|
22
26
|
- [#26](https://github.com/khiav223577/deep_pluck/pull/26) Fix: `id` may disappear when plucking at model instance (@khiav223577)
|
23
27
|
- [#25](https://github.com/khiav223577/deep_pluck/pull/25) Refactor - move models definition to separate files (@khiav223577)
|
24
28
|
- [#24](https://github.com/khiav223577/deep_pluck/pull/24) test Rails 5.2 (@khiav223577)
|
25
|
-
- [#23](https://github.com/khiav223577/deep_pluck/pull/23) should test both 5.0.x and 5.1.x (@khiav223577)
|
29
|
+
- [#23](https://github.com/khiav223577/deep_pluck/pull/23) It should test both 5.0.x and 5.1.x (@khiav223577)
|
26
30
|
- [#22](https://github.com/khiav223577/deep_pluck/pull/22) #deep_pluck at active model without plucking deeply will cause ArgumentError (@khiav223577)
|
27
31
|
- [#20](https://github.com/khiav223577/deep_pluck/pull/20) [ENHANCE] Eliminate Extra Select Loop in Hash Lookup (@berniechiu)
|
28
32
|
|
@@ -31,25 +35,25 @@
|
|
31
35
|
- [#18](https://github.com/khiav223577/deep_pluck/pull/18) Add rubocop and Improve code quality (@khiav223577)
|
32
36
|
|
33
37
|
### [v1.0.3](https://github.com/khiav223577/deep_pluck/compare/v1.0.2...v1.0.3) 2017/06/30
|
34
|
-
- [#15](https://github.com/khiav223577/deep_pluck/pull/15)
|
38
|
+
- [#15](https://github.com/khiav223577/deep_pluck/pull/15) Test deep_pluck in rails 5.1.x (@khiav223577)
|
35
39
|
- [#14](https://github.com/khiav223577/deep_pluck/pull/14) Handle polymorphic associations correctly. (@Bogadon)
|
36
40
|
|
37
41
|
### [v1.0.0](https://github.com/khiav223577/deep_pluck/compare/v0.1.4...v1.0.0) 2017/03/28
|
38
|
-
- [#12](https://github.com/khiav223577/deep_pluck/pull/12)
|
42
|
+
- [#12](https://github.com/khiav223577/deep_pluck/pull/12) Reduce cyclomatic complexity in model.rb (@khiav223577)
|
39
43
|
|
40
44
|
### [v0.1.4](https://github.com/khiav223577/deep_pluck/compare/v0.1.3...v0.1.4) 2017/03/27
|
41
45
|
- [#11](https://github.com/khiav223577/deep_pluck/pull/11) Fix conditional associations (@khiav223577)
|
42
46
|
|
43
47
|
### [v0.1.3](https://github.com/khiav223577/deep_pluck/compare/v0.1.2...v0.1.3) 2017/03/20
|
44
|
-
- [#10](https://github.com/khiav223577/deep_pluck/pull/10)
|
45
|
-
- [#9](https://github.com/khiav223577/deep_pluck/pull/9)
|
48
|
+
- [#10](https://github.com/khiav223577/deep_pluck/pull/10) Fix custom foreign_key, custom primary_key issues (@khiav223577)
|
49
|
+
- [#9](https://github.com/khiav223577/deep_pluck/pull/9) Fix has_and_belongs_to_many (@khiav223577)
|
46
50
|
|
47
51
|
### [v0.1.2](https://github.com/khiav223577/deep_pluck/compare/v0.1.1...v0.1.2) 2017/03/17
|
48
|
-
- [#8](https://github.com/khiav223577/deep_pluck/pull/8)
|
49
|
-
- [#7](https://github.com/khiav223577/deep_pluck/pull/7)
|
52
|
+
- [#8](https://github.com/khiav223577/deep_pluck/pull/8) Fix that some need columns are missing (@khiav223577)
|
53
|
+
- [#7](https://github.com/khiav223577/deep_pluck/pull/7) Raise error message when association not found (@khiav223577)
|
50
54
|
|
51
55
|
### [v0.1.1](https://github.com/khiav223577/deep_pluck/compare/v0.1.0...v0.1.1) 2017/03/16
|
52
|
-
- [#6](https://github.com/khiav223577/deep_pluck/pull/6)
|
56
|
+
- [#6](https://github.com/khiav223577/deep_pluck/pull/6) Fix deep_pluck with #joins (@khiav223577)
|
53
57
|
|
54
58
|
### [v0.1.0](https://github.com/khiav223577/deep_pluck/compare/v0.0.4...v0.1.0) 2017/03/15
|
55
59
|
- [#5](https://github.com/khiav223577/deep_pluck/pull/5) Support pluck many-to-many associations (@khiav223577)
|
@@ -58,10 +62,10 @@
|
|
58
62
|
- [#4](https://github.com/khiav223577/deep_pluck/pull/4) Fix use deep_pluck on NullRelation will raise exception and prevent unneeded query. (@khiav223577)
|
59
63
|
|
60
64
|
### [v0.0.3](https://github.com/khiav223577/deep_pluck/compare/v0.0.2...v0.0.3) 2017/03/06
|
61
|
-
- [#3](https://github.com/khiav223577/deep_pluck/pull/3)
|
65
|
+
- [#3](https://github.com/khiav223577/deep_pluck/pull/3) Support more than two level (@khiav223577)
|
62
66
|
|
63
67
|
### [v0.0.2](https://github.com/khiav223577/deep_pluck/compare/v0.0.1...v0.0.2) 2017/03/06
|
64
68
|
- [#2](https://github.com/khiav223577/deep_pluck/pull/2) The result of has_one association should not be array (@khiav223577)
|
65
69
|
|
66
70
|
### v0.0.1 2017/03/04
|
67
|
-
- [#1](https://github.com/khiav223577/deep_pluck/pull/1)
|
71
|
+
- [#1](https://github.com/khiav223577/deep_pluck/pull/1) Implement deep_pluck (@khiav223577)
|
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/bin/console
CHANGED
File without changes
|
data/bin/setup
CHANGED
File without changes
|
data/deep_pluck.gemspec
CHANGED
data/gemfiles/3.2.gemfile
CHANGED
File without changes
|
data/gemfiles/4.2.gemfile
CHANGED
File without changes
|
data/gemfiles/5.0.gemfile
CHANGED
File without changes
|
data/gemfiles/5.1.gemfile
CHANGED
File without changes
|
data/gemfiles/5.2.gemfile
CHANGED
File without changes
|
data/gemfiles/6.0.gemfile
CHANGED
File without changes
|
data/gemfiles/6.1.gemfile
CHANGED
File without changes
|
data/lib/deep_pluck.rb
CHANGED
File without changes
|
File without changes
|
data/lib/deep_pluck/model.rb
CHANGED
File without changes
|
data/lib/deep_pluck/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deep_pluck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khiav reoy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.0.
|
109
|
+
version: 0.0.4
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: 0.0.
|
116
|
+
version: 0.0.4
|
117
117
|
description: 'Use deep_pluck as a shortcut to select one or more attributes and include
|
118
118
|
associated models without loading a bunch of records. And DRY up your code when
|
119
119
|
using #as_json.'
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
|
-
rubygems_version: 3.
|
173
|
+
rubygems_version: 3.2.14
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Use deep_pluck as a shortcut to select one or more attributes and include
|