patinfo2csv 1.0.9 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 1.1.0 / 25.05.2012
2
+
3
+ * Added multi lines text section support
4
+
1
5
  === 1.0.9 / 18.04.2012
2
6
 
3
7
  * Fixed character converting in heading line
@@ -20,16 +20,17 @@ module Patinfo2csv
20
20
  end
21
21
  def extract_line(line)
22
22
  case line
23
- when /^\s*(heading:|subheading:|text:)\s/
24
- Patinfo2csv::ESCAPED_CHAR_CODE_MAP.each do |code, char|
25
- line.gsub!(code, char)
26
- end
27
- line
28
23
  when /^\s*(start:|end:|name:|preformatted:)\s/, \
29
- /^\s*(:article_pcode:|:article_size:|:article_dose:)/
24
+ /^\s*:article_(pcode|size|dose):/
30
25
  # NOTE
31
26
  # To make sure that these lines are unused for YAML structure
32
27
  nil
28
+ when /^\s*(heading:|subheading:|text:)\s/, \
29
+ /^\s{12}(?!values:|\-)\w+/ # multi lines text
30
+ Patinfo2csv::ESCAPED_CHAR_CODE_MAP.each do |code, char|
31
+ line.gsub!(code, char)
32
+ end
33
+ line
33
34
  else
34
35
  line
35
36
  end
@@ -1,3 +1,3 @@
1
1
  module Patinfo2csv
2
- VERSION = "1.0.9"
2
+ VERSION = "1.1.0"
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.9
4
+ version: 1.1.0
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-04-18 00:00:00.000000000 Z
12
+ date: 2012-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &15674540 !ruby/object:Gem::Requirement
16
+ requirement: &16310300 !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: *15674540
24
+ version_requirements: *16310300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &15674080 !ruby/object:Gem::Requirement
27
+ requirement: &16309840 !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: *15674080
35
+ version_requirements: *16309840
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.