emites-client 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ab5dbafa9e33acea5e32432ceed77d93c22fdcc
4
- data.tar.gz: f9a9cd095c8f57772e8d269bf6d1e66530a349eb
3
+ metadata.gz: d7cbe4dbf6f110f1fe472e4d4047bc5890ad5342
4
+ data.tar.gz: 419217d1fe607d3c9d31868ffba11ef2b3b56f97
5
5
  SHA512:
6
- metadata.gz: 6b975aa0fb8dbbd590c8d44b2e85c242252e87bcbe395dc84672faa0eb48b0786e50555e2da5863bc8e6645b98eb6e002cae314c704573300ad62b748c6d4cc8
7
- data.tar.gz: 537c29b01418ae17db311c93ed6db3441e3eca30c667ea33816f455df4e176de41afa8a0fa10ad5cf19607728abad362039abc04a76edce56f595073f1c72da8
6
+ metadata.gz: 99cc2b635e0382781405f532fe19cdcaef6c312af87e158a3d66b4a5a29f7a364559fe226760604b2b2739fdf96db31d0ee8778083bb86c195398ad08ed1e639
7
+ data.tar.gz: fdd742ea609c82695f13dd59e0780e1f8f14edd7c2041891e322053abbe8e0a319257c221fdcfc8d79f4682c9768e3983b6f2d821fa176aa43184d7bbe37eea0
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ ## Next version
4
+
5
+ ## v0.1.3
6
+
7
+ - Adds `pis_value`, `ir_value`, `inss_value`, `retained_iss_value`, `other_retentions_value`, `cofins_value` and `csll_value` attributes on Service entity
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- emites-client (0.1.2)
4
+ emites-client (0.1.3)
5
5
  multi_json (~> 1.11)
6
6
  typhoeus (~> 0.8)
7
7
  virtus (~> 1.0)
@@ -25,9 +25,9 @@ GEM
25
25
  diff-lcs (1.2.5)
26
26
  docile (1.1.5)
27
27
  equalizer (0.0.11)
28
- ethon (0.9.0)
28
+ ethon (0.10.1)
29
29
  ffi (>= 1.3.0)
30
- ffi (1.9.10)
30
+ ffi (1.9.18)
31
31
  ice_nine (0.11.2)
32
32
  json (1.8.3)
33
33
  method_source (0.8.2)
@@ -60,7 +60,7 @@ GEM
60
60
  simplecov-html (~> 0.10.0)
61
61
  simplecov-html (0.10.0)
62
62
  slop (3.6.0)
63
- thread_safe (0.3.5)
63
+ thread_safe (0.3.6)
64
64
  typhoeus (0.8.0)
65
65
  ethon (>= 0.8.0)
66
66
  vcr (2.9.3)
@@ -88,4 +88,4 @@ DEPENDENCIES
88
88
  vcr (~> 2.9)
89
89
 
90
90
  BUNDLED WITH
91
- 1.12.5
91
+ 1.14.6
@@ -7,8 +7,8 @@ require "emites/version"
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = "emites-client"
9
9
  spec.version = Emites::VERSION
10
- spec.authors = ["Leandro Thimóteo", "Marcos Tagomori", "Rodrigo Tassinari", "Vagner Zampieri", "Wanderson Policarpo", "Luiz Carlos Buiatte"]
11
- spec.email = %w(leandro.thimoteo marcos.tagomori rodrigo.tassinari vagner.zampieri wanderson.policarpo luiz.buiatte).map { |nick| "#{nick}@myfreecomm.com.br" }
10
+ spec.authors = ["Leandro Thimóteo", "Marcos Tagomori", "Rodrigo Tassinari", "Vagner Zampieri", "Wanderson Policarpo", "Luiz Carlos Buiatte", "Victor Franco"]
11
+ spec.email = %w(leandro.thimoteo marcos.tagomori rodrigo.tassinari vagner.zampieri wanderson.policarpo luiz.buiatte victor.franco).map { |nick| "#{nick}@myfreecomm.com.br" }
12
12
  spec.summary = %q{Official Ruby client for the Emites API.}
13
13
  spec.description = %q{Official Ruby client for the Emites API. Emites is a system for creating "notas fiscais eletrônicas" (NFe / NFSe) in Brazil.}
14
14
  spec.homepage = "https://github.com/myfreecomm/emites-client-ruby"
@@ -25,6 +25,13 @@ module Emites
25
25
  attribute :other_retentions_percentage, Decimal, precision: 5, scale: 2
26
26
  attribute :retained_iss_percentage, Decimal, precision: 5, scale: 2
27
27
  attribute :unconditioned_discount_percentage, Decimal, precision: 5, scale: 2
28
+ attribute :pis_value, Decimal, precision: 16, scale: 2
29
+ attribute :ir_value, Decimal, precision: 16, scale: 2
30
+ attribute :inss_value, Decimal, precision: 16, scale: 2
31
+ attribute :retained_iss_value, Decimal, precision: 16, scale: 2
32
+ attribute :other_retentions_value, Decimal, precision: 16, scale: 2
33
+ attribute :cofins_value, Decimal, precision: 16, scale: 2
34
+ attribute :csll_value, Decimal, precision: 16, scale: 2
28
35
  end
29
36
  end
30
37
  end
@@ -1,3 +1,3 @@
1
1
  module Emites
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -0,0 +1,18 @@
1
+ require "spec_helper"
2
+
3
+ describe Emites::Entities::Service do
4
+ subject { described_class.new({}) }
5
+
6
+ it_behaves_like "entity_attributes",
7
+ [
8
+ :id, :emitter_id, :name, :service_amount, :calculation_base,
9
+ :deduction_percentage, :retained_iss, :iss_percentage,
10
+ :pis_percentage, :cofins_percentage, :inss_percentage,
11
+ :ir_percentage, :csll_percentage, :discount_conditioning_percentage,
12
+ :service_item_code, :city_tax_code, :cnae_code,
13
+ :description, :city_code, :nfse_liquid_amount,
14
+ :liquid_amount, :other_retentions_percentage, :retained_iss_percentage,
15
+ :unconditioned_discount_percentage, :pis_value, :ir_value, :inss_value,
16
+ :retained_iss_value, :other_retentions_value, :cofins_value, :csll_value
17
+ ]
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emites-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Thimóteo
@@ -10,10 +10,11 @@ authors:
10
10
  - Vagner Zampieri
11
11
  - Wanderson Policarpo
12
12
  - Luiz Carlos Buiatte
13
+ - Victor Franco
13
14
  autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
- date: 2016-10-18 00:00:00.000000000 Z
17
+ date: 2017-07-19 00:00:00.000000000 Z
17
18
  dependencies:
18
19
  - !ruby/object:Gem::Dependency
19
20
  name: typhoeus
@@ -220,6 +221,7 @@ email:
220
221
  - vagner.zampieri@myfreecomm.com.br
221
222
  - wanderson.policarpo@myfreecomm.com.br
222
223
  - luiz.buiatte@myfreecomm.com.br
224
+ - victor.franco@myfreecomm.com.br
223
225
  executables: []
224
226
  extensions: []
225
227
  extra_rdoc_files: []
@@ -227,6 +229,7 @@ files:
227
229
  - ".gitignore"
228
230
  - ".rspec"
229
231
  - ".travis.yml"
232
+ - CHANGELOG.md
230
233
  - Gemfile
231
234
  - Gemfile.lock
232
235
  - LICENSE.txt
@@ -274,7 +277,7 @@ files:
274
277
  - spec/emites/entities/nfse_status_transition_spec.rb
275
278
  - spec/emites/entities/nfse_values_spec.rb
276
279
  - spec/emites/entities/rps_spec.rb
277
- - spec/emites/entities/services_spec.rb
280
+ - spec/emites/entities/service_spec.rb
278
281
  - spec/emites/entities/taker_address_spec.rb
279
282
  - spec/emites/entities/taker_contact_spec.rb
280
283
  - spec/emites/entities/taker_spec.rb
@@ -368,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
368
371
  version: '0'
369
372
  requirements: []
370
373
  rubyforge_project:
371
- rubygems_version: 2.4.8
374
+ rubygems_version: 2.5.1
372
375
  signing_key:
373
376
  specification_version: 4
374
377
  summary: Official Ruby client for the Emites API.
@@ -384,7 +387,7 @@ test_files:
384
387
  - spec/emites/entities/nfse_status_transition_spec.rb
385
388
  - spec/emites/entities/nfse_values_spec.rb
386
389
  - spec/emites/entities/rps_spec.rb
387
- - spec/emites/entities/services_spec.rb
390
+ - spec/emites/entities/service_spec.rb
388
391
  - spec/emites/entities/taker_address_spec.rb
389
392
  - spec/emites/entities/taker_contact_spec.rb
390
393
  - spec/emites/entities/taker_spec.rb
@@ -1,22 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Emites::Entities::Service do
4
- let(:attributes) do
5
- {
6
-
7
- }
8
- end
9
-
10
- subject { described_class.new(attributes) }
11
-
12
- it_behaves_like "entity_attributes", [
13
- :id, :emitter_id, :name, :service_amount, :calculation_base,
14
- :deduction_percentage, :retained_iss, :iss_percentage,
15
- :pis_percentage, :cofins_percentage, :inss_percentage,
16
- :ir_percentage, :csll_percentage, :discount_conditioning_percentage,
17
- :service_item_code, :city_tax_code, :cnae_code,
18
- :description, :city_code, :nfse_liquid_amount,
19
- :liquid_amount, :other_retentions_percentage, :retained_iss_percentage,
20
- :unconditioned_discount_percentage
21
- ]
22
- end