Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: RSpec

on:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true

- run: bundle exec rspec
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.0.0
56 changes: 31 additions & 25 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,52 @@ PATH
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.4)
public_suffix (>= 2.0.2, < 6.0)
addressable (2.8.9)
public_suffix (>= 2.0.2, < 8.0)
bigdecimal (4.0.1)
coderay (1.1.3)
crack (0.4.5)
crack (1.0.1)
bigdecimal
rexml
diff-lcs (1.5.0)
diff-lcs (1.6.2)
faraday (2.14.1)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.2)
net-http (~> 0.5)
hashdiff (1.0.1)
json (2.18.1)
hashdiff (1.2.1)
io-console (0.8.2)
json (2.19.2)
logger (1.7.0)
method_source (1.0.0)
method_source (1.1.0)
net-http (0.9.1)
uri (>= 0.11.1)
pry (0.14.2)
pry (0.16.0)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (5.0.1)
rake (13.0.6)
reline (>= 0.6.0)
public_suffix (7.0.5)
rake (13.3.1)
reline (0.6.3)
io-console (~> 0.5)
require_all (3.0.0)
rexml (3.4.2)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rexml (3.4.4)
rspec (3.13.2)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.6)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.5)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.8)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
rspec-support (~> 3.13.0)
rspec-support (3.13.7)
uri (1.1.1)
webmock (3.18.1)
webmock (3.26.2)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
Expand All @@ -56,12 +62,12 @@ PLATFORMS
ruby

DEPENDENCIES
bundler (~> 2.1)
bundler
pry
rake
rspec
sendyr!
webmock

BUNDLED WITH
2.1.4
4.0.7
2 changes: 1 addition & 1 deletion lib/sendyr/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def update_subscription(email, opts = {})
end

unless [:complained, :unsubscribed].include?(status)
subscribe({email: email}.merge(opts)) == true
subscribe(**{email: email}.merge(opts)) == true
else
false
end
Expand Down
2 changes: 1 addition & 1 deletion sendyr.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "faraday"
spec.add_runtime_dependency "require_all"

spec.add_development_dependency "bundler", "~> 2.1"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "webmock"
Expand Down
Loading