solidus_bling 3.3.3 → 3.3.5
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/.github/workflows/publish_gem.yml +22 -0
- data/app/models/solidus_bling/order.rb +9 -2
- data/lib/solidus_bling/version.rb +1 -1
- data/solidus_bling.gemspec +3 -3
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 901598a7031c99ed6afd1fbfdd80828b2ddcd5a3622fa5166e76fcb08db7aab4
|
4
|
+
data.tar.gz: 1433507806a1a7ca3b3b0b4b02114409e6b38dcee1c0c074a979fd306df2d118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e3f471c8d635de3957b19688771de4d5c68d01c11c7b07bf3a2d0b7a4bcd0784e871404a9593f2aa322b72cbd011ce1f69f056b7e3acd95e1a9a4fc799abf2d
|
7
|
+
data.tar.gz: c2eae920347b3e68fefec245d44c469f0e1f2d3da1d22117627243af7ec099a4e520a1a338a891df54110cf986b3364083402d2e4badd82dfc066f8b83997521
|
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Publish Gem
|
2
|
+
on: workflow_dispatch
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
push:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
|
8
|
+
permissions:
|
9
|
+
contents: write
|
10
|
+
id-token: write
|
11
|
+
|
12
|
+
steps:
|
13
|
+
# Set up
|
14
|
+
- uses: actions/checkout@v4
|
15
|
+
- name: Set up Ruby
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
bundler-cache: true
|
19
|
+
ruby-version: ruby
|
20
|
+
|
21
|
+
# Release
|
22
|
+
- uses: rubygems/release-gem@v1
|
@@ -9,7 +9,7 @@ module SolidusBling
|
|
9
9
|
@account.check_token
|
10
10
|
BlingApi.configure { |config| config.access_token = @account.access_token }
|
11
11
|
|
12
|
-
contato =
|
12
|
+
contato = customer
|
13
13
|
items = products
|
14
14
|
parcelas = installments
|
15
15
|
observacoes_internas = internal_observations
|
@@ -40,13 +40,20 @@ module SolidusBling
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
43
|
+
def customer
|
44
44
|
contato = BlingApi::Customer.find_by_tax_id(@order.tax_id)
|
45
45
|
if contato
|
46
46
|
contato.update(
|
47
47
|
pessoa_juridica: @order.tax_id.length > 14,
|
48
48
|
numero_documento: @order.tax_id,
|
49
49
|
situacao: "A",
|
50
|
+
codigo: contato.codigo,
|
51
|
+
vendedor: contato.vendedor,
|
52
|
+
dados_adicionais: contato.dados_adicionais,
|
53
|
+
financeiro: contato.financeiro,
|
54
|
+
pais: contato.pais,
|
55
|
+
tipos_contato: contato.tipos_contato,
|
56
|
+
pessoa_contato: contato.pessoa_contato,
|
50
57
|
**build_customer
|
51
58
|
)
|
52
59
|
else
|
data/solidus_bling.gemspec
CHANGED
@@ -5,7 +5,7 @@ require_relative "lib/solidus_bling/version"
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "solidus_bling"
|
7
7
|
spec.version = SolidusBling::VERSION
|
8
|
-
spec.authors = ["
|
8
|
+
spec.authors = ["Todas Essas Coisas"]
|
9
9
|
spec.email = "hamiltontubo@gmail.com"
|
10
10
|
|
11
11
|
spec.summary = "Solidus extension to integrate with the Bling"
|
@@ -13,8 +13,8 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.license = "BSD-3-Clause"
|
14
14
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
-
spec.metadata["source_code_uri"] = "https://github.com/
|
17
|
-
spec.metadata["changelog_uri"] = "https://github.com/
|
16
|
+
spec.metadata["source_code_uri"] = "https://github.com/todasessascoisas/solidus_bling"
|
17
|
+
spec.metadata["changelog_uri"] = "https://github.com/todasessascoisas/solidus_bling/blob/master/CHANGELOG.md"
|
18
18
|
|
19
19
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.5", "< 4")
|
20
20
|
|
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.3.
|
4
|
+
version: 3.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Todas Essas Coisas
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-10 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: []
|
@@ -96,6 +96,7 @@ files:
|
|
96
96
|
- ".gem_release.yml"
|
97
97
|
- ".gitattributes"
|
98
98
|
- ".github/stale.yml"
|
99
|
+
- ".github/workflows/publish_gem.yml"
|
99
100
|
- ".github_changelog_generator"
|
100
101
|
- ".gitignore"
|
101
102
|
- ".rspec"
|
@@ -162,9 +163,9 @@ licenses:
|
|
162
163
|
- BSD-3-Clause
|
163
164
|
metadata:
|
164
165
|
homepage_uri: https://github.com/hamiltontborges/solidus_bling#readme
|
165
|
-
source_code_uri: https://github.com/
|
166
|
-
changelog_uri: https://github.com/
|
167
|
-
post_install_message:
|
166
|
+
source_code_uri: https://github.com/todasessascoisas/solidus_bling
|
167
|
+
changelog_uri: https://github.com/todasessascoisas/solidus_bling/blob/master/CHANGELOG.md
|
168
|
+
post_install_message:
|
168
169
|
rdoc_options: []
|
169
170
|
require_paths:
|
170
171
|
- lib
|
@@ -182,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
183
|
- !ruby/object:Gem::Version
|
183
184
|
version: '0'
|
184
185
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
186
|
-
signing_key:
|
186
|
+
rubygems_version: 3.5.9
|
187
|
+
signing_key:
|
187
188
|
specification_version: 4
|
188
189
|
summary: Solidus extension to integrate with the Bling
|
189
190
|
test_files: []
|