highline 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f54598dfd8523d20c334760c05864d61e1855eb
4
- data.tar.gz: 16fbcd03e8f21455bc9e4b2fcd0b653f18ef7580
3
+ metadata.gz: 3d4a9c838e40dcdf03c073ac0289cff66ffa2e1f
4
+ data.tar.gz: 9dc114d82dd87b42b5c22538702adb0fdbbb7bfe
5
5
  SHA512:
6
- metadata.gz: e16f724b0419fd517fc4fe792afebb07410c83ea8441bf40fb9f55d3f4dfcbe7440b492da49d3557c71a3763180c3a61bf2422471edbc14d8b9fc745f2784913
7
- data.tar.gz: 79640ea44e220be9475f5bc5e6bc645845ae7904a85230cdb96eebc3ba3c3f4a16bb68378a4a943b51247a5845511ace62fdf45786272fcc6e398c7f47802987
6
+ metadata.gz: 72f9c49b3140bfeeee9ab62e5ed2d2b4e3dfeb03f2b74eac02ad1b72640e01f2bb4816b4533669b2274b2f93ac659782eca32ad28661a6bb173e9aa42e8427ee
7
+ data.tar.gz: ace882a16b8693624c0894a3d88ad75945f00bf060b463ddf485b8697c9fa7f8649ea685eaeb739d2e5edef370805c80b4308a3bd66ae470938f3a2adea3b813
@@ -7,6 +7,8 @@ rvm:
7
7
  - 2.0.0
8
8
  - 2.1.5
9
9
  - 2.2.0
10
+ - 2.2.1
11
+ - 2.2.2
10
12
  - rbx-2
11
13
  notifications:
12
14
  email: false
@@ -2,6 +2,9 @@
2
2
 
3
3
  Below is a complete listing of changes for each revision of HighLine.
4
4
 
5
+ ### 1.7.3 / 2015-06-29
6
+ * Add HighLine::Simulator tests (Bala Paranj (@bparanj) and Abinoam Marques Jr. (@abinoam), #142, PR #143)
7
+
5
8
  ### 1.7.2 / 2015-04-19
6
9
 
7
10
  #### Bug fixes
@@ -1,4 +1,4 @@
1
1
  class HighLine
2
2
  # The version of the installed library.
3
- VERSION = "1.7.2".freeze
3
+ VERSION = "1.7.3".freeze
4
4
  end
@@ -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.2
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-04-19 00:00:00.000000000 Z
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