br_invoices_pdf 0.2.11 → 0.2.12.alpha.20

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: d7286e74443aab2c2df9091bbc2bf6d4d745f3dc
4
- data.tar.gz: b7269a1abb770cf95e49c3a660435209bcb1b360
3
+ metadata.gz: 80c8e2ed13a4011e976d90be116b43994fd245d5
4
+ data.tar.gz: d39f5714eb63d9efd9753ef4768a29bdbb07bc6b
5
5
  SHA512:
6
- metadata.gz: f7b8a50af0fd7ccf11fd13a7dd89f565bf86606274ab9d536012ec55eef1c95734fcf4621777ec226ddd114d83a1d0a8b350ee37d4e828f899a5d9e1a6cb7dc9
7
- data.tar.gz: 4d7c5fc67ea094ffdbb26f038c8d1bc94d080e02d39a9a714f3fd48d1bc2aa1c0ce80df67c45978f821b390524351783d31d2b531c4a12209bcbc27310a08b16
6
+ metadata.gz: d299025a0047a893657b575b41becc462497544b8ccbe55d97b46ad3e7f54234c044409bb3e333c4b05f3913e573b80c79515bf700754909d67e47a964382993
7
+ data.tar.gz: 129d9d5d53b322f4dfe5c9f83b3a3100868e38af77eead1fa661c637e072675b7b0b82ef66f51d9078c20003aa242e751b21feca049db7102f2bb603d7303ad4
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## CHANGELOG
4
4
 
5
+ ### 0.2.13 [2018-03-05]
6
+ - [Corrigido] Encode dos produtos
7
+
8
+ ### 0.2.12 [2018-02-20]
9
+ - [Corrigido] Encode dos produtos
10
+
5
11
  ### 0.2.10 [2017-12-12]
6
12
  - [Corrigindo] Versão da gem Ox
7
13
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_dependency 'barby', '~> 0.5.1'
27
27
  spec.add_dependency 'chunky_png', '~> 1.3.8'
28
- spec.add_dependency 'ox', '~> 2.8.2'
28
+ spec.add_dependency 'ox', '~> 2.8.4'
29
29
  spec.add_dependency 'prawn', '~> 2.2.2'
30
30
  spec.add_dependency 'prawn-table', '~> 0.2.1'
31
31
  spec.add_dependency 'rqrcode', '~> 0.10.1'
@@ -29,7 +29,7 @@ module BrInvoicesPdf
29
29
 
30
30
  def product_by(element)
31
31
  FIELDS
32
- .map { |(key, field)| [key, node_locate(element, field).force_encoding('UTF-8')] }
32
+ .map { |(key, field)| [key, node_locate(element, field).force_encoding('WINDOWS-1252').encode('UTF-8')] }
33
33
  .to_h
34
34
  end
35
35
  private_class_method :product_by
@@ -27,7 +27,7 @@ module BrInvoicesPdf
27
27
 
28
28
  def product_by(element)
29
29
  FIELDS
30
- .map { |(key, field)| [key, node_locate(element, field).force_encoding('UTF-8')] }
30
+ .map { |(key, field)| [key, node_locate(element, field).force_encoding('WINDOWS-1252').encode('UTF-8')] }
31
31
  .to_h
32
32
  end
33
33
  private_class_method :product_by
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrInvoicesPdf
4
- VERSION = '0.2.11'
4
+ VERSION = '0.2.12'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_invoices_pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12.alpha.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Ribeiro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-01-17 00:00:00.000000000 Z
12
+ date: 2018-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: barby
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 2.8.2
48
+ version: 2.8.4
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 2.8.2
55
+ version: 2.8.4
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: prawn
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -298,9 +298,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
298
298
  version: '0'
299
299
  required_rubygems_version: !ruby/object:Gem::Requirement
300
300
  requirements:
301
- - - ">="
301
+ - - ">"
302
302
  - !ruby/object:Gem::Version
303
- version: '0'
303
+ version: 1.3.1
304
304
  requirements: []
305
305
  rubyforge_project:
306
306
  rubygems_version: 2.6.14