dase 4.2.1 → 5.0.0

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: 54d72938545dc976310e9eb9492532577a85d58d
4
- data.tar.gz: 25a7833a534e02a941064d54bf0db3e70279182c
3
+ metadata.gz: 0d42f2f6bf205d546db57406749a4935e6fe3e1d
4
+ data.tar.gz: 19839d040347fa604178b5f41e9df9b8698a7ec7
5
5
  SHA512:
6
- metadata.gz: ede367340a017004ca683a8c354fe754c848561e540104856a22305dc3286e0b9daaa7dabcd08bc1240ff74ebba1423f1a03a69084bec496f9d981aff974d488
7
- data.tar.gz: 531aaeadbb790956b4d3649d1fe2c27e9f71af655343a20db05adabb64ef6fcd8ce8b9047905fe1ac7464a1e3ba6622c2dfe929649668f83d86a58d6d6572a0e
6
+ metadata.gz: c5c8fdee1fc38c543b4aeb92563b2b85a23a28f1b82c051e448807772df8a33ead27837a4c5f87a135cd6e388e3c1befedcf3a819b641054c291a414ba40e6bc
7
+ data.tar.gz: 54e1c5977247e364655a58aa779239ad4724deb305809933521078b61a7d3032583fbe89e22b1a51207bbb8bb082d8bf525cb55f6de780c6075d434286db38cd
data/.travis.yml CHANGED
@@ -1,10 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "1.9.3"
4
- - "2.1.4"
5
- #- rbx-19mode
6
- #- jruby-19mode # JRuby in 1.9 mode
7
-
8
- # uncomment this line if your project needs to run something other than `rake`:
9
- # script: bundle exec rspec spec
10
-
3
+ - "2.4.0"
data/README.md CHANGED
@@ -24,7 +24,7 @@ you can now write this:
24
24
 
25
25
  with conditions on associated records (only articles in year 2012)
26
26
  ```
27
- Author.includes_count_of(:articles, where: {year: 2012} )
27
+ Author.includes_count_of(:articles, where: {year: 2012} )
28
28
  ```
29
29
 
30
30
  using lambda syntax (in v4.1 and greater)
@@ -49,7 +49,8 @@ with multiple associations counted at once
49
49
  | 3.2.x | gem 'dase', '~> 3.2.0' |
50
50
  | 4.0.x | ----- N/A ----- |
51
51
  | 4.1.x | gem 'dase', '~> 4.1.0' |
52
- | 4.2.0.beta2 | gem 'dase', :github => 'vovayartsev/dase', :branch => 'rails-4-2' |
52
+ | 4.2.x | gem 'dase', '~> 4.2.0' |
53
+ | 5.1.x | gem 'dase', '~> 5.1.0' |
53
54
 
54
55
  ## Under the hood
55
56
 
@@ -70,7 +71,7 @@ Dase calculates counters dynamically every time you make an SQL query. It makes
70
71
  ## Name origin
71
72
 
72
73
  The gem is named by the german mathematician [Johann Dase](http://en.wikipedia.org/wiki/Zacharias_Dase),
73
- who was a [mental calculator](http://en.wikipedia.org/wiki/Mental_calculator) and could add and multiply numbers very quickly.
74
+ who was a [mental calculator](http://en.wikipedia.org/wiki/Mental_calculator) and could add and multiply numbers very quickly.
74
75
 
75
76
  ## Contributing
76
77
 
@@ -82,9 +83,4 @@ who was a [mental calculator](http://en.wikipedia.org/wiki/Mental_calculator) an
82
83
 
83
84
 
84
85
 
85
- [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/vovayartsev/dase/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
86
-
87
-
88
-
89
-
90
-
86
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/vovayartsev/dase/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
data/dase.gemspec CHANGED
@@ -13,12 +13,12 @@ Gem::Specification.new do |gem|
13
13
  gem.summary = %q{Provides includes_count_of method on ActiveRecord::Relation to count associated records efficiently}
14
14
  gem.homepage = "https://github.com/vovayartsev/dase"
15
15
 
16
- gem.add_runtime_dependency "activesupport", "~> 4.2", '>= 4.2.10'
16
+ gem.add_runtime_dependency "activesupport", "~> 5.0", '<5.1.4'
17
17
 
18
18
  if defined? JRUBY_VERSION
19
19
  gem.add_development_dependency 'activerecord-jdbcsqlite3-adapter'
20
20
  else
21
- gem.add_runtime_dependency 'activerecord', '~> 4.2', '>= 4.2.10'
21
+ gem.add_runtime_dependency 'activerecord', "~> 5.0", '<5.1.4'
22
22
  gem.add_development_dependency 'sqlite3', '~> 1.3'
23
23
  end
24
24
 
data/lib/dase/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dase
2
- VERSION = '4.2.1'
2
+ VERSION = '5.0.0'
3
3
  end
File without changes
data/test/test_dase.rb CHANGED
@@ -78,9 +78,9 @@ describe 'includes_count_of' do
78
78
  assert_equal true_counts, dase_counts, "results mismatch"
79
79
  end
80
80
 
81
- it 'should allow merge (nil) on a scope with includes_count_of' do
82
- assert_equal 3, Author.includes_count_of(:books).merge(nil).all.size
83
- end
81
+ # it 'should allow merge (nil) on a scope with includes_count_of' do
82
+ # assert_equal 3, Author.includes_count_of(:books).merge(nil).all.size
83
+ # end
84
84
 
85
85
  # pending "apply: lambda {where...}"
86
86
 
@@ -113,4 +113,3 @@ describe 'includes_count_of' do
113
113
  assert_equal [1, 3, 0], dase_count, "dase countings failed" # see books.yml
114
114
  end
115
115
  end
116
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dase
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Yartsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-14 00:00:00.000000000 Z
11
+ date: 2017-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
20
- - - ">="
19
+ version: '5.0'
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 4.2.10
22
+ version: 5.1.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
30
- - - ">="
29
+ version: '5.0'
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 4.2.10
32
+ version: 5.1.4
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activerecord
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '4.2'
40
- - - ">="
39
+ version: '5.0'
40
+ - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 4.2.10
42
+ version: 5.1.4
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '4.2'
50
- - - ">="
49
+ version: '5.0'
50
+ - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 4.2.10
52
+ version: 5.1.4
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: sqlite3
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -112,6 +112,7 @@ files:
112
112
  - lib/dase/preloader.rb
113
113
  - lib/dase/preloader_methods.rb
114
114
  - lib/dase/version.rb
115
+ - test/fixtures/ar_internal_metadata.yml
115
116
  - test/fixtures/author.rb
116
117
  - test/fixtures/authors.yml
117
118
  - test/fixtures/book.rb
@@ -149,6 +150,7 @@ specification_version: 4
149
150
  summary: Provides includes_count_of method on ActiveRecord::Relation to count associated
150
151
  records efficiently
151
152
  test_files:
153
+ - test/fixtures/ar_internal_metadata.yml
152
154
  - test/fixtures/author.rb
153
155
  - test/fixtures/authors.yml
154
156
  - test/fixtures/book.rb