redis-objects-periodical 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +207 -0
  3. data/.gem_comet.yml +24 -0
  4. data/.github/dependabot.yml +19 -0
  5. data/.gitignore +11 -0
  6. data/.rspec +3 -0
  7. data/.rubocop.yml +40 -0
  8. data/.rubocop_todo.yml +16 -0
  9. data/CHANGELOG.md +112 -0
  10. data/CODE_OF_CONDUCT.md +84 -0
  11. data/Dockerfile +7 -0
  12. data/Gemfile +18 -0
  13. data/Gemfile.lock +98 -0
  14. data/LICENSE.txt +21 -0
  15. data/README.md +222 -0
  16. data/Rakefile +15 -0
  17. data/bin/console +14 -0
  18. data/bin/setup +8 -0
  19. data/docker-compose.yml +17 -0
  20. data/lib/redis/base_counter_object.rb +27 -0
  21. data/lib/redis/base_hash_key_object.rb +40 -0
  22. data/lib/redis/base_set_object.rb +28 -0
  23. data/lib/redis/objects/periodical/version.rb +9 -0
  24. data/lib/redis/objects/periodical_counters.rb +40 -0
  25. data/lib/redis/objects/periodical_hashes.rb +50 -0
  26. data/lib/redis/objects/periodical_sets.rb +50 -0
  27. data/lib/redis/periodical_counter.rb +15 -0
  28. data/lib/redis/periodical_hash_key.rb +15 -0
  29. data/lib/redis/periodical_set.rb +15 -0
  30. data/lib/redis/recurring_at_intervals/annual.rb +18 -0
  31. data/lib/redis/recurring_at_intervals/daily.rb +18 -0
  32. data/lib/redis/recurring_at_intervals/hourly.rb +18 -0
  33. data/lib/redis/recurring_at_intervals/minutely.rb +18 -0
  34. data/lib/redis/recurring_at_intervals/monthly.rb +18 -0
  35. data/lib/redis/recurring_at_intervals/weekly.rb +18 -0
  36. data/lib/redis/recurring_at_intervals.rb +79 -0
  37. data/lib/redis-objects-periodical.rb +36 -0
  38. data/redis-objects-daily-counter.gemspec +36 -0
  39. data/redis-objects-periodical.gemspec +36 -0
  40. metadata +99 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 61c703571cd2602ebeac975dcc983374517185014a74aacdd162aedb20ec1f19
4
+ data.tar.gz: 903c0e78b58e6a0f1db6476f11906e4a1212436d91db60c5cdbd9f5f65069b20
5
+ SHA512:
6
+ metadata.gz: 0edcd884c0fa276c755e455e24b1727e903303a7b3ba90a0fe865d6acce22fd5de2fbd9312cb15a0fd5504925b6368bca981e98e5ff9871bc853330807e89fc1
7
+ data.tar.gz: dca107efe011fe1753861ce9a3471d8b18f923a779e5ffb3b8f499a388cc359500cb6d374814f0b4ee3605123052686d864486211d45c75b9813f1d4a36a0b45
@@ -0,0 +1,207 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2.1
6
+
7
+ orbs:
8
+ ruby-orbs: sue445/ruby-orbs@1.6.2
9
+ code-climate: rvla/code-climate@0.0.2
10
+
11
+ references:
12
+ - &ruby_version
13
+ ruby_version:
14
+ type: enum
15
+ enum: ["2.7", "3.0", "3.1"]
16
+ default: "3.1"
17
+
18
+ executors:
19
+ default:
20
+ parameters:
21
+ <<: *ruby_version
22
+ docker:
23
+ - image: cimg/ruby:<< parameters.ruby_version >>
24
+ - image: redis:latest
25
+ name: redis
26
+ working_directory: ~/repo
27
+
28
+ commands:
29
+ run_rspec:
30
+ description: "Run RSpec"
31
+ steps:
32
+ - run:
33
+ name: "Execute RSpec"
34
+ command: |
35
+ mkdir /tmp/test-results
36
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
37
+ cc-test-reporter before-build
38
+ bundle exec rspec --format documentation \
39
+ --color \
40
+ --format RspecJunitFormatter \
41
+ --out /tmp/test-results/rspec.xml \
42
+ $TEST_FILES
43
+ - code-climate/format-coverage:
44
+ input-type: simplecov
45
+ prefix: $(readlink -f .)
46
+ coverage-file: coverage/coverage.json
47
+ output: coverage/codeclimate.$CIRCLE_BUILD_NUM.json
48
+ - persist_to_workspace:
49
+ root: coverage
50
+ paths:
51
+ - codeclimate.*.json
52
+ - store_test_results:
53
+ path: /tmp/test-results
54
+ - store_artifacts:
55
+ path: /tmp/test-results
56
+ destination: test-results
57
+ rubocop:
58
+ steps:
59
+ - run:
60
+ name: Run RuboCop
61
+ command: bundle exec rubocop
62
+ yardoc:
63
+ description: "Generate YARDoc"
64
+ steps:
65
+ - run: bundle exec yardoc -o ./yardoc
66
+ - store_artifacts:
67
+ path: ./yardoc
68
+ destination: yardoc
69
+ rake_build:
70
+ steps:
71
+ - run:
72
+ name: Rake Build
73
+ command: bundle exec rake build
74
+ rubocop_challenge:
75
+ steps:
76
+ - run:
77
+ name: Rubocop Challenge
78
+ command: |
79
+ gem install rubocop_challenger
80
+ rubocop_challenger go --email=ryz310@gmail.com --name=ryz310
81
+ release:
82
+ description: Release to RubyGems.org
83
+ steps:
84
+ - run:
85
+ name: Create Rubygems Credentials
86
+ command: |
87
+ mkdir ~/.gem || true
88
+ echo -e "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}" > ~/.gem/credentials
89
+ chmod 0600 ~/.gem/credentials
90
+ - run:
91
+ name: Release Gem
92
+ command: |
93
+ git push --set-upstream origin ${CIRCLE_BRANCH}
94
+ bundle exec rake release --trace
95
+ setup:
96
+ description: Setup for Job Working
97
+ parameters:
98
+ <<: *ruby_version
99
+ steps:
100
+ - checkout
101
+ - ruby-orbs/bundle-install:
102
+ cache_key_prefix: v1-dependencies-<< parameters.ruby_version >>
103
+ test_and_build:
104
+ description: Build the RubyGem
105
+ steps:
106
+ - code-climate/install
107
+ - run_rspec
108
+ - rake_build
109
+
110
+ jobs:
111
+ build:
112
+ parameters:
113
+ <<: *ruby_version
114
+ executor:
115
+ name: default
116
+ ruby_version: << parameters.ruby_version >>
117
+ steps:
118
+ - setup:
119
+ ruby_version: << parameters.ruby_version >>
120
+ - test_and_build
121
+ upload-coverage:
122
+ executor: default
123
+ steps:
124
+ - attach_workspace:
125
+ at: ~/repo
126
+ - code-climate/install
127
+ - code-climate/sum-coverage:
128
+ input: codeclimate.*.json
129
+ parts: 3
130
+ - code-climate/upload-coverage
131
+ rubocop:
132
+ parameters:
133
+ <<: *ruby_version
134
+ executor:
135
+ name: default
136
+ ruby_version: << parameters.ruby_version >>
137
+ steps:
138
+ - setup:
139
+ ruby_version: << parameters.ruby_version >>
140
+ - rubocop
141
+ yardoc:
142
+ executor: default
143
+ steps:
144
+ - setup
145
+ - yardoc
146
+ rubocop_challenge:
147
+ executor: default
148
+ steps:
149
+ - checkout
150
+ - rubocop_challenge
151
+ release:
152
+ executor: default
153
+ steps:
154
+ - setup
155
+ - release
156
+
157
+ workflows:
158
+ version: 2
159
+
160
+ commit:
161
+ jobs:
162
+ - build:
163
+ name: build_on_ruby_2.7
164
+ ruby_version: "2.7"
165
+ - build:
166
+ name: build_on_ruby_3.0
167
+ ruby_version: "3.0"
168
+ - build:
169
+ name: build_on_ruby_3.1
170
+ ruby_version: "3.1"
171
+ - rubocop:
172
+ ruby_version: "2.7"
173
+ - yardoc
174
+ - upload-coverage:
175
+ requires:
176
+ - build_on_ruby_2.7
177
+ - build_on_ruby_3.0
178
+ - build_on_ruby_3.1
179
+ - release:
180
+ context: RubyGems API Key
181
+ requires:
182
+ - build_on_ruby_2.7
183
+ - build_on_ruby_3.0
184
+ - build_on_ruby_3.1
185
+ - rubocop
186
+ filters:
187
+ branches:
188
+ only:
189
+ - release
190
+
191
+ challenge:
192
+ triggers:
193
+ - schedule:
194
+ cron: "30 23 * * *" # 8:30am every day (JST)
195
+ filters:
196
+ branches:
197
+ only:
198
+ - master
199
+ jobs:
200
+ - rubocop_challenge
201
+
202
+ experimental:
203
+ notify:
204
+ branches:
205
+ only:
206
+ - master
207
+ - release
data/.gem_comet.yml ADDED
@@ -0,0 +1,24 @@
1
+ # [Usage]
2
+ #
3
+ # $ gem install gem_comet
4
+ # $ gem_comet init
5
+ # $ gem_comet release {version number, like as "1.2.3"}
6
+ # $ gem_comet changelog
7
+ # $ gem_comet versions
8
+
9
+ version: 1.2
10
+
11
+ release:
12
+ base_branch: master
13
+ release_branch: release
14
+ version_file_path: lib/redis/objects/periodical/version.rb
15
+ changelog_file_path: CHANGELOG.md # optional
16
+ changelog:
17
+ categories:
18
+ - Feature
19
+ - Bugfix
20
+ - Security
21
+ - Breaking Change
22
+ - Rubocop Challenge
23
+ - Dependabot
24
+ - Misc
@@ -0,0 +1,19 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "08:00"
8
+ timezone: Japan
9
+ open-pull-requests-limit: 10
10
+ reviewers:
11
+ - ryz310
12
+ assignees:
13
+ - ryz310
14
+ labels:
15
+ - dependabot
16
+ ignore:
17
+ - dependency-name: simplecov
18
+ versions:
19
+ - ">= 0.19.a, < 0.20"
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,40 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require:
4
+ - rubocop-performance
5
+ - rubocop-rspec
6
+
7
+ AllCops:
8
+ TargetRubyVersion: 2.7
9
+ NewCops: enable
10
+
11
+ Layout/LineLength:
12
+ Max: 100
13
+
14
+ Metrics/BlockLength:
15
+ Exclude:
16
+ - "spec/**/*"
17
+ - "redis-objects-daily-counter.gemspec"
18
+ - "redis-objects-periodical.gemspec"
19
+
20
+ Metrics/MethodLength:
21
+ Max: 15
22
+
23
+ Naming/FileName:
24
+ Exclude:
25
+ - "lib/redis-objects-periodical.rb"
26
+
27
+ Style/TrailingCommaInArrayLiteral:
28
+ EnforcedStyleForMultiline: comma
29
+
30
+ Style/TrailingCommaInHashLiteral:
31
+ EnforcedStyleForMultiline: comma
32
+
33
+ RSpec/ExampleLength:
34
+ Max: 10
35
+
36
+ RSpec/NestedGroups:
37
+ Max: 5
38
+
39
+ RSpec/MultipleExpectations:
40
+ Max: 4
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,16 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2021-09-23 07:31:02 UTC using RuboCop version 0.93.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 6
10
+ # Configuration parameters: IgnoredMethods.
11
+ Metrics/AbcSize:
12
+ Max: 21
13
+
14
+ # Offense count: 41
15
+ Style/Documentation:
16
+ Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,112 @@
1
+ # Change log
2
+
3
+ ## v0.4.0 (Jul 26, 2022)
4
+
5
+ ### Feature
6
+
7
+ - [#17](https://github.com/ryz310/redis-object-periodical/pull/17) Support `Redis::HashKey` as a recurring object ([@ryz310](https://github.com/ryz310))
8
+
9
+ ### Breaking Change
10
+
11
+ - [#18](https://github.com/ryz310/redis-object-periodical/pull/18) Bump up Ruby 3.1 and drop support Ruby 2.6 ([@ryz310](https://github.com/ryz310))
12
+
13
+ ### Dependabot
14
+
15
+ - [#16](https://github.com/ryz310/redis-object-periodical/pull/16) Bump yard from 0.9.26 to 0.9.28 ([@ryz310](https://github.com/ryz310))
16
+ - [#15](https://github.com/ryz310/redis-object-periodical/pull/15) Bump rspec_junit_formatter from 0.4.1 to 0.5.1 ([@ryz310](https://github.com/ryz310))
17
+ - [#13](https://github.com/ryz310/redis-object-periodical/pull/13) Bump rspec from 3.10.0 to 3.11.0 ([@ryz310](https://github.com/ryz310))
18
+ - [#14](https://github.com/ryz310/redis-object-periodical/pull/14) Bump timecop from 0.9.4 to 0.9.5 ([@ryz310](https://github.com/ryz310))
19
+ - [#12](https://github.com/ryz310/redis-object-periodical/pull/12) Bump redis-objects from 1.5.1 to 1.7.0 ([@ryz310](https://github.com/ryz310))
20
+
21
+ ### Misc
22
+
23
+ - [#19](https://github.com/ryz310/redis-object-periodical/pull/19) Reduce similar source codes with meta programming ([@ryz310](https://github.com/ryz310))
24
+
25
+ ## v0.3.0 (Sep 23, 2021)
26
+
27
+ ### Feature
28
+
29
+ - [#7](https://github.com/ryz310/redis-object-periodical/pull/7) Add daily set ([@ryz310](https://github.com/ryz310))
30
+
31
+ > You can use `daily_set` in addition to the standard features of Redis::Objects.
32
+ >
33
+ > ```rb
34
+ > class Homepage
35
+ > include Redis::Objects
36
+ >
37
+ > daily_set :dau, expireat: -> { Time.now + 2_678_400 } # about a month
38
+ >
39
+ > def id
40
+ > 1
41
+ > end
42
+ > end
43
+ >
44
+ > # 2021-04-01
45
+ > homepage.dau << 'user1'
46
+ > homepage.dau << 'user2'
47
+ > homepage.dau << 'user1' # dup ignored
48
+ > puts homepage.dau.members # ['user1', 'user2']
49
+ > puts homepage.dau.length # 2
50
+ > puts homepage.dau.count # alias of #length
51
+ >
52
+ > # 2021-04-02 (next day)
53
+ > puts homepage.dau.members # []
54
+ > homepage.dau.merge('user2', 'user3')
55
+ > puts homepage.dau.members # ['user2', 'user3']
56
+ >
57
+ > # 2021-04-03 (next day)
58
+ > homepage.dau.merge('user4')
59
+ >
60
+ > homepage.dau[Date.new(2021, 4, 1)] # => ['user1', 'user2']
61
+ > homepage.dau[Date.new(2021, 4, 1), 3] # => ['user1', 'user2', 'user3', 'user4']
62
+ > homepage.dau[Date.new(2021, 4, 1)..Date.new(2021, 4, 2)] # => ['user1', 'user2', 'user3']
63
+ >
64
+ > homepage.dau.delete_at(Date.new(2021, 4, 1))
65
+ > homepage.dau.range(Date.new(2021, 4, 1), Date.new(2021, 4, 3)) # => ['user2', 'user3', 'user4']
66
+ > homepage.dau.at(Date.new(2021, 4, 2)) # => #<Redis::Set key="homepage:1:dau:2021-04-02">
67
+ > homepage.dau.at(Date.new(2021, 4, 2)).members # ['user2', 'user3']
68
+ > ```
69
+
70
+ ### Breaking Change
71
+
72
+ - [#7](https://github.com/ryz310/redis-object-periodical/pull/7) Add daily set ([@ryz310](https://github.com/ryz310))
73
+
74
+ > Rename the method from #delete to #delete_at a73251f
75
+ >
76
+ > ```rb
77
+ > # Before
78
+ > homepage.pv.delete(Date.new(2021, 4, 1))
79
+ >
80
+ > # After
81
+ > homepage.pv.delete_at(Date.new(2021, 4, 1))
82
+ > ```
83
+ >
84
+ > Modify returning value of RecurringAtIntervals#at 1c8cc79
85
+ >
86
+ > ```rb
87
+ > # Before
88
+ > homepage.pv.at(Date.new(2021, 4, 2)) # => 2
89
+ >
90
+ > # After
91
+ > homepage.pv.at(Date.new(2021, 4, 2)) # => #<Redis::Counter key="homepage:1:pv:2021-04-02">
92
+ > ```
93
+
94
+ ## v0.2.0 (Sep 20, 2021)
95
+
96
+ ### Feature
97
+
98
+ - [#3](https://github.com/ryz310/redis-objects-periodical/pull/3) Support time zone ([@ryz310](https://github.com/ryz310))
99
+ - [#4](https://github.com/ryz310/redis-objects-periodical/pull/4) Add daily counter family ([@ryz310](https://github.com/ryz310))
100
+ - `annual_counter`
101
+ - `monthly_counter`
102
+ - `weekly_counter`
103
+ - `hourly_counter`
104
+ - `minutely_counter`
105
+
106
+ ### Misc
107
+
108
+ - [#2](https://github.com/ryz310/redis-objects-periodical/pull/2) Install circle ci ([@ryz310](https://github.com/ryz310))
109
+
110
+ ## v0.1.0 (Sep 12, 2021)
111
+
112
+ - The first release :tada:
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ryz310@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Dockerfile ADDED
@@ -0,0 +1,7 @@
1
+ FROM ruby:2.7
2
+
3
+ RUN mkdir /my_app
4
+ WORKDIR /my_app
5
+ COPY . /my_app
6
+
7
+ RUN gem install bundler && bundle
data/Gemfile ADDED
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in redis-objects-periodical.gemspec
6
+ gemspec name: 'redis-objects-periodical'
7
+
8
+ gem 'bundler', '>= 2.0'
9
+ gem 'pry-byebug'
10
+ gem 'rake', '~> 13.0'
11
+ gem 'rspec', '~> 3.11'
12
+ gem 'rspec_junit_formatter'
13
+ gem 'rubocop', '~> 0.80'
14
+ gem 'rubocop-performance'
15
+ gem 'rubocop-rspec'
16
+ gem 'simplecov', '0.21.2'
17
+ gem 'timecop'
18
+ gem 'yard'
data/Gemfile.lock ADDED
@@ -0,0 +1,98 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ redis-objects-periodical (0.4.0)
5
+ redis-objects
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ast (2.4.2)
11
+ byebug (11.1.3)
12
+ coderay (1.1.3)
13
+ diff-lcs (1.5.0)
14
+ docile (1.4.0)
15
+ method_source (1.0.0)
16
+ parallel (1.22.1)
17
+ parser (3.1.2.0)
18
+ ast (~> 2.4.1)
19
+ pry (0.13.1)
20
+ coderay (~> 1.1)
21
+ method_source (~> 1.0)
22
+ pry-byebug (3.9.0)
23
+ byebug (~> 11.0)
24
+ pry (~> 0.13.0)
25
+ rainbow (3.1.1)
26
+ rake (13.0.6)
27
+ redis (4.7.1)
28
+ redis-objects (1.7.0)
29
+ redis
30
+ regexp_parser (2.5.0)
31
+ rexml (3.2.5)
32
+ rspec (3.11.0)
33
+ rspec-core (~> 3.11.0)
34
+ rspec-expectations (~> 3.11.0)
35
+ rspec-mocks (~> 3.11.0)
36
+ rspec-core (3.11.0)
37
+ rspec-support (~> 3.11.0)
38
+ rspec-expectations (3.11.0)
39
+ diff-lcs (>= 1.2.0, < 2.0)
40
+ rspec-support (~> 3.11.0)
41
+ rspec-mocks (3.11.1)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-support (3.11.0)
45
+ rspec_junit_formatter (0.5.1)
46
+ rspec-core (>= 2, < 4, != 2.12.0)
47
+ rubocop (0.93.1)
48
+ parallel (~> 1.10)
49
+ parser (>= 2.7.1.5)
50
+ rainbow (>= 2.2.2, < 4.0)
51
+ regexp_parser (>= 1.8)
52
+ rexml
53
+ rubocop-ast (>= 0.6.0)
54
+ ruby-progressbar (~> 1.7)
55
+ unicode-display_width (>= 1.4.0, < 2.0)
56
+ rubocop-ast (1.19.1)
57
+ parser (>= 3.1.1.0)
58
+ rubocop-performance (1.10.2)
59
+ rubocop (>= 0.90.0, < 2.0)
60
+ rubocop-ast (>= 0.4.0)
61
+ rubocop-rspec (1.44.1)
62
+ rubocop (~> 0.87)
63
+ rubocop-ast (>= 0.7.1)
64
+ ruby-progressbar (1.11.0)
65
+ simplecov (0.21.2)
66
+ docile (~> 1.1)
67
+ simplecov-html (~> 0.11)
68
+ simplecov_json_formatter (~> 0.1)
69
+ simplecov-html (0.12.3)
70
+ simplecov_json_formatter (0.1.4)
71
+ timecop (0.9.5)
72
+ unicode-display_width (1.8.0)
73
+ webrick (1.7.0)
74
+ yard (0.9.28)
75
+ webrick (~> 1.7.0)
76
+
77
+ PLATFORMS
78
+ aarch64-linux
79
+ x86_64-darwin-19
80
+ x86_64-darwin-20
81
+ x86_64-linux
82
+
83
+ DEPENDENCIES
84
+ bundler (>= 2.0)
85
+ pry-byebug
86
+ rake (~> 13.0)
87
+ redis-objects-periodical!
88
+ rspec (~> 3.11)
89
+ rspec_junit_formatter
90
+ rubocop (~> 0.80)
91
+ rubocop-performance
92
+ rubocop-rspec
93
+ simplecov (= 0.21.2)
94
+ timecop
95
+ yard
96
+
97
+ BUNDLED WITH
98
+ 2.3.18
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Ryosuke Sato
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.