active_record_association_query_economizer 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c512b60190cebde831ca82b0a42671d657499e37
4
- data.tar.gz: 874cce3d0678a84dd1532add0ed804c6b4cb14c1
3
+ metadata.gz: d3bf6f9975e94c0152faa0356d8780a72c529830
4
+ data.tar.gz: ce2d5a6352a314cca8328b35e8d7a3841dd6ba76
5
5
  SHA512:
6
- metadata.gz: 9547a824bd77a70b631363dff07e42f5ecb11a4f880560fc3e1aa3a00bf15cf30c4a2a0d78685d59a7c07cb8014cf07624886e30d1eca2907cdeccf2a4a86616
7
- data.tar.gz: f5ec72a45ed44dab2dfcf2f9658d8766982a96d4d1b510ee195d5dbee03d134f3bd1cf82697ae87f0ae6b88bc4da0df087a1e894f00aaa13a106a248bfb1e021
6
+ metadata.gz: 75224dcf9871c2d0c54e754345c8fce629a79621c2e5fdf0b221aa76494327122379a22c08b1558bf7f822ef2f3a3a64464140612f5c8ed65a98f30bce453566
7
+ data.tar.gz: 665ab4162f21c71e197d5229672dc67785d362b516edade9179c28dcac98b00edf4adc19a70d12eb0bc1bee7244d49682a1a5605250d96a66c7ce9703e17ac1f
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ActiveRecordAssociationQueryEconomizer
2
2
 
3
- Enables to define preloading conditions in the arguments of `has_many`.
3
+ Enables to define preloading conditions in the arguments of `has_one` / `has_many`.
4
4
 
5
5
  Condition is defined as an array of symbolized method name or Proc object.
6
6
 
@@ -48,13 +48,31 @@ end
48
48
 
49
49
  ## Contributing
50
50
 
51
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/active_record_association_query_economizer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/negito6/active_record_association_query_economizer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
52
+
53
+ ## Development
54
+
55
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
56
+
57
+ ### Install develop version
58
+ ```
59
+ cd /path/to/dir
60
+ git clone git@github.com/negito6/active_record_association_query_economizer.git
61
+ cd active_record_association_query_economizer
62
+ rake build
63
+ gem install pkg/active_record_association_query_economizer-X.Y.Z.gem
64
+ ```
52
65
 
53
66
  ### Testing
54
67
  ```
55
68
  $ rake test:all
56
69
  ```
57
70
 
71
+ Run test for ActiveRecord version X.Y.Z
72
+ ```
73
+ $ rake test:activerecord-X.Y.Z
74
+ ```
75
+
58
76
  ## License
59
77
 
60
78
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "bundler", "~> 1.13"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency 'minitest'
25
- spec.add_development_dependency 'sqlite3', '~> 1.3'
25
+ spec.add_development_dependency 'sqlite3', '~> 1.3.6'
26
26
 
27
- spec.add_runtime_dependency 'activerecord', '>= 4.2', '<= 5.2.0'
27
+ spec.add_runtime_dependency 'activerecord', '>= 4.2', '< 5.3'
28
28
  end
@@ -8,5 +8,5 @@ when Gem::Requirement.create(['>= 4.2', '< 5'])
8
8
  when Gem::Requirement.create(['>= 5.0', '<= 5.2.0'])
9
9
  require 'active_record_association_query_economizer/rails5/associations'
10
10
  else
11
- Kernel.warn "active_record_association_query_economizer doesn't yet do anything on ActiveRecord #{activerecord_version}"
11
+ Kernel.warn "active_record_association_query_economizer does nothing on ActiveRecord #{activerecord_version} because not supported."
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordAssociationQueryEconomizer
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_association_query_economizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - toru.yagi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-29 00:00:00.000000000 Z
11
+ date: 2019-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.3'
61
+ version: 1.3.6
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.3'
68
+ version: 1.3.6
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activerecord
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -73,9 +73,9 @@ dependencies:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '4.2'
76
- - - "<="
76
+ - - "<"
77
77
  - !ruby/object:Gem::Version
78
- version: 5.2.0
78
+ version: '5.3'
79
79
  type: :runtime
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -83,9 +83,9 @@ dependencies:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '4.2'
86
- - - "<="
86
+ - - "<"
87
87
  - !ruby/object:Gem::Version
88
- version: 5.2.0
88
+ version: '5.3'
89
89
  description:
90
90
  email:
91
91
  executables: []
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.5.2
130
+ rubygems_version: 2.5.2.3
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Optimize queries of ActiveRecord preload functions.