visualruby 3.6.2 → 3.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.vr_settings.yaml +15 -5
- data/lib/GladeGUI.rb +3 -4
- data/src/main/RubygemsAPI.rb +8 -3
- data/src/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57fe878918ab52b3998ff5642cbf83f791d33af25ad33f20ea4b89f622040714
|
4
|
+
data.tar.gz: 91cd0e95e279e85a2298bf659a26bb32302b7daf1e9592708479d1d807c14277
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e492484dd649da75f806c28f27809ca2a6c67e62a11cb9208b12ce171240f324213820312fe6798c43d30d3dc754d546f6ecba3068e550dd0229b9816cb4fea8
|
7
|
+
data.tar.gz: 9375bf701e38a40cfd0598e0f296bf584fc29e016ce8928c808c252f889c215d63843eb1d5a2962cb5f6bda4a58c1515fe4db4f3f41de5a6b42355b70ed5738d
|
data/.vr_settings.yaml
CHANGED
@@ -4,9 +4,19 @@ width: 800
|
|
4
4
|
height: 600
|
5
5
|
panel_pos: 360
|
6
6
|
notebook_panel_position: 400
|
7
|
-
run_command_line: ruby
|
8
|
-
open_files:
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
run_command_line: ruby vr
|
8
|
+
open_files:
|
9
|
+
- "/home/eric/vrp/vr3/vr.gemspec"
|
10
|
+
- "/home/eric/vrp/vr3/src/version.rb"
|
11
|
+
- "/home/eric/vrp/vr3/src/main/RubygemsAPI.rb"
|
12
|
+
- "/home/eric/vrp/vr3/lib/Alert.rb"
|
13
|
+
- "/home/eric/vrp/vr3/lib/GladeGUI.rb"
|
14
|
+
- "/home/eric/vrp/vr3/lib/treeview/ViewCommon.rb"
|
15
|
+
open_folders:
|
16
|
+
- "/home/eric/vrp/vr3"
|
17
|
+
- "/home/eric/vrp/vr3/src"
|
18
|
+
current_file: "/home/eric/vrp/vr3/lib/GladeGUI.rb"
|
19
|
+
current_line: 370
|
12
20
|
rdoc_command_line: rdoc -x README
|
21
|
+
builder: !ruby/object:Gtk::Builder {}
|
22
|
+
top_level_window: false
|
data/lib/GladeGUI.rb
CHANGED
@@ -128,8 +128,7 @@ module GladeGUI
|
|
128
128
|
# @builder[:email].text = @email
|
129
129
|
#
|
130
130
|
def load_glade()
|
131
|
-
caller__FILE__ = my_class_file_path()
|
132
|
-
puts "PATH PROBLEM: " + caller__FILE__
|
131
|
+
caller__FILE__ = my_class_file_path()
|
133
132
|
file_name = File.join(File.split(caller__FILE__)[0] , "glade", class_name(self) + ".glade")
|
134
133
|
@builder = Gtk::Builder.new
|
135
134
|
@builder << file_name
|
@@ -364,11 +363,11 @@ puts "PATH PROBLEM: " + caller__FILE__
|
|
364
363
|
# @private
|
365
364
|
def self.included(obj)
|
366
365
|
lines = caller.select {|line| line.to_s.include? "`<class:" }
|
367
|
-
puts "lines[0]:" + lines[0] + "<end>"
|
366
|
+
#puts "lines[0]:" + lines[0] + "<end>"
|
368
367
|
# caller.each {|a| puts a}
|
369
368
|
temp = lines[0].split(":") #correct for windows C:\Users\george etc.
|
370
369
|
caller_path_to_class_file = temp[0].size == 1 ? temp[0] + ":" + temp[1] : temp[0]
|
371
|
-
puts "Path_to_class_file: " + caller_path_to_class_file
|
370
|
+
#puts "Path_to_class_file: " + caller_path_to_class_file
|
372
371
|
obj.class_eval do
|
373
372
|
define_method :my_class_file_path do
|
374
373
|
return caller_path_to_class_file
|
data/src/main/RubygemsAPI.rb
CHANGED
@@ -29,13 +29,18 @@ def set_up_key()
|
|
29
29
|
@builder["dialog1"].hide
|
30
30
|
return unless response_id == 1
|
31
31
|
get_glade_all() #gets @username, @password
|
32
|
+
alert(@username + @password)
|
32
33
|
begin
|
33
34
|
@http.start() do |h|
|
34
35
|
req = Net::HTTP::Get.new("/api/v1/api_key.yaml")
|
36
|
+
alert("1")
|
35
37
|
req.basic_auth @username, @password
|
36
|
-
response = h.request(req)
|
37
|
-
|
38
|
-
|
38
|
+
response = h.request(req)
|
39
|
+
alert("2")
|
40
|
+
alert(response)
|
41
|
+
obj = YAML.unsecure_load(response.body)
|
42
|
+
key = obj[:rubygems_api_key]
|
43
|
+
alert(key)
|
39
44
|
if key
|
40
45
|
File.open(CREDENTIALS_FILE,"w",0600) { |f| f.write(YAML.dump(obj)) }
|
41
46
|
else
|
data/src/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = "3.6.
|
1
|
+
VERSION = "3.6.3"
|
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.6.
|
4
|
+
version: 3.6.3
|
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: 2024-09-
|
12
|
+
date: 2024-09-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gtk3
|