Skip to content

Commit 79942cb

Browse files
authored
Merge pull request #1 from Ibotta/args-normalization-2
build fixes
2 parents 207336d + 252561c commit 79942cb

18 files changed

+442
-301
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.{diff}]
16+
trim_trailing_whitespace = false

.github/workflows/ci.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on:
2+
push:
3+
branches: [$default-branch]
4+
pull_request:
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
services:
9+
# Label used to access the service container
10+
redis:
11+
# Docker Hub image
12+
image: redis
13+
# Set health checks to wait until redis has started
14+
options: >-
15+
--health-cmd "redis-cli ping"
16+
--health-interval 10s
17+
--health-timeout 5s
18+
--health-retries 5
19+
ports:
20+
# Maps port 6379 on service container to the host
21+
- '6379:6379'
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
ruby-version: ['2.7', '3.0', '3.1', '3.2']
26+
gemfile: ['Gemfile', 'Gemfile.redis3', 'Gemfile.redis4']
27+
env:
28+
# $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
29+
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Set up Ruby ${{ matrix.ruby-version }}
33+
uses: ruby/setup-ruby@v1
34+
with:
35+
ruby-version: ${{ matrix.ruby-version }}
36+
bundler-cache: true
37+
- name: Run tests
38+
env:
39+
# The hostname used to communicate with the Redis service container
40+
REDIS_TEST_HOST: localhost
41+
# The default Redis port
42+
REDIS_TEST_PORT: 6379
43+
run: bundle exec rake

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ Gemfile.lock
55
coverage/
66
.rbx/
77
.bundle/
8+
dump.rdb
9+
stdout

.travis.yml

-10
This file was deleted.

CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
education, socio-economic status, nationality, personal appearance, race,
10+
religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+

Gemfile.redis3

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'https://rubygems.org'
2+
gemspec
3+
4+
gem 'redis', '~> 3.3'
5+
gem 'redis-namespace', '~> 1.5.3'

Gemfile.redis4

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'https://rubygems.org'
2+
gemspec
3+
4+
gem 'redis', '~> 4.8'
5+
gem 'redis-namespace', '~> 1.9'

HISTORY.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.5.0 (Ibotta) (2023-01-23)
2+
3+
- Fix: normalize args when creating identifier
4+
- Fix: adjust test with concurrency issues
5+
- Maintenance: Update gem dependencies to support rubies >= 2.7
6+
- Maintenance: test against redis gem 3, 4
7+
- Maintenance: run in github actions
8+
19
## 0.4.5 (2015-08-04)
210

311
- Fix: ensure exceptions are kept if raised **after** lock timeout expires.

LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Copyright (c) 2023 Ibotta
12
Copyright (c) 2010 Chris Wanstrath
23
Copyright (c) 2010 Ryan Carver
34
Copyright (c) 2010 Luke Antins

0 commit comments

Comments
 (0)