glimmer-cs-gladiator 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 46513e411ce6bac81dafe471f6f8bc7834df2c82c0309f0f1db03c98abf709d7
4
- data.tar.gz: 54321b16f31848472e812d12b43a461bb4e45fb45dd3c400dc943c68ff0669ac
3
+ metadata.gz: 1de235cba50741874f8719322e8c35ffea667929d465e23f3fd2df8a4866acb4
4
+ data.tar.gz: 20273095f8e93bff72840e3094ff5f203bc57bf78e0c7ee8b14e0765f7025ca5
5
5
  SHA512:
6
- metadata.gz: a807b9c57b441c9f9aa06c5a4662ae436c5ae2409e8343c3fba5b220bf933b29965fc4b205c5fc5479d42d4fdb5796505cf9f33d56da0419193d684e2def2f60
7
- data.tar.gz: 4b37d08afb361322aabcf54a046dd9bb2e5db7d1b557409fc28d124918a8687e1079bd9927dd83fb149f4428ef3c5b9daf7903c17e5c896d07f150d3191b5333
6
+ metadata.gz: 5aba5bf9ad1ba8f077486dbc0d04da40c2138bf02c32d0565e27a520935da088d811e51bd9c90f868ce24c0775add77914e3dbebdfa4abb89f9333719f79cdcb
7
+ data.tar.gz: cbb76756dae0901141a3c3b2d69849d1aed409e26d1f7a8ff1fa30a410c3e11edfecd93c4ff03e35023aa2ee64a7dccad276878bb563f94c1298c144e93dfc4d
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=85 /> Gladiator (Glimmer Editor) 0.2.1
1
+ # <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=85 /> Gladiator 0.2.2 - [Ugliest Text Editor Ever](https://www.reddit.com/r/ruby/comments/hgve8k/gladiator_glimmer_editor_ugliest_text_editor_ever/)
2
2
  ## [Glimmer Custom Shell](https://github.com/AndyObtiva/glimmer#custom-shell-gem)
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-cs-gladiator.svg)](http://badge.fury.io/rb/glimmer-cs-gladiator)
4
4
 
@@ -93,7 +93,7 @@ To reuse Gladiator as a Glimmer Custom Shell inside another Glimmer application,
93
93
  following to the application's `Gemfile`:
94
94
 
95
95
  ```
96
- gem 'glimmer-cs-gladiator', '~> 0.2.1'
96
+ gem 'glimmer-cs-gladiator', '~> 0.2.2'
97
97
  ```
98
98
 
99
99
  Run:
@@ -152,7 +152,11 @@ The signal TERM is in use by the JVM and will not work correctly on this platfor
152
152
 
153
153
  ## Copyright
154
154
 
155
- Copyright (c) 2020 Andy Maleh. See LICENSE.txt for
155
+ Copyright (c) 2020 Andy Maleh. See [LICENSE.txt](LICENSE.txt) for
156
156
  further details.
157
157
 
158
+ --
159
+
160
+ Built with [Glimmer](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development GUI Library).
161
+
158
162
  Gladiator icon made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -66,7 +66,7 @@ module Glimmer
66
66
  def refresh(async: true, force: false)
67
67
  return if @refresh_paused && !force
68
68
  new_all_children = retrieve_all_children
69
- new_children = retrieve_children
69
+ new_children = retrieve_children
70
70
  refresh_operation = lambda do
71
71
  self.all_children = new_all_children
72
72
  self.children = new_children
@@ -34,7 +34,7 @@ module Glimmer
34
34
  before_body {
35
35
  Display.setAppName('Gladiator')
36
36
  @display = display {
37
- on_event_keydown { |key_event|
37
+ on_swt_keydown { |key_event|
38
38
  if key_event.stateMask == swt(COMMAND_KEY) && extract_char(key_event) == 'f'
39
39
  if @text_editor&.text_widget&.getSelectionText && @text_editor&.text_widget&.getSelectionText&.size.to_i > 0
40
40
  @find_text.swt_widget.setText @text_editor.text_widget.getSelectionText
@@ -193,7 +193,7 @@ module Glimmer
193
193
  Dir.local_dir.selected_child = @tab_item.swt_tab_item.getData('file')
194
194
  }
195
195
  }
196
- on_event_show {
196
+ on_swt_show {
197
197
  @tab_item = the_tab_item
198
198
  @text_editor = the_text_editor
199
199
  @tab_folder = @tab_item.swt_widget.getParent.getData('proxy')
@@ -237,7 +237,7 @@ module Glimmer
237
237
  minimum_size 520, 250
238
238
  size 1440, 900
239
239
  grid_layout 2, false
240
- on_event_close {
240
+ on_swt_close {
241
241
  Dir.local_dir.selected_child&.write_dirty_content
242
242
  }
243
243
  on_widget_disposed {
@@ -348,7 +348,7 @@ module Glimmer
348
348
  }
349
349
  }
350
350
  }
351
- on_event_menudetect { |event|
351
+ on_swt_menudetect { |event|
352
352
  path = extract_tree_item_path(@tree.swt_widget.getSelection.first)
353
353
  @open_menu_item.swt_widget.setEnabled(!::Dir.exist?(path)) if path
354
354
  }
@@ -522,7 +522,7 @@ module Glimmer
522
522
  Dir.local_dir.selected_child_path = @config[:selected_child_path] if @config[:selected_child_path]
523
523
  Dir.local_dir.selected_child&.caret_position = Dir.local_dir.selected_child&.caret_position_for_caret_position_start_of_line(@config[:caret_position].to_i) if @config[:caret_position]
524
524
  Dir.local_dir.selected_child&.top_index = @config[:top_index].to_i if @config[:top_index]
525
- body_root.on_event_show {
525
+ body_root.on_swt_show {
526
526
  swt_widget.setSize(@config[:shell_width], @config[:shell_height]) if @config[:shell_width] && @config[:shell_height]
527
527
  swt_widget.setLocation(@config[:shell_x], @config[:shell_y]) if @config[:shell_x] && @config[:shell_y]
528
528
  @loaded_config = true
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-cs-gladiator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-11 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 0.1.3
18
+ version: 0.4.1
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 2.0.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.1.3
29
+ version: 0.4.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.0.0