ImpUnit 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ImpUnit/version.rb +1 -1
- data/lib/ImpUnit.rb +16 -41
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc512dcb7a3c90ef3070530cb3b4287db13160cfffb9dad82687a68e2a77a573
|
|
4
|
+
data.tar.gz: 25e3a825d4c29701aab5d93924bc944b0a53ca4e451d5d34202c8496f2e3d9ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12c4a6144c3df1f1d46c26d5f675814318e49d3c2cc92545925775c65aa03c7dd2232e701f1a8f3c0eeef33180c6c2fb4ec625d6cdcb158912c2954664e175b9
|
|
7
|
+
data.tar.gz: 4c7357a9bfaead6b9bbdddcac249e6ab9b3afc6f81946683b993ebf6b799faedac141c7d37ecc1e0c21b196e584752f792ee33b601d9d91e1436fc6a4184dc87
|
data/lib/ImpUnit/version.rb
CHANGED
data/lib/ImpUnit.rb
CHANGED
|
@@ -303,50 +303,25 @@ module ImpUnit
|
|
|
303
303
|
|
|
304
304
|
<?xml-stylesheet type="text/css" href="styles/stylesheet.css"?>'
|
|
305
305
|
|
|
306
|
+
# Topic tags
|
|
306
307
|
topic_header = "<topic>"
|
|
307
308
|
topic_bottom = "</topic>"
|
|
308
309
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
def atemu
|
|
326
|
-
item = File.read("data/atemu/items.txt").strip.to_s
|
|
327
|
-
|
|
328
|
-
" <atemu>#{item}</atemu>"
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
def nitote
|
|
332
|
-
" <nitote>for</nitote>"
|
|
333
|
-
end
|
|
334
|
-
|
|
335
|
-
def kara
|
|
336
|
-
" <kara>from</kara>"
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
def yuza
|
|
340
|
-
user_name = File.read("data/yuza/yuza.txt").strip.to_s
|
|
341
|
-
|
|
342
|
-
" <yuza>#{user_name}</yuza>"
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
def lieu
|
|
346
|
-
local_name = File.read("data/usr_identity/local_name.txt").strip.to_s
|
|
347
|
-
|
|
348
|
-
" <lieu>#{local_name}</lieu>"
|
|
349
|
-
end
|
|
310
|
+
# Read in from files.
|
|
311
|
+
agent_name = File.read("data/usr_identity/name.txt").strip.to_s
|
|
312
|
+
request_type = File.read("data/rikusuto/request.txt").strip.to_s
|
|
313
|
+
item = File.read("data/atemu/items.txt").strip.to_s
|
|
314
|
+
user_name = File.read("data/yuza/yuza.txt").strip.to_s
|
|
315
|
+
local_name = File.read("data/usr_identity/local_name.txt").strip.to_s
|
|
316
|
+
|
|
317
|
+
# Create XML tags
|
|
318
|
+
salut = " <salut>Hello</salut>"
|
|
319
|
+
ejento = " <ejento>#{agent_name}</ejento>"
|
|
320
|
+
rikusuto = " <rikusuto>#{request_type}</rikusuto>"
|
|
321
|
+
atemu = " <atemu>#{item}</atemu>"
|
|
322
|
+
nitote = " <nitote>for</nitote>"
|
|
323
|
+
kara = " <kara>from</kara>"
|
|
324
|
+
yuza = " <yuza>#{user_name}</yuza>"
|
|
350
325
|
|
|
351
326
|
conjucate = [nitote, kara]
|
|
352
327
|
consign = conjucate.sample
|