interfactura-ruby 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: a4f4009e5be1aa24f0ce7a8fc4bfe4575d965bcd
4
- data.tar.gz: 32817c9402490f05efc8c441f6d8935be3882bd6
3
+ metadata.gz: 06cc8c0d3c5f0f269f1113006d2a5678288672ed
4
+ data.tar.gz: 0ca0946ee55ed98f0deba2ca24aee31aa75acc53
5
5
  SHA512:
6
- metadata.gz: 7ebaf32f3fac3b4fbd73858abfa5f905008f85a527891bbd7a999a87ed3ae0336dda162e9f98ff6c1147fca9daa3d870464962f013c93087b7737d31d99beae2
7
- data.tar.gz: 15b9e01ce31f5e33d96121216a2d6e3572b962766f980f09c03b5b8ea6faacdc43cf2c87b6ee32438ece691cb0876c22a95c558558d705909e74644d40fa7955
6
+ metadata.gz: 7151fbd976aa4cae021f46cf32faf96d3634dfe24875cd995aa7cab8ddfc7c63b615c27d849428cbb55a83d7ad301e8ba68ffa98dbc168f15e565cd398dc408b
7
+ data.tar.gz: e4b66e408f66e251546ec5d0095eeeb980eb8954a543485579a688e626be6927063db7e11244d163f56ba0c8a562829b2e9945346c8339f70784e3dbf0f1057f
@@ -24,11 +24,11 @@ module Interfactura
24
24
  end
25
25
 
26
26
  def subtotal
27
- (total / 1.16).ceil(2)
27
+ (total / 1.16).round(2)
28
28
  end
29
29
 
30
30
  def iva
31
- (total - subtotal).ceil(2)
31
+ (total - subtotal).round(2)
32
32
  end
33
33
 
34
34
  def to_xml
@@ -1,5 +1,5 @@
1
1
  module Interfactura
2
2
  module Ruby
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interfactura-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Icalia Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-17 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri-happymapper