rubytext 0.0.39 → 0.0.40

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
  SHA256:
3
- metadata.gz: 77b48f6ea022f03a00a50fd635e42d2c322ff99a72b739d3184063c481783c8d
4
- data.tar.gz: 39b481039a98d0c3146207f5b94a56e67e8f8ce30b7aeaaca5edad44f0d4c5c5
3
+ metadata.gz: 3af233ca88d1490559df7b8ebbdb4223dc55979a4cb66e7983e2e74df66d24ea
4
+ data.tar.gz: e04c414c65e8591e37976e9f4c9fc5f324e0c30e08d8686764c4f36b8b5933e4
5
5
  SHA512:
6
- metadata.gz: 2cad90482f7b2f984cd935b399a81d185462da42b26c6fd897449c62024e405033dd752fa464ee0ec5877c8dd726b969ab2e05c69224f711d6b246c79fc20711
7
- data.tar.gz: ad1130ff18b1dfbc770f278c8b1cbfef644ff61956fbf549acee1dcfb487b8ec983cf00cd18c02b5ec88404a5e4d601d8867854e3682846d5df026bb4e1f8624
6
+ metadata.gz: 2f9b6b4c12291dee763807fe0f7dd4e2a27f5467f372d794443e24f3d1af3b6202af5a179495c96ebdac82ad3f89121e2ad4c1b8eadf101947c57767a4779c6b
7
+ data.tar.gz: 53ce5b491f2c628672815930b5ab354a34e20436c5e8b71412983829a0feabfb7d1903cded03a5625405b8bb397676913d5c589ee4c4a9d50a743ad867b7c8a1
data/examples/prog05.rb CHANGED
@@ -5,8 +5,8 @@ win.output do
5
5
  puts "This behavior will probably change later."
6
6
  sleep 2
7
7
  puts "Let's print 10 more lines now:"
8
- sleep 2
8
+ sleep 1
9
9
 
10
- 10.times {|i| puts "Printing line #{i}..."; sleep 0.5 }
10
+ 10.times {|i| puts "Printing line #{i}..."; sleep 0.3 }
11
11
  end
12
12
 
data/examples/prog07.rb CHANGED
@@ -1,4 +1,4 @@
1
- win = RubyText.window(10, 50, 2, 5, true, fg: :yellow, bg: :blue)
1
+ win = RubyText.window(10, 50, 0, 5, true, fg: :yellow, bg: :blue)
2
2
 
3
3
  win.output do
4
4
  puts "Of course, #puts and #print are unaffected \nfor other receivers."
data/examples/prog08.rb CHANGED
@@ -1,14 +1,14 @@
1
- win = RubyText.window(12, 50, 0, 5, true, fg: :yellow, bg: :blue)
1
+ win = RubyText.window(11, 50, 0, 5, true, fg: :yellow, bg: :blue)
2
2
 
3
3
  win.puts "We can use the []= method (0-based)"
4
4
  win.puts "to address individual window locations"
5
5
  win.puts "and place characters there.\n "
6
6
 
7
7
  sleep 2
8
- win[4,22] = "X"
8
+ win[4,22] = "X"; win.refresh
9
9
 
10
10
  sleep 2
11
- win[8,20] = "y"
11
+ win[8,20] = "y"; win.refresh
12
12
 
13
13
  sleep 2
14
- win[6,38] = "Z"
14
+ win[6,38] = "Z"; win.refresh
data/examples/prog13.rb CHANGED
@@ -1,4 +1,4 @@
1
- win = RubyText.window(12, 65, 0, 15, true, fg: :blue, bg: :black)
1
+ win = RubyText.window(11, 65, 0, 15, true, fg: :blue, bg: :black)
2
2
 
3
3
  win.puts "The #go method will move the cursor to a specific location."
4
4
  win.go 2, 5
data/examples/prog14.rb CHANGED
@@ -1,4 +1,4 @@
1
- win = RubyText.window(13, 65, 2, 6, true, fg: :blue, bg: :white)
1
+ win = RubyText.window(13, 65, 0, 6, true, fg: :blue, bg: :white)
2
2
 
3
3
  win.puts "The #rcprint method will print at the specified"
4
4
  win.puts "row/column, like go(r,c) followed by a print,"
data/examples/prog15.rb CHANGED
@@ -1,4 +1,4 @@
1
- win = RubyText.window(11, 65, 1, 6, true, fg: :blue, bg: :white)
1
+ win = RubyText.window(11, 65, 0, 6, true, fg: :blue, bg: :white)
2
2
 
3
3
  win.go 2,0
4
4
  win.puts " Method #home will home the cursor..."
data/examples/prog20.rb CHANGED
@@ -1,4 +1,4 @@
1
- win = RubyText.window(12, 65, 2, 6, true, fg: :green, bg: :blue)
1
+ win = RubyText.window(12, 65, 0, 6, true, fg: :green, bg: :blue)
2
2
 
3
3
  win.puts "This is EXPERIMENTAL."
4
4
  win.puts "Use a color symbol to change text color temporarily:\n "
data/examples/prog21.rb CHANGED
@@ -7,6 +7,7 @@ getch
7
7
  days = %w[Monday Tuesday Wednesday Thursday Friday]
8
8
  picked = RubyText.menu(c: 30, items: days)
9
9
 
10
+ puts
10
11
  if picked.nil?
11
12
  puts "You picked nothing!"
12
13
  else
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module RubyText
3
- VERSION = "0.0.39"
3
+ VERSION = "0.0.40"
4
4
 
5
5
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubytext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39
4
+ version: 0.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton