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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 321bf44d23f2ad5949894db1d064e40e16c00621
4
- data.tar.gz: 413231ddc70154bb1fc5f1ece5548baa4105f367
3
+ metadata.gz: 37285bab368ba5fcad755ec6d2c4e959f3e77763
4
+ data.tar.gz: f75b56c5d59247733bff2c82ed59dbff4310c9e9
5
5
  SHA512:
6
- metadata.gz: e9f35abf1698bd2553319ef64d8e0a6d322100b1eada5e516bcaa60edc00804eeb5f33c14d5603b13746307639d2169cb824dc4d3106853d3dbb892dff9ef11a
7
- data.tar.gz: 9c9269d60a18e96386add45b4b728ce08f9a5ef1a39b72a7fdf93cd70e297553277b55317d2daa19ddbccdd45a67bcd7f9efad4d3df361aa7d3aa203be099e48
6
+ metadata.gz: d98b2cfb51a878a8a7e8d856c337fa3e35ee67f7e62f430a970bb1c163fbe44f1b48ad3ffe39c28712f708f932cca0e8a856ce8c7af3df94b62f67cae8be4f91
7
+ data.tar.gz: 0c4cda54e266cd717373e91c59b5ad77322bbfac71371bc395ee42fc9c95c201e2d89279bcf5cd46c9e6fbd6d01def4298cab961616ec62fc0e45a8a11b12c5d
@@ -0,0 +1 @@
1
+ language: ruby
@@ -1,5 +1,8 @@
1
1
  # Lohnsteuer
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/lohnsteuer.svg)](https://badge.fury.io/rb/lohnsteuer)
4
+ [![Build Status](https://travis-ci.org/JanAhrens/lohnsteuer-ruby.svg)](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**: Experimental. The interface needs to stabilize.
30
+ **State of the project**: Initial release.
28
31
 
29
32
  ## Related projects
30
33
 
data/Rakefile CHANGED
@@ -4,3 +4,5 @@ require 'rake/testtask'
4
4
  Rake::TestTask.new do |t|
5
5
  t.test_files = FileList['test/*test.rb']
6
6
  end
7
+
8
+ task :default => [:test]
@@ -20,9 +20,11 @@ class Lst1215
20
20
  end
21
21
 
22
22
  def output
23
- %i(BK BKS BKV LSTLZZ SOLZLZZ SOLZS SOLZV STS STV VKVLZZ VKVSONST).map do |var|
24
- [var, instance_variable_get(:"@#{var}").to_i]
25
- end.to_h
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 ----------
@@ -20,9 +20,11 @@ class Lst2016
20
20
  end
21
21
 
22
22
  def output
23
- %i(BK BKS BKV LSTLZZ SOLZLZZ SOLZS SOLZV STS STV VKVLZZ VKVSONST).map do |var|
24
- [var, instance_variable_get(:"@#{var}").to_i]
25
- end.to_h
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 ----------
@@ -1,3 +1,3 @@
1
1
  module Lohnsteuer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.0
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 00:00:00.000000000 Z
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
  - - ">="