running_count 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +82 -98
- data/Rakefile +3 -1
- data/lib/running_count.rb +13 -3
- data/lib/running_count/callbacks.rb +1 -1
- data/lib/running_count/counter.rb +6 -8
- data/lib/running_count/storage.rb +4 -4
- data/lib/running_count/version.rb +5 -1
- data/running_count.gemspec +15 -23
- metadata +20 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145ddc284043b30d75e6aa9dad7804ec8941c334206f08553b27c616658fe35a
|
4
|
+
data.tar.gz: 2b45cb121fab92ed39ea3ddbc26bb881c9efb4fd8f4aad4cd4e7ef9b3fffa3db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e916e41be73b6a57a0b7c64abb111a86537f93c6857a33ef1f2f99f2d2515315648da889f4de9227f0dc6dbb557c7c721cf002feb95a78708cc3bf20a1da1e
|
7
|
+
data.tar.gz: 51114565664c71f6d115d784414fe0628fd9cb4214849acfa4e770677c6303030d9dce8c4ae8315fa93f8b00dbb4560b3ac6e0eeea61f1b5580c344212e7169e
|
data/Gemfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source "https://rubygems.org"
|
2
4
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
5
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
6
|
|
5
7
|
# Specify your gem's dependencies in running_count.gemspec
|
6
8
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -4,177 +4,161 @@ PATH
|
|
4
4
|
running_count (0.2.8)
|
5
5
|
activesupport
|
6
6
|
pg (>= 0.20.0)
|
7
|
-
redis
|
7
|
+
redis
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actioncable (6.0.
|
13
|
-
actionpack (= 6.0.
|
12
|
+
actioncable (6.0.3.2)
|
13
|
+
actionpack (= 6.0.3.2)
|
14
14
|
nio4r (~> 2.0)
|
15
15
|
websocket-driver (>= 0.6.1)
|
16
|
-
actionmailbox (6.0.
|
17
|
-
actionpack (= 6.0.
|
18
|
-
activejob (= 6.0.
|
19
|
-
activerecord (= 6.0.
|
20
|
-
activestorage (= 6.0.
|
21
|
-
activesupport (= 6.0.
|
16
|
+
actionmailbox (6.0.3.2)
|
17
|
+
actionpack (= 6.0.3.2)
|
18
|
+
activejob (= 6.0.3.2)
|
19
|
+
activerecord (= 6.0.3.2)
|
20
|
+
activestorage (= 6.0.3.2)
|
21
|
+
activesupport (= 6.0.3.2)
|
22
22
|
mail (>= 2.7.1)
|
23
|
-
actionmailer (6.0.
|
24
|
-
actionpack (= 6.0.
|
25
|
-
actionview (= 6.0.
|
26
|
-
activejob (= 6.0.
|
23
|
+
actionmailer (6.0.3.2)
|
24
|
+
actionpack (= 6.0.3.2)
|
25
|
+
actionview (= 6.0.3.2)
|
26
|
+
activejob (= 6.0.3.2)
|
27
27
|
mail (~> 2.5, >= 2.5.4)
|
28
28
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (6.0.
|
30
|
-
actionview (= 6.0.
|
31
|
-
activesupport (= 6.0.
|
32
|
-
rack (~> 2.0)
|
29
|
+
actionpack (6.0.3.2)
|
30
|
+
actionview (= 6.0.3.2)
|
31
|
+
activesupport (= 6.0.3.2)
|
32
|
+
rack (~> 2.0, >= 2.0.8)
|
33
33
|
rack-test (>= 0.6.3)
|
34
34
|
rails-dom-testing (~> 2.0)
|
35
35
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
-
actiontext (6.0.
|
37
|
-
actionpack (= 6.0.
|
38
|
-
activerecord (= 6.0.
|
39
|
-
activestorage (= 6.0.
|
40
|
-
activesupport (= 6.0.
|
36
|
+
actiontext (6.0.3.2)
|
37
|
+
actionpack (= 6.0.3.2)
|
38
|
+
activerecord (= 6.0.3.2)
|
39
|
+
activestorage (= 6.0.3.2)
|
40
|
+
activesupport (= 6.0.3.2)
|
41
41
|
nokogiri (>= 1.8.5)
|
42
|
-
actionview (6.0.
|
43
|
-
activesupport (= 6.0.
|
42
|
+
actionview (6.0.3.2)
|
43
|
+
activesupport (= 6.0.3.2)
|
44
44
|
builder (~> 3.1)
|
45
45
|
erubi (~> 1.4)
|
46
46
|
rails-dom-testing (~> 2.0)
|
47
47
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
48
|
-
activejob (6.0.
|
49
|
-
activesupport (= 6.0.
|
48
|
+
activejob (6.0.3.2)
|
49
|
+
activesupport (= 6.0.3.2)
|
50
50
|
globalid (>= 0.3.6)
|
51
|
-
activemodel (6.0.
|
52
|
-
activesupport (= 6.0.
|
53
|
-
activerecord (6.0.
|
54
|
-
activemodel (= 6.0.
|
55
|
-
activesupport (= 6.0.
|
56
|
-
activestorage (6.0.
|
57
|
-
actionpack (= 6.0.
|
58
|
-
activejob (= 6.0.
|
59
|
-
activerecord (= 6.0.
|
51
|
+
activemodel (6.0.3.2)
|
52
|
+
activesupport (= 6.0.3.2)
|
53
|
+
activerecord (6.0.3.2)
|
54
|
+
activemodel (= 6.0.3.2)
|
55
|
+
activesupport (= 6.0.3.2)
|
56
|
+
activestorage (6.0.3.2)
|
57
|
+
actionpack (= 6.0.3.2)
|
58
|
+
activejob (= 6.0.3.2)
|
59
|
+
activerecord (= 6.0.3.2)
|
60
60
|
marcel (~> 0.3.1)
|
61
|
-
activesupport (6.0.
|
61
|
+
activesupport (6.0.3.2)
|
62
62
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
63
63
|
i18n (>= 0.7, < 2)
|
64
64
|
minitest (~> 5.1)
|
65
65
|
tzinfo (~> 1.1)
|
66
|
-
zeitwerk (~> 2.2)
|
67
|
-
builder (3.2.
|
68
|
-
concurrent-ruby (1.1.
|
69
|
-
crass (1.0.
|
70
|
-
database_cleaner (1.
|
71
|
-
diff-lcs (1.
|
66
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
67
|
+
builder (3.2.4)
|
68
|
+
concurrent-ruby (1.1.7)
|
69
|
+
crass (1.0.6)
|
70
|
+
database_cleaner (1.8.5)
|
71
|
+
diff-lcs (1.4.4)
|
72
72
|
erubi (1.9.0)
|
73
73
|
globalid (0.4.2)
|
74
74
|
activesupport (>= 4.2.0)
|
75
|
-
i18n (1.
|
75
|
+
i18n (1.8.5)
|
76
76
|
concurrent-ruby (~> 1.0)
|
77
|
-
loofah (2.
|
77
|
+
loofah (2.6.0)
|
78
78
|
crass (~> 1.0.2)
|
79
79
|
nokogiri (>= 1.5.9)
|
80
80
|
mail (2.7.1)
|
81
81
|
mini_mime (>= 0.1.1)
|
82
82
|
marcel (0.3.3)
|
83
83
|
mimemagic (~> 0.3.2)
|
84
|
-
method_source (0.
|
85
|
-
mimemagic (0.3.
|
84
|
+
method_source (1.0.0)
|
85
|
+
mimemagic (0.3.5)
|
86
86
|
mini_mime (1.0.2)
|
87
87
|
mini_portile2 (2.4.0)
|
88
|
-
minitest (5.
|
88
|
+
minitest (5.14.1)
|
89
89
|
nio4r (2.5.2)
|
90
|
-
nokogiri (1.10.
|
90
|
+
nokogiri (1.10.10)
|
91
91
|
mini_portile2 (~> 2.4.0)
|
92
|
-
pg (1.
|
93
|
-
rack (2.
|
92
|
+
pg (1.2.3)
|
93
|
+
rack (2.2.3)
|
94
94
|
rack-test (1.1.0)
|
95
95
|
rack (>= 1.0, < 3)
|
96
|
-
rails (6.0.
|
97
|
-
actioncable (= 6.0.
|
98
|
-
actionmailbox (= 6.0.
|
99
|
-
actionmailer (= 6.0.
|
100
|
-
actionpack (= 6.0.
|
101
|
-
actiontext (= 6.0.
|
102
|
-
actionview (= 6.0.
|
103
|
-
activejob (= 6.0.
|
104
|
-
activemodel (= 6.0.
|
105
|
-
activerecord (= 6.0.
|
106
|
-
activestorage (= 6.0.
|
107
|
-
activesupport (= 6.0.
|
96
|
+
rails (6.0.3.2)
|
97
|
+
actioncable (= 6.0.3.2)
|
98
|
+
actionmailbox (= 6.0.3.2)
|
99
|
+
actionmailer (= 6.0.3.2)
|
100
|
+
actionpack (= 6.0.3.2)
|
101
|
+
actiontext (= 6.0.3.2)
|
102
|
+
actionview (= 6.0.3.2)
|
103
|
+
activejob (= 6.0.3.2)
|
104
|
+
activemodel (= 6.0.3.2)
|
105
|
+
activerecord (= 6.0.3.2)
|
106
|
+
activestorage (= 6.0.3.2)
|
107
|
+
activesupport (= 6.0.3.2)
|
108
108
|
bundler (>= 1.3.0)
|
109
|
-
railties (= 6.0.
|
109
|
+
railties (= 6.0.3.2)
|
110
110
|
sprockets-rails (>= 2.0.0)
|
111
111
|
rails-dom-testing (2.0.3)
|
112
112
|
activesupport (>= 4.2.0)
|
113
113
|
nokogiri (>= 1.6)
|
114
114
|
rails-html-sanitizer (1.3.0)
|
115
115
|
loofah (~> 2.3)
|
116
|
-
railties (6.0.
|
117
|
-
actionpack (= 6.0.
|
118
|
-
activesupport (= 6.0.
|
116
|
+
railties (6.0.3.2)
|
117
|
+
actionpack (= 6.0.3.2)
|
118
|
+
activesupport (= 6.0.3.2)
|
119
119
|
method_source
|
120
120
|
rake (>= 0.8.7)
|
121
121
|
thor (>= 0.20.3, < 2.0)
|
122
122
|
rake (13.0.1)
|
123
|
-
redis (4.1
|
124
|
-
redis-actionpack (5.1.0)
|
125
|
-
actionpack (>= 4.0, < 7)
|
126
|
-
redis-rack (>= 1, < 3)
|
127
|
-
redis-store (>= 1.1.0, < 2)
|
128
|
-
redis-activesupport (5.2.0)
|
129
|
-
activesupport (>= 3, < 7)
|
130
|
-
redis-store (>= 1.3, < 2)
|
131
|
-
redis-rack (2.0.6)
|
132
|
-
rack (>= 1.5, < 3)
|
133
|
-
redis-store (>= 1.2, < 2)
|
134
|
-
redis-rails (5.0.2)
|
135
|
-
redis-actionpack (>= 5.0, < 6)
|
136
|
-
redis-activesupport (>= 5.0, < 6)
|
137
|
-
redis-store (>= 1.2, < 2)
|
138
|
-
redis-store (1.8.1)
|
139
|
-
redis (>= 4, < 5)
|
123
|
+
redis (4.2.1)
|
140
124
|
rspec (3.9.0)
|
141
125
|
rspec-core (~> 3.9.0)
|
142
126
|
rspec-expectations (~> 3.9.0)
|
143
127
|
rspec-mocks (~> 3.9.0)
|
144
|
-
rspec-core (3.9.
|
145
|
-
rspec-support (~> 3.9.
|
146
|
-
rspec-expectations (3.9.
|
128
|
+
rspec-core (3.9.2)
|
129
|
+
rspec-support (~> 3.9.3)
|
130
|
+
rspec-expectations (3.9.2)
|
147
131
|
diff-lcs (>= 1.2.0, < 2.0)
|
148
132
|
rspec-support (~> 3.9.0)
|
149
|
-
rspec-mocks (3.9.
|
133
|
+
rspec-mocks (3.9.1)
|
150
134
|
diff-lcs (>= 1.2.0, < 2.0)
|
151
135
|
rspec-support (~> 3.9.0)
|
152
|
-
rspec-support (3.9.
|
153
|
-
sprockets (4.0.
|
136
|
+
rspec-support (3.9.3)
|
137
|
+
sprockets (4.0.2)
|
154
138
|
concurrent-ruby (~> 1.0)
|
155
139
|
rack (> 1, < 3)
|
156
140
|
sprockets-rails (3.2.1)
|
157
141
|
actionpack (>= 4.0)
|
158
142
|
activesupport (>= 4.0)
|
159
143
|
sprockets (>= 3.0.0)
|
160
|
-
thor (0.
|
144
|
+
thor (1.0.1)
|
161
145
|
thread_safe (0.3.6)
|
162
|
-
tzinfo (1.2.
|
146
|
+
tzinfo (1.2.7)
|
163
147
|
thread_safe (~> 0.1)
|
164
|
-
websocket-driver (0.7.
|
148
|
+
websocket-driver (0.7.3)
|
165
149
|
websocket-extensions (>= 0.1.0)
|
166
|
-
websocket-extensions (0.1.
|
167
|
-
zeitwerk (2.
|
150
|
+
websocket-extensions (0.1.5)
|
151
|
+
zeitwerk (2.4.0)
|
168
152
|
|
169
153
|
PLATFORMS
|
170
154
|
ruby
|
171
155
|
|
172
156
|
DEPENDENCIES
|
173
|
-
database_cleaner
|
157
|
+
database_cleaner
|
174
158
|
rails
|
175
|
-
rake
|
176
|
-
rspec
|
159
|
+
rake
|
160
|
+
rspec
|
177
161
|
running_count!
|
178
162
|
|
179
163
|
BUNDLED WITH
|
180
|
-
2.
|
164
|
+
2.1.4
|
data/Rakefile
CHANGED
data/lib/running_count.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
3
|
+
require "active_support/concern"
|
4
|
+
require "active_support/lazy_load_hooks"
|
5
|
+
require "redis"
|
6
6
|
|
7
7
|
require "running_count/callbacks"
|
8
8
|
require "running_count/counter"
|
@@ -11,10 +11,20 @@ require "running_count/format"
|
|
11
11
|
require "running_count/storage"
|
12
12
|
|
13
13
|
module RunningCount
|
14
|
+
|
14
15
|
class Error < StandardError; end
|
16
|
+
|
17
|
+
class << self
|
18
|
+
|
19
|
+
attr_accessor :redis
|
20
|
+
|
21
|
+
end
|
22
|
+
|
15
23
|
end
|
16
24
|
|
17
25
|
# extend ActiveRecord with our own code here
|
18
26
|
ActiveSupport.on_load(:active_record) do
|
19
27
|
include RunningCount::Callbacks
|
28
|
+
RunningCount.redis ||= $redis # rubocop:disable Style/GlobalVars
|
29
|
+
RunningCount.redis ||= REDIS if defined?(REDIS)
|
20
30
|
end
|
@@ -12,7 +12,7 @@ module RunningCount
|
|
12
12
|
.tap do |sums, counts|
|
13
13
|
sums.each { |data| Counter.enqueue_sum(record, data) }
|
14
14
|
counts.each { |data| Counter.enqueue_count(record, data) }
|
15
|
-
|
15
|
+
end
|
16
16
|
end
|
17
17
|
|
18
18
|
def enqueue_sum(record, counter_data)
|
@@ -28,7 +28,7 @@ module RunningCount
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def enqueue_count(record, counter_data)
|
31
|
-
if changed_field = counter_data[:changed_field]
|
31
|
+
if (changed_field = counter_data[:changed_field])
|
32
32
|
return true unless record.previous_changes.has_key?(changed_field) && counter_data[:if].call(record)
|
33
33
|
end
|
34
34
|
|
@@ -39,11 +39,9 @@ module RunningCount
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def enqueue_deletion(record, counter_data)
|
42
|
-
counter_data
|
43
|
-
.
|
44
|
-
|
45
|
-
Counter.enqueue_single_delete(record, data)
|
46
|
-
end
|
42
|
+
counter_data.each_value do |data|
|
43
|
+
Counter.enqueue_single_delete(record, data)
|
44
|
+
end
|
47
45
|
end
|
48
46
|
|
49
47
|
def enqueue_single_delete(record, data)
|
@@ -52,7 +50,7 @@ module RunningCount
|
|
52
50
|
amount = amount_from_deleted_record(record, data)
|
53
51
|
|
54
52
|
Storage.add_item(item, data[:running_set_name], 0 - amount)
|
55
|
-
rescue StandardError =>
|
53
|
+
rescue StandardError => exception
|
56
54
|
end
|
57
55
|
|
58
56
|
def reconcile_changes(counter_data)
|
@@ -7,18 +7,18 @@ module RunningCount
|
|
7
7
|
|
8
8
|
def scores(running_set_name, item = nil)
|
9
9
|
if item
|
10
|
-
|
10
|
+
RunningCount.redis.zscore(running_set_name, item)
|
11
11
|
else
|
12
|
-
|
12
|
+
RunningCount.redis.zrange(running_set_name, 0, -1, with_scores: true)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
16
|
def add_item(item, running_set_name, amount)
|
17
|
-
|
17
|
+
RunningCount.redis.zincrby(running_set_name, amount || 1, item)
|
18
18
|
end
|
19
19
|
|
20
20
|
def clear_item(item, running_set_name)
|
21
|
-
|
21
|
+
RunningCount.redis.zrem(running_set_name, item)
|
22
22
|
end
|
23
23
|
|
24
24
|
end
|
data/running_count.gemspec
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "running_count/version"
|
3
|
+
require_relative "lib/running_count/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
6
|
spec.name = "running_count"
|
@@ -9,27 +8,20 @@ Gem::Specification.new do |spec|
|
|
9
8
|
spec.authors = ["Isaac Priestley"]
|
10
9
|
spec.email = ["isaac@teachable.com"]
|
11
10
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
spec.homepage = "
|
11
|
+
spec.summary = "Counter caches for Rails applications, including cached running counts."
|
12
|
+
spec.description = "Counter caches for Rails applications, including cached running counts. Using redis and native PostgreSQL features for performance gains"
|
13
|
+
spec.homepage = "https://github.com/UseFedora/running_count"
|
15
14
|
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
23
|
-
spec.metadata["source_code_uri"] = "http://github.com/usefedora/running_count"
|
24
|
-
spec.metadata["changelog_uri"] = "http://github.com/usefedora/running_count"
|
25
|
-
else
|
26
|
-
raise "RubyGems 2.0 or newer is required to protect against " \
|
27
|
-
"public gem pushes."
|
28
|
-
end
|
17
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/UseFedora/running_count"
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/UseFedora/running_count"
|
29
21
|
|
30
22
|
# Specify which files should be added to the gem when it is released.
|
31
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
32
|
-
spec.files
|
24
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
33
25
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
34
26
|
end
|
35
27
|
spec.bindir = "exe"
|
@@ -37,11 +29,11 @@ Gem::Specification.new do |spec|
|
|
37
29
|
spec.require_paths = ["lib"]
|
38
30
|
|
39
31
|
spec.add_dependency "activesupport"
|
40
|
-
spec.add_dependency "redis
|
32
|
+
spec.add_dependency "redis"
|
41
33
|
spec.add_dependency "pg", ">= 0.20.0"
|
42
34
|
|
43
|
-
spec.add_development_dependency "rake"
|
44
|
-
spec.add_development_dependency "rspec"
|
35
|
+
spec.add_development_dependency "rake"
|
36
|
+
spec.add_development_dependency "rspec"
|
45
37
|
spec.add_development_dependency "rails"
|
46
|
-
spec.add_development_dependency "database_cleaner"
|
38
|
+
spec.add_development_dependency "database_cleaner"
|
47
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: running_count
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Priestley
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: redis
|
28
|
+
name: redis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pg
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
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: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,15 +100,16 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
111
|
-
description:
|
110
|
+
version: '0'
|
111
|
+
description: Counter caches for Rails applications, including cached running counts.
|
112
|
+
Using redis and native PostgreSQL features for performance gains
|
112
113
|
email:
|
113
114
|
- isaac@teachable.com
|
114
115
|
executables: []
|
@@ -134,14 +135,14 @@ files:
|
|
134
135
|
- lib/running_count/storage.rb
|
135
136
|
- lib/running_count/version.rb
|
136
137
|
- running_count.gemspec
|
137
|
-
homepage:
|
138
|
+
homepage: https://github.com/UseFedora/running_count
|
138
139
|
licenses:
|
139
140
|
- MIT
|
140
141
|
metadata:
|
141
142
|
allowed_push_host: https://rubygems.org
|
142
|
-
homepage_uri:
|
143
|
-
source_code_uri:
|
144
|
-
changelog_uri:
|
143
|
+
homepage_uri: https://github.com/UseFedora/running_count
|
144
|
+
source_code_uri: https://github.com/UseFedora/running_count
|
145
|
+
changelog_uri: https://github.com/UseFedora/running_count
|
145
146
|
post_install_message:
|
146
147
|
rdoc_options: []
|
147
148
|
require_paths:
|
@@ -150,15 +151,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
151
|
requirements:
|
151
152
|
- - ">="
|
152
153
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
154
|
+
version: 2.3.0
|
154
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
156
|
requirements:
|
156
157
|
- - ">="
|
157
158
|
- !ruby/object:Gem::Version
|
158
159
|
version: '0'
|
159
160
|
requirements: []
|
160
|
-
rubygems_version: 3.0.
|
161
|
+
rubygems_version: 3.0.8
|
161
162
|
signing_key:
|
162
163
|
specification_version: 4
|
163
|
-
summary:
|
164
|
+
summary: Counter caches for Rails applications, including cached running counts.
|
164
165
|
test_files: []
|