Skip to content

Commit ff395aa

Browse files
committed
bundle exec solidus extension .
1 parent 7921331 commit ff395aa

14 files changed

Lines changed: 139 additions & 75 deletions

File tree

.circleci/config.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
version: 2.1
2+
3+
orbs:
4+
# Required for feature specs.
5+
browser-tools: circleci/browser-tools@1.1
6+
7+
# Always take the latest version of the orb, this allows us to
8+
# run specs against Solidus supported versions only without the need
9+
# to change this configuration every time a Solidus version is released
10+
# or goes EOL.
11+
solidusio_extensions: solidusio/extensions@volatile
12+
13+
jobs:
14+
run-specs-with-sqlite:
15+
executor: solidusio_extensions/sqlite
16+
steps:
17+
- browser-tools/install-chrome
18+
- solidusio_extensions/run-tests
19+
run-specs-with-postgres:
20+
executor: solidusio_extensions/postgres
21+
steps:
22+
- browser-tools/install-chrome
23+
- solidusio_extensions/run-tests
24+
run-specs-with-mysql:
25+
executor: solidusio_extensions/mysql
26+
steps:
27+
- browser-tools/install-chrome
28+
- solidusio_extensions/run-tests
29+
lint-code:
30+
executor: solidusio_extensions/sqlite-memory
31+
steps:
32+
- solidusio_extensions/lint-code
33+
34+
workflows:
35+
"Run specs on supported Solidus versions":
36+
jobs:
37+
- run-specs-with-sqlite
38+
- run-specs-with-postgres
39+
- run-specs-with-mysql
40+
- lint-code
41+
42+
"Weekly run specs against main":
43+
triggers:
44+
- schedule:
45+
cron: "0 0 * * 4" # every Thursday
46+
filters:
47+
branches:
48+
only:
49+
- main
50+
jobs:
51+
- run-specs-with-sqlite
52+
- run-specs-with-postgres
53+
- run-specs-with-mysql

.github/stale.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
# Number of days of inactivity before an issue becomes stale
2-
daysUntilStale: 60
3-
# Number of days of inactivity before a stale issue is closed
4-
daysUntilClose: false
5-
# Issues with these labels will never be considered stale
6-
exemptLabels:
7-
- pinned
8-
- security
9-
# Label to use when marking an issue as stale
10-
staleLabel: stale
11-
# Comment to post when marking an issue as stale. Set to `false` to disable
12-
markComment: >
13-
This issue has been automatically marked as stale because it has not had
14-
recent activity. It might be closed if no further activity occurs. Thank you
15-
for your contributions.
16-
# Comment to post when closing a stale issue. Set to `false` to disable
17-
closeComment: false
1+
_extends: .github

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- "v4.2"
3535
- "v4.3"
3636
- "v4.4"
37+
- "v4.5"
3738
database:
3839
- "postgresql"
3940
- "mysql"
@@ -52,7 +53,7 @@ jobs:
5253
- ruby-version: "3.4"
5354
rails-version: "7.0"
5455
env:
55-
TEST_RESULTS_PATH: coverage/coverage.xml
56+
CODECOV_COVERAGE_PATH: ./coverage/coverage.xml
5657
steps:
5758
- uses: actions/checkout@v4
5859
- name: Run extension tests
@@ -67,4 +68,4 @@ jobs:
6768
continue-on-error: true
6869
with:
6970
token: ${{ secrets.CODECOV_TOKEN }}
70-
files: ${{ env.TEST_RESULTS_PATH }}
71+
files: ${{ env.CODECOV_COVERAGE_PATH }}

.rubocop.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
inherit_from: .rubocop_todo.yml
2-
31
require:
42
- solidus_dev_support/rubocop
53

6-
RSpec/DescribeClass:
7-
Exclude:
8-
- spec/requests/**/*
9-
- spec/features/**/*
10-
11-
Rails/SkipsModelValidations:
12-
Enabled: false
13-
144
AllCops:
155
NewCops: disable

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changelog
22

3-
See https://github.com/solidusio/solidus_subscriptions/releases or [OLD_CHANGELOG.md](OLD_CHANGELOG.md) for older versions.
3+
See https://github.com/solidusio/solidus_subscriptions/releases or OLD_CHANGELOG.md for older versions.

Gemfile

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,40 @@ branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
77
gem 'solidus', github: 'solidusio/solidus', branch: branch
88

99
# The solidus_frontend gem has been pulled out since v3.2
10-
gem 'solidus_frontend'
10+
if branch >= 'v3.2'
11+
gem 'solidus_frontend'
12+
elsif branch == 'main'
13+
gem 'solidus_frontend', github: 'solidusio/solidus_frontend'
14+
else
15+
gem 'solidus_frontend', github: 'solidusio/solidus', branch: branch
16+
end
1117

12-
rails_version = ENV.fetch('RAILS_VERSION', '7.2')
18+
rails_version = ENV.fetch('RAILS_VERSION', '7.0')
1319
gem 'rails', "~> #{rails_version}"
1420

15-
case ENV['DB']
21+
case ENV.fetch('DB', nil)
1622
when 'mysql'
1723
gem 'mysql2'
1824
when 'postgresql'
1925
gem 'pg'
2026
else
21-
if rails_version <= "7.2"
22-
gem 'sqlite3', "~> 1.7"
23-
else
24-
gem 'sqlite3', "~> 2.0"
25-
end
27+
gem 'sqlite3', rails_version < '7.2' ? '~> 1.4' : '~> 2.0'
28+
end
29+
30+
if rails_version == '7.0'
31+
gem 'concurrent-ruby', '< 1.3.5'
2632
end
2733

34+
if RUBY_VERSION >= '3.4'
35+
# Solidus Promotions uses CSV but does not have it as dependency yet.
36+
gem 'csv'
37+
end
38+
39+
# While we still support Ruby < 3 we need to workaround a limitation in
40+
# the 'async' gem that relies on the latest ruby, since RubyGems doesn't
41+
# resolve gems based on the required ruby version.
42+
gem 'async', '< 3' if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3')
43+
2844
gemspec
2945

3046
# Use a local Gemfile to include development dependencies that might not be

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016 Stembolt
1+
Copyright (c) 2026 Solidus Team
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Placeholder manifest file.
2+
// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
Placeholder manifest file.
3+
the installer will append this file to the app vendored assets here: 'vendor/assets/stylesheets/spree/backend/all.css'
4+
*/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
Placeholder manifest file.
3+
the installer will append this file to the app vendored assets here: 'vendor/assets/stylesheets/spree/frontend/all.css'
4+
*/

0 commit comments

Comments
 (0)