Skip to content

Commit 4a2f1c0

Browse files
authored
Merge pull request #300 from dblock/maintenance
2 parents 85a3234 + a9cfe61 commit 4a2f1c0

File tree

14 files changed

+55
-26
lines changed

14 files changed

+55
-26
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13-
- name: Install Ruby (2.7)
14-
uses: ruby/setup-ruby@v1
13+
- uses: ruby/setup-ruby@v1
1514
with:
16-
ruby-version: 2.7
15+
ruby-version: 3.4
1716
bundler-cache: true
18-
- name: Build and test with RSpec
19-
run: |
20-
bundle exec rake test
21-
- name: Coveralls
22-
uses: coverallsapp/github-action@master
17+
- run: |
18+
bundle exec rake test spinach
19+
- uses: coverallsapp/github-action@v2
2320
with:
2421
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/danger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on:
55
types: [opened, reopened, edited, synchronize]
66
jobs:
77
danger:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
1111
with:
1212
fetch-depth: 0
1313
- name: Set up Ruby
1414
uses: ruby/setup-ruby@v1
1515
with:
16-
ruby-version: 2.7
16+
ruby-version: 3.4
1717
bundler-cache: true
1818
- name: Run Danger
1919
run: |

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
fail-fast: false
99
matrix:
1010
entry:
11+
- { ruby: '3.4' }
1112
- { ruby: '3.2' }
1213
- { ruby: '2.7' }
1314
- { ruby: 'ruby-head', allowed-failure: true }

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
inherit_from: .rubocop_todo.yml
22

3-
require:
3+
plugins:
44
- rubocop-rake
55
- rubocop-minitest
66

.rubocop_todo.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2024-05-12 16:41:11 UTC using RuboCop version 1.63.5.
3+
# on 2025-09-10 13:55:47 UTC using RuboCop version 1.80.2.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

99
# Offense count: 1
10-
# Configuration parameters: Severity, Include.
11-
# Include: **/*.gemspec
10+
# Configuration parameters: Severity.
1211
Gemspec/RequiredRubyVersion:
1312
Exclude:
1413
- 'hyperclient.gemspec'
@@ -30,16 +29,19 @@ Lint/MissingSuper:
3029

3130
# Offense count: 1
3231
# This cop supports unsafe autocorrection (--autocorrect-all).
33-
# Configuration parameters: AllowedMethods.
32+
# Configuration parameters: AllowedMethods, InferNonNilReceiver, AdditionalNilMethods.
3433
# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
34+
# AdditionalNilMethods: present?, blank?, try, try!
3535
Lint/RedundantSafeNavigation:
3636
Exclude:
3737
- 'lib/hyperclient/link.rb'
3838

3939
# Offense count: 3
4040
# This cop supports unsafe autocorrection (--autocorrect-all).
41-
# Configuration parameters: EnforcedStyle.
41+
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
4242
# SupportedStyles: nested, compact
43+
# SupportedStylesForClasses: ~, nested, compact
44+
# SupportedStylesForModules: ~, nested, compact
4345
Style/ClassAndModuleChildren:
4446
Exclude:
4547
- 'features/steps/api_navigation.rb'

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
### 2.0.1 (Next)
44

5-
* [#298](https://github.com/codegram/hyperclient/pull/298): Upgraded rubocop to 1.63.5 - [@dblock](https://github.com/dblock).
5+
* [#298](https://github.com/codegram/hyperclient/pull/300): Upgraded RuboCop to 1.80.2 - [@dblock](https://github.com/dblock).
6+
* [#298](https://github.com/codegram/hyperclient/pull/298): Upgraded RuboCop to 1.63.5 - [@dblock](https://github.com/dblock).
67
* Your contribution here.
78

89
### 2.0.0 (2024/02/01)
910

1011
* [#268](https://github.com/codegram/hyperclient/pull/268): Replace Travis-CI with GHA - [@dblock](https://github.com/dblock).
1112
* [#269](https://github.com/codegram/hyperclient/pull/269): Re-add code coverage - [@dblock](https://github.com/dblock).
12-
* [#270](https://github.com/codegram/hyperclient/pull/270): Upgrade Rubocop to 1.45 - [@dblock](https://github.com/dblock).
13+
* [#270](https://github.com/codegram/hyperclient/pull/270): Upgrade RuboCop to 1.45 - [@dblock](https://github.com/dblock).
1314
* [#271](https://github.com/codegram/hyperclient/pull/271): Test against Ruby 3.2 - [@dblock](https://github.com/dblock).
1415
* [#285](https://github.com/codegram/hyperclient/pull/285): Support Faraday 2.x - [@dblock](https://github.com/dblock).
1516

@@ -44,14 +45,14 @@
4445
### 0.9.0 (2018/01/10)
4546

4647
* [#133](https://github.com/codegram/hyperclient/pull/133): Removed futuroscope - [@dblock](https://github.com/dblock).
47-
* [#131](https://github.com/codegram/hyperclient/pull/131): Upgrade to Rubocop 0.50.0, fix Bundler's insecure git source warning - [@nebolsin](https://github.com/nebolsin).
48+
* [#131](https://github.com/codegram/hyperclient/pull/131): Upgrade to RuboCop 0.50.0, fix Bundler's insecure git source warning - [@nebolsin](https://github.com/nebolsin).
4849
* [#132](https://github.com/codegram/hyperclient/pull/132): Swapped yard dependency for danger-toc - [@dblock](https://github.com/dblock).
4950

5051
### 0.8.6 (2017/08/27)
5152

5253
* [#122](https://github.com/codegram/hyperclient/pull/122): Improve error message when server returns invalid data - [@ivoanjo](https://github.com/ivoanjo).
5354
* [#125](https://github.com/codegram/hyperclient/pull/125): Add table of contents to readme and add note asking users to add their projects to the wiki - [@ivoanjo](https://github.com/ivoanjo).
54-
* [#127](https://github.com/codegram/hyperclient/pull/127): Minor fixes: Fix warnings, and pry-byebug to dev Gemfile and tweak rubocop execution - [@ivoanjo](https://github.com/ivoanjo).
55+
* [#127](https://github.com/codegram/hyperclient/pull/127): Minor fixes: Fix warnings, and pry-byebug to dev Gemfile and tweak RuboCop execution - [@ivoanjo](https://github.com/ivoanjo).
5556
* [#128](https://github.com/codegram/hyperclient/pull/128): Fix link delegation returning nil for field with value false - [@ivoanjo](https://github.com/ivoanjo).
5657

5758
### 0.8.5 (2017/07/05)
@@ -112,7 +113,7 @@
112113
* [#64](https://github.com/codegram/hyperclient/issues/64): Added support for curies - [@dblock](https://github.com/dblock).
113114
* [#58](https://github.com/codegram/hyperclient/issues/58): Automatically follow redirects - [@dblock](https://github.com/dblock).
114115
* [#63](https://github.com/codegram/hyperclient/pull/63): You can omit the navigational elements, `api.links.products` is now equivalent to `api.products` - [@dblock](https://github.com/dblock).
115-
* [#61](https://github.com/codegram/hyperclient/pull/61): Implemented Rubocop, Ruby-style linter - [@dblock](https://github.com/dblock).
116+
* [#61](https://github.com/codegram/hyperclient/pull/61): Implemented RuboCop, Ruby-style linter - [@dblock](https://github.com/dblock).
116117

117118
### 0.4.0 (2014/05/05)
118119

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end
1313

1414
group :development, :test do
1515
gem 'rake'
16-
gem 'rubocop', '~> 1.63.5', require: false
16+
gem 'rubocop', '~> 1.80.2', require: false
1717
gem 'rubocop-minitest', require: false
1818
gem 'rubocop-rake', require: false
1919
gem 'simplecov', require: false

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Gem Version](http://img.shields.io/gem/v/hyperclient.svg)](http://badge.fury.io/rb/hyperclient)
44
[![Build Status](https://github.com/codegram/hyperclient/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/codegram/hyperclient/actions/workflows/test.yml)
5-
[![Code Climate](https://codeclimate.com/github/codegram/hyperclient.svg)](https://codeclimate.com/github/codegram/hyperclient)
65
[![Coverage Status](https://img.shields.io/coveralls/codegram/hyperclient.svg)](https://coveralls.io/r/codegram/hyperclient?branch=master)
76

87
Hyperclient is a Hypermedia API client written in Ruby. It fully supports [JSON HAL](http://stateless.co/hal_specification.html).

features/support/env.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
class Spinach::FeatureSteps
1010
include Minitest::Assertions
11+
1112
attr_accessor :assertions
1213

1314
def initialize(*args)
14-
super(*args)
15+
super
1516
self.assertions = 0
1617
end
1718
end

test/hyperclient/entry_point_test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ module Hyperclient
2121
it 'can update headers after a connection has been constructed' do
2222
_(entry_point.connection).must_be_kind_of Faraday::Connection
2323
entry_point.headers.update('Content-Type' => 'application/foobar')
24+
2425
_(entry_point.headers['Content-Type']).must_equal 'application/foobar'
2526
end
2627

2728
it 'can insert additional middleware after a connection has been constructed' do
2829
_(entry_point.connection).must_be_kind_of Faraday::Connection
2930
entry_point.connection.use Faraday::Request::Instrumentation
3031
handlers = entry_point.connection.builder.handlers
32+
3133
_(handlers).must_include Faraday::Request::Instrumentation
3234
end
3335

@@ -136,6 +138,7 @@ module Hyperclient
136138

137139
it 'creates a Faraday connection with the default block' do
138140
handlers = entry_point.connection.builder.handlers
141+
139142
_(handlers).wont_include Faraday::Response::RaiseError
140143
_(handlers).wont_include Faraday::FollowRedirects
141144
_(handlers).must_include Faraday::Request::Json

0 commit comments

Comments
 (0)