glimmer-cs-gladiator 0.1.8 → 0.2.0

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: d1fedd5416ae759bea0cbfa6d14572cedd58f74d14c544a187efb9310c5954c3
4
- data.tar.gz: fd0d141721cb77e391c6a07aea9bbb637d326c22374ffc5e2f157487116f59a2
3
+ metadata.gz: 9397375fcae09b0628d7cea62e30cf9e10e1bccc236a10717bf442824adf9bb4
4
+ data.tar.gz: 46500cd7bcc7636295ea1466369f9ef4a819dac0f27e87615ffec510634ec078
5
5
  SHA512:
6
- metadata.gz: 19c5ae152d5bbe45f434c06da679b1779b844ad180cca79a945f4368d05bb50a2342ca5d085a1ad7c8b06b6aa5a97548c98d4487ee66f0b0be3f4a16089c7d74
7
- data.tar.gz: 3acdffb642c32c894af12b9f4fa27f51a4b04eba7c13dbedc6a5c89e6dc97da7dd1cd79c3c93a75c2c0e7318866d3de33b58ad269ffee29b221632ff21b02348
6
+ metadata.gz: f266d9d55637f38f001f6e80b553a704d85e809b3ccd9fd29ac942bf7ce1b747133964176a42d0cc4fa7e07474fed78c03cce611fadd7d90b0ee5206282d18ac
7
+ data.tar.gz: 4a4f36dac54c4069ef32268342e2698092dff0b19df564e8173db73b63bfa1b515274eb54353ed09f6417afcfa2967f9e2b538caf980d88683d4cff6f753d629
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Gladiator (Glimmer Editor) 0.1.8 - Glimmer Custom Shell
1
+ # Gladiator (Glimmer Editor) 0.2.0 - Glimmer Custom Shell
2
2
  [![Gem Version](https://badge.fury.io/rb/glimmer-cs-gladiator.svg)](http://badge.fury.io/rb/glimmer-cs-gladiator)
3
3
 
4
4
  ![Gladiator](images/glimmer-gladiator.png)
@@ -35,7 +35,7 @@ Gladiator currently supports the following text editing features:
35
35
 
36
36
  ## Pre-requisites
37
37
 
38
- - [Glimmer](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development GUI Library): '>= 0.8.0', '< 2.0.0' (dependency included in Ruby gem).
38
+ - [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development GUI Library): '>= 0.1.0', '< 2.0.0' (dependency included in Ruby gem).
39
39
  - [JRuby](https://www.jruby.org/download): Same version required by [Glimmer](https://github.com/AndyObtiva/glimmer)
40
40
  - [JDK](https://www.oracle.com/java/technologies/javase-downloads.html): Same version required by [Glimmer](https://github.com/AndyObtiva/glimmer)
41
41
 
@@ -61,7 +61,7 @@ To reuse Gladiator as a Glimmer Custom Shell inside another Glimmer application,
61
61
  following to the application's `Gemfile`:
62
62
 
63
63
  ```
64
- gem 'glimmer-cs-gladiator', '0.1.8'
64
+ gem 'glimmer-cs-gladiator', '0.2.0'
65
65
  ```
66
66
 
67
67
  Run:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.2.0
@@ -161,6 +161,7 @@ module Glimmer
161
161
  line_indices_for_selection(caret_position, selection_count).reverse.each do | the_line_index |
162
162
  delta = 0
163
163
  the_line = old_lines[the_line_index]
164
+ return if the_line.nil?
164
165
  if the_line.strip.start_with?('# ')
165
166
  new_lines[the_line_index] = the_line.sub(/# /, '')
166
167
  delta -= 2
@@ -485,6 +485,7 @@ module Glimmer
485
485
  end
486
486
 
487
487
  def delete_tree_item(tree_item)
488
+ return if tree_item.nil?
488
489
  file = tree_item.getData
489
490
  parent_path = ::File.dirname(file.path)
490
491
  file.delete! # TODO consider supporting command undo/redo
@@ -508,6 +509,7 @@ module Glimmer
508
509
  Dir.local_dir.pause_refresh
509
510
  tree_item = @tree.swt_widget.getSelection.first
510
511
  directory_path = extract_tree_item_path(tree_item)
512
+ return if directory_path.nil?
511
513
  if !::Dir.exist?(directory_path)
512
514
  tree_item = tree_item.getParentItem
513
515
  directory_path = ::File.dirname(directory_path)
metadata CHANGED
@@ -1,32 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-cs-gladiator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
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-06-09 00:00:00.000000000 Z
11
+ date: 2020-06-15 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.8.0
18
+ version: 0.1.0
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 2.0.0
22
- name: glimmer
22
+ name: glimmer-dsl-swt
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.8.0
29
+ version: 0.1.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.0.0