lohnsteuer 0.1.0 → 0.1.1
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 +4 -4
- data/.travis.yml +1 -0
- data/README.markdown +4 -1
- data/Rakefile +2 -0
- data/lib/lohnsteuer/lst1215.rb +5 -3
- data/lib/lohnsteuer/lst2016.rb +5 -3
- data/lib/lohnsteuer/version.rb +1 -1
- data/lohnsteuer.gemspec +1 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37285bab368ba5fcad755ec6d2c4e959f3e77763
|
4
|
+
data.tar.gz: f75b56c5d59247733bff2c82ed59dbff4310c9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d98b2cfb51a878a8a7e8d856c337fa3e35ee67f7e62f430a970bb1c163fbe44f1b48ad3ffe39c28712f708f932cca0e8a856ce8c7af3df94b62f67cae8be4f91
|
7
|
+
data.tar.gz: 0c4cda54e266cd717373e91c59b5ad77322bbfac71371bc395ee42fc9c95c201e2d89279bcf5cd46c9e6fbd6d01def4298cab961616ec62fc0e45a8a11b12c5d
|
data/.travis.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
language: ruby
|
data/README.markdown
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Lohnsteuer
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/lohnsteuer)
|
4
|
+
[](https://travis-ci.org/JanAhrens/lohnsteuer-ruby)
|
5
|
+
|
3
6
|
This is a Ruby implementation of the german income tax calculation
|
4
7
|
algorithm.
|
5
8
|
|
@@ -24,7 +27,7 @@ published by the [Bundesministerium der Finanzen](https://www.bmf-steuerrechner.
|
|
24
27
|
into Ruby code.
|
25
28
|
The algorithms weren't modified on purpose to enable updates and verification.
|
26
29
|
|
27
|
-
**State of the project**:
|
30
|
+
**State of the project**: Initial release.
|
28
31
|
|
29
32
|
## Related projects
|
30
33
|
|
data/Rakefile
CHANGED
data/lib/lohnsteuer/lst1215.rb
CHANGED
@@ -20,9 +20,11 @@ class Lst1215
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def output
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
Hash[
|
24
|
+
%i(BK BKS BKV LSTLZZ SOLZLZZ SOLZS SOLZV STS STV VKVLZZ VKVSONST).map do |var|
|
25
|
+
[var, instance_variable_get(:"@#{var}").to_i]
|
26
|
+
end
|
27
|
+
]
|
26
28
|
end
|
27
29
|
|
28
30
|
# ---------- BEGIN TAX ALGORITHM ----------
|
data/lib/lohnsteuer/lst2016.rb
CHANGED
@@ -20,9 +20,11 @@ class Lst2016
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def output
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
Hash[
|
24
|
+
%i(BK BKS BKV LSTLZZ SOLZLZZ SOLZS SOLZV STS STV VKVLZZ VKVSONST).map do |var|
|
25
|
+
[var, instance_variable_get(:"@#{var}").to_i]
|
26
|
+
end
|
27
|
+
]
|
26
28
|
end
|
27
29
|
|
28
30
|
# ---------- BEGIN TAX ALGORITHM ----------
|
data/lib/lohnsteuer/version.rb
CHANGED
data/lohnsteuer.gemspec
CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = ""
|
13
13
|
spec.homepage = "https://github.com/JanAhrens/lohnsteuer-ruby"
|
14
14
|
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = '~> 2.0'
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0")
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lohnsteuer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Ahrens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -47,6 +47,7 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
49
|
- ".ruby-version"
|
50
|
+
- ".travis.yml"
|
50
51
|
- Gemfile
|
51
52
|
- README.markdown
|
52
53
|
- Rakefile
|
@@ -68,9 +69,9 @@ require_paths:
|
|
68
69
|
- lib
|
69
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
71
|
requirements:
|
71
|
-
- - "
|
72
|
+
- - "~>"
|
72
73
|
- !ruby/object:Gem::Version
|
73
|
-
version: '0'
|
74
|
+
version: '2.0'
|
74
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
76
|
requirements:
|
76
77
|
- - ">="
|