visualruby 3.4.5 → 3.4.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0074b60a95460353ace8f4a4e202449b0518cb02defb20280ba0d909f06a1843
4
- data.tar.gz: bcdfdaba09fce6e9b3b9a3da3c8e64985a88ae7aaa286f8f37d581a7b5b90ef2
3
+ metadata.gz: 230602a7de5d52dfbdc0a9929c661491f580fc7e332f70b3d3be8eb287a50f4c
4
+ data.tar.gz: c32969bb8224e796ae3fa06c32cde03c7f8383f94d20e1ebd583230fccc929b0
5
5
  SHA512:
6
- metadata.gz: 040e37dad70ab5aa5cfaae814d12bb211c616c826ad1218f4184994fe3888c02afa0eb488d2053a1eb820c3db3624d6b872a6b9467158fc85c1e47ceb1c90836
7
- data.tar.gz: dd2e5c97ef06edcef9406a65163f67ec0a0da1ee88e4c1c61628325bdef835a903a8f1d89ac4a69ed9744b489ac170356ae367e148a1d40c7c1ff6df190cfd4b
6
+ metadata.gz: 1667ff53b16a5841e0a5b38b2f8b0d0c07c661ac3349118ef269d56797b04e30835ec060aa2178ac27336204e51dd63500388bae92b799c0e8acc6c7e01781c7
7
+ data.tar.gz: b7364d9342206f361622a30361db33b21873d9e3309e61e8463f85cdfd1b2b09a8fa6dce20a432a1d57a9be7a1cd9e0106764787086052fe8996bd2eecc39d5e
data/.vr_settings.yaml CHANGED
@@ -25,15 +25,21 @@ open_files:
25
25
  - "/home/eric/vrp/vr3/examples/active_record2/main.rb"
26
26
  - "/home/eric/vrp/vr3/lib/vrlib.rb"
27
27
  - "/home/eric/vrp/vr3/lib/treeview/TreeView.rb"
28
+ - "/home/eric/vrp/vr3/lib/treeview/IterMethods.rb"
29
+ - "/home/eric/vrp/vr3/lib/treeview/ViewCommon.rb"
30
+ - "/home/eric/vrp/vr3/lib/treeview/columns/TreeViewColumn.rb"
28
31
  open_folders:
29
32
  - "/home/eric/vrp/vr3"
30
33
  - "/home/eric/vrp/vr3/lib"
34
+ - "/home/eric/vrp/vr3/lib/glade"
31
35
  - "/home/eric/vrp/vr3/site"
36
+ - "/home/eric/vrp/vr3/skeleton"
37
+ - "/home/eric/vrp/vr3/skeleton/document"
32
38
  - "/home/eric/vrp/vr3/src"
33
39
  - "/home/eric/vrp/vr3/src/editor"
34
40
  - "/home/eric/vrp/vr3/src/main"
35
- current_file: "/home/eric/vrp/vr3/vr.gemspec"
36
- current_line: 7
41
+ current_file: "/home/eric/vrp/vr3/src/main/VR_File_Tree.rb"
42
+ current_line: 85
37
43
  rdoc_command_line: yardoc lib - site/*.*
38
44
  builder: !ruby/object:Gtk::Builder {}
39
45
  top_level_window: false
@@ -18,7 +18,7 @@ module VR::ViewCommon
18
18
  #
19
19
 
20
20
  def [](col_id)
21
- if col_id.is_a? Fixnum
21
+ if col_id.is_a? Integer
22
22
  super
23
23
  else
24
24
  get_value(id(col_id))
@@ -26,7 +26,7 @@ module VR::ViewCommon
26
26
  end
27
27
 
28
28
  def []=(col_id,val)
29
- if col_id.is_a? Fixnum
29
+ if col_id.is_a? Integer
30
30
  super(col_id, val)
31
31
  else
32
32
  super(id(col_id), val)
@@ -42,7 +42,7 @@ module VR::ViewCommon
42
42
  # Normally, its best to use VR's "rows" instead. They will already use the column ID symbols.
43
43
  #
44
44
  def id(col_id) # :nodoc:
45
- return (col_id.is_a? Fixnum) ? col_id : @column_keys.index(col_id)
45
+ return (col_id.is_a? Integer) ? col_id : @column_keys.index(col_id)
46
46
  end
47
47
 
48
48
  # This will load the values of any object into the iter. It will look at all the
@@ -334,7 +334,7 @@ attr_accessor :vr_renderer, :column_keys, :vr_cols
334
334
  #The VR::ListView class will
335
335
  #automatically assign renderers to each column based on its type:
336
336
  #
337
- #String, Fixnum, Integer, Float => VR::Col::Ren::CellRendererText
337
+ #String, Integer, Float => VR::Col::Ren::CellRendererText
338
338
  #TrueClass => VR::Col::Ren::CellRendererToggle
339
339
  #GdkPixbuf => VR::Col::Ren::CellRendererPixbuf
340
340
  #DateTime => VR::Col::Ren::CellRendererDate
@@ -386,7 +386,7 @@ attr_accessor :vr_renderer, :column_keys, :vr_cols
386
386
  # using VR::ViewCommon#vr_row.
387
387
 
388
388
  def id(id)
389
- return (id.is_a? Fixnum or id.is_a? Integer) ? id : @column_keys.index(id)
389
+ return (id.is_a? Integer) ? id : @column_keys.index(id)
390
390
  end
391
391
 
392
392
  end
@@ -51,7 +51,7 @@ module VR::Col
51
51
  #puts "DateTime:" + iter[ren.model_col].class.name + ":" + iter[ren.model_col].to_s
52
52
  ren.text = iter[ren.model_col].strftime(ren.date_format).to_s
53
53
  end
54
- elsif type == String or type == Float or type == Integer or type == Fixnum
54
+ elsif type == String or type == Float or type == Integer
55
55
  r = VR::Col::Ren::CellRendererText.new(*a)
56
56
  self.pack_start( r, false )
57
57
  self.add_attribute( r, :text, model_col)
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Generated with glade 3.16.1 -->
2
+ <!-- Generated with glade 3.38.2 -->
3
3
  <interface>
4
4
  <requires lib="gtk+" version="3.0"/>
5
5
  <object class="GtkWindow" id="window1">
6
- <property name="can_focus">False</property>
6
+ <property name="can-focus">False</property>
7
7
  <property name="modal">True</property>
8
8
  <child>
9
9
  <placeholder/>
@@ -75,14 +75,15 @@ class VR_File_Tree < VR::FileTreeView
75
75
  path = get_selected_path()
76
76
  source_code = File.open(path, "r").read
77
77
  class_name = VR_Document.get_class_title(source_code).gsub(".rb", "")
78
- glade_file = File.dirname(path) + "/glade/" + class_name + ".glade"
78
+ glade_file = File.dirname(path) + "/glade/" + class_name + ".glade"
79
79
  if not File.file?(glade_file)
80
80
  path = File.dirname(glade_file)
81
- FileUtils.makedirs(path) if not File.directory?(path)
82
- FileUtils.cp File.expand_path(File.dirname(__FILE__)+"/../../skeleton/document/New.glade"), glade_file
81
+ FileUtils.makedirs(path) if not File.directory?(path)
82
+ blank_glade = File.expand_path(File.dirname(__FILE__)+"/../../skeleton/document/New.glade")
83
+ FileUtils.cp blank_glade, glade_file
83
84
  VR_Tools.popen("#{$VR_ENV_GLOBAL.glade_path} #{glade_file}")
84
- sleep(2) #must do it this way because different thread
85
- File.delete(glade_file)
85
+ # sleep(5) #must do it this way because different thread
86
+ # File.delete(glade_file)
86
87
  else
87
88
  VR_Tools.popen("#{$VR_ENV_GLOBAL.glade_path} #{glade_file}")
88
89
  end
data/src/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = "3.4.5"
1
+ VERSION = "3.4.6"
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.4.5
4
+ version: 3.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Cunningham
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  - !ruby/object:Gem::Version
269
269
  version: '0'
270
270
  requirements: []
271
- rubygems_version: 3.2.15
271
+ rubygems_version: 3.1.2
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Create IDE designed to make great GUIs with Ruby