mattscilipoti-rdialog 0.6.0 → 0.6.1

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.
@@ -1,6 +1,13 @@
1
- +++ 0.5.1 2009-11-03
1
+ +++ 0.6.1 2009-11-03
2
+ + minor enhancement:
3
+ + New option: --timeout
4
+
5
+ +++ 0.6.0 2009-11-03
2
6
  + minor enhancement:
3
7
  + Support --yesno dialog
8
+
9
+ +++ 0.5.1 2009-11-03
10
+ + minor enhancement:
4
11
  + Setup with Jeweller
5
12
 
6
13
  +++ 0.1.0 2007-04-27
@@ -1,6 +1,6 @@
1
1
  = mattscilipoti-rdialog
2
2
 
3
- A gem providing a ruby interface to the n-curses dialog generator dialog.
3
+ A gem providing a ruby interface to the n-curses dialog generator: dialog.
4
4
  'Forked' from http://rubyforge.org/projects/rdialog.
5
5
  All credit goes to its author: Aleks Clark.
6
6
  We just made small tweaks (and added jeweller support).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -1,4 +1,4 @@
1
1
  $:.unshift(File.dirname(__FILE__))
2
2
 
3
- require 'rdialog'
3
+ require 'rdialog/rdialog'
4
4
  require 'rdialog/version'
@@ -91,6 +91,14 @@ class RDialog
91
91
  #
92
92
  attr_accessor :tablen
93
93
 
94
+ #
95
+ # Specify the timeout in secs
96
+ # Timeout (exit with error code) if no user response within the given number of seconds.
97
+ # This is overridden if the background "--tailboxbg is used.
98
+ # A timeout of zero seconds is ignored.
99
+ #
100
+ attr_accessor :timeout
101
+
94
102
  #
95
103
  # Title string to be displayed at the top of the dialog box.
96
104
  #
@@ -568,6 +576,10 @@ class RDialog
568
576
  ostring += "--tab-len " + @tablen.to_i + " "
569
577
  end
570
578
 
579
+ if @timeout
580
+ ostring += "--timeout " + @timeout.to_s + " "
581
+ end
582
+
571
583
  if @title
572
584
  ostring += "--title " + @title.to_s + " "
573
585
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mattscilipoti-rdialog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleks Clark
@@ -46,7 +46,7 @@ files:
46
46
  - Rakefile
47
47
  - VERSION
48
48
  - lib/mattscilipoti-rdialog.rb
49
- - lib/rdialog.rb
49
+ - lib/rdialog/rdialog.rb
50
50
  - lib/rdialog/version.rb
51
51
  - scripts/txt2html
52
52
  - setup.rb