Skip to content

Commit e4b09da

Browse files
authored
Merge pull request #181 from sparkapi/addressable
Name addressable gem as runtime dep
2 parents abb6ed6 + cbfd188 commit e4b09da

File tree

7 files changed

+19
-7
lines changed

7 files changed

+19
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1' ]
12+
ruby: [ '2.7', '3.0', '3.1' ]
1313

1414
steps:
1515
- name: repo checkout

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.7
1+
2.7.2

CHANGELOG

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
v1.6.1
2+
- forward port of v1.5.7
3+
- add addressable as a named runtime dependency (fixes regression from
4+
v1.5.2)
5+
16
v1.6.0
27
- Adding support for Ruby 3.1
38
- Add support for psych 4.0 yaml loading
49
- Lock Faraday down to < 2.0
510

11+
v1.5.7
12+
- add addressable as a named runtime dependency (fixes regression from
13+
v1.5.2)
14+
615
v1.5.6
716
- Modify usage of HighLine so that it does not pollute the global namespace
817

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.6.1

script/bootstrap

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
ruby -v
44
echo "==> Installing gems..."
5-
bundle check --path vendor/bundle 2>&1 > /dev/null || {
6-
bundle install --quiet --path vendor/bundle
5+
bundle config set path 'vendor/bundle'
6+
bundle check 2>&1 > /dev/null || {
7+
bundle install
78
}

spark_api.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
3030
s.executables = ["spark_api"]
3131
s.require_paths = ["lib"]
3232

33+
s.add_dependency 'addressable'
3334
s.add_dependency 'faraday', '>= 0.17.3', '< 2.0'
3435
s.add_dependency 'multi_json', '~> 1.0'
3536
s.add_dependency 'json', '>= 1.7'

spec/unit/spark_api/models/defaultable_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ class TestClass < Base
4444
end
4545

4646
it "passes options to 'default'" do
47-
expect(TestClass).to receive(:default).with(foo: true)
48-
TestClass.find(TestClass::DEFAULT_ID, foo: true)
47+
args = { foo: true }
48+
expect(TestClass).to receive(:default).with(args)
49+
TestClass.find(TestClass::DEFAULT_ID, args)
4950
end
5051

5152
it "calls Finders.find when given a normal id" do

0 commit comments

Comments
 (0)