visualruby 3.1.7 → 3.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1a2ffcc6ca3c2d793e8f50e1672a7c51b671e70
4
- data.tar.gz: 9c53e998be92b88f84d4422592d481647f70cb72
3
+ metadata.gz: 9216c347790872263d9a2b9efbf12b2dc4360d97
4
+ data.tar.gz: 04913ad2f67266ba4f8ed45abddf9642b8790e67
5
5
  SHA512:
6
- metadata.gz: 20e0e6cb106c48a2fae13cc5585cf2b9591d8b857be4fe59e582b0445ac1571fdc25bbe3ead313acf1771a1031a6bd84be233ae107ff1ea68a385a17cb1f0e02
7
- data.tar.gz: 703b6859ca760dac9a898f88a190fc726320a1a7621025d165e627c7b6c27e069aee8359354ab1ff3d7d01c0950b64e147381a8ab04fe9e1bff2592ff2a5b173
6
+ metadata.gz: cbc2f25d7ab4f2d8494712b72da96373cb35ef9653c082de15604336cb08c886cdb289c0a7ab3107845cf45e6fb257938cedf79182a733a16603b56833153ae1
7
+ data.tar.gz: 639e297b21968e4e5b00688b05ffb803a5f6f684e5c19ea048fe1bf5d741904303a436dfabc8bb0a9f3c48b13df1c2b01a3e9aaed5b01db939128ed778cdecf5
data/.vr_settings.yaml CHANGED
@@ -7,17 +7,25 @@ notebook_panel_position: 472
7
7
  run_command_line: ruby vr
8
8
  open_files:
9
9
  - "/home/eric/vrp/vr3/lib/GladeGUI.rb"
10
+ - "/home/eric/vrp/vr3/vr.gemspec"
11
+ - "/home/eric/vrp/vr3/vr"
12
+ - "/home/eric/vrp/vr3/src/editor/VR_Document.rb"
13
+ - "/home/eric/vrp/vr3/src/editor/VR_TabSearch.rb"
14
+ - "/home/eric/vrp/vr3/src/version.rb"
15
+ - "/home/eric/vrp/vr3/site/Download.md"
16
+ - "/home/eric/vrp/vr3/lib/treeview/ListView.rb"
17
+ - "/home/eric/vrp/vr3/src/main/OpenProject.rb"
10
18
  open_folders:
11
19
  - "/home/eric/vrp/vr3"
12
20
  - "/home/eric/vrp/vr3/examples"
13
- - "/home/eric/vrp/vr3/examples/all_widgets"
21
+ - "/home/eric/vrp/vr3/examples/listview"
14
22
  - "/home/eric/vrp/vr3/lib"
15
- - "/home/eric/vrp/vr3/skeleton"
23
+ - "/home/eric/vrp/vr3/lib/treeview"
24
+ - "/home/eric/vrp/vr3/site"
16
25
  - "/home/eric/vrp/vr3/src"
17
- - "/home/eric/vrp/vr3/src/editor"
18
26
  - "/home/eric/vrp/vr3/src/main"
19
- current_file: "/home/eric/vrp/vr3/lib/GladeGUI.rb"
20
- current_line: 460
27
+ current_file: "/home/eric/vrp/vr3/src/main/OpenProject.rb"
28
+ current_line: 84
21
29
  rdoc_command_line: yardoc lib - site/*.*
22
30
  builder: !ruby/object:Gtk::Builder {}
23
31
  top_level_window: false
@@ -1,5 +1,5 @@
1
1
  --- !ruby/object:VR_ENV
2
- vr_yaml_file: ".vr_settings.yaml"
2
+ vr_yaml_file: "/home/eric/vrp/vr3/examples/listview/.vr_settings.yaml"
3
3
  width: 1251
4
4
  height: 691
5
5
  panel_pos: 322
@@ -8,9 +8,10 @@ run_command_line: ruby main.rb
8
8
  open_files:
9
9
  - "/home/eric/vrp/vr3/examples/listview/bin/SongListViewGUI.rb"
10
10
  - "/home/eric/vrp/vr3/examples/listview/main.rb"
11
+ - "/home/eric/vrp/vr3/examples/listview/bin/SongListView.rb"
11
12
  open_folders:
12
13
  - "/home/eric/vrp/vr3/examples/listview"
13
- current_file: "/home/eric/vrp/vr3/examples/listview/main.rb"
14
- current_line: 4
14
+ current_file: "/home/eric/vrp/vr3/examples/listview/bin/SongListView.rb"
15
+ current_line: 28
15
16
  rdoc_command_line: rdoc -x README
16
17
  filename: ".vr_settings.yaml"
@@ -111,7 +111,7 @@ module VR
111
111
 
112
112
  module ViewCommon
113
113
 
114
- attr_accessor :vr_renderer, :column_keys
114
+ attr_accessor :vr_renderer, :column_keys, :vr_cols
115
115
 
116
116
  def load_columns(cols) # :nodoc:
117
117
  @vr_renderer = {}
@@ -77,6 +77,10 @@ module VR::Col
77
77
  self.clickable = id(sym).to_b
78
78
  end
79
79
 
80
+ def sortable=(bool)
81
+ self.sort_column_id = bool ? @view.id(@view.vr_cols.key(self)) : -1
82
+ end
83
+
80
84
  end
81
85
 
82
86
  end
@@ -16,10 +16,15 @@ class VR_Document < GtkSource::View
16
16
  show_right_margin = true
17
17
  right_margin_position = 80
18
18
  auto_indent = true
19
- if ["", ".gemspec", ".erb"].include?(File.extname(full_path_file))
19
+ if ["", ".gemspec"].include?(File.extname(full_path_file))
20
20
  buffer.language = GtkSource::LanguageManager.new.get_language("ruby")
21
- else
22
- buffer.language = GtkSource::LanguageManager.new.guess_language(full_path_file)
21
+ elsif [".html", ".erb"].include?(File.extname(full_path_file))
22
+ buffer.language = GtkSource::LanguageManager.new.get_language("html")
23
+ elsif [".yaml", ".yml"].include?(File.extname(full_path_file))
24
+ buffer.language = GtkSource::LanguageManager.new.get_language("yaml")
25
+ else
26
+ guess_lang = GtkSource::LanguageManager.new.guess_language(File.basename(full_path_file))
27
+ buffer.language = guess_lang
23
28
  end
24
29
  buffer.highlight_syntax = true
25
30
  buffer.highlight_matching_brackets = false
data/src/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = "3.1.7"
1
+ VERSION = "3.1.9"
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.1.7
4
+ version: 3.1.9
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: 2017-03-27 00:00:00.000000000 Z
12
+ date: 2017-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gtk3