glimmer-cs-calculator 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/VERSION +1 -1
- data/lib/views/glimmer/calculator.rb +4 -6
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c251dcad74915fd0a63509a3d1a81ab918ddd04e646430c3eaa0bb91d01781d8
|
4
|
+
data.tar.gz: b2378fcf8514b3c0f84897b35fbfc2cbfa60b75d1a37dc0df43913c6377bbbe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d18ebb7b508fb14de2e56b79f3121e0e081f7a23c9d6c74ec09851194069159dd0be1833fce947a900d5487d30de52ac0d219eeee389b2d87470e4758707323d
|
7
|
+
data.tar.gz: c1e8ba2d22d114e9388da749dc44d91afbdb05361adec1714cfd9ddf45dece1f8231d84588e5d0c7d38f3315f5a525d428ced7af9f6924b99a079f865bbd40a7
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
# <img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" width="60" />
|
1
|
+
# <img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" width="60" /> Glimmer Calculator
|
2
|
+
## [Glimmer Custom Shell](https://github.com/AndyObtiva/glimmer#custom-shell-gem)
|
2
3
|
[![Gem Version](https://badge.fury.io/rb/glimmer-cs-calculator.svg)](http://badge.fury.io/rb/glimmer-cs-calculator)
|
3
4
|
|
4
5
|
![Calculator](glimmer-cs-calculator-screenshot.png)
|
5
6
|
|
6
|
-
Calculator sample desktop GUI application built with [Glimmer](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development Library).
|
7
|
+
Glimmer Calculator is a sample desktop GUI application built with [Glimmer](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development Library).
|
7
8
|
|
8
9
|
It is developed test-first following TDD (Test Driven Development).
|
9
10
|
Design Patterns discovered in the process were Presenter/Facade and Command Pattern.
|
@@ -12,7 +13,7 @@ Follows the MVP architectural pattern (Model View Presenter) thanks to [Glimmer
|
|
12
13
|
|
13
14
|
## Platforms
|
14
15
|
|
15
|
-
- Mac: Tested and [packaged](https://github.com/AndyObtiva/glimmer#packaging--distribution) for the Mac. ([Download Here<img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" width="30" />](https://www.dropbox.com/s/
|
16
|
+
- Mac: Tested and [packaged](https://github.com/AndyObtiva/glimmer#packaging--distribution) for the Mac. ([Download Here<img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" width="30" />](https://www.dropbox.com/s/3fwq5cpetr99f45/Glimmer%20Calculator-1.0.2.dmg?dl=1))
|
16
17
|
- Linux: Not tested/packaged for Linux, but should work by following setup instructions below.
|
17
18
|
- Windows: Not tested/packaged for Windows, but should work by following setup instructions below.
|
18
19
|
|
@@ -43,7 +44,7 @@ To reuse Calculator as a Glimmer Custom Shell inside another Glimmer application
|
|
43
44
|
following to the application's `Gemfile`:
|
44
45
|
|
45
46
|
```
|
46
|
-
gem 'glimmer-cs-calculator', '1.0.
|
47
|
+
gem 'glimmer-cs-calculator', '1.0.2'
|
47
48
|
```
|
48
49
|
|
49
50
|
Run:
|
@@ -56,7 +57,8 @@ And, then instantiate the Calculator custom shell in your Glimmer application vi
|
|
56
57
|
|
57
58
|
## Change Log
|
58
59
|
|
59
|
-
- 1.0.
|
60
|
+
- 1.0.2: Relaxed dependency on glimmer-dsl-swt (>= 0.1.1 < 2.0.0) / updated logo / used new Glimmer `message_box` keyword syntax
|
61
|
+
- 1.0.1: Upgraded to glimmer-dsl-swt v0.1.1 / added delete/backspace shortcut for AC / fixed issues with pressing operations without any number
|
60
62
|
- 1.0.0: Initial calculator implementation
|
61
63
|
|
62
64
|
## Contributing to glimmer-cs-calculator
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
@@ -246,12 +246,10 @@ module Glimmer
|
|
246
246
|
}
|
247
247
|
|
248
248
|
def display_about_dialog
|
249
|
-
message_box
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
message_box.setMessage(message)
|
254
|
-
message_box.open
|
249
|
+
message_box(body_root) {
|
250
|
+
text 'About'
|
251
|
+
message "Glimmer - Calculator #{VERSION}\n#{LICENSE}"
|
252
|
+
}.open
|
255
253
|
end
|
256
254
|
|
257
255
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-cs-calculator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.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-
|
11
|
+
date: 2020-07-16 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
18
|
version: 0.1.1
|
19
|
+
- - "<"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.0.0
|
19
22
|
name: glimmer-dsl-swt
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 0.1.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|