tiny_erp_api 0.1.0 → 0.1.2

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: 87d1791e377b8c2f57e08ee91850114bdc119b38e3e889aeca17cca0f38378ae
4
- data.tar.gz: 274c33c3895a9dec42dcafe6786b1446380b6a515c0d7f566432d6e879244b4b
3
+ metadata.gz: 27c613bb32418309d7b0bfb195cf68786dac372d95b75e91fe90f659764cb6bb
4
+ data.tar.gz: 4d5a077f5c5c852a4deef29442b2034bf89b1ab99928b0475e687bc34e0f79ca
5
5
  SHA512:
6
- metadata.gz: 4ff93da0d3ab651b7f08f5e7cfc7970935bf0e6bfbc3db305ae415465690021f5dbf681f14388a07aa6f469af9d98aa41593f7123445394304c978628fcf8331
7
- data.tar.gz: eaf77c441135536574095bfc405b9e6b393c8950621fa139992cdcdf440df820d013397fed4cf7b1d2477db2f8e3b313b7f6abaf914dd8898c371eca536b55a3
6
+ metadata.gz: b6105ac206247ae1f6ff00bd71988a4aa15ee7e8f94d374280527c07f713e057243cdc4544ce8c008765a47e3e6b377c7483d7afaf1ff63a39ea7295b6627004
7
+ data.tar.gz: 45390e0c8088d7728d6e6d058fbdc8f60b4e42f702092663228600e8db6605534a82d809a92d60742f8a822760821f59eb9a7825d778e838cd9f67a8e9b3b748
@@ -3,8 +3,8 @@ module TinyErpApi
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path("templates", __dir__)
5
5
  def copy_initializer
6
- template "initializer.rb", "config/initializers/bling_api.rb"
6
+ template "initializer.rb", "config/initializers/tiny_erp_api.rb"
7
7
  end
8
8
  end
9
9
  end
10
- end
10
+ end
@@ -14,7 +14,7 @@ module TinyErpApi
14
14
  @observacoes = observacoes
15
15
  @observacoes_internas = observacoes_internas
16
16
  @forma_envio = forma_envio
17
- @form_frete = form_frete
17
+ @forma_frete = form_frete
18
18
  @parcelas = parcelas
19
19
  @cliente = cliente
20
20
  @itens = itens
@@ -30,7 +30,7 @@ module TinyErpApi
30
30
  new(**build_hash(response_json))
31
31
  end
32
32
 
33
- def create(params)
33
+ def create
34
34
  response = Client.new(TinyErpApi.configuration.access_token).create_order(build_json)
35
35
  self.class.find_by_id(response["retorno"]["registros"]["registro"]["id"])
36
36
  end
@@ -84,4 +84,4 @@ module TinyErpApi
84
84
  end
85
85
 
86
86
  end
87
- end
87
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TinyErpApi
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_erp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
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
11
  date: 2024-05-07 00:00:00.000000000 Z
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description:
27
+ description:
28
28
  email:
29
29
  - hamiltontubo@gmail.com
30
30
  executables: []
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  homepage_uri: https://github.com/hamiltontborges
54
54
  source_code_uri: https://github.com/hamiltontborges/tiny_erp_api
55
- post_install_message:
55
+ post_install_message:
56
56
  rdoc_options: []
57
57
  require_paths:
58
58
  - lib
@@ -67,8 +67,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
- rubygems_version: 3.5.3
71
- signing_key:
70
+ rubygems_version: 3.5.10
71
+ signing_key:
72
72
  specification_version: 4
73
73
  summary: Gem to interact with Tiny ERP API.
74
74
  test_files: []