glimmer-cs-gladiator 0.6.2 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +247 -0
- data/LICENSE.txt +1 -1
- data/README.md +25 -7
- data/VERSION +1 -1
- data/glimmer-cs-gladiator.gemspec +72 -0
- data/images/glimmer-cs-gladiator-logo.png +0 -0
- data/lib/models/glimmer/gladiator/dir.rb +2 -2
- data/lib/models/glimmer/gladiator/file.rb +10 -10
- data/lib/views/glimmer/gladiator.rb +581 -600
- data/lib/views/glimmer/gladiator/file_explorer_tree.rb +244 -0
- data/lib/views/glimmer/gladiator/file_lookup_list.rb +64 -0
- data/lib/views/glimmer/gladiator/text_editor.rb +27 -4
- metadata +18 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55dd5d14035a4d76ce686365ba16ab6a49c8f1fcbef2298d171fdeea2b2777b8
|
4
|
+
data.tar.gz: 65e5240faa47773332187063daa9500441ecc2a8a6b117aee646f4bf47162588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77ba3e5e51fc0b9a815ee753c1fbfe839714217a56259dd6a12b6646b08df28a33ecdf5c87dbe169e62fdfd4063d799378fcc7781c46623451ba2d6ac6055fbd
|
7
|
+
data.tar.gz: 20f95fcdaf04f39d4ce979e30846ab2442ac37d416830d63cc95413dd89942c426c36fbc98f2d6328f97e1717f08243cfa5dcb38cea79b0e89873315c4878f39
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,247 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## 0.7.2
|
4
|
+
|
5
|
+
- Fallback font ("Courier") for text editor when "Consolas" is not available
|
6
|
+
- Refactor Gladiator Custom Shell to extract more Glimmer Custom Widgets from it like FileLookupList and FileExplorerTree
|
7
|
+
- Upgrade to glimmer-dsl-swt v4.18.0.2
|
8
|
+
|
9
|
+
## 0.7.1
|
10
|
+
|
11
|
+
- Update View -> Reset All to also reset the File Lookup/File Explorer Sash Width and the Navigation Bar (expanding it)
|
12
|
+
- Fix issue with split, reset split, unsplit, and then split again forgetting the reset for the sash width
|
13
|
+
- Ensure closing a single tab moves user back to the previous tab
|
14
|
+
- Add pkg to ignore paths
|
15
|
+
- Update Reset All menu item to reset splits too
|
16
|
+
|
17
|
+
## 0.7.0
|
18
|
+
|
19
|
+
- Upgrade to glimmer-dsl-swt v4.18.0.0
|
20
|
+
- Implement sash form for separator between file area and editing area to make resizable
|
21
|
+
- Change shortcut for open project from CMD+SHIFT+P to CMD+O
|
22
|
+
- Unsplit pane Menu Item / Keyboard Shortcut (CMD+SHIFT+U)
|
23
|
+
- Maximize Split Pane Size Menu Item / Keyboard Shortcut (CMD+SHIFT+M)
|
24
|
+
- Reset Split Pane Menu Item / Keyboard Shortcut (CMD+SHIFT+M again while maximized or CMD+SHIFT+P to reset split widths)
|
25
|
+
- Maximize Editor Menu Item / Keyboard Shortcut (CMD+CTRL+M)
|
26
|
+
- Reset Editor Menu Item / Keyboard Shortcut (CMD+CTRL+M again while maximized or CMD+CTRL+R to reset all sizes)
|
27
|
+
- Make CMD R and CMD T shortcuts show the file lookup/file explorer if collapsed (just like CMD + F shows navigation area)
|
28
|
+
- Display Accelerators (keyboard shortcuts) on Mac Menu Items
|
29
|
+
- Show exception dialog on error when invoking Run -> Ruby
|
30
|
+
- Fix issue with creating a new directory in a different project from the main one open
|
31
|
+
- Fix issue with quitting gladiator when multiple projects are open requiring multiple presses of CMD+Q
|
32
|
+
|
33
|
+
## 0.6.4
|
34
|
+
|
35
|
+
- Ensured Gladiator logo in the about menu has a white background
|
36
|
+
- Fixed issue on failing to configure Mac Quit menu item on Windows (restricted code to Mac only)
|
37
|
+
|
38
|
+
## 0.6.3
|
39
|
+
|
40
|
+
- Display Gladiator version in window title
|
41
|
+
- Set Gladiator icon on window
|
42
|
+
- Fix issue with wording getting reversed when typing at the end of the file
|
43
|
+
- Fix issue with not being able to add new lines at the end of the file
|
44
|
+
- Fix issue with moving lines down at the end of the file making selection go out of wack
|
45
|
+
- Fix issue with Find keyboard shortcut causing a delay before landing in the Find text field
|
46
|
+
- Fix transient issue of find_next not jumping properly after replacing a term near the end of the line
|
47
|
+
- Fix issue with layout upon split
|
48
|
+
- Fix issue with layout upon opening a new tab
|
49
|
+
- Fix issue with splitting a file showing in both panes and then unsplitting afterwards detaching data-binding
|
50
|
+
- Fix issue with losing changes on exit if I do not focus out on a file
|
51
|
+
|
52
|
+
## 0.6.2
|
53
|
+
|
54
|
+
- Speed up startup time by not truly opening all files beyond showing their tab (till navigated to)
|
55
|
+
- Made CMD+F and CMD+L expand navigation section if collapsed
|
56
|
+
- Made CMD+R expand file lookup section if collapsed
|
57
|
+
- Made CMD+T expand file explorer section if collapsed
|
58
|
+
- Fix this issue: Type till the end of the line. Hit CMD+SHIFT+ENTER to jump to the previous line while inserting a line. It jumps to the next line instead as if I did CMD+ENTER
|
59
|
+
- Fix issue with closing a project shell with an x mouse click requiring multiple presses for every tab open
|
60
|
+
- Fix issue with inserting new line via CMD+ENTER not maintaining indentation
|
61
|
+
|
62
|
+
## 0.6.1
|
63
|
+
|
64
|
+
- Fixed issue relating to not recording text selection correctly when done by mouse
|
65
|
+
|
66
|
+
## 0.6.0
|
67
|
+
|
68
|
+
- Collapsable File Lookup/File Explorer/Navigation Expand Bars
|
69
|
+
- Improve Undo/Redo support by making it work for simple text editing
|
70
|
+
- Clear Undo/Redo history for a file upon closing
|
71
|
+
- Fix issue with the text editor caret dancing uncontrollably
|
72
|
+
- Fix issue with quickly moving multiple lines up or down sometimes splintering and losing multi-line selection
|
73
|
+
|
74
|
+
## 0.5.4
|
75
|
+
|
76
|
+
- CMD+SHIFT+O now splits the Text Editor without requiring Drag & Drop
|
77
|
+
- Close open files when deleting their parent directory
|
78
|
+
- Make rename refocus on the file renamed in the tree if different from the file being edited
|
79
|
+
- Save/Load Config for the Split Orientation
|
80
|
+
- Right aligned line numbers in Scratchpad and new files
|
81
|
+
- Show a friendly progress message when opening last open files
|
82
|
+
- Use SashForm for container/separator of File Lookup List and File Explorer Tree, making them resizable
|
83
|
+
- Enhance startup performance by only loading content of last open files
|
84
|
+
- Avoid extra writes to open files when no changes occurred
|
85
|
+
- Upgrade to glimmer-dsl-swt gem v4.17.10.1
|
86
|
+
- Upgrade to clipboard gem v1.3.5
|
87
|
+
- Fix issue with over-refreshing directories on focus out and back in
|
88
|
+
- Fix glitches with certain single line file operations causing unnecessary text editor scroll jitter
|
89
|
+
- Fix issue with creating directories not allowing save/rename
|
90
|
+
- Fix issue with crashing when closing a file and then trying to delete another file from the tree (might happen if you try to rename closed file) says getData returned nil
|
91
|
+
- Fix issue with line numbers not lining up perfectly with code/text lines in non-ruby files
|
92
|
+
|
93
|
+
## 0.5.3
|
94
|
+
|
95
|
+
- Upgraded to glimmer-dsl-swt v4.17.8.3, with performance optimizations for `code_text`
|
96
|
+
|
97
|
+
## 0.5.2
|
98
|
+
|
99
|
+
- Fix issue with file/directory rename not working
|
100
|
+
- Fix issue with not renaming tab text when renaming file
|
101
|
+
- Fix issue with not closing tab when deleting file
|
102
|
+
|
103
|
+
## 0.5.1
|
104
|
+
|
105
|
+
- Fixed a Windows issue with opening Ruby styled text editors
|
106
|
+
|
107
|
+
## 0.5.0
|
108
|
+
|
109
|
+
- File Menu to allow Opening a Project
|
110
|
+
- Scratchpad for running any Ruby/Glimmer code for experimentation/debugging/instrumenting
|
111
|
+
- CTRL+A and CTRL+E shortcuts for beginning of line and end of line
|
112
|
+
- Minor performance optimization by not syntax highlighting file line numbers (using standard uniform foreground coloring)
|
113
|
+
- Fix issue with going back to top of file when CMD+Tabbing to another app (losing focus) and then coming back (gaining focus)
|
114
|
+
- Fix tree slow refresh and lost refreshes on directory file changes
|
115
|
+
- Fix scroll jitter on move line up/down
|
116
|
+
- Fix issue with opening the last file open on both sides of split text editor upon launching Gladiator
|
117
|
+
- Fix issue with producing extra space at the end of some lines
|
118
|
+
- Fix issue with CMD+4 not working for jumping to the 4th tab
|
119
|
+
- Fix issue with keyboard shortcuts triggered in multiple projects
|
120
|
+
|
121
|
+
## 0.4.1
|
122
|
+
|
123
|
+
- Do not enable Ruby syntax highlighting in non-Ruby files
|
124
|
+
|
125
|
+
## 0.4.0
|
126
|
+
|
127
|
+
- Syntax highlighting
|
128
|
+
- Run menu with current file menu item
|
129
|
+
- View menu with Split Horizontal/Vertical
|
130
|
+
- Change split orientation with CMD+SHIFT+O shortcut
|
131
|
+
- Run current file shortcut CMD+SHIFT+R
|
132
|
+
- Fix issue with line numbers not scrolling perfectly along with open file (off by a few pixels)
|
133
|
+
- Fix select-all with code_text
|
134
|
+
- Fix tab with code_text
|
135
|
+
- Fix caret position after tab with code_text
|
136
|
+
- Fix issue with ENTER key not putting caret parallel to previous line start
|
137
|
+
- Fix issue with jumping to bottom when doing CMD+] or [ for indent
|
138
|
+
- Fix multi-line operations/post-selection with code_text (e.g. comment/uncomment, indent right or left)
|
139
|
+
- Fix issue with jumping one line up or down when doing CMD+] or [ for indent
|
140
|
+
- Fix CMD+ENTER and CMD+SHIFT+ENTER with code_text
|
141
|
+
- Fix Move Line Up or Move Line Down with code_text
|
142
|
+
- Fix jumping across pages of code on Find Next with code_text (it stays in the same page)
|
143
|
+
- Fix issue with jumping back to beginning of file upon very quick indent/outdent
|
144
|
+
|
145
|
+
## 0.3.1
|
146
|
+
|
147
|
+
- Fixed issue with Find/Replace revisiting the same word after Replace, making it jump to the next one.
|
148
|
+
- Add 'vendor' to ignore paths
|
149
|
+
|
150
|
+
## 0.3.0
|
151
|
+
|
152
|
+
- Support Ignore Paths ('packges' and 'tmp' by default) to avoid slowing down editor with irrelevant files
|
153
|
+
- Upgrade support to glimmer-dsl-swt 4.17.2.0 up to 5.0.0.0
|
154
|
+
|
155
|
+
## 0.2.4
|
156
|
+
|
157
|
+
- Remember split windows on restart
|
158
|
+
- Fix issue with not being able to rename file by hitting ENTER
|
159
|
+
|
160
|
+
## 0.2.3
|
161
|
+
|
162
|
+
- Improved performance of file lookup list and display of directories (removing current local directory from file prefix)
|
163
|
+
|
164
|
+
## 0.2.2
|
165
|
+
|
166
|
+
- Upgraded to glimmer-dsl-swt 0.4.0
|
167
|
+
|
168
|
+
## 0.2.1
|
169
|
+
|
170
|
+
- Drag and Drop Text Editor Split Screen Support (drag from tree or file lookup list)
|
171
|
+
- Fix issue with not rendering list and tree sometimes upon opening a small file like VERSION
|
172
|
+
|
173
|
+
## 0.2.0
|
174
|
+
|
175
|
+
- Upgraded to glimmer 0.9.1 / glimmer-dsl-swt 0.1.0
|
176
|
+
- Fixed unopen-file related bugs
|
177
|
+
|
178
|
+
## 0.1.8
|
179
|
+
|
180
|
+
- Undo/Redo
|
181
|
+
- Case-sensitive Find (and Replace by extension)
|
182
|
+
- Make CMD+SHIFT+] at the last tab go to the first tab (and vice versa with CMD+SHIFT+[)
|
183
|
+
- Fix Line/Find/Replace actions when no file is open (to avoid crash)
|
184
|
+
- Fix issue with file lookup list expanding all the way down, covering the file tree
|
185
|
+
- Fix issue with hitting home/end with selection keeping selection instead of removing it
|
186
|
+
- Fix issue with crashing if no file was open, no file is found in lookup list, and you attempt to hit enter in keyboard
|
187
|
+
|
188
|
+
## 0.1.7
|
189
|
+
|
190
|
+
- Relaxed Glimmer version requirement
|
191
|
+
|
192
|
+
## 0.1.6
|
193
|
+
|
194
|
+
- Support Linux explicitly (sort of)
|
195
|
+
- Make file tree maintain expansion state on refreshes caused by internal & external changes
|
196
|
+
|
197
|
+
## 0.1.5
|
198
|
+
|
199
|
+
- Remember all open text editor tabs when closing and reopening
|
200
|
+
- Support closing text editor tabs with keyboard shortcuts (closing current tab, closing all tabs other than current one, closing all tabs)
|
201
|
+
- Support prefix new indented line when hitting CMD+SHIFT+ENTER in the middle of a line
|
202
|
+
- Make CMD+T auto-select open file in file tree
|
203
|
+
- Make gladiator command accept directory argument instead of LOCAL_DIR and automatically open directory passed in
|
204
|
+
- Fix rename bug for when focusing out without changing name
|
205
|
+
- Fix bug with opening file with ENTER key from file tree
|
206
|
+
- Fix issue with changes not persisting when done via find/replace on a newly browsed to tab
|
207
|
+
|
208
|
+
## 0.1.4
|
209
|
+
|
210
|
+
- Fix issue with file explorer tree losing selection on refresh
|
211
|
+
- Fix file explorer opening of files on every selection change instead of just hitting ENTER or mouse click
|
212
|
+
- Fix issue with refreshing the tree on every tab switch after making changes (make it check if change is coming from any of all tabs)
|
213
|
+
- Fix issue with top index not being set from config
|
214
|
+
- Make file explorer tree show file/directory names not paths
|
215
|
+
- Make file explorer tree show current project directory name as the root instead of "."
|
216
|
+
- Make file explorer shortcut auto-reveal open file in file explorer tree
|
217
|
+
- Make hitting ESC button in line number field, file lookup field, find field, or replace field go back to open file to the same caret position as before
|
218
|
+
- Make hitting ESC button in file explorer go back to open file to the same caret position as before and reselect it
|
219
|
+
- Improve file lookup by ignoring dots
|
220
|
+
- Add number command + 2-8 tab shortcuts
|
221
|
+
- Add a new file through File Explorer
|
222
|
+
- Add a new directory through File Explorer
|
223
|
+
- Delete a file or directory through File Explorer
|
224
|
+
- Support auto-indent on hitting ENTER to add a new line
|
225
|
+
- Support insert new indented line when hitting CMD+ENTER in the middle of a line
|
226
|
+
|
227
|
+
## 0.1.3
|
228
|
+
|
229
|
+
- Fix issue with selection getting out of wack when moving a group of lines up or down
|
230
|
+
- Fix issue with Find not working for more than one occurrence in a line
|
231
|
+
- Fix issue with kill line sometimes jumping to the next line afterwards. Seems to happen if following line is empty
|
232
|
+
- Fix issue with line numbers sometimes getting clipped when openig a new file until resizing window
|
233
|
+
- Support multiple tabs
|
234
|
+
- Support tab keyboard shortcuts for next tab, previous tab, first tab, last tab
|
235
|
+
- Remember window size and location
|
236
|
+
|
237
|
+
## 0.1.2
|
238
|
+
|
239
|
+
- Fix issue with file name on top being clipped
|
240
|
+
- Fix issue with Find/Replace not working correctly for first line in the file (being off by one character)
|
241
|
+
|
242
|
+
## 0.1.1
|
243
|
+
|
244
|
+
- Fix issue with tab button killing selection (make it indent instead)
|
245
|
+
- Fix issue with crashing upon permission denied for opening a file
|
246
|
+
- Fix issue with storing .gladiator in running directory instead of LOCAL_DIR when specified
|
247
|
+
- Make entering the file lookup list automatically highlight the first element
|
data/LICENSE.txt
CHANGED
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 0.
|
1
|
+
# <img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.svg' height=85 /> Gladiator 0.7.2 - [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
|
|
@@ -13,6 +13,8 @@ I leave building truly professional text editors to software tooling experts who
|
|
13
13
|
|
14
14
|
Gladiator currently supports the following text editing features (including keyboard shortcuts with Mac CMD=CTRL on Windows/Linux)
|
15
15
|
|
16
|
+
![Gladiator Demo](images/glimmer-gladiator.gif)
|
17
|
+
|
16
18
|
### Text Editor
|
17
19
|
|
18
20
|
- Text Editor with Colored Ruby Syntax Highlighting
|
@@ -47,8 +49,18 @@ Gladiator currently supports the following text editing features (including keyb
|
|
47
49
|
|
48
50
|
### Menus
|
49
51
|
|
50
|
-
- File Menu
|
51
|
-
-
|
52
|
+
- File Menu:
|
53
|
+
- Open Project (CMD+O)
|
54
|
+
- Quit Project (CMD+ALT+Q)
|
55
|
+
- New Scratchpad for running arbitrary Ruby/Glimmer code without saving to disk (CMD+SHIFT+S)
|
56
|
+
- View Menu
|
57
|
+
- Split Pane
|
58
|
+
- Orientation change to Horizontal/Vertical (CMD+SHIFT+O)
|
59
|
+
- Maximize Pane: maximizes current pane in split pane to take entire area (CMD+SHIFT+M)
|
60
|
+
- Reset Panes: resets pane sizes if split width/height was adjusted (CMD+SHIFT+P)
|
61
|
+
- Unsplit: closes the second pane (CMD+SHIFT+U)
|
62
|
+
- Maximize Editor: maximizes editor area to hide file lookup list and file explorer tree (CMD+CTRL+M)
|
63
|
+
- Reset All: resizes sizes of all areas in the editor (CMD+CTRL+R)
|
52
64
|
- Run Menu to run Ruby code (CMD+SHIFT+R)
|
53
65
|
|
54
66
|
### Watch External Changes
|
@@ -70,12 +82,14 @@ Gladiator currently supports the following text editing features (including keyb
|
|
70
82
|
|
71
83
|
## Pre-requisites
|
72
84
|
|
73
|
-
- [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) (JRuby Desktop Development GUI Framework): '>= 4.17.2.0', '< 5.0.0.0' (dependency included in Ruby gem).
|
74
|
-
- [JRuby](https://www.jruby.org/download): Same version required by [Glimmer](https://github.com/AndyObtiva/glimmer-dsl-swt)
|
75
85
|
- [JDK](https://www.oracle.com/java/technologies/javase-downloads.html): Same version required by [Glimmer](https://github.com/AndyObtiva/glimmer-dsl-swt)
|
86
|
+
- [JRuby](https://www.jruby.org/download): Same version required by [Glimmer](https://github.com/AndyObtiva/glimmer-dsl-swt)
|
87
|
+
- [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) (JRuby Desktop Development GUI Framework): '>= 4.17.2.0', '< 5.0.0.0' (dependency included in Ruby gem).
|
76
88
|
|
77
89
|
## Setup Instructions
|
78
90
|
|
91
|
+
Note: if you encounter any issues, check if they are documented in [TODO.md](TODO.md), [issues](https://github.com/AndyObtiva/glimmer-cs-gladiator/issues), or [pull requests](https://github.com/AndyObtiva/glimmer-cs-gladiator/pulls) as they might be on my radar to fix. Otherwise, please report as an [issue](https://github.com/AndyObtiva/glimmer-cs-gladiator/issues) or better yet fix and submit a [pull request](https://github.com/AndyObtiva/glimmer-cs-gladiator/pulls).
|
92
|
+
|
79
93
|
Install Gladiator gem by running (`jgem`, `jruby -S gem`, or `gem` directly if you have [RVM](https://rvm.io/)):
|
80
94
|
|
81
95
|
```
|
@@ -136,7 +150,7 @@ To reuse Gladiator as a Glimmer Custom Shell inside another Glimmer application,
|
|
136
150
|
following to the application's `Gemfile`:
|
137
151
|
|
138
152
|
```
|
139
|
-
gem 'glimmer-cs-gladiator', '
|
153
|
+
gem 'glimmer-cs-gladiator', '>= 0.7.2'
|
140
154
|
```
|
141
155
|
|
142
156
|
Run:
|
@@ -182,6 +196,10 @@ The signal TERM is in use by the JVM and will not work correctly on this platfor
|
|
182
196
|
|
183
197
|
[TODO.md](TODO.md)
|
184
198
|
|
199
|
+
## Change Log
|
200
|
+
|
201
|
+
[CHANGELOG.md](CHANGELOG.md)
|
202
|
+
|
185
203
|
## Contributing to glimmer-cs-gladiator
|
186
204
|
|
187
205
|
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
@@ -196,7 +214,7 @@ The signal TERM is in use by the JVM and will not work correctly on this platfor
|
|
196
214
|
|
197
215
|
[MIT](https://opensource.org/licenses/MIT)
|
198
216
|
|
199
|
-
Copyright (c) 2020 Andy Maleh. See [LICENSE.txt](LICENSE.txt) for further details.
|
217
|
+
Copyright (c) 2020-2021 Andy Maleh. See [LICENSE.txt](LICENSE.txt) for further details.
|
200
218
|
|
201
219
|
--
|
202
220
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.2
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: glimmer-cs-gladiator 0.7.2 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "glimmer-cs-gladiator".freeze
|
9
|
+
s.version = "0.7.2"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["Andy Maleh".freeze]
|
14
|
+
s.date = "2021-01-17"
|
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
|
+
s.email = "andy.am@gmail.com".freeze
|
17
|
+
s.executables = ["gladiator".freeze]
|
18
|
+
s.extra_rdoc_files = [
|
19
|
+
"LICENSE.txt",
|
20
|
+
"README.md"
|
21
|
+
]
|
22
|
+
s.files = [
|
23
|
+
"CHANGELOG.md",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.md",
|
26
|
+
"VERSION",
|
27
|
+
"bin/gladiator",
|
28
|
+
"bin/gladiator_runner.rb",
|
29
|
+
"glimmer-cs-gladiator.gemspec",
|
30
|
+
"images/glimmer-cs-gladiator-logo.png",
|
31
|
+
"lib/glimmer-cs-gladiator.rb",
|
32
|
+
"lib/models/glimmer/gladiator/command.rb",
|
33
|
+
"lib/models/glimmer/gladiator/dir.rb",
|
34
|
+
"lib/models/glimmer/gladiator/file.rb",
|
35
|
+
"lib/views/glimmer/gladiator.rb",
|
36
|
+
"lib/views/glimmer/gladiator/file_explorer_tree.rb",
|
37
|
+
"lib/views/glimmer/gladiator/file_lookup_list.rb",
|
38
|
+
"lib/views/glimmer/gladiator/text_editor.rb"
|
39
|
+
]
|
40
|
+
s.homepage = "http://github.com/AndyObtiva/glimmer-cs-gladiator".freeze
|
41
|
+
s.licenses = ["MIT".freeze]
|
42
|
+
s.rubygems_version = "3.0.6".freeze
|
43
|
+
s.summary = "Gladiator (Glimmer Editor) - Glimmer Custom Shell - Text Editor Built in Ruby".freeze
|
44
|
+
|
45
|
+
if s.respond_to? :specification_version then
|
46
|
+
s.specification_version = 4
|
47
|
+
|
48
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
49
|
+
s.add_runtime_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.18.0.2", "< 5.0.0.0"])
|
50
|
+
s.add_runtime_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
|
51
|
+
s.add_runtime_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
|
52
|
+
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
|
53
|
+
s.add_development_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
|
54
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
55
|
+
else
|
56
|
+
s.add_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.18.0.2", "< 5.0.0.0"])
|
57
|
+
s.add_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
|
58
|
+
s.add_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
|
59
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
|
60
|
+
s.add_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
|
61
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
62
|
+
end
|
63
|
+
else
|
64
|
+
s.add_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.18.0.2", "< 5.0.0.0"])
|
65
|
+
s.add_dependency(%q<filewatcher>.freeze, ["~> 1.1.1"])
|
66
|
+
s.add_dependency(%q<clipboard>.freeze, ["~> 1.3.5"])
|
67
|
+
s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
|
68
|
+
s.add_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
|
69
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
Binary file
|
@@ -36,7 +36,7 @@ module Glimmer
|
|
36
36
|
end
|
37
37
|
self.path = ::File.expand_path(path)
|
38
38
|
@name = ::File.basename(::File.expand_path(path))
|
39
|
-
@ignore_paths = ['.gladiator', '.git', 'coverage', 'packages', 'node_modules', 'tmp', 'vendor']
|
39
|
+
@ignore_paths = ['.gladiator', '.git', 'coverage', 'packages', 'node_modules', 'tmp', 'vendor', 'pkg']
|
40
40
|
self.filtered_path_options = []
|
41
41
|
end
|
42
42
|
|
@@ -60,7 +60,7 @@ module Glimmer
|
|
60
60
|
def name=(the_name)
|
61
61
|
self.display_path = display_path.sub(/#{Regexp.escape(@name)}$/, the_name)
|
62
62
|
@name = the_name
|
63
|
-
new_path = ::File.expand_path(display_path)
|
63
|
+
new_path = @project_dir.nil? ? ::File.expand_path(display_path) : ::File.join(project_dir.path, display_path)
|
64
64
|
FileUtils.mv(path, new_path)
|
65
65
|
self.path = display_path
|
66
66
|
end
|
@@ -512,20 +512,20 @@ module Glimmer
|
|
512
512
|
end
|
513
513
|
|
514
514
|
def run
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
load path
|
521
|
-
end
|
522
|
-
rescue SyntaxError, StandardError => e
|
523
|
-
puts e.full_message
|
515
|
+
if scratchpad?
|
516
|
+
eval content
|
517
|
+
else
|
518
|
+
write_dirty_content
|
519
|
+
load path
|
524
520
|
end
|
525
521
|
end
|
526
522
|
|
527
523
|
def lines
|
528
|
-
dirty_content.
|
524
|
+
need_padding = dirty_content.to_s.end_with?("\n")
|
525
|
+
splittable_content = need_padding ? "#{dirty_content} " : dirty_content
|
526
|
+
the_lines = splittable_content.split("\n")
|
527
|
+
the_lines[-1] = the_lines[-1].strip if need_padding
|
528
|
+
the_lines
|
529
529
|
end
|
530
530
|
|
531
531
|
def line_for_caret_position(caret_position)
|