visualruby 3.0.20 → 3.0.21
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/.vr_settings.yaml +15 -12
- data/{my_yard.yaml → .yardoc/my_yard.yaml} +3 -4
- data/examples/active_record/.vr_settings.yaml +8 -44
- data/lib/Alert.rb +10 -11
- data/lib/Tools.rb +18 -0
- data/lib/vrlib.rb +1 -0
- data/src/main/VR_File_Tree.rb +26 -28
- data/src/main/VR_Main.rb +25 -15
- data/src/main/VR_Tools.rb +2 -17
- data/src/main/glade/VR_ENV.glade +2 -30
- data/src/main/glade/VR_File_Tree.glade +0 -14
- data/src/main/glade/VR_Main.glade +2 -2
- data/vr +0 -2
- metadata +4 -4
- data/yard_hack/rdoc_replace.yaml +0 -65
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b6f576903b2fc8e342365be9f990f56669bc91a
|
|
4
|
+
data.tar.gz: c77225f63d0a890bdf7b567866326c90373fdd8d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c17e30a2e4ae0fd78f876ea107c79bbb05d66c5dc6a3b76fcc5de39ecf078e8d1303e61b6e66ae68b044173ba4288dfb42858607970024067d86df55c886ac2
|
|
7
|
+
data.tar.gz: f92fb52054092780ba9d5d4f0d5494f007d0af7ada6f03d4fb12a179d0c7d191df689b9fe59f879269914a75b42b480e170ed9d46b361ca400424c8eda980848
|
data/.vr_settings.yaml
CHANGED
|
@@ -2,27 +2,30 @@
|
|
|
2
2
|
vr_yaml_file: "/home/eric/vrp/vr3/.vr_settings.yaml"
|
|
3
3
|
width: 1364
|
|
4
4
|
height: 691
|
|
5
|
-
panel_pos:
|
|
5
|
+
panel_pos: 284
|
|
6
6
|
notebook_panel_position: 472
|
|
7
7
|
run_command_line: ruby vr
|
|
8
8
|
open_files:
|
|
9
|
-
- "/home/eric/vrp/vr3/yard_hack/common.css"
|
|
10
|
-
- "/home/eric/vrp/vr3/src/editor/VR_Tabs.rb"
|
|
11
|
-
- "/home/eric/vrp/vr3/lib/Alert.rb"
|
|
12
|
-
- "/home/eric/vrp/vr3/lib/GladeGUI.rb"
|
|
13
|
-
- "/home/eric/vrp/vr3/src/main/NewProjectGUI.rb"
|
|
14
9
|
- "/home/eric/vrp/vr3/src/main/VR_Main.rb"
|
|
15
10
|
- "/home/eric/vrp/vr3/src/main/VR_File_Tree.rb"
|
|
16
|
-
- "/home/eric/vrp/vr3/lib/
|
|
11
|
+
- "/home/eric/vrp/vr3/lib/treeview/ViewCommon.rb"
|
|
12
|
+
- "/home/eric/vrp/vr3/src/main/VR_Tools.rb"
|
|
13
|
+
- "/home/eric/vrp/vr3/lib/Tools.rb"
|
|
14
|
+
- "/home/eric/vrp/vr3/lib/vrlib.rb"
|
|
15
|
+
- "/home/eric/vrp/vr3/vr"
|
|
16
|
+
- "/home/eric/vrp/vr3/lib/Alert.rb"
|
|
17
|
+
- "/home/eric/vrp/vr3/README.md"
|
|
18
|
+
- "/home/eric/vrp/vr3/examples/active_record/bin/Person.rb"
|
|
19
|
+
- "/home/eric/vrp/vr3/examples/active_record/active_record.rb"
|
|
20
|
+
- "/home/eric/vrp/vr3/src/main/VR_ENV.rb"
|
|
21
|
+
- "/home/eric/vrp/vr3/vr.gemspec"
|
|
17
22
|
open_folders:
|
|
18
23
|
- "/home/eric/vrp/vr3"
|
|
19
|
-
- "/home/eric/vrp/vr3/
|
|
24
|
+
- "/home/eric/vrp/vr3/examples"
|
|
20
25
|
- "/home/eric/vrp/vr3/src"
|
|
21
|
-
- "/home/eric/vrp/vr3/src/editor"
|
|
22
26
|
- "/home/eric/vrp/vr3/src/main"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
current_line: 41
|
|
27
|
+
current_file: "/home/eric/vrp/vr3/vr.gemspec"
|
|
28
|
+
current_line: 4
|
|
26
29
|
rdoc_command_line: yardoc lib - site/*.*
|
|
27
30
|
builder: !ruby/object:Gtk::Builder {}
|
|
28
31
|
top_level_window: false
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
--- !ruby/object:MyYard
|
|
2
2
|
project_root: "/home/eric/vrp/vr3"
|
|
3
3
|
output_dir: doc
|
|
4
|
-
theme:
|
|
5
|
-
template:
|
|
4
|
+
theme: default
|
|
5
|
+
template: default
|
|
6
6
|
files: lib/**/*.rb
|
|
7
7
|
extra_files: site/*.*
|
|
8
8
|
exclude: ''
|
|
@@ -14,7 +14,6 @@ title: Visual Ruby
|
|
|
14
14
|
main: index.html
|
|
15
15
|
export_db: false
|
|
16
16
|
export_db_path: ".yardoc"
|
|
17
|
-
vr_yaml_file: "/home/eric/vrp/vr3/my_yard.yaml"
|
|
17
|
+
vr_yaml_file: "/home/eric/vrp/vr3/.yardoc/my_yard.yaml"
|
|
18
18
|
builder: !ruby/object:Gtk::Builder {}
|
|
19
19
|
top_level_window: true
|
|
20
|
-
no_private: false
|
|
@@ -1,50 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:VR_ENV
|
|
2
|
-
vr_yaml_file: "
|
|
3
|
-
width:
|
|
4
|
-
height:
|
|
5
|
-
panel_pos:
|
|
2
|
+
vr_yaml_file: "/home/eric/vrp/vr3/examples/active_record/.vr_settings.yaml"
|
|
3
|
+
width: 800
|
|
4
|
+
height: 600
|
|
5
|
+
panel_pos: 360
|
|
6
6
|
notebook_panel_position: 400
|
|
7
|
-
run_command_line: ruby
|
|
7
|
+
run_command_line: ruby main.rb
|
|
8
8
|
open_files:
|
|
9
|
-
- "/home/eric/vrp/vr3/
|
|
10
|
-
- "/home/eric/vrp/vr3/examples/active_record/bin/ChoosePerson.rb"
|
|
11
|
-
- "/home/eric/vrp/vr3/examples/active_record/active_record.rb"
|
|
9
|
+
- "/home/eric/vrp/vr3/Untitled"
|
|
12
10
|
open_folders:
|
|
13
11
|
- "/home/eric/vrp/vr3/examples/active_record"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
current_file: "/home/eric/vrp/vr3/examples/active_record/active_record.rb"
|
|
17
|
-
current_line: 6
|
|
12
|
+
current_file: "/home/eric/vrp/vr3/Untitled"
|
|
13
|
+
current_line: 1
|
|
18
14
|
rdoc_command_line: rdoc -x README
|
|
19
|
-
builder: !ruby/object:Gtk::Builder {}
|
|
20
|
-
filename: ".vr_settings.yaml"
|
|
21
|
-
backup_path: "/home/eric"
|
|
22
|
-
browser: firefox
|
|
23
|
-
font_name: Monospace 10
|
|
24
|
-
glade_path: glade-gtk2
|
|
25
|
-
tab_spaces: 2
|
|
26
|
-
glade_box: !ruby/object:VR::SimpleComboBoxEntry {}
|
|
27
|
-
browser_box: !ruby/object:VR::SimpleComboBoxEntry {}
|
|
28
|
-
buttonChooseFolder: "..."
|
|
29
|
-
vbox1: !ruby/object:Gtk::VBox {}
|
|
30
|
-
label7: 'Editor Font:'
|
|
31
|
-
label3: 'Back-up Path:'
|
|
32
|
-
window1: !ruby/object:Gtk::Window {}
|
|
33
|
-
hbuttonbox1: !ruby/object:Gtk::HButtonBox {}
|
|
34
|
-
buttonCancel: Cancel
|
|
35
|
-
label8: 'RDoc Command Line: '
|
|
36
|
-
table1: !ruby/object:Gtk::Table {}
|
|
37
|
-
buttonTryBrowser: Try
|
|
38
|
-
buttonSave: Save
|
|
39
|
-
hboxBrowser: !ruby/object:Gtk::HBox {}
|
|
40
|
-
hboxGlade: !ruby/object:Gtk::HBox {}
|
|
41
|
-
label1: "<big><big><b>Visual Ruby Settings</b></big></big>"
|
|
42
|
-
label2: 'Browser Command Line:'
|
|
43
|
-
label4: 'Spaces for Each Tab in Editor:'
|
|
44
|
-
label5: 'Glade Command Line:'
|
|
45
|
-
label6: 'Command Line when "Run" is pressed:'
|
|
46
|
-
hbox1: !ruby/object:Gtk::HBox {}
|
|
47
|
-
hbox2: !ruby/object:Gtk::HBox {}
|
|
48
|
-
hbox3: !ruby/object:Gtk::HBox {}
|
|
49
|
-
hbox4: !ruby/object:Gtk::HBox {}
|
|
50
|
-
buttonTryGlade: Try
|
data/lib/Alert.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
module VR
|
|
3
|
-
# Class that the #alert method uses.
|
|
4
3
|
|
|
4
|
+
# Class that the #alert method uses. This class is note useful by itself. See #alert method instead.
|
|
5
5
|
# @see #alert
|
|
6
6
|
class Alert
|
|
7
7
|
|
|
@@ -51,7 +51,8 @@ module VR
|
|
|
51
51
|
@builder[:window1].destroy
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
# Helper to VR::Alert so :answer can be passed by reference.
|
|
54
|
+
# Helper to VR::Alert so :answer can be passed by reference.
|
|
55
|
+
# @see #alert
|
|
55
56
|
class DialogAnswer
|
|
56
57
|
attr_accessor :answer
|
|
57
58
|
end
|
|
@@ -63,17 +64,17 @@ end
|
|
|
63
64
|
# @param [String] message text message to display in alert box. Uses markup.
|
|
64
65
|
# @param [Hash] options -- Hash of options: :button_yes => text on the button that returns true.
|
|
65
66
|
# @option options [String] :button_yes Text that appears on the "yes" button.
|
|
66
|
-
# @option options [String] :button_no Text
|
|
67
|
-
# @option options [String] :button_cancel Text
|
|
67
|
+
# @option options [String] :button_no Text that appears on "no" button. (set to make no button appear)
|
|
68
|
+
# @option options [String] :button_cancel Text that appears on "cancel" button. (set to make cancel button appear)
|
|
68
69
|
# @option options [String] :input_text Text that appears in entry box. (set to make entry box appear)
|
|
69
70
|
# @option options [String] :headline Larger headline over text message.
|
|
70
71
|
# @option options [String] :title Title of the alert box window. Defaults to :headline.
|
|
71
|
-
# @option options [Integer] :width The width in pixels of the window for wrapping text.
|
|
72
|
+
# @option options [Integer] :width The width in pixels of the window. Used for wrapping text.
|
|
72
73
|
# @option options [Object #builder] :parent The window that the alert box is always on top of.
|
|
73
74
|
# @return [String] text in the text entry field when the :button_yes button is pressed
|
|
74
75
|
# @return [true] When the :button_yes button is selected and there's no text entry box.
|
|
75
76
|
# @return [false] When :button_no is pressed
|
|
76
|
-
# @return [nil] When :button_cancel
|
|
77
|
+
# @return [nil] When :button_cancel or the "X" button is pressed.
|
|
77
78
|
# The alert method creates a pop-up alert in your program. It creates a modal
|
|
78
79
|
# window that halts execution of your code until the user closes it. Its great
|
|
79
80
|
# for displaying messages and debugging. It also has the option of displaying
|
|
@@ -102,11 +103,9 @@ end
|
|
|
102
103
|
# There are many examples in the "alert_box" example project.
|
|
103
104
|
|
|
104
105
|
def alert(message, options = {})
|
|
105
|
-
|
|
106
|
-
VR::Alert.new(message,
|
|
107
|
-
ans
|
|
108
|
-
remove_instance_variable(:@answer_from_user)
|
|
109
|
-
return ans
|
|
106
|
+
ans = VR::Alert::DialogAnswer.new()
|
|
107
|
+
VR::Alert.new(message, ans, options).show_glade(options[:parent])
|
|
108
|
+
return ans.answer
|
|
110
109
|
end
|
|
111
110
|
|
|
112
111
|
|
data/lib/Tools.rb
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module VR
|
|
2
|
+
|
|
3
|
+
def VR.copy_recursively(from, out_dir)
|
|
4
|
+
Find.find(from) do |path|
|
|
5
|
+
next if path == from
|
|
6
|
+
rel_path = path.gsub(from, "")
|
|
7
|
+
if File.directory?(path)
|
|
8
|
+
FileUtils.makedirs(out_dir + rel_path)
|
|
9
|
+
else
|
|
10
|
+
if not File.directory?(out_dir + File.dirname(rel_path))
|
|
11
|
+
FileUtils.makedirs(out_dir + File.dirname(rel_path))
|
|
12
|
+
end
|
|
13
|
+
FileUtils.copy(path, out_dir + rel_path)
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
data/lib/vrlib.rb
CHANGED
data/src/main/VR_File_Tree.rb
CHANGED
|
@@ -35,36 +35,35 @@ class VR_File_Tree < VR::FileTreeView
|
|
|
35
35
|
|
|
36
36
|
def popInstallGem_clicked()
|
|
37
37
|
file_name = get_selected_path()
|
|
38
|
-
|
|
38
|
+
begin
|
|
39
39
|
inst = Gem::Installer.new(file_name, :wrappers => true, :ignore_dependencies => true)
|
|
40
40
|
inst.install().to_s
|
|
41
|
-
txt = "
|
|
41
|
+
txt = "\nInstalled Gem: " + file_name
|
|
42
42
|
txt += "\nNo check was made for dependencies"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# end
|
|
43
|
+
rescue Exception => e
|
|
44
|
+
txt += "\n" + e.message
|
|
45
|
+
end
|
|
47
46
|
@main.shell.buffer.text = txt
|
|
48
47
|
end
|
|
49
48
|
|
|
50
|
-
def menuRDoc_clicked
|
|
51
|
-
return unless @main.tabs.try_to_save_all(:ask => false)
|
|
52
|
-
fn = get_selected_path()
|
|
53
|
-
old_dir = Dir.pwd
|
|
54
|
-
FileUtils.cd(fn)
|
|
55
|
-
@main.shell.buffer.text = $VR_ENV.rdoc_command_line + fn + "\n"
|
|
56
|
-
clear_events
|
|
57
|
-
@main.shell.buffer.text += `#{$VR_ENV.rdoc_command_line} 2>&1`
|
|
58
|
-
VR_Tools.replace_html_in_docs()
|
|
59
|
-
if File.exists?("yard_hack/index.html.replace")
|
|
60
|
-
FileUtils.copy("yard_hack/index.html.replace", "#{fn}/doc/index.html")
|
|
61
|
-
FileUtils.copy("yard_hack/index.html.replace", "#{fn}/doc/frames.html")
|
|
62
|
-
FileUtils.copy("yard_hack/common.css", "#{fn}/doc/css/common.css")
|
|
63
|
-
end
|
|
64
|
-
FileUtils.cd(old_dir)
|
|
65
|
-
VR_Tools.popen("#{$VR_ENV_GLOBAL.browser} #{fn}/doc/index.html")
|
|
66
|
-
@main.file_tree.refresh()
|
|
67
|
-
end
|
|
49
|
+
# def menuRDoc_clicked
|
|
50
|
+
# return unless @main.tabs.try_to_save_all(:ask => false)
|
|
51
|
+
# fn = get_selected_path()
|
|
52
|
+
# old_dir = Dir.pwd
|
|
53
|
+
# FileUtils.cd(fn)
|
|
54
|
+
# @main.shell.buffer.text = $VR_ENV.rdoc_command_line + fn + "\n"
|
|
55
|
+
# clear_events
|
|
56
|
+
# @main.shell.buffer.text += `#{$VR_ENV.rdoc_command_line} 2>&1`
|
|
57
|
+
# VR_Tools.replace_html_in_docs()
|
|
58
|
+
# if File.exists?("yard_hack/index.html.replace")
|
|
59
|
+
# FileUtils.copy("yard_hack/index.html.replace", "#{fn}/doc/index.html")
|
|
60
|
+
# FileUtils.copy("yard_hack/index.html.replace", "#{fn}/doc/frames.html")
|
|
61
|
+
# FileUtils.copy("yard_hack/common.css", "#{fn}/doc/css/common.css")
|
|
62
|
+
# end
|
|
63
|
+
# FileUtils.cd(old_dir)
|
|
64
|
+
# VR_Tools.popen("#{$VR_ENV_GLOBAL.browser} #{fn}/doc/index.html")
|
|
65
|
+
# @main.file_tree.refresh()
|
|
66
|
+
# end
|
|
68
67
|
|
|
69
68
|
def popBuildGem_clicked
|
|
70
69
|
file_name = get_selected_path()
|
|
@@ -91,8 +90,7 @@ class VR_File_Tree < VR::FileTreeView
|
|
|
91
90
|
def popGlade_clicked
|
|
92
91
|
path = get_selected_path()
|
|
93
92
|
source_code = File.open(path, "r").read
|
|
94
|
-
class_name = VR_Document.get_class_title(source_code).gsub(".rb", "")
|
|
95
|
-
# glade_file = File.dirname(path) + "/glade/" + File.basename(path, ".rb") + ".glade"
|
|
93
|
+
class_name = VR_Document.get_class_title(source_code).gsub(".rb", "")
|
|
96
94
|
glade_file = File.dirname(path) + "/glade/" + class_name + ".glade"
|
|
97
95
|
if not File.file?(glade_file)
|
|
98
96
|
path = File.dirname(glade_file)
|
|
@@ -114,8 +112,8 @@ class VR_File_Tree < VR::FileTreeView
|
|
|
114
112
|
@builder['popGemspec'].popup(nil, nil, event.button, event.time)
|
|
115
113
|
elsif File.extname(path) == ".gem"
|
|
116
114
|
@builder['popGemFile'].popup(nil, nil, event.button, event.time)
|
|
117
|
-
elsif File.directory?(path)
|
|
118
|
-
@builder['popFolder'].popup(nil, nil, event.button, event.time)
|
|
115
|
+
# elsif File.directory?(path)
|
|
116
|
+
# @builder['popFolder'].popup(nil, nil, event.button, event.time)
|
|
119
117
|
end
|
|
120
118
|
end
|
|
121
119
|
|
data/src/main/VR_Main.rb
CHANGED
|
@@ -13,7 +13,7 @@ class VR_Main
|
|
|
13
13
|
def before_show
|
|
14
14
|
|
|
15
15
|
# there must be a visualruby directory:
|
|
16
|
-
required_project = File.join(ENV["HOME"],"","visualruby", "examples","alert_box")
|
|
16
|
+
required_project = File.join(ENV["HOME"],"","visualruby", "examples", "alert_box")
|
|
17
17
|
menuInstallExamples__activate if not File.directory?(required_project)
|
|
18
18
|
|
|
19
19
|
# load global settings (requires /home/visuaruby folder exists
|
|
@@ -145,19 +145,29 @@ class VR_Main
|
|
|
145
145
|
end
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
def toolRDoc__clicked(*a)
|
|
149
|
-
return unless @tabs.try_to_save_all(:ask => false)
|
|
150
|
-
@shell.buffer.text = $VR_ENV.rdoc_command_line + "\n"
|
|
151
|
-
clear_events
|
|
152
|
-
@shell.buffer.text += `#{$VR_ENV.rdoc_command_line} 2>&1`
|
|
153
|
-
VR_Tools.replace_html_in_docs()
|
|
154
|
-
if File.exists?("yard_hack/index.html.replace")
|
|
155
|
-
FileUtils.copy("yard_hack/index.html.replace", "doc/index.html")
|
|
156
|
-
FileUtils.copy("yard_hack/index.html.replace", "doc/frames.html")
|
|
157
|
-
FileUtils.copy("yard_hack/common.css", "doc/css/common.css")
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
end
|
|
148
|
+
# def toolRDoc__clicked(*a)
|
|
149
|
+
# return unless @tabs.try_to_save_all(:ask => false)
|
|
150
|
+
# @shell.buffer.text = $VR_ENV.rdoc_command_line + "\n"
|
|
151
|
+
# clear_events
|
|
152
|
+
# @shell.buffer.text += `#{$VR_ENV.rdoc_command_line} 2>&1`
|
|
153
|
+
# VR_Tools.replace_html_in_docs()
|
|
154
|
+
# if File.exists?("yard_hack/index.html.replace")
|
|
155
|
+
# FileUtils.copy("yard_hack/index.html.replace", "doc/index.html")
|
|
156
|
+
# FileUtils.copy("yard_hack/index.html.replace", "doc/frames.html")
|
|
157
|
+
# FileUtils.copy("yard_hack/common.css", "doc/css/common.css")
|
|
158
|
+
# end
|
|
159
|
+
#
|
|
160
|
+
# end
|
|
161
|
+
|
|
162
|
+
def toolMyYard__clicked(*a)
|
|
163
|
+
return alert "Not available yet."
|
|
164
|
+
begin
|
|
165
|
+
require "my_yard"
|
|
166
|
+
rescue LoadError
|
|
167
|
+
alert "You must install the my_yard gem to generate documents. \nEnter this command at the command prompt:\n\n<b>gem install my_yard</b>",
|
|
168
|
+
parent: self
|
|
169
|
+
end
|
|
170
|
+
end
|
|
161
171
|
|
|
162
172
|
def toolViewRDoc__clicked(*a)
|
|
163
173
|
VR_Tools.popen("#{$VR_ENV_GLOBAL.browser} #{Dir.pwd}/doc/index.html")
|
|
@@ -298,7 +308,7 @@ class VR_Main
|
|
|
298
308
|
|
|
299
309
|
def menuInstallExamples__activate(*a)
|
|
300
310
|
path = File.join(ENV["HOME"], "", "visualruby", "examples")
|
|
301
|
-
|
|
311
|
+
VR.copy_recursively(File.expand_path(File.join(File.dirname(__FILE__),"","..","..","examples")), path)
|
|
302
312
|
alert("The example projects are installed in this folder:\n\n<b>#{path}</b>\n\n "+
|
|
303
313
|
"Use your <b>/home/visualruby</b> folder for all your visualruby projects.",
|
|
304
314
|
:parent => self,
|
data/src/main/VR_Tools.rb
CHANGED
|
@@ -13,28 +13,13 @@ module VR_Tools
|
|
|
13
13
|
path = File.join(ENV["HOME"], "visualruby_backup", Dir.pwd.gsub(ENV["HOME"], ""))
|
|
14
14
|
t = Time.now
|
|
15
15
|
out_dir = path + "/" + Dir.pwd.split("/").last + " Backup " + t.month().to_s + '-' + t.day().to_s + "-" + t.year().to_s + " at " + t.strftime('%I %M%p')
|
|
16
|
-
copy_recursively(Dir.pwd, out_dir)
|
|
16
|
+
VR.copy_recursively(Dir.pwd, out_dir)
|
|
17
17
|
alert "Files backed up to: \n\n" + path
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def VR_Tools.copy_skeleton_project(path)
|
|
21
|
-
|
|
21
|
+
VR.copy_recursively(File.dirname(__FILE__) + "/../../skeleton/project", path)
|
|
22
22
|
end
|
|
23
|
-
|
|
24
|
-
def VR_Tools.copy_recursively(from, out_dir)
|
|
25
|
-
Find.find(from) do |path|
|
|
26
|
-
next if path == from
|
|
27
|
-
rel_path = path.gsub(from, "")
|
|
28
|
-
if File.directory?(path)
|
|
29
|
-
FileUtils.makedirs(out_dir + rel_path)
|
|
30
|
-
else
|
|
31
|
-
if not File.directory?(out_dir + File.dirname(rel_path))
|
|
32
|
-
FileUtils.makedirs(out_dir + File.dirname(rel_path))
|
|
33
|
-
end
|
|
34
|
-
FileUtils.copy(path, out_dir + rel_path)
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
23
|
|
|
39
24
|
def self.create_gemspec()
|
|
40
25
|
main_file = $VR_ENV.run_command_line.split(" ")[1]
|
data/src/main/glade/VR_ENV.glade
CHANGED
|
@@ -68,35 +68,6 @@
|
|
|
68
68
|
<property name="height">1</property>
|
|
69
69
|
</packing>
|
|
70
70
|
</child>
|
|
71
|
-
<child>
|
|
72
|
-
<object class="GtkEntry" id="rdoc_command_line">
|
|
73
|
-
<property name="visible">True</property>
|
|
74
|
-
<property name="can_focus">True</property>
|
|
75
|
-
</object>
|
|
76
|
-
<packing>
|
|
77
|
-
<property name="left_attach">1</property>
|
|
78
|
-
<property name="top_attach">1</property>
|
|
79
|
-
<property name="width">1</property>
|
|
80
|
-
<property name="height">1</property>
|
|
81
|
-
</packing>
|
|
82
|
-
</child>
|
|
83
|
-
<child>
|
|
84
|
-
<object class="GtkLabel" id="label2">
|
|
85
|
-
<property name="visible">True</property>
|
|
86
|
-
<property name="can_focus">False</property>
|
|
87
|
-
<property name="hexpand">True</property>
|
|
88
|
-
<property name="xalign">1</property>
|
|
89
|
-
<property name="label" translatable="yes">RDoc Command Line:</property>
|
|
90
|
-
<property name="justify">center</property>
|
|
91
|
-
<property name="ellipsize">middle</property>
|
|
92
|
-
</object>
|
|
93
|
-
<packing>
|
|
94
|
-
<property name="left_attach">0</property>
|
|
95
|
-
<property name="top_attach">1</property>
|
|
96
|
-
<property name="width">1</property>
|
|
97
|
-
<property name="height">1</property>
|
|
98
|
-
</packing>
|
|
99
|
-
</child>
|
|
100
71
|
</object>
|
|
101
72
|
<packing>
|
|
102
73
|
<property name="expand">False</property>
|
|
@@ -108,7 +79,8 @@
|
|
|
108
79
|
<object class="GtkButtonBox" id="buttonbox1">
|
|
109
80
|
<property name="visible">True</property>
|
|
110
81
|
<property name="can_focus">False</property>
|
|
111
|
-
<property name="
|
|
82
|
+
<property name="spacing">10</property>
|
|
83
|
+
<property name="layout_style">end</property>
|
|
112
84
|
<child>
|
|
113
85
|
<object class="GtkButton" id="buttonCancel">
|
|
114
86
|
<property name="label" translatable="yes">Cancel</property>
|
|
@@ -16,20 +16,6 @@
|
|
|
16
16
|
</object>
|
|
17
17
|
</child>
|
|
18
18
|
</object>
|
|
19
|
-
<object class="GtkMenu" id="popFolder">
|
|
20
|
-
<property name="visible">True</property>
|
|
21
|
-
<property name="can_focus">False</property>
|
|
22
|
-
<child>
|
|
23
|
-
<object class="GtkMenuItem" id="menuRDoc">
|
|
24
|
-
<property name="visible">True</property>
|
|
25
|
-
<property name="can_focus">False</property>
|
|
26
|
-
<property name="tooltip_text" translatable="yes">Will create a doc subfolder with all the documentation for this project in it.</property>
|
|
27
|
-
<property name="label" translatable="yes">Create RDocs in this Folder</property>
|
|
28
|
-
<property name="use_underline">True</property>
|
|
29
|
-
<signal name="activate" handler="menuRDoc_clicked" swapped="no"/>
|
|
30
|
-
</object>
|
|
31
|
-
</child>
|
|
32
|
-
</object>
|
|
33
19
|
<object class="GtkMenu" id="popGemFile">
|
|
34
20
|
<property name="visible">True</property>
|
|
35
21
|
<property name="can_focus">False</property>
|
|
@@ -332,11 +332,11 @@
|
|
|
332
332
|
</packing>
|
|
333
333
|
</child>
|
|
334
334
|
<child>
|
|
335
|
-
<object class="GtkToolButton" id="
|
|
335
|
+
<object class="GtkToolButton" id="toolMyYard">
|
|
336
336
|
<property name="visible">True</property>
|
|
337
337
|
<property name="can_focus">False</property>
|
|
338
338
|
<property name="tooltip_text" translatable="yes">Create RDocs for this project.</property>
|
|
339
|
-
<property name="label" translatable="yes">
|
|
339
|
+
<property name="label" translatable="yes">My Yard</property>
|
|
340
340
|
<property name="use_underline">True</property>
|
|
341
341
|
<property name="stock_id">gtk-copy</property>
|
|
342
342
|
</object>
|
data/vr
CHANGED
|
@@ -6,13 +6,11 @@ def load_everything
|
|
|
6
6
|
require "yaml" #needed
|
|
7
7
|
require "net/http" #needed
|
|
8
8
|
require "net/https" #needed
|
|
9
|
-
require "find" #needed
|
|
10
9
|
require "fileutils" #needed
|
|
11
10
|
require "rubygems/installer"
|
|
12
11
|
require "rubygems/uninstaller"
|
|
13
12
|
require "rubygems/package"
|
|
14
13
|
require "rubygems/specification"
|
|
15
|
-
require "date"
|
|
16
14
|
|
|
17
15
|
require 'require_all'
|
|
18
16
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: visualruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Cunningham
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir:
|
|
10
10
|
- "."
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-07-
|
|
12
|
+
date: 2016-07-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: gtk3
|
|
@@ -65,6 +65,7 @@ extensions: []
|
|
|
65
65
|
extra_rdoc_files: []
|
|
66
66
|
files:
|
|
67
67
|
- "./.vr_settings.yaml"
|
|
68
|
+
- "./.yardoc/my_yard.yaml"
|
|
68
69
|
- "./examples/active_record/.vr_settings.yaml"
|
|
69
70
|
- "./examples/active_record/active_record.rb"
|
|
70
71
|
- "./examples/active_record/bin/ChoosePerson.rb"
|
|
@@ -176,6 +177,7 @@ files:
|
|
|
176
177
|
- "./lib/DragDrop.rb"
|
|
177
178
|
- "./lib/GladeGUI.rb"
|
|
178
179
|
- "./lib/SavableClass.rb"
|
|
180
|
+
- "./lib/Tools.rb"
|
|
179
181
|
- "./lib/glade/Alert.glade"
|
|
180
182
|
- "./lib/oinspect/MethodsListView.rb"
|
|
181
183
|
- "./lib/oinspect/ObjectInspectorGUI.rb"
|
|
@@ -204,7 +206,6 @@ files:
|
|
|
204
206
|
- "./lib/treeview/columns/glade/ImageCol.glade"
|
|
205
207
|
- "./lib/treeview/columns/glade/TextCol.glade"
|
|
206
208
|
- "./lib/vrlib.rb"
|
|
207
|
-
- "./my_yard.yaml"
|
|
208
209
|
- "./skeleton/document/New.glade"
|
|
209
210
|
- "./skeleton/document/NewWindow.rb"
|
|
210
211
|
- "./skeleton/project/.vr_settings.yaml"
|
|
@@ -239,7 +240,6 @@ files:
|
|
|
239
240
|
- "./src/main/glade/VR_Main.glade"
|
|
240
241
|
- "./src/main/glade/VR_Remote_Gem_Tree.glade"
|
|
241
242
|
- "./vr"
|
|
242
|
-
- "./yard_hack/rdoc_replace.yaml"
|
|
243
243
|
homepage: http://www.visualruby.net/
|
|
244
244
|
licenses:
|
|
245
245
|
- MIT
|
data/yard_hack/rdoc_replace.yaml
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- - "<title>File List</title>"
|
|
3
|
-
- "<a href=file.README.html><img src=http://visualruby.net/img/splash_small.png></a><p><p>"
|
|
4
|
-
- - Video:uploading_gems.avi
|
|
5
|
-
- <iframe width="640" height="480" src="http://www.youtube.com/embed/6VsXlCjU89c"
|
|
6
|
-
frameborder="0" allowfullscreen></iframe>
|
|
7
|
-
- - Video:quickstart.avi
|
|
8
|
-
- <iframe width="640" height="480" src="http://www.youtube.com/embed/cFejLEs5Rb0"
|
|
9
|
-
frameborder="0" allowfullscreen></iframe>
|
|
10
|
-
- - Video:coinflip.avi
|
|
11
|
-
- <iframe width="420" height="315" src="http://www.youtube.com/embed/CY-0OYkg7b8"
|
|
12
|
-
frameborder="0" allowfullscreen></iframe>
|
|
13
|
-
- - Video:rdoc.avi
|
|
14
|
-
- <iframe width="640" height="480" src="http://www.youtube.com/embed/y_IPPs-cqpk"
|
|
15
|
-
frameborder="0" allowfullscreen></iframe>
|
|
16
|
-
- - GtkTreeIter
|
|
17
|
-
- <a href="http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeIter">Gtk::TreeIter</a>
|
|
18
|
-
- - GtkTreeViewColumn
|
|
19
|
-
- <a href="http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeViewColumn">Gtk::TreeViewColumn</a>
|
|
20
|
-
- - GtkCellRendererText
|
|
21
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererText>Gtk::CellRendererText</a>"
|
|
22
|
-
- - GtkTreeView
|
|
23
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeView>Gtk::TreeView</a>"
|
|
24
|
-
- - GtkCellRendererText
|
|
25
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererText>Gtk::CellRendererText</a>"
|
|
26
|
-
- - GtkCellRendererCombo
|
|
27
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererCombo>Gtk::CellRendererCombo</a>"
|
|
28
|
-
- - GtkCellRendererToggle
|
|
29
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererCombo>Gtk::CellRendererToggle</a>"
|
|
30
|
-
- - GtkCellRendererSpin
|
|
31
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererSpin>Gtk::CellRendererSpin</a>"
|
|
32
|
-
- - GtkCellRendererProgress
|
|
33
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererProgress>Gtk::CellRendererProgress</a>"
|
|
34
|
-
- - GtkCellRendererPixbuf
|
|
35
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ACellRendererPixbuf>Gtk::CellRendererPixbuf</a>"
|
|
36
|
-
- - GtkEntry
|
|
37
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AEntry>Gtk::Entry</a>"
|
|
38
|
-
- - GtkSpinButton
|
|
39
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASpinButton>Gtk::SpinButton</a>"
|
|
40
|
-
- - GdkPixbuf
|
|
41
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gdk%3A%3APixbuf>Gdk::Pixbuf</a>"
|
|
42
|
-
- - ActiveRecordBase
|
|
43
|
-
- "<a href=http://api.rubyonrails.org/classes/ActiveRecord/Base.html>ActiveRecord::Base</a>"
|
|
44
|
-
- - GtkComboBoxEntry
|
|
45
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AComboBoxEntry>Gtk::ComboBoxEntry</a>"
|
|
46
|
-
- - GtkProgressBar
|
|
47
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AProgressBar>Gtk::ProgressBar</a>"
|
|
48
|
-
- - GtkSelection
|
|
49
|
-
- "<A href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASelection>Gtk::Selection</a>"
|
|
50
|
-
- - <li class="r1"><span class="object_link"><a href="index.html" title="README">README</a></a></li>
|
|
51
|
-
- "<!-- README deleted makes problem. -->"
|
|
52
|
-
- - '<div id="search">Search: <input type="text" /></div>x'
|
|
53
|
-
- "<title>Visual Ruby -- GUI with Ruby and Glade</title>"
|
|
54
|
-
- - video:activerecord.avi
|
|
55
|
-
- <iframe width="640" height="480" src="http://www.youtube.com/embed/uySVKltD7fk"
|
|
56
|
-
frameborder="0" allowfullscreen></iframe>
|
|
57
|
-
- - GLibInstantiatable#signal_connect
|
|
58
|
-
- "<a href=http://ruby-gnome2.sourceforge.jp/hiki.cgi?GLib%3A%3AInstantiatable#signal_connect>Glib::Instaniatable#signal_connect</a>"
|
|
59
|
-
- - ActiveRecordBase
|
|
60
|
-
- "<a href=http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000341>ActiveRecord::Base</a>"
|
|
61
|
-
- - video:activerecord2.avi
|
|
62
|
-
- <iframe width="640" height="480" src="http://www.youtube.com/embed/3f1Lj5Q2Q8g"
|
|
63
|
-
frameborder="0" allowfullscreen></iframe>
|
|
64
|
-
- - <h1 id="full_list_header">File List</h1>
|
|
65
|
-
- "<!- deleted -->"
|