mrdialog 1.0.1 → 1.0.4
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 +5 -5
- data/ChangeLog.md +68 -23
- data/Gemfile +3 -2
- data/LICENSE.txt +1 -1
- data/README.md +196 -0
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/lib/mrdialog/mrdialog.rb +261 -178
- data/mrdialog.gemspec +124 -0
- data/pkg/md5.txt +1 -0
- data/samples/buildlist.rb +9 -1
- data/samples/calendar.rb +7 -0
- data/samples/checklist.rb +17 -4
- data/samples/editbox.rb +7 -0
- data/samples/extra_button/buildlist.rb +89 -0
- data/samples/extra_button/calendar.rb +45 -0
- data/samples/extra_button/checklist.rb +84 -0
- data/samples/extra_button/form1.rb +101 -0
- data/samples/extra_button/fselect.rb +36 -0
- data/samples/extra_button/inputbox.rb +48 -0
- data/samples/extra_button/menubox.rb +85 -0
- data/samples/extra_button/password.rb +44 -0
- data/samples/extra_button/radiolist.rb +86 -0
- data/samples/extra_button/timebox.rb +43 -0
- data/samples/extra_button/treeview.rb +112 -0
- data/samples/form1.rb +8 -2
- data/samples/form2.rb +7 -0
- data/samples/form3.rb +7 -1
- data/samples/fselect.rb +7 -0
- data/samples/gauge.rb +7 -0
- data/samples/infobox.rb +7 -0
- data/samples/inputbox.rb +7 -0
- data/samples/menubox.rb +7 -0
- data/samples/mixedform1.rb +7 -2
- data/samples/msgbox.rb +7 -0
- data/samples/password.rb +7 -0
- data/samples/password2.rb +7 -0
- data/samples/passwordform.rb +8 -2
- data/samples/pause.rb +7 -0
- data/samples/prgbox.rb +7 -0
- data/samples/program.rb +7 -0
- data/samples/progress.rb +7 -0
- data/samples/radiolist.rb +8 -0
- data/samples/run_all.rb +52 -0
- data/samples/timebox.rb +7 -0
- data/samples/treeview.rb +7 -0
- data/samples/treeview2.rb +7 -0
- data/samples/yesno.rb +7 -0
- data/screenshots/README.txt +10 -0
- data/screenshots/all.gif +0 -0
- data/screenshots/buildlist.png +0 -0
- data/screenshots/calendar.png +0 -0
- data/screenshots/checklist.png +0 -0
- data/screenshots/editbox.png +0 -0
- data/screenshots/form1.png +0 -0
- data/screenshots/form2.png +0 -0
- data/screenshots/form3.png +0 -0
- data/screenshots/fselect.png +0 -0
- data/screenshots/gauge.png +0 -0
- data/screenshots/infobox.png +0 -0
- data/screenshots/inputbox.png +0 -0
- data/screenshots/menubox.png +0 -0
- data/screenshots/mixedform1.png +0 -0
- data/screenshots/msgbox.png +0 -0
- data/screenshots/password.png +0 -0
- data/screenshots/password2.png +0 -0
- data/screenshots/passwordform.png +0 -0
- data/screenshots/pause.png +0 -0
- data/screenshots/prgbox.png +0 -0
- data/screenshots/program.png +0 -0
- data/screenshots/progress.png +0 -0
- data/screenshots/radiolist.png +0 -0
- data/screenshots/take_shots.rb +111 -0
- data/screenshots/timebox.png +0 -0
- data/screenshots/treeview.png +0 -0
- data/screenshots/treeview2.png +0 -0
- data/screenshots/yesno.png +0 -0
- metadata +83 -29
- data/Gemfile.lock +0 -82
- data/README.rdoc +0 -52
- data/pkg/mrdialog-1.0.1.gem +0 -0
data/samples/run_all.rb
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# run all the sample apps
|
4
|
+
# muquit@muquit.com Apr-26-2014
|
5
|
+
|
6
|
+
require 'logger'
|
7
|
+
|
8
|
+
class RunSampleApps
|
9
|
+
ME = File.basename($0)
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@logger = Logger.new(STDERR)
|
13
|
+
@sleep_secs = 5
|
14
|
+
end
|
15
|
+
|
16
|
+
def log(msg)
|
17
|
+
@logger.info "#{msg}"
|
18
|
+
end
|
19
|
+
|
20
|
+
trap('INT') {
|
21
|
+
puts "Interrupt caught.. exiting"
|
22
|
+
exit 1
|
23
|
+
}
|
24
|
+
|
25
|
+
def check_args
|
26
|
+
if ARGV.length != 1
|
27
|
+
puts <<EOF
|
28
|
+
Usage: #{ME} <sleep in secs>
|
29
|
+
Specify the number of seconds to sleep between apps
|
30
|
+
Example: #{ME} 5
|
31
|
+
EOF
|
32
|
+
exit 1
|
33
|
+
end
|
34
|
+
@sleep_secs = 5
|
35
|
+
end
|
36
|
+
|
37
|
+
def doit
|
38
|
+
# check_args
|
39
|
+
pwd = Dir.pwd
|
40
|
+
entries = Dir.entries(pwd)
|
41
|
+
entries.each do |prog|
|
42
|
+
next if prog =~ /run_all.rb/ || prog !~ /\.rb$/
|
43
|
+
cmd = ""
|
44
|
+
cmd << "ruby ./#{prog}"
|
45
|
+
system(cmd)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
if __FILE__ == $0
|
51
|
+
RunSampleApps.new.doit
|
52
|
+
end
|
data/samples/timebox.rb
CHANGED
data/samples/treeview.rb
CHANGED
@@ -6,6 +6,13 @@ require 'pp'
|
|
6
6
|
|
7
7
|
begin
|
8
8
|
ME = File.basename($0)
|
9
|
+
if ENV['CHANGE_TITLE']
|
10
|
+
if ME =~ /(.+)\.rb$/
|
11
|
+
base = $1
|
12
|
+
puts "\033]0;mrdialog - #{base}\007"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
9
16
|
text = <<-EOF
|
10
17
|
This example is taken from dialog/samples/treeview1
|
11
18
|
shell script.
|
data/samples/treeview2.rb
CHANGED
@@ -6,6 +6,13 @@ require 'pp'
|
|
6
6
|
|
7
7
|
begin
|
8
8
|
ME = File.basename($0)
|
9
|
+
if ENV['CHANGE_TITLE']
|
10
|
+
if ME =~ /(.+)\.rb$/
|
11
|
+
base = $1
|
12
|
+
puts "\033]0;mrdialog - #{base}\007"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
9
16
|
text = <<-EOF
|
10
17
|
This example is taken from dialog/samples/treeview2
|
11
18
|
shell script.
|
data/samples/yesno.rb
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
The screenshots of the sample apps are taken on a Mac automatically by the
|
2
|
+
script take_shots.rb.
|
3
|
+
|
4
|
+
All the widgets can be viewed by looking at the animated GIF file 'all.gif',
|
5
|
+
created by running the 'convert' program from ImageMagick.
|
6
|
+
|
7
|
+
$ convert -delay 170 -loop 1 *.png all.gif
|
8
|
+
|
9
|
+
--
|
10
|
+
muquit@muquit.com Apr-26-2014
|
data/screenshots/all.gif
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,111 @@
|
|
1
|
+
#!/usr/local/bin/macruby
|
2
|
+
|
3
|
+
########################################################################
|
4
|
+
# This script runs on mac....
|
5
|
+
#
|
6
|
+
# A tiny ruby script for myself to take screenshots of the sample apps
|
7
|
+
# terminal window automatically. I run run_all.rb script from the samples
|
8
|
+
# directory and then run this script. This script find out the window by
|
9
|
+
# the title and take a screenthot and kill the dialog for the next app.
|
10
|
+
#
|
11
|
+
# muquit@muquit.com Apr-26-2014
|
12
|
+
########################################################################
|
13
|
+
|
14
|
+
framework 'Foundation'
|
15
|
+
framework 'ScriptingBridge'
|
16
|
+
|
17
|
+
class TakeScreenShots
|
18
|
+
def initialze
|
19
|
+
$stderr.sync = true
|
20
|
+
$stdout.sync = true
|
21
|
+
@app_name = ''
|
22
|
+
@window_id = ''
|
23
|
+
end
|
24
|
+
|
25
|
+
def log(msg)
|
26
|
+
d = Time.new
|
27
|
+
puts "[#{d}]: #{msg}"
|
28
|
+
end
|
29
|
+
|
30
|
+
#-------------------------------------------------
|
31
|
+
# check if any mrdialog app is running, if so
|
32
|
+
# populate @window_id and @app_name. They will be
|
33
|
+
# used to capture the window.
|
34
|
+
#-------------------------------------------------
|
35
|
+
def find_app
|
36
|
+
terminal = SBApplication.applicationWithBundleIdentifier("com.apple.Terminal")
|
37
|
+
terminal.windows.each do |window|
|
38
|
+
title = window.name
|
39
|
+
id = window.id
|
40
|
+
encoding_options =
|
41
|
+
{
|
42
|
+
:invalid => :replace,
|
43
|
+
:undef => :replace,
|
44
|
+
:replace => '',
|
45
|
+
:universal_newline => true
|
46
|
+
}
|
47
|
+
title = title.encode(Encoding.find('ASCII'),encoding_options)
|
48
|
+
if title =~ /samples\s+mrdialog - (.+)\s+dialog.*$/i
|
49
|
+
@app_name = $1
|
50
|
+
@app_name = @app_name.gsub(/\s/,'')
|
51
|
+
@window_id = id
|
52
|
+
return true
|
53
|
+
break
|
54
|
+
end
|
55
|
+
end
|
56
|
+
return false
|
57
|
+
end
|
58
|
+
|
59
|
+
def doit
|
60
|
+
loop do
|
61
|
+
rc = false
|
62
|
+
@window_id = ''
|
63
|
+
@app_name = ''
|
64
|
+
log "\n***Checking if any mrdialog app is runing..."
|
65
|
+
mx = 10
|
66
|
+
0.upto(mx) do |t|
|
67
|
+
@window_id = ''
|
68
|
+
@app_name = ''
|
69
|
+
log " Try: #{t}/#{mx}"
|
70
|
+
rc = find_app
|
71
|
+
break if rc
|
72
|
+
sleep 2
|
73
|
+
end
|
74
|
+
if !rc
|
75
|
+
log "Error: Could not find any mrdiag sample app..."
|
76
|
+
exit 1
|
77
|
+
end
|
78
|
+
log "Found app: #{@app_name}"
|
79
|
+
log "Window id: #{@window_id}"
|
80
|
+
c = 0
|
81
|
+
pid = ''
|
82
|
+
# kill the program after taking the screenshot
|
83
|
+
log "Trying to find the PID of dialog.."
|
84
|
+
loop do
|
85
|
+
c = c + 1
|
86
|
+
pid=`pidof dialog`
|
87
|
+
if pid.length == 0
|
88
|
+
print "c: #{c}"
|
89
|
+
exit if c >= 5
|
90
|
+
print "#"
|
91
|
+
sleep 2
|
92
|
+
end
|
93
|
+
break if pid.length > 0
|
94
|
+
end #end loop
|
95
|
+
log "Found PID: #{pid}"
|
96
|
+
next if pid.length == 0
|
97
|
+
log "Taking screenshot of widget: #{@app_name}"
|
98
|
+
cmd = "screencapture -o -l #{@window_id} #{@app_name}.png"
|
99
|
+
log "Command: #{cmd}"
|
100
|
+
system(cmd)
|
101
|
+
log "Kill dialog with PID: #{pid}"
|
102
|
+
system("kill #{pid}")
|
103
|
+
log "Sleeping 5 secs"
|
104
|
+
sleep 3
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
if __FILE__ == $0
|
110
|
+
TakeScreenShots.new.doit
|
111
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,84 +1,98 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mrdialog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleks Clark
|
8
8
|
- Muhammad Muquit
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rdoc
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '3.12'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '3.12'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bundler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '2.0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '2.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: juwelier
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 2.0
|
62
|
+
version: 2.1.0
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 2.0
|
69
|
+
version: 2.1.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: simplecov
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: test-unit
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
82
96
|
- !ruby/object:Gem::Version
|
83
97
|
version: '0'
|
84
98
|
description: "A ruby gem for ncurses dialog program.\n This gem is based on rdialog
|
@@ -92,23 +106,34 @@ extensions: []
|
|
92
106
|
extra_rdoc_files:
|
93
107
|
- ChangeLog.md
|
94
108
|
- LICENSE.txt
|
95
|
-
- README.
|
109
|
+
- README.md
|
96
110
|
files:
|
97
|
-
- .document
|
111
|
+
- ".document"
|
98
112
|
- ChangeLog.md
|
99
113
|
- Gemfile
|
100
|
-
- Gemfile.lock
|
101
114
|
- LICENSE.txt
|
102
|
-
- README.
|
115
|
+
- README.md
|
103
116
|
- Rakefile
|
104
117
|
- VERSION
|
105
118
|
- lib/mrdialog.rb
|
106
119
|
- lib/mrdialog/mrdialog.rb
|
107
|
-
-
|
120
|
+
- mrdialog.gemspec
|
121
|
+
- pkg/md5.txt
|
108
122
|
- samples/buildlist.rb
|
109
123
|
- samples/calendar.rb
|
110
124
|
- samples/checklist.rb
|
111
125
|
- samples/editbox.rb
|
126
|
+
- samples/extra_button/buildlist.rb
|
127
|
+
- samples/extra_button/calendar.rb
|
128
|
+
- samples/extra_button/checklist.rb
|
129
|
+
- samples/extra_button/form1.rb
|
130
|
+
- samples/extra_button/fselect.rb
|
131
|
+
- samples/extra_button/inputbox.rb
|
132
|
+
- samples/extra_button/menubox.rb
|
133
|
+
- samples/extra_button/password.rb
|
134
|
+
- samples/extra_button/radiolist.rb
|
135
|
+
- samples/extra_button/timebox.rb
|
136
|
+
- samples/extra_button/treeview.rb
|
112
137
|
- samples/form1.rb
|
113
138
|
- samples/form2.rb
|
114
139
|
- samples/form3.rb
|
@@ -127,35 +152,64 @@ files:
|
|
127
152
|
- samples/program.rb
|
128
153
|
- samples/progress.rb
|
129
154
|
- samples/radiolist.rb
|
155
|
+
- samples/run_all.rb
|
130
156
|
- samples/shortlist
|
131
157
|
- samples/timebox.rb
|
132
158
|
- samples/treeview.rb
|
133
159
|
- samples/treeview2.rb
|
134
160
|
- samples/yesno.rb
|
161
|
+
- screenshots/README.txt
|
162
|
+
- screenshots/all.gif
|
163
|
+
- screenshots/buildlist.png
|
164
|
+
- screenshots/calendar.png
|
165
|
+
- screenshots/checklist.png
|
166
|
+
- screenshots/editbox.png
|
167
|
+
- screenshots/form1.png
|
168
|
+
- screenshots/form2.png
|
169
|
+
- screenshots/form3.png
|
170
|
+
- screenshots/fselect.png
|
171
|
+
- screenshots/gauge.png
|
172
|
+
- screenshots/infobox.png
|
173
|
+
- screenshots/inputbox.png
|
174
|
+
- screenshots/menubox.png
|
175
|
+
- screenshots/mixedform1.png
|
176
|
+
- screenshots/msgbox.png
|
177
|
+
- screenshots/password.png
|
178
|
+
- screenshots/password2.png
|
179
|
+
- screenshots/passwordform.png
|
180
|
+
- screenshots/pause.png
|
181
|
+
- screenshots/prgbox.png
|
182
|
+
- screenshots/program.png
|
183
|
+
- screenshots/progress.png
|
184
|
+
- screenshots/radiolist.png
|
185
|
+
- screenshots/take_shots.rb
|
186
|
+
- screenshots/timebox.png
|
187
|
+
- screenshots/treeview.png
|
188
|
+
- screenshots/treeview2.png
|
189
|
+
- screenshots/yesno.png
|
135
190
|
- test/helper.rb
|
136
191
|
- test/test_mrdialog.rb
|
137
192
|
homepage: http://github.com/muquit/mrdialog
|
138
193
|
licenses:
|
139
194
|
- MIT
|
140
195
|
metadata: {}
|
141
|
-
post_install_message:
|
196
|
+
post_install_message:
|
142
197
|
rdoc_options: []
|
143
198
|
require_paths:
|
144
199
|
- lib
|
145
200
|
required_ruby_version: !ruby/object:Gem::Requirement
|
146
201
|
requirements:
|
147
|
-
- -
|
202
|
+
- - ">="
|
148
203
|
- !ruby/object:Gem::Version
|
149
204
|
version: '0'
|
150
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
206
|
requirements:
|
152
|
-
- -
|
207
|
+
- - ">="
|
153
208
|
- !ruby/object:Gem::Version
|
154
209
|
version: '0'
|
155
210
|
requirements: []
|
156
|
-
|
157
|
-
|
158
|
-
signing_key:
|
211
|
+
rubygems_version: 3.2.3
|
212
|
+
signing_key:
|
159
213
|
specification_version: 4
|
160
214
|
summary: A ruby gem for ncurses dialog program, based on the gem rdialog
|
161
215
|
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activesupport (4.0.4)
|
5
|
-
i18n (~> 0.6, >= 0.6.9)
|
6
|
-
minitest (~> 4.2)
|
7
|
-
multi_json (~> 1.3)
|
8
|
-
thread_safe (~> 0.1)
|
9
|
-
tzinfo (~> 0.3.37)
|
10
|
-
addressable (2.3.6)
|
11
|
-
atomic (1.1.16)
|
12
|
-
builder (3.2.2)
|
13
|
-
descendants_tracker (0.0.4)
|
14
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
15
|
-
docile (1.1.3)
|
16
|
-
faraday (0.9.0)
|
17
|
-
multipart-post (>= 1.2, < 3)
|
18
|
-
git (1.2.6)
|
19
|
-
github_api (0.11.3)
|
20
|
-
addressable (~> 2.3)
|
21
|
-
descendants_tracker (~> 0.0.1)
|
22
|
-
faraday (~> 0.8, < 0.10)
|
23
|
-
hashie (>= 1.2)
|
24
|
-
multi_json (>= 1.7.5, < 2.0)
|
25
|
-
nokogiri (~> 1.6.0)
|
26
|
-
oauth2
|
27
|
-
hashie (2.0.5)
|
28
|
-
highline (1.6.21)
|
29
|
-
i18n (0.6.9)
|
30
|
-
jeweler (2.0.1)
|
31
|
-
builder
|
32
|
-
bundler (>= 1.0)
|
33
|
-
git (>= 1.2.5)
|
34
|
-
github_api
|
35
|
-
highline (>= 1.6.15)
|
36
|
-
nokogiri (>= 1.5.10)
|
37
|
-
rake
|
38
|
-
rdoc
|
39
|
-
json (1.8.1)
|
40
|
-
jwt (0.1.11)
|
41
|
-
multi_json (>= 1.5)
|
42
|
-
mini_portile (0.5.3)
|
43
|
-
minitest (4.7.5)
|
44
|
-
multi_json (1.9.2)
|
45
|
-
multi_xml (0.5.5)
|
46
|
-
multipart-post (2.0.0)
|
47
|
-
nokogiri (1.6.1)
|
48
|
-
mini_portile (~> 0.5.0)
|
49
|
-
oauth2 (0.9.3)
|
50
|
-
faraday (>= 0.8, < 0.10)
|
51
|
-
jwt (~> 0.1.8)
|
52
|
-
multi_json (~> 1.3)
|
53
|
-
multi_xml (~> 0.5)
|
54
|
-
rack (~> 1.2)
|
55
|
-
rack (1.5.2)
|
56
|
-
rake (10.2.2)
|
57
|
-
rdoc (3.12.2)
|
58
|
-
json (~> 1.4)
|
59
|
-
shoulda (3.5.0)
|
60
|
-
shoulda-context (~> 1.0, >= 1.0.1)
|
61
|
-
shoulda-matchers (>= 1.4.1, < 3.0)
|
62
|
-
shoulda-context (1.2.0)
|
63
|
-
shoulda-matchers (2.5.0)
|
64
|
-
activesupport (>= 3.0.0)
|
65
|
-
simplecov (0.8.2)
|
66
|
-
docile (~> 1.1.0)
|
67
|
-
multi_json
|
68
|
-
simplecov-html (~> 0.8.0)
|
69
|
-
simplecov-html (0.8.0)
|
70
|
-
thread_safe (0.3.1)
|
71
|
-
atomic (>= 1.1.7, < 2)
|
72
|
-
tzinfo (0.3.39)
|
73
|
-
|
74
|
-
PLATFORMS
|
75
|
-
ruby
|
76
|
-
|
77
|
-
DEPENDENCIES
|
78
|
-
bundler (~> 1.0)
|
79
|
-
jeweler (~> 2.0.1)
|
80
|
-
rdoc (~> 3.12)
|
81
|
-
shoulda
|
82
|
-
simplecov
|
data/README.rdoc
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
= MRDialog
|
2
|
-
|
3
|
-
mrdialog is a pure ruby library for the ncurses dialog program. dialog is
|
4
|
-
a command line tool that can present questions, messages, forms using
|
5
|
-
dialog boxes from a shell script. However, it is painful to program dialog
|
6
|
-
from shell scripts due to lack of data structure etc. You constactly have
|
7
|
-
to watch if the correct number of items are specified, if the arguments
|
8
|
-
are in correct order for example.
|
9
|
-
|
10
|
-
MRDialog is based on the rdialog ruby gem (http://rdialog.rubyforge.org/) by
|
11
|
-
Aleks Clark.
|
12
|
-
|
13
|
-
The original license is MIT and my code is also free to use under the
|
14
|
-
terms of the MIT license. Please look at the LICENSE.txt file for
|
15
|
-
details.
|
16
|
-
|
17
|
-
I added support for all of the missing widgets, fixed bugs, implemented
|
18
|
-
the examples for all the widgets. Please look at the ChangeLog.md file
|
19
|
-
for details.
|
20
|
-
|
21
|
-
Please look at the examples in the "samples" directory to see how the API works.
|
22
|
-
|
23
|
-
TODO: write the API document here
|
24
|
-
|
25
|
-
=== Requirements
|
26
|
-
|
27
|
-
* dialog must be installed. dialog home is:
|
28
|
-
http://invisible-island.net/dialog/dialog.html
|
29
|
-
|
30
|
-
=== To build
|
31
|
-
|
32
|
-
$ rake build
|
33
|
-
|
34
|
-
Will create the gem inside the pkg directory
|
35
|
-
|
36
|
-
=== To install the built gem
|
37
|
-
|
38
|
-
$ sudo gem install --local pkg/mrdialog-1.0.1.gem
|
39
|
-
|
40
|
-
=== To install using rake
|
41
|
-
|
42
|
-
$ sudo rake install
|
43
|
-
|
44
|
-
=== To install the gem to a specific directory:
|
45
|
-
|
46
|
-
$ GEM_HOME=/tmp gem install --local pkg/mrdialog-1.0.1.gem
|
47
|
-
|
48
|
-
The gem will be installed in /tmp/gems directory
|
49
|
-
|
50
|
-
--
|
51
|
-
Muhammad Muquit, muquit@muquit.com
|
52
|
-
Apr-05-2014 - first cut
|
data/pkg/mrdialog-1.0.1.gem
DELETED
Binary file
|