Skip to content

Commit

Permalink
Merge pull request #72 from salemove/expand-ruby-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sm-deployer committed Dec 27, 2023
2 parents 33b7981 + 63e2ecb commit 623be41
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0']
ruby-version: ['2.7', '3.0', '3.1', '3.2']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
# Automatically get bug fixes and new Ruby versions for ruby/setup-ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
Expand Down
7 changes: 1 addition & 6 deletions lib/salestation/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
module Salestation
class App
module Types
dry_types_version = Gem.loaded_specs['dry-types'].version
if dry_types_version < Gem::Version.new('0.15.0')
include Dry::Types.module
else
include Dry::Types()
end
include Dry::Types()
end

def initialize(env:, hooks: {})
Expand Down
7 changes: 1 addition & 6 deletions lib/salestation/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@
module Salestation
class Web < Module
module Types
dry_types_version = Gem.loaded_specs['dry-types'].version
if dry_types_version < Gem::Version.new('0.15.0')
include Dry::Types.module
else
include Dry::Types()
end
include Dry::Types()
end

def initialize(errors: {})
Expand Down
2 changes: 1 addition & 1 deletion salestation.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = "salestation"
spec.version = "5.3.2"
spec.version = "5.3.3"
spec.authors = ["Glia TechMovers"]
spec.email = ["open-source@glia.com"]

Expand Down

0 comments on commit 623be41

Please sign in to comment.