lite-redis 1.0.5 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f523666b4936dc7274106b5f344b1ab4aa4e92dec0f376b4bf877323563b9275
4
- data.tar.gz: a182db77b276ff088f5a6f6830e7d17c59aa60022996c6090286153ecbb9ba8b
3
+ metadata.gz: 5fe6ed04a6a9ab1b783f2794945cd7a7dc71f9f6a7a31676a2b0c6e7f5b694eb
4
+ data.tar.gz: bd31712a935a984c00b34251aacc80b5a8d6cb655e830de725949b0a585fd0bb
5
5
  SHA512:
6
- metadata.gz: cdde529f536fae5ffec5798b22bf049b24ed9f4cdd6c348baa6d193096447e3d88db2e3330837aef0294388f683288c1cb05a2df2213c880758c0fd6f11dce3c
7
- data.tar.gz: 877ed963442d8756b1cd25f3af02fbe9eae09071c2cc420214758751b0edcf73d1c82b721d3c0eec8c0ea1d60c87dcde66901521365143a72f3aaae53b513dca
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: 2.7
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
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.1.0] - 2021-07-19
10
+ ### Added
11
+ - Added Ruby 3.0 support
12
+
9
13
  ## [1.0.5] - 2020-07-03
10
14
  ### Added
11
15
  - Added Ruby 2.7 support
data/Gemfile.lock CHANGED
@@ -1,60 +1,62 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-redis (1.0.5)
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.0.3.2)
11
- actionview (= 6.0.3.2)
12
- activesupport (= 6.0.3.2)
13
- rack (~> 2.0, >= 2.0.8)
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.0.3.2)
18
- activesupport (= 6.0.3.2)
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.0.3.2)
23
+ activesupport (6.1.4)
24
24
  concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (>= 0.7, < 2)
26
- minitest (~> 5.1)
27
- tzinfo (~> 1.1)
28
- zeitwerk (~> 2.2, >= 2.2.2)
29
- ast (2.4.1)
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.6)
33
- connection_pool (2.2.3)
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.9.0)
36
+ erubi (1.10.0)
37
37
  fakeredis (0.8.0)
38
38
  redis (~> 4.1)
39
- fasterer (0.8.3)
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.3)
45
+ i18n (1.8.10)
46
46
  concurrent-ruby (~> 1.0)
47
- loofah (2.6.0)
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.4.0)
52
- minitest (5.14.1)
53
- nokogiri (1.10.9)
54
- mini_portile2 (~> 2.4.0)
55
- parallel (1.19.2)
56
- parser (2.7.1.4)
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.0.3.2)
67
- actionpack (= 6.0.3.2)
68
- activesupport (= 6.0.3.2)
68
+ railties (6.1.4)
69
+ actionpack (= 6.1.4)
70
+ activesupport (= 6.1.4)
69
71
  method_source
70
- rake (>= 0.8.7)
71
- thor (>= 0.20.3, < 2.0)
72
+ rake (>= 0.13)
73
+ thor (~> 1.0)
72
74
  rainbow (3.0.0)
73
- rake (13.0.1)
74
- redis (4.2.1)
75
- regexp_parser (1.7.1)
76
- rexml (3.2.4)
77
- rspec (3.9.0)
78
- rspec-core (~> 3.9.0)
79
- rspec-expectations (~> 3.9.0)
80
- rspec-mocks (~> 3.9.0)
81
- rspec-core (3.9.2)
82
- rspec-support (~> 3.9.3)
83
- rspec-expectations (3.9.2)
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.9.0)
86
- rspec-mocks (3.9.1)
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.9.0)
89
- rspec-rails (4.0.1)
90
- actionpack (>= 4.2)
91
- activesupport (>= 4.2)
92
- railties (>= 4.2)
93
- rspec-core (~> 3.9)
94
- rspec-expectations (~> 3.9)
95
- rspec-mocks (~> 3.9)
96
- rspec-support (~> 3.9)
97
- rspec-support (3.9.3)
98
- rubocop (0.86.0)
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 (>= 2.7.0.1)
102
+ parser (>= 3.0.0.0)
101
103
  rainbow (>= 2.2.2, < 4.0)
102
- regexp_parser (>= 1.7)
104
+ regexp_parser (>= 1.8, < 3.0)
103
105
  rexml
104
- rubocop-ast (>= 0.0.3, < 1.0)
106
+ rubocop-ast (>= 1.7.0, < 2.0)
105
107
  ruby-progressbar (~> 1.7)
106
- unicode-display_width (>= 1.4.0, < 2.0)
107
- rubocop-ast (0.1.0)
108
- parser (>= 2.7.0.1)
109
- rubocop-performance (1.6.1)
110
- rubocop (>= 0.71.0)
111
- rubocop-rspec (1.41.0)
112
- rubocop (>= 0.68.1)
113
- ruby-progressbar (1.10.1)
114
- ruby_parser (3.14.2)
115
- sexp_processor (~> 4.9)
116
- sexp_processor (4.15.0)
117
- thor (1.0.1)
118
- thread_safe (0.3.6)
119
- tzinfo (1.2.7)
120
- thread_safe (~> 0.1)
121
- unicode-display_width (1.7.0)
122
- zeitwerk (2.3.1)
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.1.4
148
+ 2.2.24
@@ -64,12 +64,10 @@ module Lite
64
64
  end
65
65
 
66
66
  def increment(key, value = 1)
67
- if value.is_a?(Float)
68
- client.incrbyfloat(key.to_s, value)
69
- elsif value == 1
70
- client.incr(key.to_s)
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
 
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Redis
5
5
 
6
- VERSION ||= '1.0.5'
6
+ VERSION = '1.1.0'
7
7
 
8
8
  end
9
9
  end
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
- 'public gem pushes.'
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.5
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: 2020-07-03 00:00:00.000000000 Z
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.1.4
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