glimmer-cs-timer 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/LICENSE.txt +1 -1
- data/README.md +15 -10
- data/VERSION +1 -1
- data/bin/glimmer-cs-timer +1 -3
- data/glimmer-cs-timer.gemspec +0 -0
- data/lib/views/glimmer/timer.rb +44 -8
- data/vendor/jars/org/yaml/snakeyaml/1.28/snakeyaml-1.28.jar +0 -0
- metadata +21 -35
- data/vendor/jars/org/yaml/snakeyaml/1.26/snakeyaml-1.26.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b2fd0bebf03cd12ea78e10a448ad91cfae6d871aea03bbf03baf4f2b4f5dde5
|
4
|
+
data.tar.gz: dbcc2972251cd5f68a6ea0352422a3821d959bb6855a1dbc9513d2cee4ea63dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 668d6a4ea8eea32553867dd363d02b63cb110bb2fe973228ec1178ea919101c3717a7e7105583fccb4fa4ecc114ae06394e0ae0238c2e204bf59b43481e601f8
|
7
|
+
data.tar.gz: 57021f75975c0310defab132f7cd2520fc318479dbac2a3d9128dea0a064a4ea7fa34189e758da7b559ceff4fc11f9a6ba4934293da0b23bd0a7154863df74ff
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# <img src="https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-timer/master/images/glimmer-timer-logo.png" height=80 /> Glimmer Timer
|
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)
|
2
|
+
## [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-swt/master/images/glimmer-logo-hi-res.png" height=40 /> Glimmer Custom Shell](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/docs/reference/GLIMMER_COMMAND.md#custom-shell-gem)
|
3
3
|
|
4
4
|
**Mac Version**
|
5
5
|
|
6
|
-

|
6
|
+

|
7
7
|
|
8
8
|
**Windows Version**
|
9
9
|
<br>
|
@@ -24,9 +24,9 @@
|
|
24
24
|
<br>
|
25
25
|
Glimmer Timer is a sample desktop GUI application built with Glimmer (JRuby Desktop Development GUI Library).
|
26
26
|
|
27
|
-
|
27
|
+
It supports a countdown timer.
|
28
28
|
|
29
|
-
[<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-timer/master/images/glimmer-timer-logo.png" height=40 /> Download Mac Version](https://www.dropbox.com/s/
|
29
|
+
[<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-timer/master/images/glimmer-timer-logo.png" height=40 /> Download Mac Version](https://www.dropbox.com/s/37da66bd2qk4djf/Timer-1.2.0.dmg?dl=1)
|
30
30
|
|
31
31
|
[<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-timer/master/images/glimmer-timer-logo.png" height=40 /> Download Windows Version](https://www.dropbox.com/s/f0epkjarz4l1u5a/Timer-1.1.0.msi?dl=1)
|
32
32
|
|
@@ -35,19 +35,24 @@ Currently supports a countdown timer only.
|
|
35
35
|
### App Installer
|
36
36
|
|
37
37
|
Download and install the right installer for your platform:
|
38
|
-
- [Mac DMG File](https://www.dropbox.com/s/
|
39
|
-
- [Windows MSI File](https://www.dropbox.com/s/f0epkjarz4l1u5a/Timer-1.1.0.msi?dl=1)
|
38
|
+
- [Mac DMG File](https://www.dropbox.com/s/37da66bd2qk4djf/Timer-1.2.0.dmg?dl=1) (Big Sur and Older)
|
39
|
+
- [Windows MSI File](https://www.dropbox.com/s/f0epkjarz4l1u5a/Timer-1.1.0.msi?dl=1) (Windows 10)
|
40
|
+
- [Linux GEM File](https://rubygems.org/gems/glimmer-cs-timer) (All Linux Versions compatible with [SWT's use of GTK](https://www.eclipse.org/swt/faq.php))
|
40
41
|
|
41
42
|
Run by simply opening up the Timer application installed on your system.
|
42
43
|
|
43
44
|
### Command Gem
|
44
45
|
|
45
|
-
The `timer` command can be obtained from the [glimmer-cs-timer](https://rubygems.org/gems/glimmer-cs-timer) [JRuby](https://www.jruby.org/) gem and works on Mac and Linux:
|
46
|
+
The `timer` command can be obtained from the [glimmer-cs-timer](https://rubygems.org/gems/glimmer-cs-timer) [JRuby](https://www.jruby.org/) gem and works on Mac, Windows and Linux:
|
46
47
|
|
47
48
|
- Ensure [Glimmer pre-requisites](https://github.com/AndyObtiva/glimmer-dsl-swt#pre-requisites)
|
48
49
|
- `gem install glimmer-cs-timer` (if you don't have [RVM](https://rvm.io), then prefix with `jruby -S` or run `jgem` instead)
|
49
50
|
- `timer`
|
50
51
|
|
52
|
+
## Tutorial
|
53
|
+
|
54
|
+
[How To Write a Glimmer Timer Desktop App in One Hour](https://andymaleh.blogspot.com/2020/08/writing-glimmer-timer-sample-app-in.html)
|
55
|
+
|
51
56
|
## Development
|
52
57
|
|
53
58
|
### Pre-requisites
|
@@ -67,7 +72,7 @@ To setup for use in another [Glimmer](https://github.com/AndyObtiva/glimmer-dsl-
|
|
67
72
|
Add the following to a Glimmer application `Gemfile`:
|
68
73
|
|
69
74
|
```ruby
|
70
|
-
gem 'glimmer-cs-timer', '1.
|
75
|
+
gem 'glimmer-cs-timer', '1.2.0'
|
71
76
|
```
|
72
77
|
|
73
78
|
Run:
|
@@ -108,10 +113,10 @@ require 'glimmer-cs-timer'
|
|
108
113
|
|
109
114
|
[MIT](https://opensource.org/licenses/MIT)
|
110
115
|
|
111
|
-
Copyright (c) 2020 Andy Maleh.
|
116
|
+
Copyright (c) 2020-2021 Andy Maleh.
|
112
117
|
|
113
118
|
--
|
114
119
|
|
115
|
-
[<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 />](https://github.com/AndyObtiva/glimmer) Built with [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) (JRuby Desktop Development GUI
|
120
|
+
[<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 />](https://github.com/AndyObtiva/glimmer) Built with [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) (JRuby Desktop Development GUI Framework)
|
116
121
|
|
117
122
|
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
|
-
1.
|
1
|
+
1.2.0
|
data/bin/glimmer-cs-timer
CHANGED
data/glimmer-cs-timer.gemspec
CHANGED
Binary file
|
data/lib/views/glimmer/timer.rb
CHANGED
@@ -8,6 +8,7 @@ module Glimmer
|
|
8
8
|
VERSION = File.read(File.join(APP_ROOT, 'VERSION'))
|
9
9
|
LICENSE = File.read(File.join(APP_ROOT, 'LICENSE.txt'))
|
10
10
|
FILE_SOUND_ALARM = File.join(APP_ROOT, 'sounds', 'alarm1.wav')
|
11
|
+
COMMAND_KEY = OS.mac? ? :command : :ctrl
|
11
12
|
|
12
13
|
## Add options like the following to configure CustomShell by outside consumers
|
13
14
|
#
|
@@ -81,7 +82,7 @@ module Glimmer
|
|
81
82
|
@min_spinner = spinner {
|
82
83
|
text_limit 2
|
83
84
|
digits 0
|
84
|
-
maximum
|
85
|
+
maximum 59
|
85
86
|
selection bind(self, :min)
|
86
87
|
enabled bind(self, :countdown, on_read: :!)
|
87
88
|
on_widget_default_selected {
|
@@ -95,7 +96,7 @@ module Glimmer
|
|
95
96
|
@sec_spinner = spinner {
|
96
97
|
text_limit 2
|
97
98
|
digits 0
|
98
|
-
maximum
|
99
|
+
maximum 59
|
99
100
|
selection bind(self, :sec)
|
100
101
|
enabled bind(self, :countdown, on_read: :!)
|
101
102
|
on_widget_default_selected {
|
@@ -133,9 +134,45 @@ module Glimmer
|
|
133
134
|
}
|
134
135
|
menu_bar {
|
135
136
|
menu {
|
136
|
-
text '&
|
137
|
+
text '&Action'
|
138
|
+
|
137
139
|
menu_item {
|
138
|
-
text '
|
140
|
+
text '&Start'
|
141
|
+
accelerator COMMAND_KEY, 's'
|
142
|
+
enabled bind(self, :countdown, on_read: :!)
|
143
|
+
|
144
|
+
on_widget_selected {
|
145
|
+
start_countdown
|
146
|
+
}
|
147
|
+
}
|
148
|
+
menu_item {
|
149
|
+
text 'St&op'
|
150
|
+
enabled bind(self, :countdown)
|
151
|
+
accelerator COMMAND_KEY, 'o'
|
152
|
+
|
153
|
+
on_widget_selected {
|
154
|
+
stop_countdown
|
155
|
+
}
|
156
|
+
}
|
157
|
+
unless OS.mac?
|
158
|
+
menu_item(:separator)
|
159
|
+
menu_item {
|
160
|
+
text 'E&xit'
|
161
|
+
accelerator :alt, :f4
|
162
|
+
|
163
|
+
on_widget_selected {
|
164
|
+
exit(0)
|
165
|
+
}
|
166
|
+
}
|
167
|
+
end
|
168
|
+
}
|
169
|
+
menu {
|
170
|
+
text '&Help'
|
171
|
+
|
172
|
+
menu_item {
|
173
|
+
text '&About'
|
174
|
+
accelerator COMMAND_KEY, :shift, 'a'
|
175
|
+
|
139
176
|
on_widget_selected {
|
140
177
|
display_about_dialog
|
141
178
|
}
|
@@ -154,7 +191,7 @@ module Glimmer
|
|
154
191
|
|
155
192
|
def start_countdown
|
156
193
|
self.countdown = true
|
157
|
-
@stop_button.swt_widget.set_focus
|
194
|
+
@stop_button.swt_widget.set_focus
|
158
195
|
end
|
159
196
|
|
160
197
|
def stop_countdown
|
@@ -168,8 +205,8 @@ module Glimmer
|
|
168
205
|
jar_file_path = FILE_SOUND_ALARM
|
169
206
|
file_path = jar_file_path.sub(/^uri\:classloader\:/, '').sub('//', '/') # the latter sub is needed for Mac
|
170
207
|
object = java.lang.Object.new
|
171
|
-
file_input_stream = object.java_class.resource_as_stream(file_path)
|
172
|
-
file_or_stream = java.io.BufferedInputStream.new(file_input_stream)
|
208
|
+
file_input_stream = object.java_class.resource_as_stream(file_path)
|
209
|
+
file_or_stream = java.io.BufferedInputStream.new(file_input_stream)
|
173
210
|
else
|
174
211
|
file_or_stream = java.io.File.new(FILE_SOUND_ALARM)
|
175
212
|
end
|
@@ -178,7 +215,6 @@ module Glimmer
|
|
178
215
|
clip.open(audio_stream)
|
179
216
|
clip.start
|
180
217
|
rescue => e
|
181
|
-
pd e
|
182
218
|
puts e.full_message
|
183
219
|
end
|
184
220
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,89 +1,75 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-cs-timer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.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:
|
11
|
+
date: 2021-03-02 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.
|
18
|
+
version: 4.18.6.2
|
19
19
|
- - "<"
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 5.0.0.0
|
22
22
|
name: glimmer-dsl-swt
|
23
|
-
prerelease: false
|
24
23
|
type: :runtime
|
24
|
+
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 4.
|
29
|
+
version: 4.18.6.2
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 5.0.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- - "
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 3.5.0
|
39
39
|
name: rspec
|
40
|
-
prerelease: false
|
41
40
|
type: :development
|
41
|
+
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 3.5.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
53
|
-
name:
|
54
|
-
prerelease: false
|
52
|
+
version: 2.4.9
|
53
|
+
name: juwelier
|
55
54
|
type: :development
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - '='
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 1.7.0
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
requirement: !ruby/object:Gem::Requirement
|
63
|
-
requirements:
|
64
|
-
- - '='
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 2.3.9
|
67
|
-
name: jeweler
|
68
55
|
prerelease: false
|
69
|
-
type: :development
|
70
56
|
version_requirements: !ruby/object:Gem::Requirement
|
71
57
|
requirements:
|
72
|
-
- -
|
58
|
+
- - ">="
|
73
59
|
- !ruby/object:Gem::Version
|
74
|
-
version: 2.
|
60
|
+
version: 2.4.9
|
75
61
|
- !ruby/object:Gem::Dependency
|
76
62
|
requirement: !ruby/object:Gem::Requirement
|
77
63
|
requirements:
|
78
|
-
- -
|
64
|
+
- - ">="
|
79
65
|
- !ruby/object:Gem::Version
|
80
66
|
version: 2.0.5
|
81
67
|
name: warbler
|
82
|
-
prerelease: false
|
83
68
|
type: :development
|
69
|
+
prerelease: false
|
84
70
|
version_requirements: !ruby/object:Gem::Requirement
|
85
71
|
requirements:
|
86
|
-
- -
|
72
|
+
- - ">="
|
87
73
|
- !ruby/object:Gem::Version
|
88
74
|
version: 2.0.5
|
89
75
|
- !ruby/object:Gem::Dependency
|
@@ -93,8 +79,8 @@ dependencies:
|
|
93
79
|
- !ruby/object:Gem::Version
|
94
80
|
version: '0'
|
95
81
|
name: simplecov
|
96
|
-
prerelease: false
|
97
82
|
type: :development
|
83
|
+
prerelease: false
|
98
84
|
version_requirements: !ruby/object:Gem::Requirement
|
99
85
|
requirements:
|
100
86
|
- - ">="
|
@@ -107,14 +93,14 @@ dependencies:
|
|
107
93
|
- !ruby/object:Gem::Version
|
108
94
|
version: '0'
|
109
95
|
name: glimmer-cs-gladiator
|
110
|
-
prerelease: false
|
111
96
|
type: :development
|
97
|
+
prerelease: false
|
112
98
|
version_requirements: !ruby/object:Gem::Requirement
|
113
99
|
requirements:
|
114
100
|
- - ">="
|
115
101
|
- !ruby/object:Gem::Version
|
116
102
|
version: '0'
|
117
|
-
description: Timer - Glimmer Custom Shell -
|
103
|
+
description: Timer - Glimmer Custom Shell - It supports a countdown timer
|
118
104
|
email: andy.am@gmail.com
|
119
105
|
executables:
|
120
106
|
- glimmer-cs-timer
|
@@ -137,7 +123,7 @@ files:
|
|
137
123
|
- package/macosx/Timer.icns
|
138
124
|
- package/windows/Timer.ico
|
139
125
|
- sounds/alarm1.wav
|
140
|
-
- vendor/jars/org/yaml/snakeyaml/1.
|
126
|
+
- vendor/jars/org/yaml/snakeyaml/1.28/snakeyaml-1.28.jar
|
141
127
|
- vendor/org/yaml/snakeyaml/1.26/snakeyaml-1.26.jar
|
142
128
|
homepage: http://github.com/AndyObtiva/glimmer-cs-timer
|
143
129
|
licenses:
|
@@ -160,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
146
|
- !ruby/object:Gem::Version
|
161
147
|
version: '0'
|
162
148
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
149
|
+
rubygems_version: 3.0.6
|
164
150
|
signing_key:
|
165
151
|
specification_version: 4
|
166
152
|
summary: Timer - Glimmer Custom Shell
|
Binary file
|