Skip to content

Commit

Permalink
feature(gemspec) - specify activerecord version as a range to run a t…
Browse files Browse the repository at this point in the history
…est matrix on Github Actions
  • Loading branch information
harunkumars committed Apr 29, 2024
1 parent 003f793 commit 5715b04
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
rich_enums (0.1.3)
activerecord (~> 6.1)
rich_enums (0.1.4)
activerecord (>= 6.1, < 8.0)

GEM
remote: https://rubygems.org/
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/activerecord_6.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "https://rubygems.org"

gem "activerecord", "~> 6.1"
gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"

# Specify your gem's dependencies in rich_enums.gemspec
gemspec path: "../"
8 changes: 8 additions & 0 deletions gemfiles/activerecord_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "https://rubygems.org"

gem "activerecord", "~> 7.1"
gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"

# Specify your gem's dependencies in rich_enums.gemspec
gemspec path: "../"
8 changes: 8 additions & 0 deletions gemfiles/activerecord_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "https://rubygems.org"

gem "activerecord", "~> 7.2"
gem "rake", "~> 12.0"
gem "rspec", "~> 3.0"

# Specify your gem's dependencies in rich_enums.gemspec
gemspec path: "../"
3 changes: 1 addition & 2 deletions rich_enums.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ DESC
spec.metadata['source_code_uri'] = 'https://github.com/betacraft/rich_enums'
spec.metadata['changelog_uri'] = 'https://github.com/betacraft/rich_enums/README.md'

spec.add_runtime_dependency 'activerecord', '~> 6.1'
spec.add_development_dependency 'sqlite3', '~> 1.4'
spec.add_development_dependency 'temping', '~> 4.1'

spec.add_runtime_dependency 'activerecord', '>= 6.1', '< 8.0'
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
Expand Down

0 comments on commit 5715b04

Please sign in to comment.