solidus_inter 1.6.0 โ 1.7.1
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/README.md +0 -4
- data/app/models/solidus_inter/gateway.rb +2 -1
- data/app/models/solidus_inter/inter_pix.rb +5 -5
- data/lib/generators/solidus_inter/install/install_generator.rb +2 -2
- data/lib/solidus_inter/version.rb +1 -1
- metadata +6 -79
- data/.circleci/config.yml +0 -53
- data/.gem_release.yml +0 -5
- data/.github/stale.yml +0 -1
- data/.github_changelog_generator +0 -2
- data/.gitignore +0 -21
- data/.rspec +0 -2
- data/.rubocop.yml +0 -5
- data/CHANGELOG.md +0 -3
- data/Gemfile +0 -47
- data/LICENSE +0 -26
- data/Rakefile +0 -7
- data/bin/console +0 -17
- data/bin/rails +0 -7
- data/bin/rails-engine +0 -13
- data/bin/rails-sandbox +0 -16
- data/bin/rake +0 -7
- data/bin/sandbox +0 -76
- data/bin/setup +0 -8
- data/config/routes.rb +0 -5
- data/lib/solidus_inter/testing_support/factories.rb +0 -4
- data/solidus_inter.gemspec +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775651880a389d933d3990ed852459060ff28431211249bcf194c072725aac4d
|
4
|
+
data.tar.gz: c1322a248fc0d29f0e15075faa15ee8a14e618d677da5bf20f798b8b793b5081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e979360a551077d6d374c21633651ff5147783fe1ea8c71a3c1d2e46768df14e32e9e0411dec096e346a41fae0bc7d66356379a1fbfcb8293560dceefe01998
|
7
|
+
data.tar.gz: 6fb0f7e364b9752b9ff890f95ddc613932c64ecc7ab1e98bed4dc42441dd359f42d051ba1a16dcfa7f694cb2c34b14e59152d546876f1be10083d1bfe10d49d0
|
data/README.md
CHANGED
@@ -1,8 +1,4 @@
|
|
1
1
|
# Solidus Inter
|
2
|
-
|
3
|
-
[](https://circleci.com/gh/solidusio-contrib/solidus_inter)
|
4
|
-
[](https://codecov.io/gh/solidusio-contrib/solidus_inter)
|
5
|
-
|
6
2
|
<!-- Explain what your extension does. -->
|
7
3
|
|
8
4
|
## Installation
|
@@ -97,7 +97,7 @@ module SolidusInter
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def find_existing_payment(order)
|
100
|
-
pix_payments = order.payments.checkout
|
100
|
+
pix_payments = order.payments.checkout.where(payment_method: self)
|
101
101
|
raise "More than one valid payment for #{order.number}" if pix_payments.count > 1
|
102
102
|
|
103
103
|
pix_payments.first
|
@@ -128,8 +128,8 @@ module SolidusInter
|
|
128
128
|
|
129
129
|
def update_payment_status(payment, inter_payment)
|
130
130
|
status = case inter_payment.status
|
131
|
-
|
132
|
-
|
131
|
+
when "ATIVA" then "pending"
|
132
|
+
end
|
133
133
|
payment.source.update(status: status)
|
134
134
|
end
|
135
135
|
|
@@ -155,8 +155,8 @@ module SolidusInter
|
|
155
155
|
test_mode: preferences[:test_mode]
|
156
156
|
)
|
157
157
|
SolidusInter::Account.upsert(
|
158
|
-
{
|
159
|
-
|
158
|
+
{token: client.token, expires_at: client.token_expires_at, chave_pix: client.chave_pix,
|
159
|
+
spree_payment_method_id: id}, unique_by: :chave_pix
|
160
160
|
)
|
161
161
|
client
|
162
162
|
end
|
@@ -15,11 +15,11 @@ module SolidusInter
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def run_migrations
|
18
|
-
run_migrations = options[:auto_run_migrations] || ["", "y", "Y"].include?(ask("Would you like to run the migrations now? [Y/n]"))
|
18
|
+
run_migrations = options[:auto_run_migrations] || ["", "y", "Y"].include?(ask("Would you like to run the migrations now? [Y/n]"))
|
19
19
|
if run_migrations
|
20
20
|
run "bin/rails db:migrate"
|
21
21
|
else
|
22
|
-
puts "Skipping bin/rails db:migrate, don't forget to run it!"
|
22
|
+
puts "Skipping bin/rails db:migrate, don't forget to run it!"
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,49 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_inter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ulysses
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: solidus_core
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.0
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 2.0.0
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '5'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: solidus_support
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.5'
|
40
|
-
type: :runtime
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0.5'
|
47
13
|
- !ruby/object:Gem::Dependency
|
48
14
|
name: inter_api
|
49
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,38 +38,13 @@ dependencies:
|
|
72
38
|
- - ">="
|
73
39
|
- !ruby/object:Gem::Version
|
74
40
|
version: '0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: solidus_dev_support
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '2.9'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '2.9'
|
89
41
|
description: ''
|
90
42
|
email: ulyssesh.20@gmail.com
|
91
43
|
executables: []
|
92
44
|
extensions: []
|
93
45
|
extra_rdoc_files: []
|
94
46
|
files:
|
95
|
-
- ".circleci/config.yml"
|
96
|
-
- ".gem_release.yml"
|
97
|
-
- ".github/stale.yml"
|
98
|
-
- ".github_changelog_generator"
|
99
|
-
- ".gitignore"
|
100
|
-
- ".rspec"
|
101
|
-
- ".rubocop.yml"
|
102
|
-
- CHANGELOG.md
|
103
|
-
- Gemfile
|
104
|
-
- LICENSE
|
105
47
|
- README.md
|
106
|
-
- Rakefile
|
107
48
|
- app/models/solidus_inter/account.rb
|
108
49
|
- app/models/solidus_inter/gateway.rb
|
109
50
|
- app/models/solidus_inter/inter_pix.rb
|
@@ -111,31 +52,17 @@ files:
|
|
111
52
|
- app/views/spree/admin/payments/source_forms/_inter_pix.html.erb
|
112
53
|
- app/views/spree/admin/payments/source_views/_inter_pix.html.erb
|
113
54
|
- app/views/spree/api/payments/source_views/_inter_pix.jbuilder
|
114
|
-
- bin/console
|
115
|
-
- bin/rails
|
116
|
-
- bin/rails-engine
|
117
|
-
- bin/rails-sandbox
|
118
|
-
- bin/rake
|
119
|
-
- bin/sandbox
|
120
|
-
- bin/setup
|
121
55
|
- config/locales/en.yml
|
122
|
-
- config/routes.rb
|
123
56
|
- db/migrate/20240527193953_create_solidus_inter_pix_payment_sources.rb
|
124
57
|
- db/migrate/20240603132203_create_solidus_inter_accounts.rb
|
125
58
|
- db/migrate/20241128145329_add_e2e_id_to_soliuds_inter_pix_payment_source.rb
|
126
59
|
- lib/generators/solidus_inter/install/install_generator.rb
|
127
60
|
- lib/solidus_inter.rb
|
128
61
|
- lib/solidus_inter/engine.rb
|
129
|
-
- lib/solidus_inter/testing_support/factories.rb
|
130
62
|
- lib/solidus_inter/version.rb
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
- BSD-3-Clause
|
135
|
-
metadata:
|
136
|
-
homepage_uri: https://github.com/ulysses-bull/solidus_inter#readme
|
137
|
-
source_code_uri: https://github.com/ulysses-bull/solidus_inter
|
138
|
-
changelog_uri: https://github.com/ulysses-bull/solidus_inter/blob/main/CHANGELOG.md
|
63
|
+
homepage: https://github.com/todasessascoisas/solidus_inter
|
64
|
+
licenses: []
|
65
|
+
metadata: {}
|
139
66
|
post_install_message:
|
140
67
|
rdoc_options: []
|
141
68
|
require_paths:
|
data/.circleci/config.yml
DELETED
@@ -1,53 +0,0 @@
|
|
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
|
data/.gem_release.yml
DELETED
data/.github/stale.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
_extends: .github
|
data/.github_changelog_generator
DELETED
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/CHANGELOG.md
DELETED
data/Gemfile
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
5
|
-
|
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
|
17
|
-
|
18
|
-
# Needed to help Bundler figure out how to resolve dependencies,
|
19
|
-
# otherwise it takes forever to resolve them.
|
20
|
-
# See https://github.com/bundler/bundler/issues/6677
|
21
|
-
gem "rails", ">0.a"
|
22
|
-
|
23
|
-
# Provides basic authentication functionality for testing parts of your engine
|
24
|
-
gem "solidus_auth_devise"
|
25
|
-
|
26
|
-
case ENV.fetch("DB", nil)
|
27
|
-
when "mysql"
|
28
|
-
gem "mysql2"
|
29
|
-
when "postgresql"
|
30
|
-
gem "pg"
|
31
|
-
else
|
32
|
-
gem "sqlite3"
|
33
|
-
end
|
34
|
-
|
35
|
-
# While we still support Ruby < 3 we need to workaround a limitation in
|
36
|
-
# the 'async' gem that relies on the latest ruby, since RubyGems doesn't
|
37
|
-
# resolve gems based on the required ruby version.
|
38
|
-
gem "async", "< 3" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3")
|
39
|
-
|
40
|
-
gemspec
|
41
|
-
|
42
|
-
# Use a local Gemfile to include development dependencies that might not be
|
43
|
-
# relevant for the project or for other contributors, e.g. pry-byebug.
|
44
|
-
#
|
45
|
-
# We use `send` instead of calling `eval_gemfile` to work around an issue with
|
46
|
-
# how Dependabot parses projects: https://github.com/dependabot/dependabot-core/issues/1658.
|
47
|
-
send(:eval_gemfile, "Gemfile-local") if File.exist? "Gemfile-local"
|
data/LICENSE
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
Copyright (c) 2024 ulysses
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
Redistribution and use in source and binary forms, with or without modification,
|
5
|
-
are permitted provided that the following conditions are met:
|
6
|
-
|
7
|
-
* Redistributions of source code must retain the above copyright notice,
|
8
|
-
this list of conditions and the following disclaimer.
|
9
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
10
|
-
this list of conditions and the following disclaimer in the documentation
|
11
|
-
and/or other materials provided with the distribution.
|
12
|
-
* Neither the name Solidus nor the names of its contributors may be used to
|
13
|
-
endorse or promote products derived from this software without specific
|
14
|
-
prior written permission.
|
15
|
-
|
16
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
20
|
-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
21
|
-
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
22
|
-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
23
|
-
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
24
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
25
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
26
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# frozen_string_literal: true
|
4
|
-
|
5
|
-
require "bundler/setup"
|
6
|
-
require "solidus_inter"
|
7
|
-
|
8
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
9
|
-
# with your gem easier. You can also use a different console, if you like.
|
10
|
-
$LOAD_PATH.unshift(*Dir["#{__dir__}/../app/*"])
|
11
|
-
|
12
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
13
|
-
# require "pry"
|
14
|
-
# Pry.start
|
15
|
-
|
16
|
-
require "irb"
|
17
|
-
IRB.start(__FILE__)
|
data/bin/rails
DELETED
data/bin/rails-engine
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails gems
|
3
|
-
# installed from the root of your application.
|
4
|
-
|
5
|
-
ENGINE_ROOT = File.expand_path('..', __dir__)
|
6
|
-
ENGINE_PATH = File.expand_path('../lib/solidus_inter/engine', __dir__)
|
7
|
-
|
8
|
-
# Set up gems listed in the Gemfile.
|
9
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
10
|
-
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
11
|
-
|
12
|
-
require 'rails/all'
|
13
|
-
require 'rails/engine/commands'
|
data/bin/rails-sandbox
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
app_root = 'sandbox'
|
4
|
-
|
5
|
-
unless File.exist? "#{app_root}/bin/rails"
|
6
|
-
warn 'Creating the sandbox app...'
|
7
|
-
Dir.chdir "#{__dir__}/.." do
|
8
|
-
system "#{__dir__}/sandbox" or begin
|
9
|
-
warn 'Automatic creation of the sandbox app failed'
|
10
|
-
exit 1
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
Dir.chdir app_root
|
16
|
-
exec 'bin/rails', *ARGV
|
data/bin/rake
DELETED
data/bin/sandbox
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
set -e
|
4
|
-
test -z "${DEBUG+empty_string}" || set -x
|
5
|
-
|
6
|
-
test "$DB" = "sqlite" && export DB="sqlite3"
|
7
|
-
|
8
|
-
if [ -z "$PAYMENT_METHOD" ]
|
9
|
-
then
|
10
|
-
PAYMENT_METHOD="none"
|
11
|
-
fi
|
12
|
-
|
13
|
-
if [ -z "$SOLIDUS_BRANCH" ]
|
14
|
-
then
|
15
|
-
echo "~~> Use 'export SOLIDUS_BRANCH=[main|v4.0|...]' to control the Solidus branch"
|
16
|
-
SOLIDUS_BRANCH="main"
|
17
|
-
fi
|
18
|
-
echo "~~> Using branch $SOLIDUS_BRANCH of solidus"
|
19
|
-
|
20
|
-
extension_name="solidus_inter"
|
21
|
-
|
22
|
-
# Stay away from the bundler env of the containing extension.
|
23
|
-
function unbundled {
|
24
|
-
ruby -rbundler -e'
|
25
|
-
Bundler.with_unbundled_env {system *ARGV}' -- \
|
26
|
-
env BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES=true $@
|
27
|
-
}
|
28
|
-
|
29
|
-
echo "~~~> Removing the old sandbox"
|
30
|
-
rm -rf ./sandbox
|
31
|
-
|
32
|
-
echo "~~~> Creating a pristine Rails app"
|
33
|
-
rails new sandbox \
|
34
|
-
--database="${DB:-sqlite3}" \
|
35
|
-
--skip-git \
|
36
|
-
--skip-keeps \
|
37
|
-
--skip-rc \
|
38
|
-
--skip-bootsnap \
|
39
|
-
--skip-test
|
40
|
-
|
41
|
-
if [ ! -d "sandbox" ]; then
|
42
|
-
echo 'sandbox rails application failed'
|
43
|
-
exit 1
|
44
|
-
fi
|
45
|
-
|
46
|
-
echo "~~~> Adding solidus (with i18n) to the Gemfile"
|
47
|
-
cd ./sandbox
|
48
|
-
cat <<RUBY >> Gemfile
|
49
|
-
gem 'solidus', github: 'solidusio/solidus', branch: '$SOLIDUS_BRANCH'
|
50
|
-
gem 'rails-i18n'
|
51
|
-
gem 'solidus_i18n'
|
52
|
-
gem 'solidus_auth_devise'
|
53
|
-
|
54
|
-
gem '$extension_name', path: '..'
|
55
|
-
|
56
|
-
group :test, :development do
|
57
|
-
platforms :mri do
|
58
|
-
gem 'pry-byebug'
|
59
|
-
end
|
60
|
-
end
|
61
|
-
RUBY
|
62
|
-
|
63
|
-
unbundled bundle install --gemfile Gemfile
|
64
|
-
|
65
|
-
unbundled bundle exec rake db:drop db:create
|
66
|
-
|
67
|
-
unbundled bundle exec rails generate solidus:install \
|
68
|
-
--auto-accept \
|
69
|
-
$@
|
70
|
-
|
71
|
-
unbundled bundle exec rails generate solidus:auth:install --auto-run-migrations
|
72
|
-
unbundled bundle exec rails generate ${extension_name}:install --auto-run-migrations
|
73
|
-
|
74
|
-
echo
|
75
|
-
echo "๐ Sandbox app successfully created for $extension_name!"
|
76
|
-
echo "๐งช This app is intended for test purposes."
|
data/bin/setup
DELETED
data/config/routes.rb
DELETED
data/solidus_inter.gemspec
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "lib/solidus_inter/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = "solidus_inter"
|
7
|
-
spec.version = SolidusInter::VERSION
|
8
|
-
spec.authors = ["ulysses"]
|
9
|
-
spec.email = "ulyssesh.20@gmail.com"
|
10
|
-
|
11
|
-
spec.summary = ""
|
12
|
-
spec.description = ""
|
13
|
-
spec.homepage = "https://github.com/ulysses-bull/solidus_inter#readme"
|
14
|
-
spec.license = "BSD-3-Clause"
|
15
|
-
|
16
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
-
spec.metadata["source_code_uri"] = "https://github.com/ulysses-bull/solidus_inter"
|
18
|
-
spec.metadata["changelog_uri"] = "https://github.com/ulysses-bull/solidus_inter/blob/main/CHANGELOG.md"
|
19
|
-
|
20
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.5", "< 4")
|
21
|
-
|
22
|
-
# Specify which files should be added to the gem when it is released.
|
23
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
-
files = Dir.chdir(__dir__) { `git ls-files -z`.split("\x0") }
|
25
|
-
|
26
|
-
spec.files = files.grep_v(%r{^(test|spec|features)/})
|
27
|
-
spec.bindir = "exe"
|
28
|
-
spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
-
spec.require_paths = ["lib"]
|
30
|
-
|
31
|
-
spec.add_dependency "solidus_core", [">= 2.0.0", "< 5"]
|
32
|
-
spec.add_dependency "solidus_support", "~> 0.5"
|
33
|
-
spec.add_dependency "inter_api"
|
34
|
-
spec.add_dependency "solidus_brazilian_adaptations"
|
35
|
-
|
36
|
-
spec.add_development_dependency "solidus_dev_support", "~> 2.9"
|
37
|
-
end
|