solidus_subscriptions 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +4 -4
- data/Gemfile +11 -8
- data/README.md +6 -3
- data/bin/sandbox +2 -2
- data/lib/generators/solidus_subscriptions/install/install_generator.rb +2 -1
- data/lib/solidus_subscriptions/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cacdf4a162fd48c74388cc6b4562b1154d3faa718b17f24d7e4dfb0a669d9ce4
|
4
|
+
data.tar.gz: dc9f15fb75083a9b07ba9ebda13472b74cf940580811ab8da3fba17064ddc4b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 432b9e489106aa3bb89e0ae7df0abfe1eaacd65addeedcb7940fdcf0592e70720d8952a5cefce7df8ed97c0f5944e8e12d5388594eb72a2264b0efb98affd992
|
7
|
+
data.tar.gz: 890f2248311fd25b8f322936070dc2bf4308c329fb2a52f188ebea2f80641dc0210ee04d526437deb840160f676343f22c6ddc16ebfcf84f3bd71075e5c37e32
|
data/.circleci/config.yml
CHANGED
@@ -12,7 +12,7 @@ jobs:
|
|
12
12
|
parameters:
|
13
13
|
solidus:
|
14
14
|
type: string
|
15
|
-
default:
|
15
|
+
default: main
|
16
16
|
db:
|
17
17
|
type: string
|
18
18
|
default: "postgres"
|
@@ -38,7 +38,7 @@ workflows:
|
|
38
38
|
- run-specs:
|
39
39
|
name: &name "run-specs-solidus-<< matrix.solidus >>-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
|
40
40
|
matrix:
|
41
|
-
parameters: { solidus: ["
|
41
|
+
parameters: { solidus: ["main"], ruby: ["3.2"], db: ["postgres"] }
|
42
42
|
- run-specs:
|
43
43
|
name: *name
|
44
44
|
matrix:
|
@@ -48,7 +48,7 @@ workflows:
|
|
48
48
|
matrix:
|
49
49
|
parameters: { solidus: ["older"], ruby: ["3.0"], db: ["sqlite"] }
|
50
50
|
|
51
|
-
"Weekly run specs against
|
51
|
+
"Weekly run specs against main":
|
52
52
|
triggers:
|
53
53
|
- schedule:
|
54
54
|
cron: "0 0 * * 4" # every Thursday
|
@@ -60,7 +60,7 @@ workflows:
|
|
60
60
|
- run-specs:
|
61
61
|
name: *name
|
62
62
|
matrix:
|
63
|
-
parameters: { solidus: ["
|
63
|
+
parameters: { solidus: ["main"], ruby: ["3.2"], db: ["postgres"] }
|
64
64
|
- run-specs:
|
65
65
|
name: *name
|
66
66
|
matrix:
|
data/Gemfile
CHANGED
@@ -3,14 +3,17 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
5
5
|
|
6
|
-
branch = ENV.fetch('SOLIDUS_BRANCH', '
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
gem 'solidus_frontend', github:
|
6
|
+
branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
|
7
|
+
gem 'solidus', github: 'solidusio/solidus', branch: branch
|
8
|
+
|
9
|
+
# The solidus_frontend gem has been pulled out since v3.2
|
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
|
14
17
|
|
15
18
|
# Needed to help Bundler figure out how to resolve dependencies,
|
16
19
|
# otherwise it takes forever to resolve them.
|
data/README.md
CHANGED
@@ -13,24 +13,27 @@ Add solidus_subscriptions to your Gemfile:
|
|
13
13
|
gem 'solidus_subscriptions', github: 'solidusio/solidus_subscriptions'
|
14
14
|
```
|
15
15
|
|
16
|
+
### Starter Frontend
|
17
|
+
|
16
18
|
Bundle your dependencies and run the installation generator:
|
17
19
|
|
18
20
|
```shell
|
19
21
|
$ bundle
|
20
|
-
$ bin/rails generate solidus_subscriptions:install
|
22
|
+
$ bin/rails generate solidus_subscriptions:install
|
21
23
|
```
|
22
24
|
|
23
|
-
Please, be aware that the
|
25
|
+
Please, be aware that the installation only works with the default
|
24
26
|
implementation of the starter frontend. Any customization to the files that
|
25
27
|
will be modified by the installer might break the installation procedure.
|
26
28
|
If that happens, try to adapt the installed code on top of the customizations
|
27
29
|
of the store.
|
28
30
|
|
31
|
+
### Legacy Frontend
|
29
32
|
|
30
33
|
If you are using the legacy `solidus_frontend` gem, please run this command instead:
|
31
34
|
|
32
35
|
```shell
|
33
|
-
$ bin/rails generate solidus_subscriptions:install
|
36
|
+
$ bin/rails generate solidus_subscriptions:install --frontend=classic
|
34
37
|
```
|
35
38
|
|
36
39
|
### Guest checkout
|
data/bin/sandbox
CHANGED
@@ -22,7 +22,7 @@ if [ ! -z $SOLIDUS_BRANCH ]
|
|
22
22
|
then
|
23
23
|
BRANCH=$SOLIDUS_BRANCH
|
24
24
|
else
|
25
|
-
BRANCH="
|
25
|
+
BRANCH="main"
|
26
26
|
fi
|
27
27
|
|
28
28
|
extension_name="solidus_subscriptions"
|
@@ -71,7 +71,7 @@ unbundled bundle exec rails generate solidus:install \
|
|
71
71
|
--payment-method=none \
|
72
72
|
$@
|
73
73
|
|
74
|
-
unbundled bundle exec rails generate ${extension_name}:install --
|
74
|
+
unbundled bundle exec rails generate ${extension_name}:install --auto-run-migrations=true
|
75
75
|
|
76
76
|
echo
|
77
77
|
echo "🚀 Sandbox app successfully created for $extension_name!"
|
@@ -6,7 +6,8 @@ module SolidusSubscriptions
|
|
6
6
|
source_root File.expand_path('templates', __dir__)
|
7
7
|
|
8
8
|
class_option :auto_run_migrations, type: :boolean, default: false
|
9
|
-
|
9
|
+
# Either 'starter' or 'classic'
|
10
|
+
class_option :frontend, type: :string, default: 'starter'
|
10
11
|
|
11
12
|
def copy_initializer
|
12
13
|
template 'initializer.rb', 'config/initializers/solidus_subscriptions.rb'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_subscriptions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|