fina_files 0.1.8 → 0.1.9

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: b765093fe3a9a957be063084410b0689495bfa8d
4
- data.tar.gz: 0e9a352b79bce759d3bc481432363a134b28e72c
3
+ metadata.gz: 3b562f174c0d7f95e42e66d82369df0d1af4920a
4
+ data.tar.gz: 5febdfc924efc72b94f06ad498d58fb3169dcb25
5
5
  SHA512:
6
- metadata.gz: fe7afe3f4a05edae97c3227d1802f3667cfa6d4674e74dd7c1bb372f316a6c23a4224bdf23d5b9aa06a7f5c8bb8c51ebab458d450a317a6a7746a9acfb90d4a6
7
- data.tar.gz: a23d056122dd8e472a27d534b6a22378685b60c1b719dae0993693a50e3ae7a76af91bd0fa1ea18e952c34215d5ba608cfd5d63b55f751851fbea0d1f6fa3938
6
+ metadata.gz: 38b981f8c7915058044f8f307ec1c9bbf7544d5dc186d8ddc873b22c01da89d4480be284facca884b375c8a5310fcd57cd579f0f02302d5bc840b33540068054
7
+ data.tar.gz: b1607fe9b35072329f9d16a9412bc489b734b1e894be73f583ccfe00848bb3028cea6d2834f68057a7f0a763f9a219aef75d55b45ee6663fb5ad4fb4e93d7f79
data/README.md CHANGED
@@ -45,7 +45,7 @@ end
45
45
 
46
46
 
47
47
  # nakon toga se može generirati zbrojni nalog za željeni broj računa:
48
- ZbrojniNalog.new("HR3624840081111111111").tap do |result|
48
+ ZbrojniNalogGenerator.new("HR3624840081111111111").tap do |result|
49
49
  result.nalozi = Doprinosi.nalozi
50
50
  result.export(~/Desktop/doprinosi.hub3)
51
51
  end
@@ -75,7 +75,7 @@ Lako je dodati dodatne uplate koje se ponavljaju mjesecno, recimo
75
75
 
76
76
 
77
77
  ```ruby
78
- ZbrojniNalog.new("HR3624840081105230796").tap do |result|
78
+ ZbrojniNalogGenerator.new("HR3624840081105230796").tap do |result|
79
79
  result.nalozi = Doprinosi.nalozi #generiraju se stavke za doprinose
80
80
 
81
81
  avans_dobiti = 1_000.0
@@ -1,3 +1,3 @@
1
1
  module FinaFiles
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -44,7 +44,10 @@ class ZbrojniNalogGenerator
44
44
 
45
45
  def export(file_name)
46
46
  File.open(File.expand_path(file_name), 'w:Windows-1250') do |file|
47
- rows.each { |row| file.write(row + "\r\n") }
47
+ rows.each do |row|
48
+ encoded = (row + "\r\n").force_encoding("Windows-1250")
49
+ file.write(encoded)
50
+ end
48
51
  end
49
52
  end
50
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fina_files
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - drKreso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-21 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: FINA formati na jednom mjestu
14
14
  email: