wortsammler 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wortsammler/class.proolib.rb +6 -6
- data/lib/wortsammler/version.rb +1 -1
- metadata +3 -3
@@ -107,20 +107,20 @@ class ReferenceTweaker
|
|
107
107
|
# @param body [type] [description]
|
108
108
|
#
|
109
109
|
# @return [type] [description]
|
110
|
-
def prepareExpectedResults(indent="",
|
110
|
+
def prepareExpectedResults(indent="", original_label, body)
|
111
111
|
result_items=body.split("- ")[1..-1].map{|i|i.strip}
|
112
112
|
result= ["\\begin{Form}"]
|
113
113
|
|
114
|
-
|
114
|
+
label=original_label.gsub(/_/, "-")
|
115
115
|
j="00"
|
116
116
|
result << result_items.map{|i|
|
117
117
|
j = j.next
|
118
|
-
"\\CheckBox[name=#{label}
|
118
|
+
"\\CheckBox[name=#{label}-#{j}]{} #{i}"
|
119
119
|
}
|
120
120
|
result << "\\vspace{1em}"
|
121
|
-
result << "\\ChoiceMenu[combo, name=#{label}
|
121
|
+
result << "\\ChoiceMenu[combo, name=#{label}-verdict, default=none]{Test verdict:}{none, ok-30, ok-60, ok, fail, pending}"
|
122
122
|
result << "\\vspace{1em}"
|
123
|
-
result << ["\\TextField[ name=#{label}
|
123
|
+
result << ["\\TextField[ name=#{label}-comment , width=40em, height=2cm, multiline=true, backgroundcolor={0.9 0.9 0.9}] {}"]
|
124
124
|
result << ["\\end{Form}"]
|
125
125
|
|
126
126
|
unless $1.nil? then
|
@@ -159,7 +159,7 @@ class ReferenceTweaker
|
|
159
159
|
def replace_md_inlay(text)
|
160
160
|
text.gsub!(INCLUDE_MD_PATTERN){|m|
|
161
161
|
if File.exist?($2) then
|
162
|
-
replacetext_raw=File.open($2).read
|
162
|
+
replacetext_raw=File.open($2,:encoding => 'bom|utf-8').read
|
163
163
|
unless $1.nil? then
|
164
164
|
leading_whitespace=$1.split("\n",100)
|
165
165
|
leading_lines=leading_whitespace[0..-1].join("\n")
|
data/lib/wortsammler/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wortsammler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: logger
|
@@ -300,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
300
|
version: '0'
|
301
301
|
segments:
|
302
302
|
- 0
|
303
|
-
hash:
|
303
|
+
hash: 153193957290233206
|
304
304
|
requirements: []
|
305
305
|
rubyforge_project:
|
306
306
|
rubygems_version: 1.8.25
|