dase 5.0.0 → 5.1.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 +4 -4
- data/.travis.yml +8 -1
- data/README.md +9 -5
- data/dase.gemspec +2 -2
- data/lib/dase/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96bed01281202184b72a0ee9be77356796a466d4
|
|
4
|
+
data.tar.gz: 0b96c597bbd2a1a7355406c5f8f53f1563805671
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed6fec2810b13200238383a3a97575e9c64b5ce918cbc8d0950f9a6a9cf98c6326e0050e05e67c87cba114c6cad380e072efc3cad1fb79e89ee563e1169d4bbf
|
|
7
|
+
data.tar.gz: 832a821c73234c8553f47035131b23bb055be14873369242fe66f4bdf343f4e57ed66ac30639913e1535170ca8c346f75acd320e6879b689969d72c9a87d5840
|
data/.travis.yml
CHANGED
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,8 +49,7 @@ 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.
|
|
53
|
-
| 5.1.x | gem 'dase', '~> 5.1.0' |
|
|
52
|
+
| 4.2.0.beta2 | gem 'dase', :github => 'vovayartsev/dase', :branch => 'rails-4-2' |
|
|
54
53
|
|
|
55
54
|
## Under the hood
|
|
56
55
|
|
|
@@ -71,7 +70,7 @@ Dase calculates counters dynamically every time you make an SQL query. It makes
|
|
|
71
70
|
## Name origin
|
|
72
71
|
|
|
73
72
|
The gem is named by the german mathematician [Johann Dase](http://en.wikipedia.org/wiki/Zacharias_Dase),
|
|
74
|
-
who was a [mental calculator](http://en.wikipedia.org/wiki/Mental_calculator) and could add and multiply numbers very quickly.
|
|
73
|
+
who was a [mental calculator](http://en.wikipedia.org/wiki/Mental_calculator) and could add and multiply numbers very quickly.
|
|
75
74
|
|
|
76
75
|
## Contributing
|
|
77
76
|
|
|
@@ -83,4 +82,9 @@ who was a [mental calculator](http://en.wikipedia.org/wiki/Mental_calculator) an
|
|
|
83
82
|
|
|
84
83
|
|
|
85
84
|
|
|
86
|
-
[](https://bitdeli.com/free "Bitdeli Badge")
|
|
85
|
+
[](https://bitdeli.com/free "Bitdeli Badge")
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
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", "~> 5.
|
|
16
|
+
gem.add_runtime_dependency "activesupport", "~> 5.1", '>= 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', "~> 5.
|
|
21
|
+
gem.add_runtime_dependency 'activerecord', "~> 5.1", '>= 5.1.4'
|
|
22
22
|
gem.add_development_dependency 'sqlite3', '~> 1.3'
|
|
23
23
|
end
|
|
24
24
|
|
data/lib/dase/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vladimir Yartsev
|
|
@@ -16,8 +16,8 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '5.
|
|
20
|
-
- - "
|
|
19
|
+
version: '5.1'
|
|
20
|
+
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 5.1.4
|
|
23
23
|
type: :runtime
|
|
@@ -26,8 +26,8 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - "~>"
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '5.
|
|
30
|
-
- - "
|
|
29
|
+
version: '5.1'
|
|
30
|
+
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 5.1.4
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
@@ -36,8 +36,8 @@ dependencies:
|
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '5.
|
|
40
|
-
- - "
|
|
39
|
+
version: '5.1'
|
|
40
|
+
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
42
|
version: 5.1.4
|
|
43
43
|
type: :runtime
|
|
@@ -46,8 +46,8 @@ dependencies:
|
|
|
46
46
|
requirements:
|
|
47
47
|
- - "~>"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '5.
|
|
50
|
-
- - "
|
|
49
|
+
version: '5.1'
|
|
50
|
+
- - ">="
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: 5.1.4
|
|
53
53
|
- !ruby/object:Gem::Dependency
|