activerecord-pick 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/.travis.yml +8 -3
- data/CHANGELOG.md +8 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +1 -1
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/activerecord-pick.gemspec +3 -2
- data/gemfiles/activerecord_4.2.gemfile +1 -0
- data/gemfiles/activerecord_5.0.gemfile +1 -0
- data/gemfiles/activerecord_5.1.gemfile +1 -0
- data/gemfiles/activerecord_5.2.gemfile +1 -0
- data/lib/activerecord/pick.rb +4 -6
- data/lib/activerecord/pick/querying.rb +0 -0
- data/lib/activerecord/pick/relation/calculations.rb +0 -0
- data/lib/activerecord/pick/version.rb +1 -1
- metadata +27 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea2352c56ddf2e281b3954518bb3cfac5d313f856a61669def868a2ca6f6c4bf
|
4
|
+
data.tar.gz: e90b778c496bdb303f89e4c8d5168c1fc4ad1f7a6a339f7a1112d88dfe41e068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 639bd59f84e78749e62475f3ffd445ef11a50a4e06298c0c30dd033be61027b1e65dcca5dc2e3bdfe6a6c196ff9e435e8cce322118945f717e8e4320598090db
|
7
|
+
data.tar.gz: 67316cce70185936dfd37279e8e90d87d782c67d01b507c5e22c34cdd1cceeaaafd18a3307eb2acbff14ec57f7f2666e23b9491f00b86c4b647498e8965c83bb
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.travis.yml
CHANGED
@@ -2,13 +2,18 @@ sudo: false
|
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
4
|
- 2.3.8
|
5
|
-
- 2.4.
|
6
|
-
- 2.5.
|
5
|
+
- 2.4.9
|
6
|
+
- 2.5.7
|
7
|
+
- 2.6.5
|
8
|
+
- 2.7.0
|
7
9
|
gemfile:
|
8
10
|
- gemfiles/activerecord_4.2.gemfile
|
9
11
|
- gemfiles/activerecord_5.0.gemfile
|
10
12
|
- gemfiles/activerecord_5.1.gemfile
|
11
13
|
- gemfiles/activerecord_5.2.gemfile
|
12
|
-
|
14
|
+
matrix:
|
15
|
+
exclude:
|
16
|
+
- rvm: 2.7.0
|
17
|
+
gemfile: gemfiles/activerecord_4.2.gemfile
|
13
18
|
script:
|
14
19
|
- bundle exec rake spec
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
3
|
|
4
|
+
## 0.2.0 (2020-01-08)
|
5
|
+
|
6
|
+
* Modify to load extension using lazy loading hook
|
7
|
+
* [PR#13](https://github.com/yujideveloper/activerecord-pick/pull/13)
|
8
|
+
* Support Ruby 2.6 and 2.7
|
9
|
+
|
10
|
+
|
4
11
|
## 0.1.2 (2018-11-06)
|
5
12
|
|
6
13
|
* Support Rails 5.2
|
@@ -10,6 +17,7 @@
|
|
10
17
|
## 0.1.1 (2018-03-09)
|
11
18
|
|
12
19
|
* Add `delegate :pick, to: :all`
|
20
|
+
* [PR#1](https://github.com/yujideveloper/activerecord-pick/pull/1)
|
13
21
|
|
14
22
|
|
15
23
|
## 0.1.0 (2018-03-03)
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/activerecord-pick.gemspec
CHANGED
@@ -23,10 +23,11 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
25
|
spec.add_dependency "activerecord", ">= 4.2", "< 6.0"
|
26
|
+
spec.add_dependency "activesupport", ">= 4.2", "< 6.0"
|
26
27
|
|
27
|
-
spec.add_development_dependency "bundler", "
|
28
|
+
spec.add_development_dependency "bundler", ">= 1.14"
|
28
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
29
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
30
31
|
spec.add_development_dependency "rubocop", ">= 0.51.0"
|
31
|
-
spec.add_development_dependency "sqlite3", "~> 1.
|
32
|
+
spec.add_development_dependency "sqlite3", "~> 1.3.13"
|
32
33
|
end
|
data/lib/activerecord/pick.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "activerecord/pick/version"
|
4
|
-
require "
|
5
|
-
require "activerecord/pick/relation/calculations"
|
6
|
-
require "activerecord/pick/querying"
|
4
|
+
require "active_support/lazy_load_hooks"
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
ActiveSupport.on_load(:active_record) do
|
7
|
+
require "activerecord/pick/relation/calculations"
|
8
|
+
require "activerecord/pick/querying"
|
11
9
|
end
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-pick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Hanamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -30,18 +30,38 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: activesupport
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.2'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '6.0'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '4.2'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '6.0'
|
33
53
|
- !ruby/object:Gem::Dependency
|
34
54
|
name: bundler
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|
36
56
|
requirements:
|
37
|
-
- - "
|
57
|
+
- - ">="
|
38
58
|
- !ruby/object:Gem::Version
|
39
59
|
version: '1.14'
|
40
60
|
type: :development
|
41
61
|
prerelease: false
|
42
62
|
version_requirements: !ruby/object:Gem::Requirement
|
43
63
|
requirements:
|
44
|
-
- - "
|
64
|
+
- - ">="
|
45
65
|
- !ruby/object:Gem::Version
|
46
66
|
version: '1.14'
|
47
67
|
- !ruby/object:Gem::Dependency
|
@@ -92,14 +112,14 @@ dependencies:
|
|
92
112
|
requirements:
|
93
113
|
- - "~>"
|
94
114
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
115
|
+
version: 1.3.13
|
96
116
|
type: :development
|
97
117
|
prerelease: false
|
98
118
|
version_requirements: !ruby/object:Gem::Requirement
|
99
119
|
requirements:
|
100
120
|
- - "~>"
|
101
121
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
122
|
+
version: 1.3.13
|
103
123
|
description: This gem provides the functionality of ActiveRecord::Relation#pick for
|
104
124
|
Rails 5 and 4.2 apps.
|
105
125
|
email:
|
@@ -147,8 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
167
|
- !ruby/object:Gem::Version
|
148
168
|
version: '0'
|
149
169
|
requirements: []
|
150
|
-
|
151
|
-
rubygems_version: 2.7.6
|
170
|
+
rubygems_version: 3.0.3
|
152
171
|
signing_key:
|
153
172
|
specification_version: 4
|
154
173
|
summary: This gem provides the functionality of ActiveRecord::Relation#pick for Rails
|