lite-redis 1.0.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +81 -75
- data/lib/lite/redis/helpers/string_helper.rb +4 -6
- data/lib/lite/redis/version.rb +1 -1
- data/lite-redis.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe6ed04a6a9ab1b783f2794945cd7a7dc71f9f6a7a31676a2b0c6e7f5b694eb
|
4
|
+
data.tar.gz: bd31712a935a984c00b34251aacc80b5a8d6cb655e830de725949b0a585fd0bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bb1b7d5c0a8cd365659485a81019a8f6134b496d76b03f41a3cfd744971867783bd25511d29a4b7da383dbe66ec53c9b7d3040e46a8067a01b192bbd9fe03b9
|
7
|
+
data.tar.gz: a908627460933ff42a5ee702e8bf7da6610484122ef87a758efae44a47bce74933b2f4a989435ae838a9d8748323748d2f71a2c06173be6f3c2a54ebe508fc6f
|
data/.rubocop.yml
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
require:
|
2
2
|
- rubocop-performance
|
3
|
+
- rubocop-rake
|
3
4
|
- rubocop-rspec
|
4
5
|
AllCops:
|
5
|
-
TargetRubyVersion:
|
6
|
+
TargetRubyVersion: 3.0
|
6
7
|
NewCops: enable
|
7
8
|
DisplayCopNames: true
|
8
9
|
DisplayStyleGuide: true
|
10
|
+
Gemspec/RequiredRubyVersion:
|
11
|
+
Enabled: false
|
9
12
|
Layout/EmptyLinesAroundAttributeAccessor:
|
10
13
|
Enabled: true
|
11
14
|
Layout/EmptyLinesAroundBlockBody:
|
@@ -27,12 +30,16 @@ Metrics/BlockLength:
|
|
27
30
|
Exclude:
|
28
31
|
- 'spec/**/**/*'
|
29
32
|
- '*.gemspec'
|
33
|
+
Naming/InclusiveLanguage:
|
34
|
+
Enabled: false
|
30
35
|
RSpec/EmptyExampleGroup:
|
31
36
|
Enabled: false
|
32
37
|
RSpec/ExampleLength:
|
33
38
|
Enabled: false
|
34
39
|
RSpec/MultipleExpectations:
|
35
40
|
Enabled: false
|
41
|
+
Style/ArgumentsForwarding:
|
42
|
+
Enabled: false
|
36
43
|
Style/Documentation:
|
37
44
|
Enabled: false
|
38
45
|
Style/ExpandPathArguments:
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,60 +1,62 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-redis (1.0
|
4
|
+
lite-redis (1.1.0)
|
5
5
|
redis
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (6.
|
11
|
-
actionview (= 6.
|
12
|
-
activesupport (= 6.
|
13
|
-
rack (~> 2.0, >= 2.0.
|
10
|
+
actionpack (6.1.4)
|
11
|
+
actionview (= 6.1.4)
|
12
|
+
activesupport (= 6.1.4)
|
13
|
+
rack (~> 2.0, >= 2.0.9)
|
14
14
|
rack-test (>= 0.6.3)
|
15
15
|
rails-dom-testing (~> 2.0)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
17
|
-
actionview (6.
|
18
|
-
activesupport (= 6.
|
17
|
+
actionview (6.1.4)
|
18
|
+
activesupport (= 6.1.4)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubi (~> 1.4)
|
21
21
|
rails-dom-testing (~> 2.0)
|
22
22
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
23
|
-
activesupport (6.
|
23
|
+
activesupport (6.1.4)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
|
-
i18n (>=
|
26
|
-
minitest (
|
27
|
-
tzinfo (~>
|
28
|
-
zeitwerk (~> 2.
|
29
|
-
ast (2.4.
|
25
|
+
i18n (>= 1.6, < 2)
|
26
|
+
minitest (>= 5.1)
|
27
|
+
tzinfo (~> 2.0)
|
28
|
+
zeitwerk (~> 2.3)
|
29
|
+
ast (2.4.2)
|
30
30
|
builder (3.2.4)
|
31
31
|
colorize (0.8.1)
|
32
|
-
concurrent-ruby (1.1.
|
33
|
-
connection_pool (2.2.
|
32
|
+
concurrent-ruby (1.1.9)
|
33
|
+
connection_pool (2.2.5)
|
34
34
|
crass (1.0.6)
|
35
35
|
diff-lcs (1.4.4)
|
36
|
-
erubi (1.
|
36
|
+
erubi (1.10.0)
|
37
37
|
fakeredis (0.8.0)
|
38
38
|
redis (~> 4.1)
|
39
|
-
fasterer (0.
|
39
|
+
fasterer (0.9.0)
|
40
40
|
colorize (~> 0.7)
|
41
41
|
ruby_parser (>= 3.14.1)
|
42
42
|
generator_spec (0.9.4)
|
43
43
|
activesupport (>= 3.0.0)
|
44
44
|
railties (>= 3.0.0)
|
45
|
-
i18n (1.8.
|
45
|
+
i18n (1.8.10)
|
46
46
|
concurrent-ruby (~> 1.0)
|
47
|
-
loofah (2.
|
47
|
+
loofah (2.10.0)
|
48
48
|
crass (~> 1.0.2)
|
49
49
|
nokogiri (>= 1.5.9)
|
50
50
|
method_source (1.0.0)
|
51
|
-
mini_portile2 (2.
|
52
|
-
minitest (5.14.
|
53
|
-
nokogiri (1.
|
54
|
-
mini_portile2 (~> 2.
|
55
|
-
|
56
|
-
|
51
|
+
mini_portile2 (2.5.3)
|
52
|
+
minitest (5.14.4)
|
53
|
+
nokogiri (1.11.7)
|
54
|
+
mini_portile2 (~> 2.5.0)
|
55
|
+
racc (~> 1.4)
|
56
|
+
parallel (1.20.1)
|
57
|
+
parser (3.0.2.0)
|
57
58
|
ast (~> 2.4.1)
|
59
|
+
racc (1.5.2)
|
58
60
|
rack (2.2.3)
|
59
61
|
rack-test (1.1.0)
|
60
62
|
rack (>= 1.0, < 3)
|
@@ -63,63 +65,66 @@ GEM
|
|
63
65
|
nokogiri (>= 1.6)
|
64
66
|
rails-html-sanitizer (1.3.0)
|
65
67
|
loofah (~> 2.3)
|
66
|
-
railties (6.
|
67
|
-
actionpack (= 6.
|
68
|
-
activesupport (= 6.
|
68
|
+
railties (6.1.4)
|
69
|
+
actionpack (= 6.1.4)
|
70
|
+
activesupport (= 6.1.4)
|
69
71
|
method_source
|
70
|
-
rake (>= 0.
|
71
|
-
thor (
|
72
|
+
rake (>= 0.13)
|
73
|
+
thor (~> 1.0)
|
72
74
|
rainbow (3.0.0)
|
73
|
-
rake (13.0.
|
74
|
-
redis (4.
|
75
|
-
regexp_parser (1.
|
76
|
-
rexml (3.2.
|
77
|
-
rspec (3.
|
78
|
-
rspec-core (~> 3.
|
79
|
-
rspec-expectations (~> 3.
|
80
|
-
rspec-mocks (~> 3.
|
81
|
-
rspec-core (3.
|
82
|
-
rspec-support (~> 3.
|
83
|
-
rspec-expectations (3.
|
75
|
+
rake (13.0.6)
|
76
|
+
redis (4.3.1)
|
77
|
+
regexp_parser (2.1.1)
|
78
|
+
rexml (3.2.5)
|
79
|
+
rspec (3.10.0)
|
80
|
+
rspec-core (~> 3.10.0)
|
81
|
+
rspec-expectations (~> 3.10.0)
|
82
|
+
rspec-mocks (~> 3.10.0)
|
83
|
+
rspec-core (3.10.1)
|
84
|
+
rspec-support (~> 3.10.0)
|
85
|
+
rspec-expectations (3.10.1)
|
84
86
|
diff-lcs (>= 1.2.0, < 2.0)
|
85
|
-
rspec-support (~> 3.
|
86
|
-
rspec-mocks (3.
|
87
|
+
rspec-support (~> 3.10.0)
|
88
|
+
rspec-mocks (3.10.2)
|
87
89
|
diff-lcs (>= 1.2.0, < 2.0)
|
88
|
-
rspec-support (~> 3.
|
89
|
-
rspec-rails (
|
90
|
-
actionpack (>=
|
91
|
-
activesupport (>=
|
92
|
-
railties (>=
|
93
|
-
rspec-core (~> 3.
|
94
|
-
rspec-expectations (~> 3.
|
95
|
-
rspec-mocks (~> 3.
|
96
|
-
rspec-support (~> 3.
|
97
|
-
rspec-support (3.
|
98
|
-
rubocop (
|
90
|
+
rspec-support (~> 3.10.0)
|
91
|
+
rspec-rails (5.0.1)
|
92
|
+
actionpack (>= 5.2)
|
93
|
+
activesupport (>= 5.2)
|
94
|
+
railties (>= 5.2)
|
95
|
+
rspec-core (~> 3.10)
|
96
|
+
rspec-expectations (~> 3.10)
|
97
|
+
rspec-mocks (~> 3.10)
|
98
|
+
rspec-support (~> 3.10)
|
99
|
+
rspec-support (3.10.2)
|
100
|
+
rubocop (1.18.3)
|
99
101
|
parallel (~> 1.10)
|
100
|
-
parser (>=
|
102
|
+
parser (>= 3.0.0.0)
|
101
103
|
rainbow (>= 2.2.2, < 4.0)
|
102
|
-
regexp_parser (>= 1.
|
104
|
+
regexp_parser (>= 1.8, < 3.0)
|
103
105
|
rexml
|
104
|
-
rubocop-ast (>=
|
106
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
105
107
|
ruby-progressbar (~> 1.7)
|
106
|
-
unicode-display_width (>= 1.4.0, <
|
107
|
-
rubocop-ast (
|
108
|
-
parser (>=
|
109
|
-
rubocop-performance (1.
|
110
|
-
rubocop (>=
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
108
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
109
|
+
rubocop-ast (1.8.0)
|
110
|
+
parser (>= 3.0.1.1)
|
111
|
+
rubocop-performance (1.11.4)
|
112
|
+
rubocop (>= 1.7.0, < 2.0)
|
113
|
+
rubocop-ast (>= 0.4.0)
|
114
|
+
rubocop-rake (0.6.0)
|
115
|
+
rubocop (~> 1.0)
|
116
|
+
rubocop-rspec (2.4.0)
|
117
|
+
rubocop (~> 1.0)
|
118
|
+
rubocop-ast (>= 1.1.0)
|
119
|
+
ruby-progressbar (1.11.0)
|
120
|
+
ruby_parser (3.16.0)
|
121
|
+
sexp_processor (~> 4.15, >= 4.15.1)
|
122
|
+
sexp_processor (4.15.3)
|
123
|
+
thor (1.1.0)
|
124
|
+
tzinfo (2.0.4)
|
125
|
+
concurrent-ruby (~> 1.0)
|
126
|
+
unicode-display_width (2.0.0)
|
127
|
+
zeitwerk (2.4.2)
|
123
128
|
|
124
129
|
PLATFORMS
|
125
130
|
ruby
|
@@ -136,7 +141,8 @@ DEPENDENCIES
|
|
136
141
|
rspec-rails
|
137
142
|
rubocop
|
138
143
|
rubocop-performance
|
144
|
+
rubocop-rake
|
139
145
|
rubocop-rspec
|
140
146
|
|
141
147
|
BUNDLED WITH
|
142
|
-
2.
|
148
|
+
2.2.24
|
@@ -64,12 +64,10 @@ module Lite
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def increment(key, value = 1)
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
else
|
72
|
-
client.incrby(key.to_s, value)
|
67
|
+
case value
|
68
|
+
when Float then client.incrbyfloat(key.to_s, value)
|
69
|
+
when 1 then client.incr(key.to_s)
|
70
|
+
else client.incrby(key.to_s, value)
|
73
71
|
end
|
74
72
|
end
|
75
73
|
|
data/lib/lite/redis/version.rb
CHANGED
data/lite-redis.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
)
|
26
26
|
else
|
27
27
|
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
28
|
-
|
28
|
+
'public gem pushes.'
|
29
29
|
end
|
30
30
|
|
31
31
|
# Specify which files should be added to the gem when it is released.
|
@@ -49,5 +49,6 @@ Gem::Specification.new do |spec|
|
|
49
49
|
spec.add_development_dependency 'rspec-rails'
|
50
50
|
spec.add_development_dependency 'rubocop'
|
51
51
|
spec.add_development_dependency 'rubocop-performance'
|
52
|
+
spec.add_development_dependency 'rubocop-rake'
|
52
53
|
spec.add_development_dependency 'rubocop-rspec'
|
53
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop-rake
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: rubocop-rspec
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -265,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
279
|
- !ruby/object:Gem::Version
|
266
280
|
version: '0'
|
267
281
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
282
|
+
rubygems_version: 3.2.24
|
269
283
|
signing_key:
|
270
284
|
specification_version: 4
|
271
285
|
summary: Access Redis with an ActiveRecord like ORM interface
|