solidus_subscriptions 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f229279a8b2a541d098058fb4a5783d783c5e1df0de88c0cbebe7fa896702ccf
4
- data.tar.gz: 54f1be94ee063d37b4f720a0df951babf6459cb471a1c742cdd6d877f88a55e7
3
+ metadata.gz: cacdf4a162fd48c74388cc6b4562b1154d3faa718b17f24d7e4dfb0a669d9ce4
4
+ data.tar.gz: dc9f15fb75083a9b07ba9ebda13472b74cf940580811ab8da3fba17064ddc4b8
5
5
  SHA512:
6
- metadata.gz: cb5bc225b2e7a123d29ea12b1f626b7a4d671e4437dc3ca77a1d9dab316c0099ccdc066ff6b4799ba56c5641764649b9038372bc1154a76f72aa8db15e5c8c40
7
- data.tar.gz: 3b0a0180d0b584bf31ed3410886510021a15ca9177f272fbc3552fe93a3b68b75a50c74635761d456aa3c34df981fe7016d80071273c96bbd552fe70a6b5840d
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: master
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: ["master"], ruby: ["3.2"], db: ["postgres"] }
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 master":
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: ["master"], ruby: ["3.2"], db: ["postgres"] }
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', 'master')
7
- solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2')
8
- %w[solidusio/solidus solidusio/solidus_frontend]
9
- else
10
- %w[solidusio/solidus] * 2
11
- end
12
- gem 'solidus', github: solidus_git, branch: branch
13
- gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
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 --frontend=starter
22
+ $ bin/rails generate solidus_subscriptions:install
21
23
  ```
22
24
 
23
- Please, be aware that the starter installation only works with the default
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="master"
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 --frontend=starter --auto-run-migrations=true
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
- class_option :frontend, type: :string, default: 'classic'
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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSubscriptions
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
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.1
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-05-08 00:00:00.000000000 Z
11
+ date: 2023-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface