datev 0.1.0 → 0.1.1

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: 57774150c7d539c94f9e459bd5cb1bae8c60ac1d
4
- data.tar.gz: e30cea5d8561baf3e21fdf6cc754d7214a1aef04
3
+ metadata.gz: 2c321a3bfeae671bbfdb6873b7b75bb34887f453
4
+ data.tar.gz: dbe77e04243cdb4afa3dbd9ee26bb2867b4cedf9
5
5
  SHA512:
6
- metadata.gz: 9b27d2919f397776fc8cc14a5ad7ebd6b66e7a37278ee5cf0c00b0e83f414848e4ebb950a7d05534a75a6550d95c96a183a3794667092bef24e2094ea29f97d5
7
- data.tar.gz: b7defef4b3dcb9effc473406505ea3465e59563d0ce855060cc1b6f9b7683eded879a7db57b0a7dced1b101a96c92a82964f1e006b4d67e63eb113a2bca2d125
6
+ metadata.gz: bfb8ba8f87cb539f9c9bc3ba446449752ade2c1295eba4baf4d183d210cf3f6c3648cc4f4c781e6e625a8ea0824eba39ca51a7120a99b4b4045379971894367d
7
+ data.tar.gz: f6511e6f062388127bc692fa0d3d4359d1bbe53c8e432c0caae018fa82a64978956966da96b1e19d1862469fa675d0280b39a908fd887014439192ea1c32f4cd
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.0.0
5
+ - 2.1.10
6
+ - 2.2.5
4
7
  - 2.3.1
5
- before_install: gem install bundler -v 1.12.5
8
+ before_install: gem update bundler
data/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Ruby gem for exporting bookings to DATEV via CSV file
4
4
 
5
+ [![Build Status](https://travis-ci.org/ledermann/datev.svg?branch=master)](https://travis-ci.org/ledermann/datev)
6
+ [![Code Climate](https://codeclimate.com/github/ledermann/datev/badges/gpa.svg)](https://codeclimate.com/github/ledermann/datev)
7
+
5
8
  ## Installation
6
9
 
7
10
  Add this line to your application's Gemfile:
@@ -21,36 +24,38 @@ Or install it yourself as:
21
24
  ## Usage
22
25
 
23
26
  ```ruby
24
- export = Datev::Export.new 'Herkunft' => 'XY',
25
- 'Exportiert von' => 'Chief Accounting Officer',
26
- 'Berater' => 123,
27
- 'Mandant' => 456,
28
- 'WJ-Beginn' => Date.new(2016,1,1),
29
- 'Datum vom' => Date.new(2016,6,1),
30
- 'Datum bis' => Date.new(2016,6,30)
31
-
32
- export << Datev::Booking.new(
33
- 'Belegdatum' => Date.new(2016,6,21),
34
- 'Buchungstext' => 'Fachbuch: Controlling for Dummies',
35
- 'Umsatz (ohne Soll/Haben-Kz)' => 24.95,
36
- 'Soll/Haben-Kennzeichen' => 'H',
37
- 'Konto' => 1200,
38
- 'Gegenkonto (ohne BU-Schlüssel)' => 4940,
39
- 'BU-Schlüssel' => '8'
40
- )
41
-
42
- export << Datev::Booking.new(
43
- 'Belegdatum' => Date.new(2016,6,22),
44
- 'Buchungstext' => 'Honorar FiBu-Seminar',
45
- 'Umsatz (ohne Soll/Haben-Kz)' => 5950.00,
46
- 'Soll/Haben-Kennzeichen' => 'S',
47
- 'Konto' => 10000,
48
- 'Gegenkonto (ohne BU-Schlüssel)' => 8400,
49
- 'BU-Schlüssel' => '3',
50
- 'Belegfeld 1' => 'RE201606-135'
51
- )
52
-
53
- export.to_file('EXTF_Buchungsstapel.csv')
27
+ export = Datev::Export.new(
28
+ 'Herkunft' => 'XY',
29
+ 'Exportiert von' => 'Chief Accounting Officer',
30
+ 'Berater' => 123,
31
+ 'Mandant' => 456,
32
+ 'WJ-Beginn' => Date.new(2016,1,1),
33
+ 'Datum vom' => Date.new(2016,6,1),
34
+ 'Datum bis' => Date.new(2016,6,30),
35
+ 'Bezeichnung' => 'Beispiel-Buchungen'
36
+ ) # For available hash keys see /lib/datev/header.rb
37
+
38
+ export << Datev::Booking.new(
39
+ 'Belegdatum' => Date.new(2016,6,21),
40
+ 'Buchungstext' => 'Fachbuch: Controlling für Dummies',
41
+ 'Umsatz (ohne Soll/Haben-Kz)' => 24.95,
42
+ 'Soll/Haben-Kennzeichen' => 'H',
43
+ 'Konto' => 1200,
44
+ 'Gegenkonto (ohne BU-Schlüssel)' => 4940,
45
+ 'BU-Schlüssel' => '8'
46
+ ) # For available hash keys see /lib/datev/booking.rb
47
+
48
+ export << Datev::Booking.new(
49
+ 'Belegdatum' => Date.new(2016,6,22),
50
+ 'Buchungstext' => 'Honorar FiBu-Seminar',
51
+ 'Umsatz (ohne Soll/Haben-Kz)' => 5950.00,
52
+ 'Soll/Haben-Kennzeichen' => 'S',
53
+ 'Konto' => 10000,
54
+ 'Gegenkonto (ohne BU-Schlüssel)' => 8400,
55
+ 'Belegfeld 1' => 'RE201606-135'
56
+ )
57
+
58
+ export.to_file('EXTF_Buchungsstapel.csv')
54
59
  ```
55
60
 
56
61
  ## Development
data/datev.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.bindir = "exe"
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
+ spec.required_ruby_version = '>= 2.0.0'
21
22
 
22
23
  spec.add_development_dependency "bundler"
23
24
  spec.add_development_dependency "rake"
data/lib/datev/export.rb CHANGED
@@ -4,7 +4,7 @@ require 'datev/booking'
4
4
 
5
5
  module Datev
6
6
  class Export
7
- CSV_OPTIONS = { :col_sep => ';' }
7
+ CSV_OPTIONS = { :col_sep => ';', :encoding => 'windows-1252' }
8
8
 
9
9
  DEFAULT_HEADER_ATTRIBUTES = {
10
10
  'DATEV-Format-KZ' => 'EXTF',
data/lib/datev/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Datev
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Ledermann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 2.0.0
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ">="
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.6.4
101
+ rubygems_version: 2.6.6
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Export booking data in DATEV format