redis-objects-periodical 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e51d6f427d67ed6b1295dc800494c8db45657bb0bc95ef495d198305c4458dc3
4
- data.tar.gz: eaeda9b6bced5155ff0e8889b4ba65153c7b4792c9496542a0bb08e3689ad032
3
+ metadata.gz: 9a9f66a51e7b0786e3207daefee47c2ae7a792b512229e6d7b5ac6c40ed4b956
4
+ data.tar.gz: 38806524dc3b3d67ab62d76c1b3416518eecb2ba301d66c08eea29f3f88da13e
5
5
  SHA512:
6
- metadata.gz: 3b01d3bac963a358028ce4eadaf414ff8f310ac161413bbc16ffd9d58a870c0af1344990d4eab4f3376e95914a2ab93cb92a62524b3c86049877c8bd7b1c8831
7
- data.tar.gz: c0a3ba3f9cc311ab2f212b7c5c0997b3e8d2a01fdc43aa8687067b0c9a0c54819c5d45e3a3afc3460c3b70d929d0370439ec8c06206b375347cf2274a52ad8e4
6
+ metadata.gz: b3b3f462b12369d577165c968ce73fdd8d17589654ce553d0a98bf5922ad5a075808154590d7e9dc1b89555438f24bbd3052a2085b17980eb08251ec570cf3df
7
+ data.tar.gz: f8ef4de2a9b40c7efada26b858edd6cb546693d18e0d2b075b4f80c26f879e06fa79308bc9b9a2fcb509fc5556a4cc3afd6584c799c6725fe87074ff21e1f3d3
data/.circleci/config.yml CHANGED
@@ -12,8 +12,8 @@ references:
12
12
  - &ruby_version
13
13
  ruby_version:
14
14
  type: enum
15
- enum: ["2.7", "3.0", "3.1"]
16
- default: "3.1"
15
+ enum: ["2.7", "3.0", "3.1", "3.2"]
16
+ default: "3.2"
17
17
 
18
18
  executors:
19
19
  default:
@@ -126,7 +126,7 @@ jobs:
126
126
  - code-climate/install
127
127
  - code-climate/sum-coverage:
128
128
  input: codeclimate.*.json
129
- parts: 3
129
+ parts: 4
130
130
  - code-climate/upload-coverage
131
131
  rubocop:
132
132
  parameters:
@@ -168,6 +168,9 @@ workflows:
168
168
  - build:
169
169
  name: build_on_ruby_3.1
170
170
  ruby_version: "3.1"
171
+ - build:
172
+ name: build_on_ruby_3.2
173
+ ruby_version: "3.2"
171
174
  - rubocop:
172
175
  ruby_version: "2.7"
173
176
  - yardoc
@@ -176,12 +179,14 @@ workflows:
176
179
  - build_on_ruby_2.7
177
180
  - build_on_ruby_3.0
178
181
  - build_on_ruby_3.1
182
+ - build_on_ruby_3.2
179
183
  - release:
180
184
  context: RubyGems API Key
181
185
  requires:
182
186
  - build_on_ruby_2.7
183
187
  - build_on_ruby_3.0
184
188
  - build_on_ruby_3.1
189
+ - build_on_ruby_3.2
185
190
  - rubocop
186
191
  filters:
187
192
  branches:
data/.rubocop.yml CHANGED
@@ -23,6 +23,9 @@ Naming/FileName:
23
23
  Exclude:
24
24
  - "lib/redis-objects-periodical.rb"
25
25
 
26
+ Style/DocumentDynamicEvalDefinition:
27
+ Enabled: false
28
+
26
29
  Style/TrailingCommaInArrayLiteral:
27
30
  EnforcedStyleForMultiline: comma
28
31
 
data/.rubocop_todo.yml CHANGED
@@ -1,16 +1,25 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2021-09-23 07:31:02 UTC using RuboCop version 0.93.1.
3
+ # on 2023-02-08 23:31:05 UTC using RuboCop version 1.45.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 6
10
- # Configuration parameters: IgnoredMethods.
11
- Metrics/AbcSize:
12
- Max: 21
13
-
14
- # Offense count: 41
9
+ # Offense count: 12
10
+ # Configuration parameters: AllowedConstants.
15
11
  Style/Documentation:
16
- Enabled: false
12
+ Exclude:
13
+ - 'spec/**/*'
14
+ - 'test/**/*'
15
+ - 'lib/redis-objects-periodical.rb'
16
+ - 'lib/redis/base_counter_object.rb'
17
+ - 'lib/redis/base_hash_key_object.rb'
18
+ - 'lib/redis/base_set_object.rb'
19
+ - 'lib/redis/recurring_at_intervals.rb'
20
+ - 'lib/redis/recurring_at_intervals/annual.rb'
21
+ - 'lib/redis/recurring_at_intervals/daily.rb'
22
+ - 'lib/redis/recurring_at_intervals/hourly.rb'
23
+ - 'lib/redis/recurring_at_intervals/minutely.rb'
24
+ - 'lib/redis/recurring_at_intervals/monthly.rb'
25
+ - 'lib/redis/recurring_at_intervals/weekly.rb'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Change log
2
2
 
3
+ ## v0.6.0 (Feb 12, 2023)
4
+
5
+ ### Feature
6
+
7
+ - [#125](https://github.com/ryz310/redis-object-daily-counter/pull/125) Support Ruby 3.2 ([@ryz310](https://github.com/ryz310))
8
+
9
+ ### Rubocop Challenge
10
+
11
+ - [#104](https://github.com/ryz310/redis-object-daily-counter/pull/104) Style/RedundantStringEscape-20221214233055 ([@ryz310](https://github.com/ryz310))
12
+ - [#124](https://github.com/ryz310/redis-object-daily-counter/pull/124) Re-generate .rubocop_todo.yml with RuboCop v1.45.1 ([@ryz310](https://github.com/ryz310))
13
+
14
+ ### Dependabot
15
+
16
+ - [#70](https://github.com/ryz310/redis-object-daily-counter/pull/70) Bump rspec from 3.11.0 to 3.12.0 ([@ryz310](https://github.com/ryz310))
17
+ - [#101](https://github.com/ryz310/redis-object-daily-counter/pull/101) Bump timecop from 0.9.5 to 0.9.6 ([@ryz310](https://github.com/ryz310))
18
+ - [#109](https://github.com/ryz310/redis-object-daily-counter/pull/109) Bump rubocop-performance from 1.15.1 to 1.15.2 ([@ryz310](https://github.com/ryz310))
19
+ - [#110](https://github.com/ryz310/redis-object-daily-counter/pull/110) Bump simplecov from 0.21.2 to 0.22.0 ([@ryz310](https://github.com/ryz310))
20
+ - [#116](https://github.com/ryz310/redis-object-daily-counter/pull/116) Bump rubocop-rspec from 2.18.0 to 2.18.1 ([@ryz310](https://github.com/ryz310))
21
+ - [#122](https://github.com/ryz310/redis-object-daily-counter/pull/122) Bump rubocop-performance from 1.15.2 to 1.16.0 ([@ryz310](https://github.com/ryz310))
22
+
3
23
  ## v0.5.0 (Sep 29, 2022)
4
24
 
5
25
  ### Feature
data/Gemfile CHANGED
@@ -8,11 +8,11 @@ gemspec
8
8
  gem 'bundler', '>= 2.0'
9
9
  gem 'pry-byebug'
10
10
  gem 'rake', '~> 13.0'
11
- gem 'rspec', '~> 3.11'
11
+ gem 'rspec', '~> 3.12'
12
12
  gem 'rspec_junit_formatter'
13
- gem 'rubocop', '~> 0.80'
13
+ gem 'rubocop', '~> 1.36'
14
14
  gem 'rubocop-performance'
15
15
  gem 'rubocop-rspec'
16
- gem 'simplecov', '0.21.2'
16
+ gem 'simplecov', '0.22.0'
17
17
  gem 'timecop'
18
18
  gem 'yard'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redis-objects-periodical (0.5.0)
4
+ redis-objects-periodical (0.6.0)
5
5
  redis-objects
6
6
 
7
7
  GEM
@@ -13,11 +13,12 @@ GEM
13
13
  connection_pool (2.3.0)
14
14
  diff-lcs (1.5.0)
15
15
  docile (1.4.0)
16
+ json (2.6.3)
16
17
  method_source (1.0.0)
17
18
  parallel (1.22.1)
18
- parser (3.1.2.1)
19
+ parser (3.2.1.0)
19
20
  ast (~> 2.4.1)
20
- pry (0.14.1)
21
+ pry (0.14.2)
21
22
  coderay (~> 1.1)
22
23
  method_source (~> 1.0)
23
24
  pry-byebug (3.10.1)
@@ -25,55 +26,58 @@ GEM
25
26
  pry (>= 0.13, < 0.15)
26
27
  rainbow (3.1.1)
27
28
  rake (13.0.6)
28
- redis (5.0.5)
29
+ redis (5.0.6)
29
30
  redis-client (>= 0.9.0)
30
- redis-client (0.9.0)
31
+ redis-client (0.12.1)
31
32
  connection_pool
32
33
  redis-objects (1.7.0)
33
34
  redis
34
- regexp_parser (2.6.0)
35
+ regexp_parser (2.7.0)
35
36
  rexml (3.2.5)
36
- rspec (3.11.0)
37
- rspec-core (~> 3.11.0)
38
- rspec-expectations (~> 3.11.0)
39
- rspec-mocks (~> 3.11.0)
40
- rspec-core (3.11.0)
41
- rspec-support (~> 3.11.0)
42
- rspec-expectations (3.11.1)
37
+ rspec (3.12.0)
38
+ rspec-core (~> 3.12.0)
39
+ rspec-expectations (~> 3.12.0)
40
+ rspec-mocks (~> 3.12.0)
41
+ rspec-core (3.12.1)
42
+ rspec-support (~> 3.12.0)
43
+ rspec-expectations (3.12.2)
43
44
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.11.0)
45
- rspec-mocks (3.11.1)
45
+ rspec-support (~> 3.12.0)
46
+ rspec-mocks (3.12.3)
46
47
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.11.0)
48
- rspec-support (3.11.1)
48
+ rspec-support (~> 3.12.0)
49
+ rspec-support (3.12.0)
49
50
  rspec_junit_formatter (0.6.0)
50
51
  rspec-core (>= 2, < 4, != 2.12.0)
51
- rubocop (0.93.1)
52
+ rubocop (1.45.1)
53
+ json (~> 2.3)
52
54
  parallel (~> 1.10)
53
- parser (>= 2.7.1.5)
55
+ parser (>= 3.2.0.0)
54
56
  rainbow (>= 2.2.2, < 4.0)
55
- regexp_parser (>= 1.8)
56
- rexml
57
- rubocop-ast (>= 0.6.0)
57
+ regexp_parser (>= 1.8, < 3.0)
58
+ rexml (>= 3.2.5, < 4.0)
59
+ rubocop-ast (>= 1.24.1, < 2.0)
58
60
  ruby-progressbar (~> 1.7)
59
- unicode-display_width (>= 1.4.0, < 2.0)
60
- rubocop-ast (1.21.0)
61
- parser (>= 3.1.1.0)
62
- rubocop-performance (1.10.2)
63
- rubocop (>= 0.90.0, < 2.0)
61
+ unicode-display_width (>= 2.4.0, < 3.0)
62
+ rubocop-ast (1.26.0)
63
+ parser (>= 3.2.1.0)
64
+ rubocop-capybara (2.17.0)
65
+ rubocop (~> 1.41)
66
+ rubocop-performance (1.16.0)
67
+ rubocop (>= 1.7.0, < 2.0)
64
68
  rubocop-ast (>= 0.4.0)
65
- rubocop-rspec (1.44.1)
66
- rubocop (~> 0.87)
67
- rubocop-ast (>= 0.7.1)
69
+ rubocop-rspec (2.18.1)
70
+ rubocop (~> 1.33)
71
+ rubocop-capybara (~> 2.17)
68
72
  ruby-progressbar (1.11.0)
69
- simplecov (0.21.2)
73
+ simplecov (0.22.0)
70
74
  docile (~> 1.1)
71
75
  simplecov-html (~> 0.11)
72
76
  simplecov_json_formatter (~> 0.1)
73
77
  simplecov-html (0.12.3)
74
78
  simplecov_json_formatter (0.1.4)
75
- timecop (0.9.5)
76
- unicode-display_width (1.8.0)
79
+ timecop (0.9.6)
80
+ unicode-display_width (2.4.2)
77
81
  webrick (1.7.0)
78
82
  yard (0.9.28)
79
83
  webrick (~> 1.7.0)
@@ -89,14 +93,14 @@ DEPENDENCIES
89
93
  pry-byebug
90
94
  rake (~> 13.0)
91
95
  redis-objects-periodical!
92
- rspec (~> 3.11)
96
+ rspec (~> 3.12)
93
97
  rspec_junit_formatter
94
- rubocop (~> 0.80)
98
+ rubocop (~> 1.36)
95
99
  rubocop-performance
96
100
  rubocop-rspec
97
- simplecov (= 0.21.2)
101
+ simplecov (= 0.22.0)
98
102
  timecop
99
103
  yard
100
104
 
101
105
  BUNDLED WITH
102
- 2.3.11
106
+ 2.3.26
@@ -3,7 +3,7 @@
3
3
  class Redis
4
4
  module Objects
5
5
  module Periodical
6
- VERSION = '0.5.0'
6
+ VERSION = '0.6.0'
7
7
  end
8
8
  end
9
9
  end
@@ -23,7 +23,7 @@ Redis::PERIODICALS.each do |periodical| # rubocop:disable Metrics/BlockLength
23
23
  )
24
24
  end
25
25
 
26
- define_method(:"#\{name\}=") do |values|
26
+ define_method(:"#\{name}=") do |values|
27
27
  hash_key = public_send(name)
28
28
 
29
29
  redis.pipelined do
@@ -23,7 +23,7 @@ Redis::PERIODICALS.each do |periodical| # rubocop:disable Metrics/BlockLength
23
23
  )
24
24
  end
25
25
 
26
- define_method(:"#\{name\}=") do |values|
26
+ define_method(:"#\{name}=") do |values|
27
27
  set = public_send(name)
28
28
 
29
29
  redis.pipelined do
@@ -11,7 +11,7 @@ class Redis
11
11
  end
12
12
 
13
13
  def next_key(time, length = 1)
14
- time + 3600 * length
14
+ time + (3600 * length)
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ class Redis
11
11
  end
12
12
 
13
13
  def next_key(time, length = 1)
14
- time + 60 * length
14
+ time + (60 * length)
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ class Redis
11
11
  end
12
12
 
13
13
  def next_key(date_or_time, length = 1)
14
- date_or_time.to_date + 7 * length
14
+ date_or_time.to_date + (7 * length)
15
15
  end
16
16
  end
17
17
  end
@@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  # For more information and examples about making a new gem, checkout our
35
35
  # guide at: https://bundler.io/guides/creating_gem.html
36
+ spec.metadata['rubygems_mfa_required'] = 'true'
36
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-objects-periodical
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryz310
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2023-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-objects
@@ -76,6 +76,7 @@ metadata:
76
76
  homepage_uri: https://github.com/ryz310/redis-objects-periodical
77
77
  source_code_uri: https://github.com/ryz310/redis-objects-periodical
78
78
  changelog_uri: https://github.com/ryz310/redis-objects-periodical/blob/master/CHANGELOG.md
79
+ rubygems_mfa_required: 'true'
79
80
  post_install_message:
80
81
  rdoc_options: []
81
82
  require_paths:
@@ -91,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
92
  - !ruby/object:Gem::Version
92
93
  version: '0'
93
94
  requirements: []
94
- rubygems_version: 3.3.11
95
+ rubygems_version: 3.4.6
95
96
  signing_key:
96
97
  specification_version: 4
97
98
  summary: Extends Redis::Objects as periodical.