highline 1.7.2 → 1.7.3
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/.travis.yml +2 -0
- data/Changelog.md +3 -0
- data/lib/highline/version.rb +1 -1
- data/test/tc_simulator.rb +23 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d4a9c838e40dcdf03c073ac0289cff66ffa2e1f
|
|
4
|
+
data.tar.gz: 9dc114d82dd87b42b5c22538702adb0fdbbb7bfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72f9c49b3140bfeeee9ab62e5ed2d2b4e3dfeb03f2b74eac02ad1b72640e01f2bb4816b4533669b2274b2f93ac659782eca32ad28661a6bb173e9aa42e8427ee
|
|
7
|
+
data.tar.gz: ace882a16b8693624c0894a3d88ad75945f00bf060b463ddf485b8697c9fa7f8649ea685eaeb739d2e5edef370805c80b4308a3bd66ae470938f3a2adea3b813
|
data/.travis.yml
CHANGED
data/Changelog.md
CHANGED
data/lib/highline/version.rb
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require 'test/unit'
|
|
2
|
+
require 'highline/import'
|
|
3
|
+
require 'highline/simulate'
|
|
4
|
+
|
|
5
|
+
class SimulatorTest < Test::Unit::TestCase
|
|
6
|
+
def setup
|
|
7
|
+
input = StringIO.new
|
|
8
|
+
output = StringIO.new
|
|
9
|
+
$terminal = HighLine.new(input, output)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def test_simulator
|
|
13
|
+
HighLine::Simulate.with('Bugs Bunny', '18') do
|
|
14
|
+
name = ask('What is your name?')
|
|
15
|
+
|
|
16
|
+
assert_equal 'Bugs Bunny', name
|
|
17
|
+
|
|
18
|
+
age = ask('What is your age?')
|
|
19
|
+
|
|
20
|
+
assert_equal '18', age
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: highline
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Edward Gray II
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: code_statistics
|
|
@@ -86,6 +86,7 @@ files:
|
|
|
86
86
|
- test/tc_highline.rb
|
|
87
87
|
- test/tc_import.rb
|
|
88
88
|
- test/tc_menu.rb
|
|
89
|
+
- test/tc_simulator.rb
|
|
89
90
|
- test/tc_string_extension.rb
|
|
90
91
|
- test/tc_string_highline.rb
|
|
91
92
|
- test/tc_style.rb
|
|
@@ -123,6 +124,7 @@ test_files:
|
|
|
123
124
|
- test/tc_highline.rb
|
|
124
125
|
- test/tc_import.rb
|
|
125
126
|
- test/tc_menu.rb
|
|
127
|
+
- test/tc_simulator.rb
|
|
126
128
|
- test/tc_string_extension.rb
|
|
127
129
|
- test/tc_string_highline.rb
|
|
128
130
|
- test/tc_style.rb
|