patinfo2csv 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/bin/patinfo2csv +11 -6
  3. data/lib/version.rb +1 -1
  4. metadata +6 -6
@@ -1,3 +1,7 @@
1
+ === 1.0.6 / 11.04.2012
2
+
3
+ * Fixed option handling for slop gem version 3
4
+
1
5
  === 1.0.5 / 26.03.2012
2
6
 
3
7
  * Refactor character replacing and chapter choosing
@@ -10,14 +10,19 @@ LANGUAGE = [
10
10
  ]
11
11
 
12
12
  argv = ARGV.dup
13
- opts = Slop.parse! argv, :help => true do
14
- banner "Usage: patinfo2csv <input patinfo.yaml> <output patinfo.csv> <input eancode.txt> [-l (de|fr)]"
15
- on :v, :version, 'Show version'
16
- on :l, :lang, 'Language option (de|fr) default de', :argument => true
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[:lang]
20
- lang = opts.options[:lang].argument_value.downcase
24
+ if opts.lang?
25
+ lang = opts[:lang].downcase
21
26
  argv.delete(lang)
22
27
  else
23
28
  lang = "de"
@@ -1,3 +1,3 @@
1
1
  module Patinfo2csv
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
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.5
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-03-26 00:00:00.000000000 Z
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: &21274100 !ruby/object:Gem::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: *21274100
24
+ version_requirements: *12093560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &21273660 !ruby/object:Gem::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: *21273660
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.