liberic 1.3.1 → 1.5.0

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.
@@ -121,6 +121,7 @@ module Liberic
121
121
  610101524 => 'ERIC_TRANSFER_EID_NPABLOCKIERT',
122
122
 
123
123
  610201016 => 'ERIC_CRYPT_ERROR_CREATE_KEY',
124
+ 610201017 => 'ERIC_CRYPT_OUT_OF_ENTROPY',
124
125
  610201101 => 'ERIC_CRYPT_E_INVALID_HANDLE',
125
126
  610201102 => 'ERIC_CRYPT_E_MAX_SESSION',
126
127
  610201103 => 'ERIC_CRYPT_E_BUSY',
@@ -151,6 +152,9 @@ module Liberic
151
152
  610201128 => 'ERIC_CRYPT_E_LOAD_DLL',
152
153
  610201129 => 'ERIC_CRYPT_E_NO_SERVICE',
153
154
  610201130 => 'ERIC_CRYPT_E_ESICL_EXCEPTION',
155
+ 610201140 => 'ERIC_CRYPT_E_ESIGNER_NICHT_GELADEN',
156
+ 610201141 => 'ERIC_CRYPT_E_INKOMPATIBLE_ESIGNER_VERSION',
157
+ 610201142 => 'ERIC_CRYPT_E_VERALTETE_ESIGNER_VERSION',
154
158
  610201144 => 'ERIC_CRYPT_E_TOKEN_TYPE_MISMATCH',
155
159
  610201146 => 'ERIC_CRYPT_E_P12_CREATE',
156
160
  610201147 => 'ERIC_CRYPT_E_VERIFY_CERT_CHAIN',
@@ -181,6 +185,12 @@ module Liberic
181
185
  610201225 => 'ERIC_CRYPT_E_SC_NO_ENC_CERT',
182
186
  610201226 => 'ERIC_CRYPT_E_SC_INIT_FAILED',
183
187
  610201227 => 'ERIC_CRYPT_E_SC_SIG_KEY',
188
+ 610201228 => 'ERIC_CRYPT_E_DATA_NOT_INITIALIZED',
189
+ 610201229 => 'ERIC_CRYPT_E_ASN1_READ_BUFFER_TOO_SMALL',
190
+ 610201230 => 'ERIC_CRYPT_E_ASN1_READ_DATA_INCOMPLETE',
191
+ 610201231 => 'ERIC_CRYPT_E_ASN1_NO_ENVELOPED_DATA',
192
+ 610201232 => 'ERIC_CRYPT_E_ASN1_NO_CONTENT_DATA',
193
+ 610201233 => 'ERIC_CRYPT_E_XML_VERIFY',
184
194
 
185
195
  610301001 => 'ERIC_IO_FEHLER',
186
196
  610301005 => 'ERIC_IO_DATEI_INKORREKT',
@@ -212,8 +222,10 @@ module Liberic
212
222
  610301190 => 'ERIC_IO_READER_ZU_VIELE_ANHAENGE',
213
223
  610301191 => 'ERIC_IO_READER_ANHANG_ZU_GROSS',
214
224
  610301192 => 'ERIC_IO_READER_ANHAENGE_ZU_GROSS',
225
+ 610301193 => 'ERIC_IO_READER_ANHANG_ZU_KLEIN',
215
226
  610301200 => 'ERIC_IO_READER_SCHEMA_VALIDIERUNGSFEHLER',
216
227
  610301201 => 'ERIC_IO_READER_UNBEKANNTE_XML_ENTITY',
228
+ 610301202 => 'ERIC_IO_TESTHERSTELLERID_GESPERRT',
217
229
  610301252 => 'ERIC_IO_DATENTEILNOTFOUND',
218
230
  610301253 => 'ERIC_IO_DATENTEILENDNOTFOUND',
219
231
  610301300 => 'ERIC_IO_UEBERGABEPARAMETER_FEHLERHAFT',
@@ -3,19 +3,65 @@ module Liberic
3
3
  module Types
4
4
  extend FFI::Library
5
5
 
6
+ # Helpers for structs with +const char*+ members.
7
+ #
8
+ # A struct only stores the address of a string. The memory behind that
9
+ # address must stay allocated as long as ERiC may read it, so the
10
+ # +FFI::MemoryPointer+ is kept in the struct object itself.
11
+ module StringMembers
12
+ # Copies +value+ into native memory and stores its address in +member+.
13
+ # +nil+ stores a NULL pointer.
14
+ def set_string(member, value)
15
+ @string_pointers ||= {}
16
+ pointer = value.nil? ? nil : FFI::MemoryPointer.from_string(value.to_s)
17
+ @string_pointers[member] = pointer
18
+ self[member] = pointer || FFI::Pointer::NULL
19
+ pointer
20
+ end
21
+
22
+ # Overwrites the native copy of +member+ with zero bytes.
23
+ def wipe_string(member)
24
+ pointer = @string_pointers && @string_pointers[member]
25
+ pointer&.clear
26
+ self
27
+ end
28
+ end
29
+
6
30
  class DruckParameter < FFI::Struct
31
+ include StringMembers
32
+
7
33
  layout :version, :uint, # Set version to 4
8
34
  :vorschau, :uint,
9
35
  :duplexDruck, :uint,
10
36
  :pdfName, :pointer,
11
37
  :fussText, :pointer,
12
- :ersteSeite, :uint
38
+ :pdfCallback, :pointer,
39
+ :pdfCallbackBenutzerdaten, :pointer
40
+
41
+ # Stores +function+ (an +FFI::Function+ matching ERiC's
42
+ # +EricPdfCallback+, see +SDK::API.generate_pdf_callback+) as
43
+ # +pdfCallback+ and keeps a reference to it, so the garbage collector
44
+ # cannot free it while ERiC may call it. +nil+ stores a NULL pointer,
45
+ # and ERiC writes PDFs to +pdfName+.
46
+ def set_pdf_callback(function)
47
+ @pdf_callback = function
48
+ self[:pdfCallback] = function || FFI::Pointer::NULL
49
+ function
50
+ end
13
51
  end
14
52
 
15
53
  class VerschluesselungsParameter < FFI::Struct
54
+ include StringMembers
55
+
16
56
  layout :version, :uint, # Set version to 3
17
57
  :zertifikatHandle, :uint,
18
58
  :pin, :pointer
59
+
60
+ # Overwrites the native copy of the PIN with zero bytes. The struct
61
+ # cannot be used for signing afterwards.
62
+ def wipe_pin!
63
+ wipe_string(:pin)
64
+ end
19
65
  end
20
66
 
21
67
  class ZertifikatParameter < FFI::Struct
@@ -36,7 +82,10 @@ module Liberic
36
82
  :drucke, (1 << 5),
37
83
  :pruefe_hinweise, (1 << 7),
38
84
  :validiere_ohne_freigabedatum, (1 << 8),
39
- :sende_auth, ('00100110'.to_i(2)) # triggers all three: valiediere, sende and drucke
85
+ # Not an ERiC flag: validiere | sende | drucke, kept for compatibility.
86
+ # ERiC uses these flags for sending and printing with and without
87
+ # authentication (Process action :print_and_submit).
88
+ :sende_auth, ('00100110'.to_i(2))
40
89
  )
41
90
 
42
91
  ERIC_LOG_ERROR = 4
data/lib/liberic/sdk.rb CHANGED
@@ -1,5 +1,16 @@
1
1
  require 'liberic/sdk/configuration'
2
2
  require 'liberic/sdk/fehlercodes'
3
3
  require 'liberic/sdk/types'
4
- require 'liberic/sdk/api'
5
4
  require 'liberic/sdk/def'
5
+
6
+ module Liberic
7
+ module SDK
8
+ # Liberic::SDK::API loads the ERiC library and is defined by Liberic.boot!
9
+ # (which <tt>require 'liberic'</tt> calls).
10
+ def self.const_missing(name)
11
+ return super unless name == :API
12
+
13
+ raise Liberic::InitializationError.new('ERiC is not loaded yet; call Liberic.boot! first')
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,27 @@
1
+ require "rake"
2
+ require "liberic/eric_installer"
3
+
4
+ # Rake tasks for applications that use Liberic. Load them in a Rakefile with
5
+ #
6
+ # require "liberic/tasks"
7
+ #
8
+ # and install the ERiC SDK with
9
+ #
10
+ # bundle exec rake eric:install # into ./.eric
11
+ # bundle exec rake "eric:install[/opt/myapp]" # into /opt/myapp/.eric
12
+ # ERIC_INSTALL_ROOT=/opt/myapp bundle exec rake eric:install
13
+ # ERIC_VERSION=43.5.4.0 bundle exec rake eric:install
14
+ #
15
+ # The task argument takes precedence over ERIC_INSTALL_ROOT; without either,
16
+ # the SDK is installed below the current directory (Rake's working directory
17
+ # is the directory of the Rakefile).
18
+ namespace :eric do
19
+ desc "Download and install the ERiC Linux x86-64 SDK and documentation (into ROOT/.eric, default: current directory)"
20
+ task :install, [:root] do |_task, args|
21
+ root = args[:root] || ENV["ERIC_INSTALL_ROOT"] || Dir.pwd
22
+ version = ENV.fetch("ERIC_VERSION", Liberic::EricInstaller::DEFAULT_VERSION)
23
+ Liberic::EricInstaller.new(version: version, root: root).install
24
+ rescue Liberic::EricInstaller::InstallError => error
25
+ abort "eric:install failed: #{error.message}"
26
+ end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module Liberic
2
- VERSION = '1.3.1'
2
+ VERSION = '1.5.0'
3
3
  end
data/lib/liberic.rb CHANGED
@@ -1,21 +1,6 @@
1
- require 'ffi'
2
- require 'nokogiri'
3
- require 'logger'
4
- require 'liberic/version'
5
- require 'liberic/boot'
6
- require 'liberic/certificate'
7
- require 'liberic/helpers'
8
- require 'liberic/response'
9
- require 'liberic/sdk'
10
- require 'liberic/process'
11
- require 'liberic/config'
1
+ require 'liberic/core'
12
2
 
13
- module Liberic
14
- SDK::API::initialisiere(nil, nil)
15
-
16
- check_eric_version!
17
-
18
- def config
19
- @config ||= Config.new
20
- end
21
- end
3
+ # Requiring 'liberic' loads and initializes ERiC immediately, using ERIC_HOME
4
+ # (or ERIC_HOME_40). Require 'liberic/core' and call Liberic.boot! to choose
5
+ # the time and the ERiC options yourself.
6
+ Liberic.boot! unless Liberic.booted?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liberic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Malte Münchert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
11
+ date: 2026-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -25,33 +25,33 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.16'
27
27
  - !ruby/object:Gem::Dependency
28
- name: nokogiri
28
+ name: logger
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.16'
33
+ version: '1.6'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.16'
40
+ version: '1.6'
41
41
  - !ruby/object:Gem::Dependency
42
- name: bundler
42
+ name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.5'
48
- type: :development
47
+ version: '1.16'
48
+ type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.5'
54
+ version: '1.16'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,32 +80,39 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.13'
83
- description: Liberic is a ruby wrapper for ERiC, a C library to interact with German
84
- Tax Authority's ELSTER service.
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubyzip
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '3.4'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '3.4'
97
+ description: Liberic is a Ruby wrapper for ERiC (ELSTER Rich Client), the native library
98
+ for validating, printing and submitting tax filings to Germany's tax authorities
99
+ through ELSTER. The ERiC SDK is not included; a Rake task installs it on Linux x86-64.
85
100
  email:
86
101
  - malte.muenchert@gmx.net
87
102
  executables: []
88
103
  extensions: []
89
104
  extra_rdoc_files: []
90
105
  files:
91
- - ".gitignore"
92
- - ".rspec"
93
- - ".tool-versions"
94
- - ".travis.yml"
95
106
  - CHANGELOG.md
96
- - CODE_OF_CONDUCT.md
97
- - Gemfile
98
107
  - LICENSE
99
108
  - README.md
100
- - Rakefile
101
- - bin/console
102
- - bin/setup
103
- - examples/steuersatz.xml
104
- - examples/submit_ekst.rb
109
+ - examples/est_2020.rb
105
110
  - lib/liberic.rb
106
111
  - lib/liberic/boot.rb
107
112
  - lib/liberic/certificate.rb
108
113
  - lib/liberic/config.rb
114
+ - lib/liberic/core.rb
115
+ - lib/liberic/eric_installer.rb
109
116
  - lib/liberic/helpers.rb
110
117
  - lib/liberic/helpers/invocation.rb
111
118
  - lib/liberic/process.rb
@@ -118,12 +125,16 @@ files:
118
125
  - lib/liberic/sdk/def.rb
119
126
  - lib/liberic/sdk/fehlercodes.rb
120
127
  - lib/liberic/sdk/types.rb
128
+ - lib/liberic/tasks.rb
121
129
  - lib/liberic/version.rb
122
- - liberic.gemspec
123
- homepage: https://www.github.com/mpm/liberic-ruby
130
+ homepage: https://github.com/mpm/liberic-ruby
124
131
  licenses:
125
132
  - MIT
126
- metadata: {}
133
+ metadata:
134
+ homepage_uri: https://github.com/mpm/liberic-ruby
135
+ changelog_uri: https://github.com/mpm/liberic-ruby/blob/master/CHANGELOG.md
136
+ documentation_uri: https://www.rubydoc.info/github/mpm/liberic-ruby
137
+ bug_tracker_uri: https://github.com/mpm/liberic-ruby/issues
127
138
  post_install_message:
128
139
  rdoc_options: []
129
140
  require_paths:
@@ -132,15 +143,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
143
  requirements:
133
144
  - - ">="
134
145
  - !ruby/object:Gem::Version
135
- version: '0'
146
+ version: '3.3'
136
147
  required_rubygems_version: !ruby/object:Gem::Requirement
137
148
  requirements:
138
149
  - - ">="
139
150
  - !ruby/object:Gem::Version
140
151
  version: '0'
141
152
  requirements: []
142
- rubygems_version: 3.5.6
153
+ rubygems_version: 3.5.22
143
154
  signing_key:
144
155
  specification_version: 4
145
- summary: Ruby bindings for ELSTER/ERiC (German Tax Authority Service)
156
+ summary: Ruby bindings for ERiC, the ELSTER library for German tax filings
146
157
  test_files: []
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.tool-versions DELETED
@@ -1 +0,0 @@
1
- ruby 3.3.0
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.1
4
- before_install: gem install bundler -v 1.10.6
data/CODE_OF_CONDUCT.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- ruby '3.3.0'
4
-
5
- # Specify your gem's dependencies in liberic.gemspec
6
- gemspec
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "liberic"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
@@ -1,89 +0,0 @@
1
- <?xml version="1.0" encoding="ISO-8859-15"?>
2
- <Elster xmlns="http://www.elster.de/2002/XMLSchema">
3
- <TransferHeader version="8">
4
- <Verfahren>ElsterErklaerung</Verfahren>
5
- <DatenArt>ESt</DatenArt>
6
- <Vorgang>send-NoSig</Vorgang>
7
- <Testmerker>700000004</Testmerker>
8
- <HerstellerID>74931</HerstellerID>
9
- <DatenLieferant>Softwaretester ERiC</DatenLieferant>
10
- <Datei><Verschluesselung>CMSEncryptedData</Verschluesselung><Kompression>GZIP</Kompression><DatenGroesse>12345</DatenGroesse><TransportSchluessel></TransportSchluessel></Datei>
11
- </TransferHeader>
12
- <DatenTeil>
13
- <Nutzdatenblock>
14
- <NutzdatenHeader version="10">
15
- <NutzdatenTicket>adfjasldkfuweor456asvs</NutzdatenTicket>
16
- <Empfaenger id="F">9198</Empfaenger>
17
- <Hersteller>
18
- <ProduktName>ERICTest</ProduktName>
19
- <ProduktVersion>2009.1/0</ProduktVersion>
20
- </Hersteller>
21
- <DatenLieferant>Softwaretester ERiC</DatenLieferant>
22
- </NutzdatenHeader>
23
- <Nutzdaten>
24
- <Jahressteuererklaerung version="2">
25
- <Vorsatz unterfallart="10" ordNrArt="S" vorgang="01">
26
- <StNr>9198011310010</StNr>
27
- <Zeitraum>2011</Zeitraum>
28
- <Erstelldatum>20090910</Erstelldatum>
29
- <Erstellzeit>123705</Erstellzeit>
30
- <AbsName>Testfallversand ERiC</AbsName>
31
- <AbsStr>Testgasse 1a</AbsStr>
32
- <AbsPlz>12345</AbsPlz>
33
- <AbsOrt>Musterstadt</AbsOrt>
34
- <Copyright>(c) 2009 Bayerisches Landesamt f�r Steuern</Copyright>
35
- <Rueckuebermittlung bescheid="nein"></Rueckuebermittlung>
36
- </Vorsatz>
37
- <Feld index="01" lfdNr="00001" nr="0100001" wert="X"/>
38
- <Feld index="01" lfdNr="00001" nr="0100201" wert="Maier"/>
39
- <Feld index="01" lfdNr="00001" nr="0100301" wert="Hans"/>
40
- <Feld index="01" lfdNr="00001" nr="0100401" wert="05.05.1955"/>
41
- <Feld index="01" lfdNr="00001" nr="0100402" wert="03"/>
42
- <Feld index="01" lfdNr="00001" nr="0100501" wert="Musterstr. 55"/>
43
- <Feld index="01" lfdNr="00001" nr="0100601" wert="55555"/>
44
- <Feld index="01" lfdNr="00001" nr="0100602" wert="Musterort"/>
45
- <Feld index="01" lfdNr="00001" nr="0103301" wert="X"/>
46
- <Feld index="01" lfdNr="00001" nr="0103504" wert="X"/>
47
- <Feld index="01" lfdNr="00001" nr="0103204" wert="X"/>
48
- <Feld index="01" lfdNr="00001" nr="0104001" wert="X"/>
49
- <Feld index="01" lfdNr="00001" nr="0104002" wert="1"/>
50
- <Feld index="01" lfdNr="00001" nr="0104003" wert="X"/>
51
- <Feld index="01" lfdNr="00001" nr="0101401" wert="1234567890"/>
52
- <Feld index="01" lfdNr="00001" nr="0101402" wert="12345678"/>
53
- <Feld index="01" lfdNr="00001" nr="0101501" wert="Musterbank"/>
54
- <Feld index="01" lfdNr="00001" nr="0101601" wert="X"/>
55
- <!-- Start Anlage N -->
56
- <Feld index="01" lfdNr="00001" nr="0200002" wert="1"/>
57
- <Feld index="01" lfdNr="00001" nr="0200201" wert="30000"/>
58
- <Feld index="01" lfdNr="00001" nr="0200301" wert="2010,10"/>
59
- <Feld index="01" lfdNr="00001" nr="0200401" wert="800,80"/>
60
- <Feld index="01" lfdNr="00001" nr="0200501" wert="50,10"/>
61
- <!-- Ende Anlage N -->
62
- <!-- Start Anlage Kap -->
63
- <Feld index="01" lfdNr="00001" nr="1900401" wert="1"/>
64
- <Feld index="01" lfdNr="00001" nr="1901401" wert="345"/>
65
- <Feld index="01" lfdNr="00001" nr="1900701" wert="145"/>
66
- <Feld index="01" lfdNr="00001" nr="1901501" wert="105"/>
67
- <!-- Ende Anlage Kap -->
68
- <!-- Start Anlage Kind -->
69
- <Feld index="01" lfdNr="00001" nr="0500107" wert="Susi"/>
70
- <Feld index="01" lfdNr="00001" nr="0500701" wert="01.06.2011"/>
71
- <Feld index="01" lfdNr="00001" nr="0500702" wert="300"/>
72
- <Feld index="01" lfdNr="00001" nr="0500703" wert="01.06.2011-31.12.2011"/>
73
- <Feld index="01" lfdNr="00001" nr="0500102" wert="Musterweg 4711"/>
74
- <Feld index="01" lfdNr="00001" nr="0500807" wert="1"/>
75
- <!-- Ende Anlage Kind -->
76
- <!-- Start Anlage R -->
77
- <Feld index="01" lfdNr="00001" nr="1800101" wert="1"/>
78
- <Feld index="01" lfdNr="00001" nr="1800301" wert="2570"/>
79
- <Feld index="01" lfdNr="00001" nr="1800501" wert="01.01.2006"/>
80
- <!-- Ende Anlage R -->
81
- <!-- Start Anlage Vor -->
82
- <Feld index="01" lfdNr="00001" nr="2000401" wert="1001"/>
83
- <Feld index="01" lfdNr="00001" nr="2000801" wert="0"/>
84
- <!-- Ende Anlage Vor -->
85
- </Jahressteuererklaerung>
86
- </Nutzdaten>
87
- </Nutzdatenblock>
88
- </DatenTeil>
89
- </Elster>
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "liberic"
5
-
6
- tax_filing = File.read(File.expand_path('steuersatz.xml', File.dirname(__FILE__)))
7
-
8
- submission = Liberic::Process.new(tax_filing, 'ESt_2011')
9
-
10
- submission.check
11
-
12
- result = submission.execute(action: :print_and_submit)
13
- puts result
data/liberic.gemspec DELETED
@@ -1,36 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'liberic/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "liberic"
8
- spec.version = Liberic::VERSION
9
- spec.authors = ["Malte Münchert"]
10
- spec.license = 'MIT'
11
- spec.email = ["malte.muenchert@gmx.net"]
12
-
13
- spec.summary = %q{Ruby bindings for ELSTER/ERiC (German Tax Authority Service)}
14
- spec.description = %q{Liberic is a ruby wrapper for ERiC, a C library to interact with German Tax Authority's ELSTER service.}
15
- spec.homepage = "https://www.github.com/mpm/liberic-ruby"
16
-
17
- # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
- # delete this section to allow pushing this gem to any host.
19
- #if spec.respond_to?(:metadata)
20
- #spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
- #else
22
- #raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
- #end
24
-
25
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
29
-
30
- spec.add_dependency "ffi", "~> 1.16"
31
- spec.add_dependency "nokogiri", "~> 1.16"
32
-
33
- spec.add_development_dependency "bundler", "~> 2.5"
34
- spec.add_development_dependency "rake", "~> 13.1"
35
- spec.add_development_dependency "rspec", "~> 3.13"
36
- end