kbv2app 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +60 -0
- data/Rakefile +1 -0
- data/assets/kbv.icns +0 -0
- data/bin/kbv2app +40 -0
- data/kbv2app.gemspec +23 -0
- data/lib/kbv2app.rb +5 -0
- data/lib/kbv2app/version.rb +3 -0
- metadata +95 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Björn Albers
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# KBV2App
|
2
|
+
|
3
|
+
Erzeuge aus dem KBV-Prüfassistent automatisch eine Mac OS X App.
|
4
|
+
|
5
|
+
|
6
|
+
## Einleitung
|
7
|
+
|
8
|
+
Der KBV-Prüfassistent der [Kassenärztlichen
|
9
|
+
Bundesvereinigung](http://www.kbv.de) (KBV) wird
|
10
|
+
bundesweit zur Prüfung und Verschlüsselung von Abrechungsdateien
|
11
|
+
verwendet.
|
12
|
+
|
13
|
+
Glücklicherweise läuft das Java-basierte Programm auch unter Mac OS X,
|
14
|
+
obwohl es sehr umständlich über ein Shell-Skript gestartet werden muss
|
15
|
+
(der durchschnittliche Mac-Benutzer ist Maus / Trackpad gewöhnt und
|
16
|
+
benutzt eher selten das Terminal ;-).
|
17
|
+
|
18
|
+
Mit dem Werkzeug *KBV2App* lässt sich daraus aber ganz einfach eine
|
19
|
+
klickbare App erzeugen, die sich auch schnell installieren lässt.
|
20
|
+
|
21
|
+
|
22
|
+
## Installation
|
23
|
+
|
24
|
+
So wird *KBV2App* unter Mac OS X installiert:
|
25
|
+
|
26
|
+
1. [Platypus](http://sveinbjorn.org/platypus) laden, nach
|
27
|
+
`/Applications` kopieren und das Kommandozeilenprogramm installieren
|
28
|
+
(über *Preferences* in Platypus).
|
29
|
+
|
30
|
+
2. *KBV2App* via RubyGems installieren (im Terminal: `sudo gem install kbv2app`).
|
31
|
+
|
32
|
+
## Benutzung
|
33
|
+
|
34
|
+
Den aktuellen KBV-Prüfassistenten [von der
|
35
|
+
KBV](http://www.kbv.de/ita/update.html) unter *KBV-Software* laden und installieren.
|
36
|
+
Anschließend im Terminal:
|
37
|
+
|
38
|
+
```
|
39
|
+
kbv2app /Applications/KBV/KBVPruefassistent
|
40
|
+
```
|
41
|
+
|
42
|
+
(Bei abweichendem Installationspfad muss obiger Befehl entsprechend
|
43
|
+
angepasst werden.)
|
44
|
+
|
45
|
+
Fertig.
|
46
|
+
|
47
|
+
Optional kann man die App zur besseren Verteilung dann noch in ein DMG
|
48
|
+
packen, z.B. per [Wrapp](https://github.com/bjoernalbers/wrapp)
|
49
|
+
(Achtung: Eigenwerbung!).
|
50
|
+
|
51
|
+
**Ich empfehle die App in ein Verzeichnis zu kopieren, in das der Benutzer
|
52
|
+
auch Schreibrechte besitzt (die App erzeugt nämlich Dateien im eigenen
|
53
|
+
App-Verzeichnis). Im Zweifelsfall ist `~/Applications` eine gute Wahl.**
|
54
|
+
|
55
|
+
|
56
|
+
## Copyright
|
57
|
+
|
58
|
+
- KBV-Prüfassistent: Copyright (c) 2013 Kassenärztliche
|
59
|
+
Bundervereinigung
|
60
|
+
- KBV2App: Copyright (c) 2013 Björn Albers (MIT Lizenz)
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/assets/kbv.icns
ADDED
Binary file
|
data/bin/kbv2app
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# coding: utf-8
|
3
|
+
#
|
4
|
+
# Copyright (c) 2013 Björn Albers <bjoernalbers@googlemail.com>
|
5
|
+
|
6
|
+
kbv_dir = ARGV.first
|
7
|
+
platypus = '/usr/local/bin/platypus'
|
8
|
+
|
9
|
+
unless kbv_dir
|
10
|
+
warn "usage: #{File.basename($0)} <kbv_dir>"
|
11
|
+
exit 1
|
12
|
+
end
|
13
|
+
raise 'First argument must be a directory!' unless File.directory?(kbv_dir)
|
14
|
+
raise 'Platypus command line tool missing!' unless File.exists?(platypus)
|
15
|
+
|
16
|
+
author = 'Kassenärztliche Bundesvereinigung'
|
17
|
+
readme_path = File.join(kbv_dir, 'Dokumentation', 'Lies_mich.txt')
|
18
|
+
version = File.open(readme_path, &:readline)[/Version\s+([\d\.]+)\s*$/,1]
|
19
|
+
icon = File.expand_path('../../assets/kbv.icns', __FILE__)
|
20
|
+
app_name = 'KBV'
|
21
|
+
|
22
|
+
cmd = [platypus] << # Build the App with Platypus.
|
23
|
+
'-y' << # Override existing app.
|
24
|
+
'-B' << # Run in the background.
|
25
|
+
'-R' << # Quit after running the script.
|
26
|
+
"-a '#{ app_name }'" << # App name (visible in prefs., info, etc.)
|
27
|
+
"-u '#{ author }'" << # Author.
|
28
|
+
'-o None' << # Display no text field, progress bar, etc.
|
29
|
+
'-p /bin/sh' << # Use shell as default interpreter.
|
30
|
+
"-V '#{ version }'" << # The app version.
|
31
|
+
"-i '#{ icon }'" # Path to icon file.
|
32
|
+
|
33
|
+
Dir.glob("#{ kbv_dir }/*").each do |bundled_file|
|
34
|
+
cmd << "-f '#{ bundled_file }'" # Include each file from the src dir.
|
35
|
+
end
|
36
|
+
|
37
|
+
cmd << "'#{ File.join(kbv_dir, 'StartAssistenten.sh')}'" # Start script.
|
38
|
+
cmd << "'#{ app_name }.app'" # The actual app.
|
39
|
+
|
40
|
+
system cmd.join(' ')
|
data/kbv2app.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'kbv2app/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'kbv2app'
|
8
|
+
spec.version = Kbv2app::VERSION
|
9
|
+
spec.authors = ['Björn Albers']
|
10
|
+
spec.email = ['bjoernalbers@googlemail.com']
|
11
|
+
spec.description = 'Erzeuge aus dem KBV-Prüfassistent automatisch eine Mac OS X App.'
|
12
|
+
spec.summary = "#{spec.name}-#{spec.version}"
|
13
|
+
spec.homepage = 'https://github.com/bjoernalbers/kbv2app'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
|
+
end
|
data/lib/kbv2app.rb
ADDED
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kbv2app
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Björn Albers
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Erzeuge aus dem KBV-Prüfassistent automatisch eine Mac OS X App.
|
47
|
+
email:
|
48
|
+
- bjoernalbers@googlemail.com
|
49
|
+
executables:
|
50
|
+
- kbv2app
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- .gitignore
|
55
|
+
- Gemfile
|
56
|
+
- LICENSE.txt
|
57
|
+
- README.md
|
58
|
+
- Rakefile
|
59
|
+
- assets/kbv.icns
|
60
|
+
- bin/kbv2app
|
61
|
+
- kbv2app.gemspec
|
62
|
+
- lib/kbv2app.rb
|
63
|
+
- lib/kbv2app/version.rb
|
64
|
+
homepage: https://github.com/bjoernalbers/kbv2app
|
65
|
+
licenses:
|
66
|
+
- MIT
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
hash: -3445093146332045517
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
hash: -3445093146332045517
|
89
|
+
requirements: []
|
90
|
+
rubyforge_project:
|
91
|
+
rubygems_version: 1.8.23
|
92
|
+
signing_key:
|
93
|
+
specification_version: 3
|
94
|
+
summary: kbv2app-0.0.1
|
95
|
+
test_files: []
|