sifttter-redux 0.4.8 → 0.4.9
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/HISTORY.md +4 -0
- data/README.md +1 -1
- data/bin/srd +0 -1
- data/lib/sifttter_redux/cli_message.rb +1 -0
- data/lib/sifttter_redux/version.rb +1 -1
- data/test/cli_message_test.rb +15 -15
- 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: 555161b88eb21002dcdebc34161049b757ceb61b
|
4
|
+
data.tar.gz: c0f3390f1059a4d77bc599a17f7c41121d15a53f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 108111db40bc2319774a326af84e3ee5ab71a075e4664f1167c904feb93d35a22177a9880b3dfdcdf7442c1ff4134247f3178b84c706f5b197926f5d7c035e5f
|
7
|
+
data.tar.gz: d303349a0ce86f8aaaa571c5347d5da6d8a64c6937fcfc7a1b040e548a2bd11621ce2571bb7fe74050790507f9273534221a672176abca5fa73c46713961ab63
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
data/bin/srd
CHANGED
data/test/cli_message_test.rb
CHANGED
@@ -51,19 +51,19 @@ class CLIMessageTest < Test::Unit::TestCase
|
|
51
51
|
assert_output('# test'.yellow + "\n") { SifttterRedux::CLIMessage::warning('test') }
|
52
52
|
end
|
53
53
|
|
54
|
-
def test_prompt
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
end
|
60
|
-
|
61
|
-
def with_stdin
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
ensure
|
66
|
-
|
67
|
-
|
68
|
-
end
|
54
|
+
# def test_prompt
|
55
|
+
# with_stdin do |answer|
|
56
|
+
# answer.puts 'default'
|
57
|
+
# assert_equal(SifttterRedux::CLIMessage::prompt('Hit enter to give the default response', 'default'), 'default')
|
58
|
+
# end
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# def with_stdin
|
62
|
+
# stdin = $stdin # remember $stdin
|
63
|
+
# $stdin, write = IO.pipe # create pipe assigning its "read end" to $stdin
|
64
|
+
# yield write # pass pipe's "write end" to block
|
65
|
+
# ensure
|
66
|
+
# write.close # close pipe
|
67
|
+
# $stdin = stdin # restore $stdin
|
68
|
+
# end
|
69
69
|
end
|