patinfo2csv 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/bin/patinfo2csv +11 -6
- data/lib/version.rb +1 -1
- metadata +6 -6
data/History.txt
CHANGED
data/bin/patinfo2csv
CHANGED
@@ -10,14 +10,19 @@ LANGUAGE = [
|
|
10
10
|
]
|
11
11
|
|
12
12
|
argv = ARGV.dup
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
begin
|
14
|
+
opts = Slop.parse! argv, :help => true do
|
15
|
+
banner "Usage: patinfo2csv <input patinfo.yaml> <output patinfo.csv> <input eancode.txt> [-l (de|fr)]"
|
16
|
+
on :v, :version, 'Show version'
|
17
|
+
on :l, :lang, 'Language option (de|fr) default de', :argument => true
|
18
|
+
end
|
19
|
+
rescue Slop::MissingArgumentError
|
20
|
+
puts "See patinfo2csv -h"
|
21
|
+
exit
|
17
22
|
end
|
18
23
|
|
19
|
-
if opts
|
20
|
-
lang = opts
|
24
|
+
if opts.lang?
|
25
|
+
lang = opts[:lang].downcase
|
21
26
|
argv.delete(lang)
|
22
27
|
else
|
23
28
|
lang = "de"
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patinfo2csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
16
|
-
requirement: &
|
16
|
+
requirement: &12093560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.10'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *12093560
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hoe
|
27
|
-
requirement: &
|
27
|
+
requirement: &12093100 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '2.13'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *12093100
|
36
36
|
description: ! 'Patinfo2csv extracts and converts patinfo.yaml to patinfo.csv;
|
37
37
|
|
38
38
|
only 4 chapters(de, text) in patinfo.yaml are extracted.
|