Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support ruby 3.3 #102

Merged
merged 4 commits into from
Jan 3, 2024
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
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2.1

orbs:
ruby: circleci/ruby@2.0.0
ruby: circleci/ruby@2.1.0
python: circleci/[email protected]
slack: circleci/[email protected].3
slack: circleci/[email protected].5

cop_steps: &cop_steps
- checkout
Expand Down Expand Up @@ -39,11 +39,6 @@ slack_steps: &slack_steps
template: basic_success_1

jobs:
ruby-27-spec:
executor:
name: ruby/default
tag: "2.7"
steps: *spec_steps
ruby-30-spec:
executor:
name: ruby/default
Expand All @@ -59,37 +54,42 @@ jobs:
name: ruby/default
tag: "3.2"
steps: *spec_steps
ruby-33-spec:
executor:
name: ruby/default
tag: "3.3"
steps: *spec_steps
cop:
executor:
name: ruby/default
tag: "3.2"
tag: "3.3"
steps: *cop_steps
spell-check:
executor:
name: python/default
tag: "3.11"
tag: "3.12"
steps: *spell_check_steps
slack:
executor:
name: ruby/default
tag: "3.1"
tag: "3.2"
steps: *slack_steps

workflows:
build:
jobs:
- ruby-27-spec
- ruby-30-spec
- ruby-31-spec
- ruby-32-spec
- ruby-33-spec
- cop
- spell-check
- slack:
requires:
- ruby-27-spec
- ruby-30-spec
- ruby-31-spec
- ruby-32-spec
- ruby-33-spec
- cop
- spell-check
context:
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0

Layout/LineLength:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ika3 (0.8.0)
ika3 (0.8.1)
activesupport (>= 5.0.0)
faraday (>= 2.7.0)

Expand Down
2 changes: 1 addition & 1 deletion ika3.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = 'Splatoon3 weapons information library. This gem provide weapon name, sub, and special. not official'
spec.homepage = 'https://github.com/YutaGoto/ika3'
spec.license = 'MIT'
spec.required_ruby_version = '>= 2.7.0'
spec.required_ruby_version = '>= 3.0.0'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/YutaGoto/ika3'
Expand Down
2 changes: 1 addition & 1 deletion lib/ika3/concerns/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Utils
module_function

def load_yaml_file(file)
YAML.safe_load(File.read(file), aliases: true)
YAML.safe_load_file(file, aliases: true)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ika3/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Ika3
VERSION = '0.8.0'
VERSION = '0.8.1'
end