glimmer-cs-gladiator 0.9.3 → 0.10.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: c9fe30eefc5c3923391eb43b43abcc38d02c2ec18d069186c88d387ec2123f60
4
- data.tar.gz: c2fe1f3df4c146da6d18c62f6e4a41bb0399819ec5010ab1ce70c81ef2cebb77
3
+ metadata.gz: d01657c9b03099dad70892558d43a585ff5d26a01227081cd94a3b8b9d8f224a
4
+ data.tar.gz: d81be798b72b493faaf307b3e888fe1a02bd4bfe6e609d1171e6720254a178d5
5
5
  SHA512:
6
- metadata.gz: ea3efd4908c8b7c9c880f99a0349f922622cdbb126f7d67ec992d8496261f045e7686511499062a5f7cc83e68ec9ad47b66a879fa8a4c5ecbfbe80f4479de1bf
7
- data.tar.gz: 228847459b2aecec37322ebd165b48f3f196cf9135a31bba8216e18312aa9c5d1a4d0ba4288308af4c8ff7b848b67fd557ce890846d8d8bae7b3ba342f6d6ea1
6
+ metadata.gz: b6d107d000349c67c0e101e369a510683735000650cac6aa1fc0367690e5cabbd5c3777c52cd1ab72732c4ebb00abf0bbfa9d4ef3d208a1af5f056542245e0b7
7
+ data.tar.gz: 34d47289ce397dff8750f33be12e2aa0a3fb5efbb36a62870803f9bf7009f87541f7ed14f1028ce7a0a3abecc29700cc444f0971de69ba63891658a6f88ad849
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.10.0
4
+
5
+ - Upgrade to glimmer-dsl-swt 4.23.0.0
6
+ - Upgrade to JRuby 9.3.4.0
7
+ - Compatibility with ARM64 machines
8
+ - Support `.jsx` and `.rake` file extensions
9
+ - Add `'test/reports'` to `ignore_paths`
10
+
3
11
  ## 0.9.3
4
12
 
5
13
  - Support new file formats: 'cr', 'cc', 'C', 'cxx', 'c++', 'hpp', 'hh', 'H', 'hxx', 'h++', 'conf',
data/README.md CHANGED
@@ -1,15 +1,21 @@
1
- # <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=85 /> Gladiator 0.9.3 - [Ugliest Text Editor Ever!](https://www.reddit.com/r/ruby/comments/hgve8k/gladiator_glimmer_editor_ugliest_text_editor_ever/)
1
+ # <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=85 /> Gladiator 0.10.0 - [Ugliest Text Editor Ever!](https://www.reddit.com/r/ruby/comments/hgve8k/gladiator_glimmer_editor_ugliest_text_editor_ever/)
2
2
  ## [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 /> Glimmer Custom Shell](https://github.com/AndyObtiva/glimmer-dsl-swt#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
 
5
+ Mac
6
+
5
7
  ![Gladiator](images/glimmer-gladiator.png)
6
8
 
9
+ Windows
10
+
11
+ ![Gladiator](images/glimmer-gladiator-windows.png)
12
+
7
13
  [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator) (short for Glimmer Editor) is a [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) sample beta project under on-going development that demonstrates how to build a text editor in Ruby using [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) (JRuby Desktop Development GUI Library).
8
14
  It is not intended to be a full-fledged editor by any means, yet mostly a fun educational exercise in using [Glimmer](https://github.com/AndyObtiva/glimmer).
9
15
  [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator) is also a personal tool for shaping an editor exactly the way I like, with all the keyboard shortcuts I prefer.
10
16
  I leave building truly professional text editors to software tooling experts who would hopefully use [Glimmer](https://github.com/AndyObtiva/glimmer) one day. Otherwise, I have been happily using [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator) to develop all my [projects](https://github.com/AndyObtiva) since May of 2020.
11
17
 
12
- You may now [download](#download) a packaged version of [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator).
18
+ You may now [download](#download) a packaged version of [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator), including new support for Mac ARM64.
13
19
 
14
20
  ## Features
15
21
 
@@ -79,42 +85,43 @@ You may now [download](#download) a packaged version of [Gladiator](https://ruby
79
85
  ### Multiple Language Syntax Highlighting
80
86
 
81
87
  Here is an exhaustive list of the file formats supported by [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator):
82
- - C (`'c', 'h'`)
83
- - Crystal (`'cr'`)
84
- - C++ (`'cpp', 'cc', 'C', 'cxx', 'c++', 'hpp', 'hh', 'H', 'hxx', 'h++'`)
85
- - CSS (`'css'`)
86
- - Conf (`'conf'`)
87
- - CoffeeScript (`'coffee'`)
88
- - ERB (`'erb'`)
89
- - Gherkin Feature (`'feature'`)
90
- - Gradle (`'gradle'`)
91
- - Haml (`'haml'`)
92
- - HTML (`'html'`)
93
- - INI (`'ini'`)
94
- - Java (`'java'`)
95
- - JavaScript (`'js', 'cjs', 'mjs', 'es6', 'es'`)
96
- - JSON (`'json'`)
97
- - JSP (`'jsp'`)
98
- - Kotlin (`'kt', 'ktm', 'kts'`)
99
- - Make (`'Makefile', 'makefile', 'GNUmakefile'`)
100
- - Markdown (`'md', 'markdown'`)
101
- - Diff Patch (`'patch'`)
102
- - Pearl (`'pl'`)
103
- - Plist (`'plist'`)
104
- - Puppet (`'pp'`)
105
- - Properties (`'properties'`)
106
- - PostScript (`'ps'`)
107
- - PowerShell (`'ps1'`)
108
- - Python (`'py'`)
109
- - Ruby (`'rb'`)
110
- - SASS (`'sass'`)
111
- - Scheme (`'scm', 'sps', 'sls', 'sld'`)
112
- - SCSS (`'scss'`)
113
- - Shell (`'sh'`)
114
- - SQL (`'sql'`)
115
- - Tcl (`'tcl'`)
116
- - Yaml (`'yaml', 'yml'`)
117
- - XML (`'xml'`)
88
+ 1. C (`'c', 'h'`)
89
+ 1. C++ (`'cpp', 'cc', 'C', 'cxx', 'c++', 'hpp', 'hh', 'H', 'hxx', 'h++'`)
90
+ 1. Crystal (`'cr'`)
91
+ 1. CSS (`'css'`)
92
+ 1. Conf (`'conf'`)
93
+ 1. CoffeeScript (`'coffee'`)
94
+ 1. ERB (`'erb'`)
95
+ 1. Gherkin Feature (`'feature'`)
96
+ 1. Gradle (`'gradle'`)
97
+ 1. Haml (`'haml'`)
98
+ 1. HTML (`'html'`)
99
+ 1. INI (`'ini'`)
100
+ 1. Java (`'java'`)
101
+ 1. JavaScript (`'js', 'cjs', 'mjs', 'es6', 'es'`)
102
+ 1. JSON (`'json'`)
103
+ 1. JSP (`'jsp'`)
104
+ 1. JSX (`'jsx'`)
105
+ 1. Kotlin (`'kt', 'ktm', 'kts'`)
106
+ 1. Make (`'Makefile', 'makefile', 'GNUmakefile'`)
107
+ 1. Markdown (`'md', 'markdown'`)
108
+ 1. Diff Patch (`'patch'`)
109
+ 1. Perl (`'pl'`)
110
+ 1. Plist (`'plist'`)
111
+ 1. Puppet (`'pp'`)
112
+ 1. Properties (`'properties'`)
113
+ 1. PostScript (`'ps'`)
114
+ 1. PowerShell (`'ps1'`)
115
+ 1. Python (`'py'`)
116
+ 1. Ruby (`'rb'`, `'rake'`)
117
+ 1. SASS (`'sass'`)
118
+ 1. Scheme (`'scm', 'sps', 'sls', 'sld'`)
119
+ 1. SCSS (`'scss'`)
120
+ 1. Shell (`'sh'`)
121
+ 1. SQL (`'sql'`)
122
+ 1. Tcl (`'tcl'`)
123
+ 1. Yaml (`'yaml', 'yml'`)
124
+ 1. XML (`'xml'`)
118
125
 
119
126
  ## Platforms
120
127
 
@@ -124,17 +131,17 @@ Here is an exhaustive list of the file formats supported by [Gladiator](https://
124
131
 
125
132
  ## Pre-requisites
126
133
 
127
- - [JDK](https://www.oracle.com/java/technologies/javase-downloads.html): Same version required by [Glimmer](https://github.com/AndyObtiva/glimmer-dsl-swt)
128
- - [JRuby](https://www.jruby.org/download): Same version required by [Glimmer](https://github.com/AndyObtiva/glimmer-dsl-swt)
134
+ - [JDK](https://www.oracle.com/java/technologies/javase-downloads.html): Same version required by [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt)
135
+ - [JRuby](https://www.jruby.org/download): Same version required by [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt)
129
136
  - [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) (JRuby Desktop Development GUI Framework) (dependency included in Ruby gem).
130
137
 
131
138
  ## Download
132
139
 
133
- [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=40 /> Download Gladiator 0.9.3 Mac DMG Installer (x64 Catalina & Older)](https://www.dropbox.com/s/ppq5owi2p8dgzkl/Gladiator-0.9.3.dmg?dl=1)
140
+ [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=40 /> Download Gladiator 0.10.0 Mac DMG Installer (ARM64 Monterey & Older)](https://www.dropbox.com/s/7qagm9hsm1dyqel/Gladiator-0.10.0-arm64.dmg?dl=1)
134
141
 
135
- [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=40 /> Download Gladiator 0.9.3 Windows MSI Installer (x64 Windows 10)](https://www.dropbox.com/s/36dsfx6fqw8x0kp/Gladiator-0.9.3.msi?dl=1)
142
+ [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=40 /> Download Gladiator 0.10.0 Mac DMG Installer (x64 Catalina & Older)](https://www.dropbox.com/s/rxta4yio71mei8f/Gladiator-0.10.0.dmg?dl=1)
136
143
 
137
- [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=40 /> Download Gladiator 0.9.1 Mac DMG Installer (x64 Big Sur & Older)](https://www.dropbox.com/s/s9yp6qtelh85qko/Gladiator-0.9.1.dmg?dl=1)
144
+ [<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=40 /> Download Gladiator 0.10.0 Windows MSI Installer (x64 Windows 10)](https://www.dropbox.com/s/3arjz0754j5nul2/Gladiator-0.10.0.msi?dl=1)
138
145
 
139
146
  The packaged version starts with a dialog asking you what project to open. [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator) does not fully show up until you have selected a project directory.
140
147
 
@@ -147,7 +154,7 @@ Note: if you encounter any issues, check if they are documented in [TODO.md](TOD
147
154
  Install [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator) gem by running (`jgem`, `jruby -S gem`, or `gem` directly if you have [RVM](https://rvm.io/)):
148
155
 
149
156
  ```
150
- jgem install glimmer-cs-gladiator -v0.9.3
157
+ jgem install glimmer-cs-gladiator -v0.10.0
151
158
  ```
152
159
 
153
160
  Or add to a JRuby project Bundler `Gemfile` under the `:developement` group:
@@ -211,7 +218,7 @@ To reuse [Gladiator](https://rubygems.org/gems/glimmer-cs-gladiator) as a Glimme
211
218
  following to the application's `Gemfile`:
212
219
 
213
220
  ```
214
- gem 'glimmer-cs-gladiator', '~> 0.9.2'
221
+ gem 'glimmer-cs-gladiator', '~> 0.10.0'
215
222
  ```
216
223
 
217
224
  Run:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.3
1
+ 0.10.0
data/bin/gladiator CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
  require 'glimmer/launcher'
25
25
 
26
- gladiator_runner = File.expand_path('../glimmer-cs-gladiator', __FILE__)
26
+ gladiator_runner = File.expand_path('../lib/glimmer-cs-gladiator/launch.rb', __dir__)
27
27
  launcher = Glimmer::Launcher.new([gladiator_runner] + ARGV)
28
28
  local_dir = ARGV.find {|arg| !arg.include?('=') }
29
29
  local_dir = File.expand_path(local_dir) if local_dir
data/bin/gladiator-setup CHANGED
File without changes
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env jruby
2
+
1
3
  # Copyright (c) 2020-2022 Andy Maleh
2
4
  #
3
5
  # Permission is hereby granted, free of charge, to any person obtaining
@@ -19,4 +21,5 @@
19
21
  # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
22
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
23
 
24
+ ENV['APP_MODE'] = 'true'
22
25
  require_relative '../lib/glimmer-cs-gladiator/launch'
@@ -2,20 +2,21 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: glimmer-cs-gladiator 0.9.3 ruby lib
5
+ # stub: glimmer-cs-gladiator 0.10.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glimmer-cs-gladiator".freeze
9
- s.version = "0.9.3"
9
+ s.version = "0.10.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Andy Maleh".freeze]
14
- s.date = "2022-01-29"
14
+ s.date = "2022-07-04"
15
15
  s.description = "Gladiator (short for Glimmer Editor) is a Glimmer sample project under on-going development. It is not intended to be a full-fledged editor by any means, yet mostly a fun educational exercise in using Glimmer to build a text editor. Gladiator is also a personal tool for shaping an editor exactly the way I like. I leave building truly professional text editors to software tooling experts who would hopefully use Glimmer one day.".freeze
16
16
  s.email = "andy.am@gmail.com".freeze
17
17
  s.executables = ["glimmer-cs-gladiator".freeze, "gladiator".freeze, "gladiator-setup".freeze]
18
18
  s.extra_rdoc_files = [
19
+ "CHANGELOG.md",
19
20
  "LICENSE.txt",
20
21
  "README.md"
21
22
  ]
@@ -45,7 +46,7 @@ Gem::Specification.new do |s|
45
46
  s.homepage = "http://github.com/AndyObtiva/glimmer-cs-gladiator".freeze
46
47
  s.licenses = ["MIT".freeze]
47
48
  s.post_install_message = "\nTo make the gladiator command available system-wide (especially with RVM), make sure you run this command with jruby in path: gladiator-setup\n\n".freeze
48
- s.rubygems_version = "3.3.6".freeze
49
+ s.rubygems_version = "3.2.29".freeze
49
50
  s.summary = "Gladiator (Glimmer Editor) - Glimmer Custom Shell - Text Editor Built in Ruby".freeze
50
51
 
51
52
  if s.respond_to? :specification_version then
@@ -53,7 +54,7 @@ Gem::Specification.new do |s|
53
54
  end
54
55
 
55
56
  if s.respond_to? :add_runtime_dependency then
56
- s.add_runtime_dependency(%q<glimmer-dsl-swt>.freeze, ["~> 4.20.16.0"])
57
+ s.add_runtime_dependency(%q<glimmer-dsl-swt>.freeze, ["~> 4.24.0.0"])
57
58
  s.add_runtime_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
58
59
  s.add_runtime_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
59
60
  s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
@@ -62,7 +63,7 @@ Gem::Specification.new do |s|
62
63
  s.add_development_dependency(%q<jruby-jars>.freeze, ["= 9.2.19.0"])
63
64
  s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
64
65
  else
65
- s.add_dependency(%q<glimmer-dsl-swt>.freeze, ["~> 4.20.16.0"])
66
+ s.add_dependency(%q<glimmer-dsl-swt>.freeze, ["~> 4.24.0.0"])
66
67
  s.add_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
67
68
  s.add_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
68
69
  s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
@@ -27,7 +27,7 @@ module Glimmer
27
27
  include Glimmer
28
28
  include Glimmer::DataBinding::ObservableModel
29
29
 
30
- IGNORE_PATHS = ['.gladiator', '.gladiator-scratchpad', '.git', 'coverage', 'packages', 'node_modules', 'tmp', 'vendor', 'pkg', 'dist', 'log']
30
+ IGNORE_PATHS = ['.gladiator', '.gladiator-scratchpad', '.git', 'coverage', 'packages', 'node_modules', 'tmp', 'vendor', 'pkg', 'dist', 'log', 'test/reports']
31
31
 
32
32
  attr_accessor :selected_child, :filter, :children, :filtered_path_options, :filtered_path, :display_path, :ignore_paths
33
33
  attr_reader :name, :parent, :path
@@ -44,9 +44,7 @@ module Glimmer
44
44
  # TODO do fine grained file change only without a refresh delay for enhanced performance
45
45
  begin
46
46
  if !@refresh_in_progress && !filename.include?('new_file') && !ignore_paths.any? { |ignore_path| filename.include?(ignore_path) } && (event != :updated || find_child_file(filename).nil?)
47
- Thread.new {
48
- refresh
49
- }
47
+ Thread.new { refresh }
50
48
  end
51
49
  rescue => e
52
50
  puts e.full_message
@@ -54,10 +54,10 @@ module Glimmer
54
54
  # TODO extract case statement to an external config file
55
55
  when 'c', 'h'
56
56
  'c'
57
- when 'cr'
58
- 'crystal'
59
57
  when 'cpp', 'cc', 'C', 'cxx', 'c++', 'hpp', 'hh', 'H', 'hxx', 'h++'
60
58
  'cpp'
59
+ when 'cr'
60
+ 'crystal'
61
61
  when 'css'
62
62
  'css'
63
63
  when 'conf'
@@ -84,6 +84,8 @@ module Glimmer
84
84
  'json'
85
85
  when 'jsp'
86
86
  'jsp'
87
+ when 'jsx'
88
+ 'jsx'
87
89
  when 'kt', 'ktm', 'kts'
88
90
  'kotlin'
89
91
  when 'md', 'markdown'
@@ -104,7 +106,7 @@ module Glimmer
104
106
  'powershell'
105
107
  when 'py'
106
108
  'python'
107
- when 'rb'
109
+ when 'rb', 'rake'
108
110
  'ruby'
109
111
  when 'sass'
110
112
  'sass'
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.9.3
4
+ version: 0.10.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: 2022-01-29 00:00:00.000000000 Z
11
+ date: 2022-07-04 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: 4.20.16.0
18
+ version: 4.24.0.0
19
19
  name: glimmer-dsl-swt
20
20
  prerelease: false
21
21
  type: :runtime
@@ -23,7 +23,7 @@ dependencies:
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.20.16.0
26
+ version: 4.24.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
@@ -135,6 +135,7 @@ executables:
135
135
  - gladiator-setup
136
136
  extensions: []
137
137
  extra_rdoc_files:
138
+ - CHANGELOG.md
138
139
  - LICENSE.txt
139
140
  - README.md
140
141
  files:
@@ -181,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  - !ruby/object:Gem::Version
182
183
  version: '0'
183
184
  requirements: []
184
- rubygems_version: 3.3.6
185
+ rubygems_version: 3.2.29
185
186
  signing_key:
186
187
  specification_version: 4
187
188
  summary: Gladiator (Glimmer Editor) - Glimmer Custom Shell - Text Editor Built in