Skip to content

Commit

Permalink
Update CamelTrail to support Rails 7.1 (#247)
Browse files Browse the repository at this point in the history
Updates CamelTrail to support Rails 7.1. To do this, we also needed to
use the upstream version of `attr_encrypted` because our forked version
is outdated and doesn't support Rails 7.

---------

Co-authored-by: Carlos Palhares <[email protected]>
  • Loading branch information
stephenagreer and xjunior authored Feb 28, 2024
1 parent eecc00b commit 535dc1b
Show file tree
Hide file tree
Showing 12 changed files with 348 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/camel_trail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ jobs:
with:
package: ${{ github.workflow }}
workdir: "packages/${{ github.workflow }}"
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile']"
gemfiles: "['gemfiles/rails_6_0.gemfile','gemfiles/rails_6_1.gemfile','gemfiles/rails_7_1.gemfile']"
secrets: inherit
1 change: 1 addition & 0 deletions packages/camel_trail/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.0.6
4 changes: 4 additions & 0 deletions packages/camel_trail/Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ end
appraise "rails-6-1" do
gem "rails", "6.1.7.7"
end

appraise "rails-7-1" do
gem "rails", "7.1.3.2"
end
10 changes: 5 additions & 5 deletions packages/camel_trail/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ PATH
PATH
remote: .
specs:
camel_trail (0.0.2)
camel_trail (1.0.0)
attr_encrypted (= 4.0.0)
nitro_config
powerhome-attr_encrypted (= 1.2.0)
rails (>= 6.0.6.1, < 7.0)
rails (>= 6.0.6.1, < 7.2)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -83,6 +83,8 @@ GEM
rake
thor (>= 0.14.0)
ast (2.4.2)
attr_encrypted (4.0.0)
encryptor (~> 3.0.0)
builder (3.2.4)
concurrent-ruby (1.2.3)
crass (1.0.6)
Expand Down Expand Up @@ -139,8 +141,6 @@ GEM
parser (3.3.0.5)
ast (~> 2.4.1)
racc
powerhome-attr_encrypted (1.2.0)
encryptor (~> 3.0.0)
racc (1.7.3)
rack (2.2.8.1)
rack-test (2.1.0)
Expand Down
4 changes: 2 additions & 2 deletions packages/camel_trail/camel_trail.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Gem::Specification.new do |s|

s.files = Dir["{app,config,db,lib}/**/*"] + ["Rakefile", "docs/README.md"]

s.add_dependency "attr_encrypted", "4.0.0"
s.add_dependency "nitro_config"
s.add_dependency "powerhome-attr_encrypted", "1.2.0"

s.add_dependency "rails", ">= 6.0.6.1", "< 7.0"
s.add_dependency "rails", ">= 6.0.6.1", "< 7.2"

s.add_development_dependency "appraisal", "~> 2.4.1"
s.add_development_dependency "license_finder", ">= 7.0"
Expand Down
5 changes: 5 additions & 0 deletions packages/camel_trail/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## [Unreleased]

## [1.0.0] - 2024-02-28

- Adds support for Rails 7.1
- Uses upstream `attr_encrypted` gem

## [0.0.2] - 2023-01-08

- Bugfixes, minor version bumps
Expand Down
10 changes: 5 additions & 5 deletions packages/camel_trail/gemfiles/rails_6_0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ PATH
PATH
remote: ..
specs:
camel_trail (0.0.2)
camel_trail (1.0.0)
attr_encrypted (= 4.0.0)
nitro_config
powerhome-attr_encrypted (= 1.2.0)
rails (>= 6.0.6.1, < 7.0)
rails (>= 6.0.6.1, < 7.2)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -79,6 +79,8 @@ GEM
rake
thor (>= 0.14.0)
ast (2.4.2)
attr_encrypted (4.0.0)
encryptor (~> 3.0.0)
builder (3.2.4)
concurrent-ruby (1.2.3)
crass (1.0.6)
Expand Down Expand Up @@ -135,8 +137,6 @@ GEM
parser (3.3.0.5)
ast (~> 2.4.1)
racc
powerhome-attr_encrypted (1.2.0)
encryptor (~> 3.0.0)
racc (1.7.3)
rack (2.2.8.1)
rack-test (2.1.0)
Expand Down
2 changes: 1 addition & 1 deletion packages/camel_trail/gemfiles/rails_6_1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ source "https://rubygems.org"

gem "nokogiri", "< 1.16"
gem "rubocop-powerhome", path: "../../rubocop-powerhome"
gem "rails", "~> 6.1.0"
gem "rails", "6.1.7.7"

gemspec path: "../"
12 changes: 6 additions & 6 deletions packages/camel_trail/gemfiles/rails_6_1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ PATH
PATH
remote: ..
specs:
camel_trail (0.0.2)
camel_trail (1.0.0)
attr_encrypted (= 4.0.0)
nitro_config
powerhome-attr_encrypted (= 1.2.0)
rails (>= 6.0.6.1, < 7.0)
rails (>= 6.0.6.1, < 7.2)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -83,6 +83,8 @@ GEM
rake
thor (>= 0.14.0)
ast (2.4.2)
attr_encrypted (4.0.0)
encryptor (~> 3.0.0)
builder (3.2.4)
concurrent-ruby (1.2.3)
crass (1.0.6)
Expand Down Expand Up @@ -139,8 +141,6 @@ GEM
parser (3.3.0.5)
ast (~> 2.4.1)
racc
powerhome-attr_encrypted (1.2.0)
encryptor (~> 3.0.0)
racc (1.7.3)
rack (2.2.8.1)
rack-test (2.1.0)
Expand Down Expand Up @@ -268,7 +268,7 @@ DEPENDENCIES
camel_trail!
license_finder (>= 7.0)
nokogiri (< 1.16)
rails (~> 6.1.0)
rails (= 6.1.7.7)
rake (~> 13)
rspec (~> 3.0)
rspec-rails (~> 5.1.2)
Expand Down
9 changes: 9 additions & 0 deletions packages/camel_trail/gemfiles/rails_7_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "nokogiri", "< 1.16"
gem "rubocop-powerhome", path: "../../rubocop-powerhome"
gem "rails", "7.1.3.2"

gemspec path: "../"
Loading

0 comments on commit 535dc1b

Please sign in to comment.