RCP_Network 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/RCP_Network.rb +7 -7
- data/lib/RCP_Network/version.rb +1 -1
- 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: 9041b5af4fba1f6b4bdb697d6021c8577ca53331203292541010c166b8066ff3
|
4
|
+
data.tar.gz: a3532b1abfe9e85268309d240628e717ad4db08f51197adf751225ec583977a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daff6e1b29fefd3e49391803017ab64f6b80725b41621b373ee5c2909e0bee47d226f5192ead4ca9d93185dc5917f4ec07ff9bd21722c98e25b33d0be28f1c46
|
7
|
+
data.tar.gz: 5f387020ad2b388531e47697f2c8f68a37573b9a7a217cc387e7291c58396f1dc122341c217ee0ae2071e21f124719871bb5b49a44116a6c592f93660808b693
|
data/lib/RCP_Network.rb
CHANGED
@@ -12,17 +12,17 @@ module RCPNetwork
|
|
12
12
|
old_data = File.read("data/output/modifier_list.txt")
|
13
13
|
|
14
14
|
# Grammar A
|
15
|
-
present_action = File.readlines("dictionary/present_action.txt").sample
|
16
|
-
present_preposition = File.readlines("dictionary/present_preposition.txt").sample
|
17
|
-
first_object = File.readlines("dictionary/first_object.txt").sample
|
15
|
+
present_action = File.readlines("dictionary/present_action.txt").sample.tr "\n". ""
|
16
|
+
present_preposition = File.readlines("dictionary/present_preposition.txt").sample.tr "\n". ""
|
17
|
+
first_object = File.readlines("dictionary/first_object.txt").sample.tr "\n". ""
|
18
18
|
|
19
19
|
# Grammar B
|
20
|
-
second_object = File.readlines("dictionary/second_object.txt").sample
|
21
|
-
next_preposition = File.readlines("dictionary/next_preposition.txt").sample
|
22
|
-
next_action = File.readlines("dictionary/next_action.txt").sample
|
20
|
+
second_object = File.readlines("dictionary/second_object.txt").sample.tr "\n". ""
|
21
|
+
next_preposition = File.readlines("dictionary/next_preposition.txt").sample.tr "\n". ""
|
22
|
+
next_action = File.readlines("dictionary/next_action.txt").sample.tr "\n". ""
|
23
23
|
|
24
24
|
# Final object
|
25
|
-
third_object = File.readlines("dictionary/third_object.txt").sample
|
25
|
+
third_object = File.readlines("dictionary/third_object.txt").sample.tr "\n". ""
|
26
26
|
|
27
27
|
# Inquire
|
28
28
|
why_did = " Why did the"
|
data/lib/RCP_Network/version.rb
CHANGED