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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3250f8da33d6536b495ad242be6bddd601288bfb19f0219719fa462e7e1b9fd
4
- data.tar.gz: 72fe7450d6e2ed88dc05dbcf570106ed108656d8c9f52179b77f3c0a06b7c691
3
+ metadata.gz: ea2352c56ddf2e281b3954518bb3cfac5d313f856a61669def868a2ca6f6c4bf
4
+ data.tar.gz: e90b778c496bdb303f89e4c8d5168c1fc4ad1f7a6a339f7a1112d88dfe41e068
5
5
  SHA512:
6
- metadata.gz: 921d9cbc16cc268ef1db0b12f1d0288d24365300a7af285f8719fb0cf60d0bd2407978a6959065ae4fefa9656cc4e292e0a3c3a363a273f73a73e0008e97e7cc
7
- data.tar.gz: 1d42083e9e933d6e5a9f0ea61aaff2d5ddda63e05341f926a5e68420ec886f501cbf86064efaf8227202e0d0feb9d192ed42590ce88b9cc967bd0bd04b4934cd
6
+ metadata.gz: 639bd59f84e78749e62475f3ffd445ef11a50a4e06298c0c30dd033be61027b1e65dcca5dc2e3bdfe6a6c196ff9e435e8cce322118945f717e8e4320598090db
7
+ data.tar.gz: 67316cce70185936dfd37279e8e90d87d782c67d01b507c5e22c34cdd1cceeaaafd18a3307eb2acbff14ec57f7f2666e23b9491f00b86c4b647498e8965c83bb
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  /_yardoc/
5
5
  /coverage/
6
6
  /doc/
7
+ /gemfiles/*.gemfile.lock
7
8
  /pkg/
8
9
  /spec/reports/
9
10
  /tmp/
data/.rspec CHANGED
File without changes
File without changes
@@ -2,13 +2,18 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.3.8
5
- - 2.4.5
6
- - 2.5.3
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
- before_install: gem install bundler -v 1.16.1
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
@@ -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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Yuji Hanamura
3
+ Copyright (c) 2018-2020 Yuji Hanamura
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
@@ -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", "~> 1.14"
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.0"
32
+ spec.add_development_dependency "sqlite3", "~> 1.3.13"
32
33
  end
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org/"
4
4
 
5
5
  gem "activerecord", "~> 4.2.0"
6
+ gem "activesupport", "~> 4.2.0"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org/"
4
4
 
5
5
  gem "activerecord", "~> 5.0.0"
6
+ gem "activesupport", "~> 5.0.0"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org/"
4
4
 
5
5
  gem "activerecord", "~> 5.1.0"
6
+ gem "activesupport", "~> 5.1.0"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org/"
4
4
 
5
5
  gem "activerecord", "~> 5.2.0"
6
+ gem "activesupport", "~> 5.2.0"
6
7
 
7
8
  gemspec path: "../"
@@ -1,11 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "activerecord/pick/version"
4
- require "active_record"
5
- require "activerecord/pick/relation/calculations"
6
- require "activerecord/pick/querying"
4
+ require "active_support/lazy_load_hooks"
7
5
 
8
- module ActiveRecord
9
- module Pick
10
- end
6
+ ActiveSupport.on_load(:active_record) do
7
+ require "activerecord/pick/relation/calculations"
8
+ require "activerecord/pick/querying"
11
9
  end
File without changes
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module Pick
5
- VERSION = "0.1.2"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
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.1.2
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: 2018-11-06 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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
- rubyforge_project:
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