solidus_bling 3.2.4 → 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -54
- data/app/models/solidus_bling/order.rb +2 -1
- data/bin/meu_sandbox +0 -0
- data/lib/solidus_bling/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ef5e5cc0853cbfb7f89bb0367c128c3dca0f35c129a007b33a00c939c242059
|
4
|
+
data.tar.gz: 730bf9fd1c00391a4483f16564cd9b2b8b7553be0f2f62df846cb90b5908b7f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d60e9feafcdaaa611997857d604f74ebfd6a2f38af5efd3c572e1befd7c2a5bbe556bd175635f53719b4d2bfd04a9556d796c61f9cf57c167b1e333ef5ef489a
|
7
|
+
data.tar.gz: 64eac8a61efb3c5a05b62f2bca84976f3d008c4455a79a236966c47caf57dd6837d104314027023f818e2046fca138c5a315b39781a1e1914ff4eeede5d25263
|
data/README.md
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
# Solidus Bling
|
2
2
|
|
3
|
-
[![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_bling.svg?style=shield)](https://circleci.com/gh/solidusio-contrib/solidus_bling)
|
4
|
-
[![codecov](https://codecov.io/gh/solidusio-contrib/solidus_bling/branch/master/graph/badge.svg)](https://codecov.io/gh/solidusio-contrib/solidus_bling)
|
5
|
-
|
6
|
-
<!-- Explain what your extension does. -->
|
7
|
-
|
8
3
|
## Installation
|
9
4
|
|
10
5
|
Add solidus_bling to your Gemfile:
|
@@ -19,55 +14,6 @@ Bundle your dependencies and run the installation generator:
|
|
19
14
|
bin/rails generate solidus_bling:install
|
20
15
|
```
|
21
16
|
|
22
|
-
## Usage
|
23
|
-
|
24
|
-
<!-- Explain how to use your extension once it's been installed. -->
|
25
|
-
|
26
|
-
## Development
|
27
|
-
|
28
|
-
### Testing the extension
|
29
|
-
|
30
|
-
First bundle your dependencies, then run `bin/rake`. `bin/rake` will default to building the dummy
|
31
|
-
app if it does not exist, then it will run specs. The dummy app can be regenerated by using
|
32
|
-
`bin/rake extension:test_app`.
|
33
|
-
|
34
|
-
```shell
|
35
|
-
bin/rake
|
36
|
-
```
|
37
|
-
|
38
|
-
To run [Rubocop](https://github.com/bbatsov/rubocop) static code analysis run
|
39
|
-
|
40
|
-
```shell
|
41
|
-
bundle exec rubocop
|
42
|
-
```
|
43
|
-
|
44
|
-
When testing your application's integration with this extension you may use its factories.
|
45
|
-
You can load Solidus core factories along with this extension's factories using this statement:
|
46
|
-
|
47
|
-
```ruby
|
48
|
-
SolidusDevSupport::TestingSupport::Factories.load_for(SolidusBling::Engine)
|
49
|
-
```
|
50
|
-
|
51
|
-
### Running the sandbox
|
52
|
-
|
53
|
-
To run this extension in a sandboxed Solidus application, you can run `bin/sandbox`. The path for
|
54
|
-
the sandbox app is `./sandbox` and `bin/rails` will forward any Rails commands to
|
55
|
-
`sandbox/bin/rails`.
|
56
|
-
|
57
|
-
Here's an example:
|
58
|
-
|
59
|
-
```
|
60
|
-
$ bin/rails server
|
61
|
-
=> Booting Puma
|
62
|
-
=> Rails 6.0.2.1 application starting in development
|
63
|
-
* Listening on tcp://127.0.0.1:3000
|
64
|
-
Use Ctrl-C to stop
|
65
|
-
```
|
66
|
-
|
67
|
-
### Releasing new versions
|
68
|
-
|
69
|
-
Please refer to the [dedicated page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) in the Solidus wiki.
|
70
|
-
|
71
17
|
## License
|
72
18
|
|
73
19
|
Copyright (c) 2023 Hamilton Tumenas Borges, released under the New BSD License.
|
@@ -51,6 +51,7 @@ module SolidusBling
|
|
51
51
|
contato = BlingApi::Customer.new(
|
52
52
|
pessoa_juridica: @order.tax_id.length > 14,
|
53
53
|
numero_documento: @order.tax_id,
|
54
|
+
cod_contribuinte: @order.tax_id.length > 14 ? nil : "9",
|
54
55
|
**build_customer
|
55
56
|
).create
|
56
57
|
end
|
@@ -161,7 +162,7 @@ module SolidusBling
|
|
161
162
|
end
|
162
163
|
|
163
164
|
def build_order_url
|
164
|
-
"Link para o pedido: #{@order.store.url}/orders/#{@order.number}
|
165
|
+
"Link para o pedido: #{@order.store.url}/orders/#{@order.number}"
|
165
166
|
end
|
166
167
|
end
|
167
168
|
end
|
data/bin/meu_sandbox
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_bling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hamilton Tumenas Borges
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -86,7 +86,7 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '2.7'
|
89
|
-
description:
|
89
|
+
description:
|
90
90
|
email: hamiltontubo@gmail.com
|
91
91
|
executables: []
|
92
92
|
extensions: []
|
@@ -154,7 +154,7 @@ metadata:
|
|
154
154
|
homepage_uri: https://github.com/hamiltontborges/solidus_bling#readme
|
155
155
|
source_code_uri: https://github.com/hamiltontborges/solidus_bling
|
156
156
|
changelog_uri: https://github.com/hamiltontborges/solidus_bling/blob/master/CHANGELOG.md
|
157
|
-
post_install_message:
|
157
|
+
post_install_message:
|
158
158
|
rdoc_options: []
|
159
159
|
require_paths:
|
160
160
|
- lib
|
@@ -172,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
|
-
rubygems_version: 3.4.
|
176
|
-
signing_key:
|
175
|
+
rubygems_version: 3.4.19
|
176
|
+
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Solidus extension to integrate with the Bling
|
179
179
|
test_files: []
|