Skip to content

Commit

Permalink
Update Travis matrix to use latest Ruby versions (#139)
Browse files Browse the repository at this point in the history
Update Travis matrix to use latest Ruby versions
  • Loading branch information
mrcasals authored Jul 8, 2019
2 parents 088f376 + bd57ae1 commit 48faa7d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ sudo: false

matrix:
include:
- rvm: 2.4.1
- rvm: 2.4.1
- rvm: 2.6.3
- rvm: 2.5.5
- rvm: 2.4.6
- rvm: 2.4.6
script:
- bundle exec danger
- rvm: jruby-9.1.12.0
- rvm: jruby-9.2.7.0
- rvm: jruby-head
- rvm: 2.3.4
- rvm: rbx-2
- rvm: 2.3.8
- rvm: ruby-head
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
- rvm: rbx-2

before_install:
- gem update --system
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Your contribution here.
* [#136](https://github.com/codegram/hyperclient/pull/136): Fix danger warnings for changelog - [@ivoanjo](https://github.com/ivoanjo).
* [#135](https://github.com/codegram/hyperclient/pull/135): Fix validation for empty body responses - [@paulocdf](https://github.com/paulocdf).
* [#139](https://github.com/codegram/hyperclient/pull/139): Test `hyperclient` against newer versions of MRI Ruby, up until 2.6.x - [@mrcasals](https://github.com/mrcasals).

### 0.9.0 (2018/01/10)

Expand Down
30 changes: 15 additions & 15 deletions test/fixtures/element.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"self": {
"href": "/productions/1"
},
"filter": {
"href": "/productions/1?categories={filter}",
"search": {
"href": "/productions/1?categories={search}",
"templated": true
},
"gizmos": [
Expand All @@ -15,17 +15,17 @@
"href": "/gizmos/2"
}
],
"curies" : [
"curies": [
{
"name": "image",
"href": "/docs/images/{rel}",
"templated": true
"name": "image",
"href": "/docs/images/{rel}",
"templated": true
}
],
"null_link": null,
"image:thumbnail": {
"href": "/images/thumbnails/{version}.jpg",
"templated": true
"href": "/images/thumbnails/{version}.jpg",
"templated": true
}
},
"title": "Real World ASP.NET MVC3",
Expand All @@ -48,9 +48,9 @@
"href": "/episodes/1"
},
"media": {
"type": "video/webm; codecs='vp8.0, vorbis'",
"href": "/media/1"
}
"type": "video/webm; codecs='vp8.0, vorbis'",
"href": "/media/1"
}
},
"title": "Foundations",
"description": "In this episode we talk about what it is we're doing: building our startup and getting ourselves off the ground. We take..",
Expand All @@ -62,14 +62,14 @@
"href": "/episodes/2"
},
"media": {
"type": "video/ogg; codecs='theora, vorbis'",
"href": "/media/4"
}
"type": "video/ogg; codecs='theora, vorbis'",
"href": "/media/4"
}
},
"title": "Membership",
"description": "In this episode Rob hooks up testing in an effort to deal with ASP.NET Membership. The team has decided..",
"released": 1306972800
}
]
}
}
}
8 changes: 4 additions & 4 deletions test/hyperclient/link_collection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ module Hyperclient
end

it 'initializes the collection with links' do
links.must_respond_to :filter
links.must_respond_to :search
links.must_respond_to :gizmos
end

it 'returns link objects for each link' do
links.filter.must_be_kind_of Link
links.search.must_be_kind_of Link
links['self'].must_be_kind_of Link

links.gizmos.must_be_kind_of Array
Expand All @@ -38,9 +38,9 @@ module Hyperclient
end

describe 'templated link' do
let(:templated_link) { links.filter }
let(:templated_link) { links.search }
it 'must expand' do
templated_link._expand(filter: 'gizmos')._url.must_equal '/productions/1?categories=gizmos'
templated_link._expand(search: 'gizmos')._url.must_equal '/productions/1?categories=gizmos'
end
end

Expand Down

0 comments on commit 48faa7d

Please sign in to comment.