shiritori 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shiritori/shiritori.rb +4 -4
- data/lib/shiritori/version.rb +1 -1
- data/lib/shiritori/view.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17184fcd8187e6c1a64d91a3bbc82d8476c99775
|
4
|
+
data.tar.gz: c1c6cf6c837cae1c0903d92a0068772b9ae83aee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d4d8a19cd26558424eafb426cd587dc89b5ceed620b38b0313d38524d3e80345deb2052a232430b342b7b9ec88931e3a89c3fe8e33ee74d6417c9a00296e84f
|
7
|
+
data.tar.gz: b81c85d900714949f64cc1f297aaa5e4e07b34fb6a650bcc072e0dcb90589e2001506f9c3b54397f274791f4a147cdb1707eb3245f7e3395e159fa5509db1998
|
data/lib/shiritori/shiritori.rb
CHANGED
@@ -66,12 +66,12 @@ module Shiritori
|
|
66
66
|
@success
|
67
67
|
end
|
68
68
|
|
69
|
-
def get_command
|
69
|
+
def get_command(message = "Please input first object > ")
|
70
70
|
if Shiritori.env == :development
|
71
|
-
print
|
71
|
+
print message
|
72
72
|
$stdin.gets
|
73
73
|
else
|
74
|
-
Readline.readline(
|
74
|
+
Readline.readline(message, true)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -89,7 +89,7 @@ module Shiritori
|
|
89
89
|
|
90
90
|
new_line
|
91
91
|
|
92
|
-
command = get_command
|
92
|
+
command = get_command("Please input next method > ")
|
93
93
|
|
94
94
|
break if command.nil?
|
95
95
|
redo if command.blank?
|
data/lib/shiritori/version.rb
CHANGED
data/lib/shiritori/view.rb
CHANGED