Skip to content

Commit 642cfd2

Browse files
authored
884: Ruby upgrade (#29)
* 884: Ruby upgrade * 884: Fix rubocop issues * 884: Rubocop 4.0 * 884: Use Ruby 3.0.0 in gempsec * 884: Use Ruby 4.0 in CI * 884: Don't use bundler cache * 884: Revert * 884: Fix rubocop in CI * 884: Address PR comments * 884: Drop ruby version for rubocop * 884: Fix rubocop failure * 884: Add newline to end of .rubocop.yml
1 parent 87e452f commit 642cfd2

17 files changed

Lines changed: 48 additions & 43 deletions

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,22 @@ on: [push]
44
jobs:
55
test:
66
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
ruby-version: ['3.3', '3.4', '4.0']
710
steps:
8-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
912
- uses: ruby/setup-ruby@v1
1013
with:
11-
ruby-version: 3.1
14+
ruby-version: ${{ matrix.ruby-version }}
1215
bundler-cache: true
13-
- run: bundle install
1416
- run: bundle exec rspec
1517
rubocop:
1618
runs-on: ubuntu-latest
1719
steps:
18-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
1921
- uses: ruby/setup-ruby@v1
2022
with:
21-
ruby-version: 3.1
23+
ruby-version: '4.0'
2224
bundler-cache: true
23-
- run: bundle install
2425
- run: bundle exec rubocop

.rubocop.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
require:
2-
- rubocop-performance
3-
41
AllCops:
52
NewCops: enable
6-
TargetRubyVersion: 2.6
3+
SuggestExtensions: false
4+
5+
plugins:
6+
- rubocop-performance
77
Metrics/AbcSize:
88
Enabled: false
99
Metrics/BlockLength:

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.2
1+
4.0.1

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## [1.1.0] - 2026-02-11
4+
5+
### Breaking Changes
6+
- Now requires Faraday 2.x (previously supported Faraday 1.x)
7+
- Dropped support for Ruby versions older than 3.3. Officially supported versions are Ruby 3.3, 3.4, and 4.0.

Gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,14 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
66

77
# Specify your gem's dependencies in action_network_rest.gemspec
88
gemspec
9+
10+
group :development do
11+
gem 'bundler', '>= 2.0', '< 5.0'
12+
gem 'debug', '~> 1.0'
13+
gem 'dotenv', '~> 2.7'
14+
gem 'rake', '~> 13.0'
15+
gem 'rspec', '~> 3.0'
16+
gem 'rubocop', '~> 1.0'
17+
gem 'rubocop-performance', '~> 1.0'
18+
gem 'webmock', '~> 3.0'
19+
end

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Ruby client for interacting with the [ActionNetwork REST API](https://actionnetw
44

55
[![CI Status](https://github.com/controlshift/action-network-rest/actions/workflows/ci.yml/badge.svg)](https://github.com/controlshift/action-network-rest/actions/workflows/ci.yml)
66

7+
## Requirements
8+
9+
- Ruby 3.3, 3.4, or 4.0
10+
- Faraday ~> 2.0
11+
712
## Installation
813

914
Add this line to your application's Gemfile:

action_network_rest.gemspec

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ require 'action_network_rest/version'
77
Gem::Specification.new do |spec|
88
spec.name = 'action_network_rest'
99
spec.version = ActionNetworkRest::VERSION
10-
spec.authors = ['Grey Moore']
11-
spec.email = ['grey@controlshiftlabs.com']
10+
spec.authors = ['Grey Moore', 'Owens Ehimen', 'Diego Marcet']
11+
spec.email = ['talk@controlshiftlabs.com']
1212

1313
spec.summary = 'Ruby client for interacting with the ActionNetwork REST API'
1414
spec.homepage = 'https://github.com/controlshift/action-network-rest'
@@ -21,17 +21,11 @@ Gem::Specification.new do |spec|
2121
end
2222
spec.require_paths = ['lib']
2323

24-
spec.required_ruby_version = '>= 2.6'
24+
spec.required_ruby_version = ['>= 3.3', '< 5.0']
2525

26-
spec.add_runtime_dependency 'vertebrae', '>= 1.0.0'
26+
spec.add_dependency 'faraday', '~> 2.0'
27+
spec.add_dependency 'faraday-mashify', '~> 1.0'
28+
spec.add_dependency 'vertebrae', '~> 1.0'
2729

28-
spec.add_development_dependency 'bundler', '~> 2.1'
29-
spec.add_development_dependency 'debug', '> 0'
30-
spec.add_development_dependency 'dotenv', '~> 2.7'
31-
spec.add_development_dependency 'rake', '~> 13.0'
32-
spec.add_development_dependency 'rspec', '~> 3.0'
33-
spec.add_development_dependency 'rubocop', '> 0'
34-
spec.add_development_dependency 'rubocop-performance', '> 0'
35-
spec.add_development_dependency 'webmock', '~> 3.8.3'
3630
spec.metadata['rubygems_mfa_required'] = 'true'
3731
end

bin/rake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# this file is here to facilitate running it.
99
#
1010

11-
require 'pathname'
1211
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
1312
Pathname.new(__FILE__).realpath)
1413

bin/rspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# this file is here to facilitate running it.
99
#
1010

11-
require 'pathname'
1211
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
1312
Pathname.new(__FILE__).realpath)
1413

lib/action_network_rest.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require 'vertebrae'
4+
require 'faraday/mashify'
45

56
module ActionNetworkRest
67
extend Vertebrae::Base

0 commit comments

Comments
 (0)