solidus_frontend 4.0.0.dev → 4.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e44b1fc677f1a5395be411196cf20483f8d6c96e18251f78376046c102d9ca7a
4
- data.tar.gz: 0cbb98a3a5864aefecbaa0fa140a21f58ab92e730b52ecf18b03ca3848a64435
3
+ metadata.gz: 7d1bfc77d55edc14596b3bf37b2d00779cccdeb63502675d89eddf7ab122043c
4
+ data.tar.gz: 8d33eb66eee0246c360640eb0116335f97ae6cbb9881be6f928ea28b650fc7f1
5
5
  SHA512:
6
- metadata.gz: ea2f67025d772768902918cd58a6ad6f7fdee7f2b86e8715914f1d9ad6d57e2e446b1c6240247230baf2a6effdf6a93c0faafaa05766ed5fc8a8f6a40d55d665
7
- data.tar.gz: ac9c5b3c28cc76a64c13769fabe5a22c4d111aef5caedbbf903b32637e010b4891c94724ffdd91b58d98338c3bdc9bc1e93a16f3ff51d3208e4bac83bdad0caa
6
+ metadata.gz: 006120c5b2585eaf4d9314d25afd777de12516bbbccf6e66c460dc1fe729ffcc91bb560efd5f26acea95dc6661d6c211126472631cdef6edec705c731b081397
7
+ data.tar.gz: 90e556823724abfc90b851dec02956ee3c15dfb93c003d0aa5fcb13031172f1c523d97f799697270aaa9affb846be44b31b0ff73a5294d07716ec34c9be5e30c
data/.circleci/config.yml CHANGED
@@ -19,43 +19,49 @@ commands:
19
19
  sudo apt-get install -yq libvips-dev
20
20
 
21
21
  jobs:
22
- run-specs-with-postgres:
23
- executor: solidusio_extensions/postgres
22
+ run-specs:
23
+ parameters:
24
+ db:
25
+ type: string
26
+ default: "postgres"
27
+ ruby:
28
+ type: string
29
+ default: "3.2"
30
+ executor:
31
+ name: solidusio_extensions/<< parameters.db >>
32
+ ruby_version: << parameters.ruby >>
24
33
  steps:
25
34
  - checkout
26
35
  - browser-tools/install-chrome
27
- - browser-tools/install-chromedriver
28
36
  - libvips
29
- - solidusio_extensions/run-tests-solidus-master
30
- - solidusio_extensions/store-test-results
31
- run-specs-with-mysql:
32
- executor: solidusio_extensions/mysql
33
- steps:
34
- - checkout
35
- - browser-tools/install-chrome
36
- - browser-tools/install-chromedriver
37
- - libvips
38
- - solidusio_extensions/run-tests-solidus-master
39
- - solidusio_extensions/store-test-results
40
- lint-code:
41
- executor: solidusio_extensions/sqlite-memory
42
- steps:
43
- - solidusio_extensions/lint-code
37
+ - solidusio_extensions/run-tests-solidus-main
44
38
 
45
39
  workflows:
46
- "Run specs on supported Solidus versions":
40
+ "Run specs on Solidus main":
47
41
  jobs:
48
- - run-specs-with-postgres
49
- - run-specs-with-mysql
42
+ - run-specs:
43
+ name: &name "run-specs-solidus-main-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
44
+ matrix:
45
+ parameters: { ruby: ["3.2"], db: ["postgres"] }
46
+ - run-specs:
47
+ name: &name "run-specs-solidus-main-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
48
+ matrix:
49
+ parameters: { ruby: ["3.1"], db: ["mysql"] }
50
+ - run-specs:
51
+ name: &name "run-specs-solidus-main-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
52
+ matrix:
53
+ parameters: { ruby: ["3.0"], db: ["sqlite"] }
50
54
 
51
- "Weekly run specs against master":
55
+ "Weekly run specs against main":
52
56
  triggers:
53
57
  - schedule:
54
58
  cron: "0 0 * * 4" # every Thursday
55
59
  filters:
56
60
  branches:
57
61
  only:
58
- - master
62
+ - main
59
63
  jobs:
60
- - run-specs-with-postgres
61
- - run-specs-with-mysql
64
+ - run-specs:
65
+ name: *name
66
+ matrix:
67
+ parameters: { ruby: ["3.2"], db: ["postgres"] }
data/CHANGELOG.md CHANGED
@@ -1,36 +1,3 @@
1
1
  # Changelog
2
2
 
3
- ## Solidus v3.4.0 (v3.4, 2023-04-21)
4
-
5
- ## Solidus v3.3.0 (v3.3, 2023-01-24)
6
-
7
- - Fix CircleCI errors due to libvips not being found [#27](https://github.com/solidusio/solidus_frontend/pull/27) ([waiting-for-dev](https://github.com/waiting-for-dev))
8
- - Update Changelog with latest released versions [#26](https://github.com/solidusio/solidus_frontend/pull/26) ([waiting-for-dev](https://github.com/waiting-for-dev))
9
- - [v3.2] Notify CI failures on Slack [#25](https://github.com/solidusio/solidus_frontend/pull/25) ([waiting-for-dev](https://github.com/waiting-for-dev))
10
- - Notify CI failures on Slack [#24](https://github.com/solidusio/solidus_frontend/pull/24) ([waiting-for-dev](https://github.com/waiting-for-dev))
11
- - Touch the robots file before appending to it [#18](https://github.com/solidusio/solidus_frontend/pull/18) ([elia](https://github.com/elia))
12
- - Handle robots in here [#17](https://github.com/solidusio/solidus_frontend/pull/17) ([elia](https://github.com/elia))
13
- - [v3.2] Skip trying to install solidus_bolt when there's no Gemfile [#16](https://github.com/solidusio/solidus_frontend/pull/16) ([waiting-for-dev](https://github.com/waiting-for-dev))
14
- - Skip trying to install solidus_bolt when there's no Gemfile [#15](https://github.com/solidusio/solidus_frontend/pull/15) ([waiting-for-dev](https://github.com/waiting-for-dev))
15
- - Ask whether to add solidus_bolt during installation [#14](https://github.com/solidusio/solidus_frontend/pull/14) ([waiting-for-dev](https://github.com/waiting-for-dev))
16
- - Fix display of tax adjustments in checkout [#11](https://github.com/solidusio/solidus_frontend/pull/11) ([adammathys](https://github.com/adammathys))
17
- - Utilize Rails redirect methods [#9](https://github.com/solidusio/solidus_frontend/pull/9) ([cpfergus1](https://github.com/cpfergus1))
18
- - Bump version to 3.3.0.alpha [#6](https://github.com/solidusio/solidus_frontend/pull/6) ([waiting-for-dev](https://github.com/waiting-for-dev))
19
-
20
- ## Solidus v3.2.5 (v3.2, 2022-12-23)
21
-
22
- ## Solidus v3.2.4 (v3.2, 2022-11-09)
23
-
24
- ## Solidus v3.2.3 (v3.2, 2022-11-03)
25
-
26
- ## Solidus v3.2.2 (v3.2, 2022-09-09)
27
-
28
- - Ask whether to add solidus_bolt during installation [#14](https://github.com/solidusio/solidus_frontend/pull/14) ([waiting-for-dev](https://github.com/waiting-for-dev))
29
-
30
- ## Solidus v3.2.1 (v3.2, 2022-09-09)
31
-
32
- ## Solidus v3.2.0 (v3.2, 2022-08-18)
33
-
34
- - Initial release from the standalone repository. See [Solidus'
35
- CHANGELOG](https://github.com/solidusio/solidus/blob/master/CHANGELOG.md) for
36
- previous updates.
3
+ See https://github.com/solidusio/solidus_stripe/releases.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
5
+ branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
6
6
 
7
7
  git "https://github.com/solidusio/solidus.git", branch: branch do
8
8
  gem 'solidus_api'
data/README.md CHANGED
@@ -2,12 +2,23 @@
2
2
 
3
3
  Frontend contains controllers and views implementing a storefront and cart for Solidus.
4
4
 
5
- ## Warning
5
+ ## 🚧 Warning
6
+
7
+ This gem is deprecated and no longer part of the Solidus recommended stack.
6
8
 
7
9
  For new Solidus apps, we recommend that you use
8
10
  [SolidusStarterFrontend](https://github.com/solidusio/solidus_starter_frontend)
9
11
  instead.
10
12
 
13
+ This repository will only accept bug fixes and security patches for the
14
+ branches that match supported versions of Solidus:
15
+
16
+ | Branch | End of Life |
17
+ | --------------------------------------------------------------- | ----------- |
18
+ | [v3.4](https://github.com/solidusio/solidus_frontend/tree/v3.4) | 2024-10-21 |
19
+ | [v3.3](https://github.com/solidusio/solidus_frontend/tree/v3.3) | 2024-07-24 |
20
+ | [v3.2](https://github.com/solidusio/solidus_frontend/tree/v3.2) | 2024-02-18 |
21
+
11
22
  ## Override views
12
23
 
13
24
  In order to customize a view you should copy the file into your host app. Using Deface is not
@@ -205,3 +216,6 @@ coverage report:
205
216
  COVERAGE=true bundle exec rspec
206
217
  ```
207
218
 
219
+ ### Releasing new versions
220
+
221
+ Please refer to the dedicated [page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) on Solidus wiki.
data/Rakefile CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  require 'spree/testing_support/dummy_app/rake_tasks'
4
4
  require 'solidus_dev_support/rake_tasks'
5
+ require 'bundler/gem_tasks'
5
6
 
6
7
  DummyApp::RakeTasks.new(
7
8
  gem_root: File.expand_path(__dir__),
8
9
  lib_name: 'solidus_frontend'
9
10
  )
10
11
 
12
+ require 'rake/clean'
13
+ CLOBBER.include('spec/dummy')
14
+
11
15
  SolidusDevSupport::RakeTasks.install
12
16
 
13
17
  task default: 'extension:specs'
@@ -5,6 +5,8 @@ module Spree
5
5
  include Spree::Core::ControllerHelpers::Pricing
6
6
  include Spree::Core::ControllerHelpers::Order
7
7
 
8
+ respond_to :html
9
+
8
10
  def unauthorized
9
11
  render 'spree/shared/unauthorized', layout: Spree::Config[:layout], status: 401
10
12
  end
data/bin/rspec ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rspec' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("rspec-core", "rspec")
@@ -5,9 +5,7 @@ module SolidusFrontend
5
5
  class InstallGenerator < Rails::Generators::Base
6
6
  source_root File.expand_path('templates', __dir__)
7
7
 
8
- class_option :auto_accept,
9
- type: :boolean,
10
- default: false
8
+ class_option :auto_accept, type: :boolean, default: false
11
9
 
12
10
  def self.exit_on_failure?
13
11
  true
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Spree
4
4
  module Frontend
5
- VERSION = "4.0.0.dev"
5
+ VERSION = "4.0.0"
6
6
 
7
7
  def self.version
8
8
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.dev
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-21 00:00:00.000000000 Z
11
+ date: 2023-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -344,6 +344,7 @@ files:
344
344
  - bin/rails-engine
345
345
  - bin/rails-sandbox
346
346
  - bin/rake
347
+ - bin/rspec
347
348
  - bin/sandbox
348
349
  - bin/setup
349
350
  - config/initializers/assets.rb
@@ -374,7 +375,7 @@ metadata:
374
375
  homepage_uri: http://solidus.io
375
376
  source_code_uri: https://github.com/solidusio/solidus_frontend
376
377
  changelog_uri: https://github.com/solidusio/solidus_frontend/blob/master/CHANGELOG.md
377
- post_install_message:
378
+ post_install_message:
378
379
  rdoc_options: []
379
380
  require_paths:
380
381
  - lib
@@ -389,8 +390,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
389
390
  - !ruby/object:Gem::Version
390
391
  version: 1.8.23
391
392
  requirements: []
392
- rubygems_version: 3.4.6
393
- signing_key:
393
+ rubygems_version: 3.3.23
394
+ signing_key:
394
395
  specification_version: 4
395
396
  summary: Legacy cart and storefront for the Solidus e-commerce project. For new Solidus
396
397
  apps, we recommend that you use [SolidusStarterFrontend](https://github.com/solidusio/solidus_starter_frontend)