Skip to content

Commit

Permalink
ROR Upgrade - Ruby 3 / Rails 7 (#2602)
Browse files Browse the repository at this point in the history
* upgraded bunder to '2.3.6' and ruby '3.0.2' and all gems in gemfile

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* upgraded to ruby 3.1.0; made rubyracer gem conditional for mac

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* updated all reference of ruby 2.7.5 to 3.1.0; updated gems in fieri engine

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced therubyracer with mini_racer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* using bundler version 2.3.6

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added net-smtp gem

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* using 3.0.3 ruby as this is the latest supported ruby in omnibus-software

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Upgrading to ruby 3.1.0 and gem upgrades

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added net-smtp in gemfile

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Rails upgrade 7.0.2

* upgrade to rails 7.0.1 gem; updated all gems

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* explicit require s3_config in initializer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* upgrade rails version to 7.0.2 in gemfile

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* file path concatenation syntax fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Rails 7.0.2 upgrade completed with all configuration changes and schema.rb changes as per rails 7

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* lib utils path added in autoload paths in application config

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* missing template fix in render in spec

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Unit testcases fix

* Added json format responder for not_found cases in application controller

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* test view rendering spec fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced paperclip with kt-paperclip

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* changed cache_store to memory_store from null_store for test env

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Fix issue: Psych::DisallowedClass: Tried to load unspecified class: Time

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* explicitly specified the template name for render to fix: ActionView::MissingTemplate

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Specified template and format for render in specs

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Added sprockets-rails in fieri.gemspec

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* upgraded kt-paperclip version to 7 and rails patch version upgrade to 7.0.2.2

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* lint errors fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* passing template_path in it_behave_like for shared example

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed unnecessary whitelisting of Time, Symbol in Psych; Changed delayed mailer implementaion: sending simple objects instead of compless objects in params of methods invoked in an async manner

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Added back Time and Symbol in Psych whitelist

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* fixed mailer signature

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed complex atrributes and replaced with simple attributes

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced complex parameter to primitive datatype parameter for delayed mailer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* rolled back argument change for CollaboratorMailer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Gemfile cleanup

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* using variable for template_path instead of string literal

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Omnibus build fix for ROR upgrade of supermarket to ruby 3 and rails 7 (#2612)

* added ruby in omnibus softwares for support of 3.1.0

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* disabling version condition as it's breaking for ruby 3.1.0

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added patch condition for ruby 3.1.0

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* going to ruby version 3.0.3

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* remove ruby software definition as we can use omnibus software definition

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Added mini_racer gem for precompilation

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced ruby 2.7 with 3.0.3

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Antima/test rails7 omnibus build/infsus 59 (#2739)

* Smriti/merge dependabot pr infus 173 (#2730)

* Bump capybara from 3.36.0 to 3.37.1 in /src/supermarket

Bumps [capybara](https://github.com/teamcapybara/capybara) from 3.36.0 to 3.37.1.
- [Release notes](https://github.com/teamcapybara/capybara/releases)
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md)
- [Commits](teamcapybara/capybara@3.36.0...3.37.1)

---
updated-dependencies:
- dependency-name: capybara
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump omnibus from `27c37fc` to `63be4f1` in /omnibus

Bumps [omnibus](https://github.com/chef/omnibus) from `27c37fc` to `63be4f1`.
- [Release notes](https://github.com/chef/omnibus/releases)
- [Commits](chef/omnibus@27c37fc...63be4f1)

---
updated-dependencies:
- dependency-name: omnibus
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump rails from 6.1.5.1 to 6.1.6 in /src/supermarket/engines/fieri

Bumps [rails](https://github.com/rails/rails) from 6.1.5.1 to 6.1.6.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](rails/rails@v6.1.5.1...v6.1.6)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump rails from 6.1.5.1 to 6.1.6 in /src/supermarket

Bumps [rails](https://github.com/rails/rails) from 6.1.5.1 to 6.1.6.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](rails/rails@v6.1.5.1...v6.1.6)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Merge conflicts resolved

Signed-off-by: smriti <sgarg@msystechnologies.com>

* Bump nokogiri from 1.13.5 to 1.13.6 in /src/supermarket

Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.13.5 to 1.13.6.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/v1.13.6/CHANGELOG.md)
- [Commits](sparklemotion/nokogiri@v1.13.5...v1.13.6)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump version to 5.1.29 by Chef Expeditor

Obvious fix; these changes are the result of automation not creative thinking.

* upgraded bunder to '2.3.6' and ruby '3.0.2' and all gems in gemfile

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* upgraded to ruby 3.1.0; made rubyracer gem conditional for mac

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* updated all reference of ruby 2.7.5 to 3.1.0; updated gems in fieri engine

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced therubyracer with mini_racer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* using bundler version 2.3.6

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added net-smtp gem

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* using 3.0.3 ruby as this is the latest supported ruby in omnibus-software

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Upgrading to ruby 3.1.0 and gem upgrades

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added net-smtp in gemfile

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Rails upgrade 7.0.2

* upgrade to rails 7.0.1 gem; updated all gems

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* explicit require s3_config in initializer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* upgrade rails version to 7.0.2 in gemfile

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* file path concatenation syntax fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Rails 7.0.2 upgrade completed with all configuration changes and schema.rb changes as per rails 7

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* lib utils path added in autoload paths in application config

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* missing template fix in render in spec

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Unit testcases fix

* Added json format responder for not_found cases in application controller

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* test view rendering spec fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced paperclip with kt-paperclip

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* changed cache_store to memory_store from null_store for test env

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Fix issue: Psych::DisallowedClass: Tried to load unspecified class: Time

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* explicitly specified the template name for render to fix: ActionView::MissingTemplate

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Specified template and format for render in specs

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Added sprockets-rails in fieri.gemspec

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* upgraded kt-paperclip version to 7 and rails patch version upgrade to 7.0.2.2

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* lint errors fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* passing template_path in it_behave_like for shared example

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed unnecessary whitelisting of Time, Symbol in Psych; Changed delayed mailer implementaion: sending simple objects instead of compless objects in params of methods invoked in an async manner

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Added back Time and Symbol in Psych whitelist

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* fixed mailer signature

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed complex atrributes and replaced with simple attributes

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced complex parameter to primitive datatype parameter for delayed mailer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* rolled back argument change for CollaboratorMailer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Gemfile cleanup

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* using variable for template_path instead of string literal

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Omnibus build fix for ROR upgrade of supermarket to ruby 3 and rails 7 (#2612)

* added ruby in omnibus softwares for support of 3.1.0

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* disabling version condition as it's breaking for ruby 3.1.0

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added patch condition for ruby 3.1.0

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* going to ruby version 3.0.3

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* remove ruby software definition as we can use omnibus software definition

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Added mini_racer gem for precompilation

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced ruby 2.7 with 3.0.3

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* replaced mini racer with sprockets

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Added mini_racer gem

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* lint error fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* chefspec issue fix by hash syntax correction

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* cookstyle linter error fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* check downgrading mini_racer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added nodejs-binary as omnibus dependency and removed mini_racer gem

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* using nodejs instead of nodejs-binary as omnibus dependency

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* changed nodejs-binary version

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added back mini_racer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed patch version of ruby, just using 3.0 as version

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* upgraded mini racer from 0.3.1 to 0.4.0 in omnibus-supermarket cookbook

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* specified complete ruby version for cookbook testing workflow

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* specified patch version for ruby 3

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed unnecessary freeze call

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added nodejs-binary back

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed mini_racer and exec js gem

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added gem lock

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* using latest version of mini_racer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed version constraint for mini_racer

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added mini_racer platforms specific

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added nodejs dependency for supermarket for js runtime

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added python software def as nodejs depends on it

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removing python dependency from nodejs

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed nodejs dependency

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added asset related gems in a group in gemfile

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* migration file made compatible with ruby 3

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* wrong number of arguments for index_exists? - fix

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* changed add_index statement to make it compatible with rails 7

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* gemfile cleanup

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed mini_racer from omnibus-software cookbook

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* added retry statement for all the cookbook using runit cookbook

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* changed the source of runit cookbook

Signed-off-by: Rajesh Paul <rajesh.093038@gmail.com>
Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* removed unnecessary dependency

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* Revert "added retry statement for all the cookbook using runit cookbook"

This reverts commit 9c661fd.

* Revert "changed the source of runit cookbook"

This reverts commit d2639b3.

* changed ruby version to 3.0

Signed-off-by: smriti <sgarg@msystechnologies.com>

* rebase with main.

Signed-off-by: antima-gupta <agupta@msystechnologies.com>

* Updated brakeman version to 5.0.4.

Signed-off-by: antima-gupta <agupta@msystechnologies.com>

* changed ruby version to 3.0

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* changed ruby version to 3.0 in github workflows

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

* test changes

Signed-off-by: Rajesh Paul <rajesh.paul@progress.com>

Co-authored-by: Smriti Garg <78783383+msys-sgarg@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chef Expeditor <chef-ci@chef.io>
Co-authored-by: Rajesh Paul <rajesh.093038@gmail.com>
Co-authored-by: antima-gupta <agupta@msystechnologies.com>
Co-authored-by: smriti <sgarg@msystechnologies.com>

Co-authored-by: Smriti Garg <78783383+msys-sgarg@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chef Expeditor <chef-ci@chef.io>
Co-authored-by: Rajesh Paul <rajesh.093038@gmail.com>
Co-authored-by: antima-gupta <agupta@msystechnologies.com>
Co-authored-by: smriti <sgarg@msystechnologies.com>
  • Loading branch information
7 people authored Jun 1, 2022
1 parent 09234e8 commit 62ec0d5
Show file tree
Hide file tree
Showing 49 changed files with 583 additions and 338 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/brakeman-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.0'

- name: Setup Brakeman
env:
BRAKEMAN_VERSION: '4.10' # SARIF support is provided in Brakeman version 4.10+
BRAKEMAN_VERSION: '5.0.4' # SARIF support is provided in Brakeman version 4.10+
run: |
gem install brakeman --version $BRAKEMAN_VERSION
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ctl-cookbook-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
working-directory: omnibus
ruby-version: 2.7
ruby-version: 3.0.3
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run cookstyle
Expand All @@ -31,7 +31,7 @@ jobs:
with:
# once we move the -ctl command to its own gemspec this can be changed back to omnibus like above
working-directory: omnibus/cookbooks/omnibus-supermarket
ruby-version: 2.7
ruby-version: 3.0.3
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run chefspec
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
working-directory: src/supermarket
ruby-version: 2.7
ruby-version: 3.0.3
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run chefstyle
Expand All @@ -31,7 +31,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
working-directory: src/supermarket/engines/fieri
ruby-version: 2.7
ruby-version: 3.0.3
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run chefstyle
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up ruby 2.7.5
- name: Set up ruby 3.0
uses: ruby/setup-ruby@v1
with:
working-directory: src/supermarket
ruby-version: 2.7.5
ruby-version: 3.0
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: create database schema
Expand Down Expand Up @@ -67,11 +67,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up ruby 2.7.5
- name: Set up ruby 3.0
uses: ruby/setup-ruby@v1
with:
working-directory: src/supermarket/engines/fieri
ruby-version: 2.7.5
ruby-version: 3.0
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- name: run specs
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

#### Merged Pull Requests
- Allow multiple hostname [#2733](https://github.com/chef/supermarket/pull/2733) ([pratixha](https://github.com/pratixha))
- Fixed security vulnerabilities [#2691](https://github.com/chef/supermarket/pull/2691) ([pratixha](https://github.com/pratixha))
- Combined dependabot PRs [#2740](https://github.com/chef/supermarket/pull/2740) ([pratixha](https://github.com/pratixha))
- Added missing include runit service in nginx [#2735](https://github.com/chef/supermarket/pull/2735) ([saghoshprogress](https://github.com/saghoshprogress))
<!-- latest_release 5.1.29 -->
## [5.1.29](https://github.com/chef/supermarket/tree/5.1.29) (2022-05-13)

#### Merged Pull Requests
- Smriti/merge dependabot pr infus 173 [#2730](https://github.com/chef/supermarket/pull/2730) ([msys-sgarg](https://github.com/msys-sgarg))
<!-- latest_release -->

<!-- release_rollup since=5.1.32 -->
Expand Down
2 changes: 1 addition & 1 deletion omnibus/config/projects/supermarket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# NOTE: see the omnibus-supermarket cookbook gemfile for controlling the infra client version
override :chef, version: "v17.5.22" #with the new change in chef we have to specify the exact version
override :ruby, version: "2.7.5"
override :ruby, version: "3.0.3"
override :'openssl-fips', version: '2.0.16'
override :'omnibus-ctl', version: 'main'
override :openssl, version: '1.0.2za'
Expand Down
1 change: 0 additions & 1 deletion omnibus/cookbooks/omnibus-supermarket/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ gem 'chef', '~> 16.14'
gem 'chef-bin', '~> 16.14'
gem 'inspec-core'
gem 'inspec-core-bin'
gem 'mini_racer', '~> 0.3.1', platforms: :ruby

# gems for testing the build cookbooks
# once we get the ctl omnibus def using its own gemspec this whole file can die
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@
end

it 'checks that the S3 configuration is valid' do
expect(described_class).to receive(:audit_s3_config).with(some: 'stuff')
described_class.audit_config(some: 'stuff')
expect(described_class).to receive(:audit_s3_config).with({ some: 'stuff' })
described_class.audit_config({ some: 'stuff' })
end

it 'checks that the FIPS configuration is valid' do
expect(described_class).to receive(:audit_fips_config).with(some: 'stuff')
described_class.audit_config(some: 'stuff')
expect(described_class).to receive(:audit_fips_config).with({ some: 'stuff' })
described_class.audit_config({ some: 'stuff' })
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/supermarket/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Rails:
Enabled: true
AllCops:
NewCops: disable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0.3
Exclude:
- db/**/*
- engines/**/*
Expand Down
2 changes: 1 addition & 1 deletion src/supermarket/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.5
3.0.3
12 changes: 8 additions & 4 deletions src/supermarket/Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"

gem "fieri", path: "engines/fieri"
gem "rails", "~> 6.1.6"
gem "rails", "~> 7.0.2"

gem "omniauth", "~> 2.1.0"
gem "omniauth-chef-oauth2"
Expand All @@ -27,7 +27,6 @@ gem "kaminari"
gem "mixlib-authentication", "~> 3.0"
gem "nokogiri"
gem "octokit", "~> 4.22", require: false # 4.16+ fixes deprecations in auth
gem "paperclip"
gem "pg"
gem "pg_search"
gem "premailer-rails", group: [:development, :production]
Expand All @@ -43,7 +42,6 @@ gem "sentry-raven", require: false
gem "sitemap_generator"
gem "statsd-ruby"
gem "tomlrb"
gem "uglifier"
gem "unicorn"
gem "unicorn-rails"
gem "utf8-cleaner"
Expand All @@ -53,8 +51,14 @@ gem "yajl-ruby"
gem "tzinfo-data", "~> 1.2022"

gem "listen"
gem "therubyracer", platforms: :ruby
gem "cookstyle", "~> 7.32.1"
gem "kt-paperclip"
gem "net-smtp", require: false

group :asset do
gem "uglifier"
gem "execjs"
end

group :doc do
gem "yard", require: false
Expand Down
Loading

0 comments on commit 62ec0d5

Please sign in to comment.