solidus_brazilian_adaptations 1.4.1 → 1.5.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: 03dcead417a075796e7e9dd7307c49d7b9a8912bc0d1286854e19034f3bd3c5a
4
- data.tar.gz: bf1e3044f7b6c55ae90ba7adbc010f4be36ad32222e26796c9ad786b2a5cfbf6
3
+ metadata.gz: e2189e0996c17d5c66144c5349fb92b625424f4add5a8a051bc7b5715d1ae903
4
+ data.tar.gz: b620ca0e36d1a616e657670f996e6f8a3cda579a60fe03db0340bada2fc43934
5
5
  SHA512:
6
- metadata.gz: 71a1a49563016713fe7e6447cd01e69ad4f700e1e46494b98a4447072b045480adfa6e56f54357cdacd363303ee07ef5fa28d6c53fef7f01832ee949d8e831d0
7
- data.tar.gz: fef374730bd02c4585fecb89c402799da1f30bc2653d6ef132706d0fee3b36e8c85271c68de649cc4667a6b6a2b2f101994a013f58923364702de7dc98cf5fdc
6
+ metadata.gz: 5837d32c46db595afb732623ce2a94ad3d33bf4610688225b007eea6ae4e210e1c0e8936c2f9bd9bac5f4165b6c29c210a0fc970ceaf2412c722f5c7fef08587
7
+ data.tar.gz: 9ab30480eedfc9d458424e069d52d1798900a77913c679a07833a7e8f69a59e2c829dbfc2ee840a5d4588c0d8def24087cf06a7dd73a76b340247afb9fce0221
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # Solidus Brazilian Adaptations
2
2
 
3
- [![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_brazilian_adaptations.svg?style=shield)](https://circleci.com/gh/solidusio-contrib/solidus_brazilian_adaptations)
4
- [![codecov](https://codecov.io/gh/solidusio-contrib/solidus_brazilian_adaptations/branch/master/graph/badge.svg)](https://codecov.io/gh/solidusio-contrib/solidus_brazilian_adaptations)
5
-
6
3
  Essa gem tem como objetivo adaptar os modelos do Solidus para se adequar aos padrões brasileiros, tais como a criação dos atributos CPF/CNPJ (tax_id) em Spree::Order, e número (number) do imóvel e bairro (district) em Spree::Address.
7
4
 
8
5
  ## Installation
@@ -308,52 +305,3 @@ Essas novas views irão sobrescrever as padrões, localizadas na gem `solidus_ba
308
305
  </div>
309
306
 
310
307
  ```
311
-
312
- ## Development
313
-
314
- ### Testing the extension
315
-
316
- First bundle your dependencies, then run `bin/rake`. `bin/rake` will default to building the dummy
317
- app if it does not exist, then it will run specs. The dummy app can be regenerated by using
318
- `bin/rake extension:test_app`.
319
-
320
- ```shell
321
- bin/rake
322
- ```
323
-
324
- To run [Rubocop](https://github.com/bbatsov/rubocop) static code analysis run
325
-
326
- ```shell
327
- bundle exec rubocop
328
- ```
329
-
330
- When testing your application's integration with this extension you may use its factories.
331
- You can load Solidus core factories along with this extension's factories using this statement:
332
-
333
- ```ruby
334
- SolidusDevSupport::TestingSupport::Factories.load_for(SolidusBrazilianAdaptations::Engine)
335
- ```
336
-
337
- ### Running the sandbox
338
-
339
- To run this extension in a sandboxed Solidus application, you can run `bin/sandbox`. The path for
340
- the sandbox app is `./sandbox` and `bin/rails` will forward any Rails commands to
341
- `sandbox/bin/rails`.
342
-
343
- Here's an example:
344
-
345
- ```
346
- $ bin/rails server
347
- => Booting Puma
348
- => Rails 6.0.2.1 application starting in development
349
- * Listening on tcp://127.0.0.1:3000
350
- Use Ctrl-C to stop
351
- ```
352
-
353
- ### Releasing new versions
354
-
355
- Please refer to the [dedicated page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) in the Solidus wiki.
356
-
357
- ## License
358
-
359
- Copyright (c) 2023 ulysses-bull, released under the New BSD License.
@@ -975,6 +975,8 @@ pt-BR:
975
975
  taxons: Taxons
976
976
  users: Usuários
977
977
  zones: Zonas
978
+ legacy_promotions: Promoções
979
+ legacy_promotion_categories: Categorias de Promoção
978
980
  taxons:
979
981
  display_order: Ordem de Exibição
980
982
  user:
@@ -1,12 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
- require "solidus_core"
4
- require "solidus_support"
5
-
6
1
  module SolidusBrazilianAdaptations
7
2
  class Engine < Rails::Engine
8
- include SolidusSupport::EngineExtensions
9
-
10
3
  isolate_namespace ::Spree
11
4
 
12
5
  engine_name "solidus_brazilian_adaptations"
@@ -14,10 +7,5 @@ module SolidusBrazilianAdaptations
14
7
  ::Spree::PermittedAttributes.checkout_address_attributes.prepend :tax_id
15
8
  ::Spree::PermittedAttributes.address_attributes.prepend :number
16
9
  ::Spree::PermittedAttributes.address_attributes.prepend :district
17
-
18
- # use rspec for tests
19
- config.generators do |g|
20
- g.test_framework :rspec
21
- end
22
10
  end
23
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBrazilianAdaptations
4
- VERSION = "1.4.1"
4
+ VERSION = "1.5.0"
5
5
  end
metadata CHANGED
@@ -1,49 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_brazilian_adaptations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ulysses-bull
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-02 00:00:00.000000000 Z
11
+ date: 2024-12-18 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: cpf_cnpj
49
15
  requirement: !ruby/object:Gem::Requirement
@@ -114,49 +80,16 @@ dependencies:
114
80
  - - ">="
115
81
  - !ruby/object:Gem::Version
116
82
  version: '0'
117
- - !ruby/object:Gem::Dependency
118
- name: solidus_dev_support
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '2.7'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '2.7'
131
83
  description:
132
84
  email: contato7bulloleo@gmail.com
133
85
  executables: []
134
86
  extensions: []
135
87
  extra_rdoc_files: []
136
88
  files:
137
- - ".circleci/config.yml"
138
- - ".gem_release.yml"
139
- - ".github/stale.yml"
140
- - ".github_changelog_generator"
141
- - ".gitignore"
142
- - ".rspec"
143
- - CHANGELOG.md
144
- - Gemfile
145
- - LICENSE
146
89
  - README.md
147
- - Rakefile
148
90
  - app/models/tax_id_br.rb
149
91
  - app/overrides/address_validations.rb
150
92
  - app/overrides/order_validations.rb
151
- - bin/console
152
- - bin/rails
153
- - bin/rails-engine
154
- - bin/rails-sandbox
155
- - bin/rake
156
- - bin/sandbox
157
- - bin/setup
158
- - config/locales/en.yml
159
- - config/routes.rb
160
93
  - db/migrate/20230911133000_add_tax_id_to_spree_orders.rb
161
94
  - db/migrate/20230911133157_add_number_district_to_addresses.rb
162
95
  - db/migrate/20231107142354_add_delivery_time_to_spree_shipping_rate.rb
@@ -180,14 +113,9 @@ files:
180
113
  - lib/solidus_brazilian_adaptations/engine.rb
181
114
  - lib/solidus_brazilian_adaptations/testing_support/factories.rb
182
115
  - lib/solidus_brazilian_adaptations/version.rb
183
- - solidus_brazilian_adaptations.gemspec
184
116
  homepage: https://github.com/ulysses-bull/solidus_brazilian_adaptations#readme
185
- licenses:
186
- - BSD-3-Clause
187
- metadata:
188
- homepage_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations#readme
189
- source_code_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations
190
- changelog_uri: https://github.com/ulysses-bull/solidus_brazilian_adaptations/blob/master/CHANGELOG.md
117
+ licenses: []
118
+ metadata: {}
191
119
  post_install_message:
192
120
  rdoc_options: []
193
121
  require_paths:
@@ -196,10 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
196
124
  requirements:
197
125
  - - ">="
198
126
  - !ruby/object:Gem::Version
199
- version: '2.5'
200
- - - "<"
201
- - !ruby/object:Gem::Version
202
- version: '4'
127
+ version: '0'
203
128
  required_rubygems_version: !ruby/object:Gem::Requirement
204
129
  requirements:
205
130
  - - ">="
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
@@ -1,5 +0,0 @@
1
- bump:
2
- recurse: false
3
- file: 'lib/solidus_brazilian_adaptations/version.rb'
4
- message: Bump SolidusBrazilianAdaptations to %{version}
5
- tag: true
data/.github/stale.yml DELETED
@@ -1 +0,0 @@
1
- _extends: .github
@@ -1,2 +0,0 @@
1
- issues=false
2
- exclude-labels=infrastructure
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- *.gem
2
- \#*
3
- *~
4
- .#*
5
- .DS_Store
6
- .idea
7
- .project
8
- .sass-cache
9
- coverage
10
- Gemfile.lock
11
- Gemfile-local
12
- tmp
13
- nbproject
14
- pkg
15
- *.swp
16
- spec/dummy
17
- spec/examples.txt
18
- /sandbox
19
- .rvmrc
20
- .ruby-version
21
- .ruby-gemset
22
- release.sh
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --require spec_helper
data/CHANGELOG.md DELETED
@@ -1,13 +0,0 @@
1
- # Changelog
2
-
3
- ## [v1.0.3](https://github.com/ulysses-bull/solidus_brazilian_adaptations/tree/v1.0.3) (2023-09-19)
4
-
5
- [Full Changelog](https://github.com/ulysses-bull/solidus_brazilian_adaptations/compare/v1.0.1.-t.1...v1.0.3)
6
-
7
- ## [v1.0.1.-t.1](https://github.com/ulysses-bull/solidus_brazilian_adaptations/tree/v1.0.1.-t.1) (2023-09-19)
8
-
9
- [Full Changelog](https://github.com/ulysses-bull/solidus_brazilian_adaptations/compare/e7afb9471571e91ab0d272436491ae190113f54d...v1.0.1.-t.1)
10
-
11
-
12
-
13
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
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) 2023 ulysses-bull
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
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- # require "solidus_dev_support/rake_tasks"
5
- # SolidusDevSupport::RakeTasks.install
6
-
7
- task default: "extension:specs"
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_brazilian_adaptations"
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
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- if %w[g generate].include? ARGV.first
4
- exec "#{__dir__}/rails-engine", *ARGV
5
- else
6
- exec "#{__dir__}/rails-sandbox", *ARGV
7
- end
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_brazilian_adaptations/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
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "rubygems"
5
- require "bundler/setup"
6
-
7
- load Gem.bin_path("rake", "rake")
data/bin/sandbox DELETED
@@ -1,78 +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 "$SOLIDUS_BRANCH" ]
9
- then
10
- echo "~~> Use 'export SOLIDUS_BRANCH=[main|v3.2|...]' to control the Solidus branch"
11
- SOLIDUS_BRANCH="main"
12
- fi
13
- echo "~~> Using branch $SOLIDUS_BRANCH of solidus"
14
-
15
- if [ -z "$SOLIDUS_FRONTEND" ]
16
- then
17
- echo "~~> Use 'export SOLIDUS_FRONTEND=[solidus_frontend|solidus_starter_frontend]' to control the Solidus frontend"
18
- SOLIDUS_FRONTEND="solidus_frontend"
19
- fi
20
- echo "~~> Using branch $SOLIDUS_FRONTEND as the solidus frontend"
21
-
22
- extension_name="solidus_brazilian_adaptations"
23
-
24
- # Stay away from the bundler env of the containing extension.
25
- function unbundled {
26
- ruby -rbundler -e'b = proc {system *ARGV}; Bundler.respond_to?(:with_unbundled_env) ? Bundler.with_unbundled_env(&b) : Bundler.with_clean_env(&b)' -- $@
27
- }
28
-
29
- rm -rf ./sandbox
30
- unbundled bundle exec rails new sandbox \
31
- --database="${DB:-sqlite3}" \
32
- --skip-bundle \
33
- --skip-git \
34
- --skip-keeps \
35
- --skip-rc \
36
- --skip-spring \
37
- --skip-test \
38
- --skip-javascript
39
-
40
- if [ ! -d "sandbox" ]; then
41
- echo 'sandbox rails application failed'
42
- exit 1
43
- fi
44
-
45
- cd ./sandbox
46
- cat <<RUBY >> Gemfile
47
- gem 'solidus', github: 'solidusio/solidus', branch: '$SOLIDUS_BRANCH'
48
- gem 'rails-i18n'
49
- gem 'solidus_i18n'
50
-
51
- gem '$extension_name', path: '..'
52
-
53
- group :test, :development do
54
- platforms :mri do
55
- gem 'pry-byebug'
56
- end
57
- end
58
- RUBY
59
-
60
- unbundled bundle install --gemfile Gemfile
61
-
62
- unbundled bundle exec rake db:drop db:create
63
-
64
- unbundled bundle exec rails generate solidus:install \
65
- --auto-accept \
66
- --user_class=Spree::User \
67
- --enforce_available_locales=true \
68
- --with-authentication=true \
69
- --payment-method=none \
70
- --frontend=${SOLIDUS_FRONTEND} \
71
- $@
72
-
73
- unbundled bundle exec rails generate solidus:auth:install --auto-run-migrations
74
- unbundled bundle exec rails generate ${extension_name}:install --auto-run-migrations
75
-
76
- echo
77
- echo "🚀 Sandbox app successfully created for $extension_name!"
78
- echo "🧪 This app is intended for test purposes."
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- gem install bundler --conservative
7
- bundle update
8
- bin/rake clobber
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: Hello world
data/config/routes.rb DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Spree::Core::Engine.routes.draw do
4
- # Add your extension routes here
5
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/solidus_brazilian_adaptations/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "solidus_brazilian_adaptations"
7
- spec.version = SolidusBrazilianAdaptations::VERSION
8
- spec.authors = ["ulysses-bull"]
9
- spec.email = "contato7bulloleo@gmail.com"
10
-
11
- spec.summary = ""
12
- spec.homepage = "https://github.com/ulysses-bull/solidus_brazilian_adaptations#readme"
13
- spec.license = "BSD-3-Clause"
14
-
15
- spec.metadata["homepage_uri"] = spec.homepage
16
- spec.metadata["source_code_uri"] = "https://github.com/ulysses-bull/solidus_brazilian_adaptations"
17
- spec.metadata["changelog_uri"] = "https://github.com/ulysses-bull/solidus_brazilian_adaptations/blob/master/CHANGELOG.md"
18
-
19
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5", "< 4")
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- files = Dir.chdir(__dir__) { `git ls-files -z`.split("\x0") }
24
-
25
- spec.files = files.grep_v(%r{^(test|spec|features)/})
26
- spec.bindir = "exe"
27
- spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
29
-
30
- spec.add_dependency "solidus_core", [">= 2.0.0", "< 5"]
31
- spec.add_dependency "solidus_support", "~> 0.5"
32
- spec.add_dependency "cpf_cnpj"
33
- spec.add_dependency "codigo_postal"
34
- spec.add_dependency "solidus_i18n"
35
- spec.add_dependency "rails-i18n"
36
- spec.add_dependency "kaminari-i18n"
37
-
38
- spec.add_development_dependency "solidus_dev_support", "~> 2.7"
39
- end