glimmer-cs-calculator 1.0.2 → 1.1.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: c251dcad74915fd0a63509a3d1a81ab918ddd04e646430c3eaa0bb91d01781d8
4
- data.tar.gz: b2378fcf8514b3c0f84897b35fbfc2cbfa60b75d1a37dc0df43913c6377bbbe1
3
+ metadata.gz: 2f0e0c7392ffb6936fc36800a01b046828abdedd02a87b0b5e9ac9a2a2123df0
4
+ data.tar.gz: 60f45b6cc247b361845f8dc183202b486be7e4347649b600a247b8b479faae07
5
5
  SHA512:
6
- metadata.gz: d18ebb7b508fb14de2e56b79f3121e0e081f7a23c9d6c74ec09851194069159dd0be1833fce947a900d5487d30de52ac0d219eeee389b2d87470e4758707323d
7
- data.tar.gz: c1e8ba2d22d114e9388da749dc44d91afbdb05361adec1714cfd9ddf45dece1f8231d84588e5d0c7d38f3315f5a525d428ced7af9f6924b99a079f865bbd40a7
6
+ metadata.gz: 4deffe701265a3e8780556445e84b3f0438d89d3ec0cf4b2c3bea5e8ebd8697171f7c3d8a961272cafdbb9044516cf57da4c2566d3c238de4e82fa9a099a1aba
7
+ data.tar.gz: b1579e191220e1d267bb3a5d525229f563378868008a543b02d88addfa31ab8bdade4af85bf892ab0974d3965dd683059edc4dc01517d20718cbcbedae17a25c
@@ -0,0 +1,17 @@
1
+ # Change Log
2
+
3
+ ## 1.1.0
4
+
5
+ - Upgrade support for glimmer-dsl-swt to 4.17.2.0 up to 5.0.0.0
6
+
7
+ ## 1.0.2
8
+
9
+ - Relaxed dependency on glimmer-dsl-swt (>= 0.1.1 < 2.0.0) / updated logo / used new Glimmer `message_box` keyword syntax
10
+
11
+ ## 1.0.1
12
+
13
+ - Upgraded to glimmer-dsl-swt v0.1.1 / added delete/backspace shortcut for AC / fixed issues with pressing operations without any number
14
+
15
+ ## 1.0.0
16
+
17
+ - Initial calculator implementation
data/README.md CHANGED
@@ -1,19 +1,21 @@
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)
1
+ # <img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" height=85 /> Glimmer Calculator
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-calculator.svg)](http://badge.fury.io/rb/glimmer-cs-calculator)
4
4
 
5
5
  ![Calculator](glimmer-cs-calculator-screenshot.png)
6
6
 
7
- Glimmer Calculator is a 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 DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) (JRuby Desktop Development GUI Library).
8
8
 
9
9
  It is developed test-first following TDD (Test Driven Development).
10
10
  Design Patterns discovered in the process were Presenter/Facade and Command Pattern.
11
11
 
12
- Follows the MVP architectural pattern (Model View Presenter) thanks to [Glimmer data-binding](https://github.com/AndyObtiva/glimmer#data-binding) support.
12
+ Follows the MVP architectural pattern (Model View Presenter) thanks to [Glimmer data-binding](https://github.com/AndyObtiva/glimmer-dsl-swt#data-binding) support.
13
+
14
+ [<img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" height=40 />Download Glimmer Calculator v1.1.0 for the Mac](https://www.dropbox.com/s/6c39vunxmx1eztz/Glimmer%20Calculator-1.1.0.dmg?dl=1)
13
15
 
14
16
  ## Platforms
15
17
 
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))
18
+ - Mac: Tested and [packaged](https://github.com/AndyObtiva/glimmer-dsl-swt#packaging--distribution) for the Mac. ([Download Here](https://www.dropbox.com/s/6c39vunxmx1eztz/Glimmer%20Calculator-1.1.0.dmg?dl=1))
17
19
  - Linux: Not tested/packaged for Linux, but should work by following setup instructions below.
18
20
  - Windows: Not tested/packaged for Windows, but should work by following setup instructions below.
19
21
 
@@ -44,7 +46,7 @@ To reuse Calculator as a Glimmer Custom Shell inside another Glimmer application
44
46
  following to the application's `Gemfile`:
45
47
 
46
48
  ```
47
- gem 'glimmer-cs-calculator', '1.0.2'
49
+ gem 'glimmer-cs-calculator', '1.1.0'
48
50
  ```
49
51
 
50
52
  Run:
@@ -55,11 +57,13 @@ jruby -S bundle
55
57
 
56
58
  And, then instantiate the Calculator custom shell in your Glimmer application via the `calculator` Glimmer DSL keyword.
57
59
 
60
+ ## Feature Suggestions
61
+
62
+ [TODO.md](TODO.md)
63
+
58
64
  ## Change Log
59
65
 
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
62
- - 1.0.0: Initial calculator implementation
66
+ [CHANGELOG.md](CHANGELOG.md)
63
67
 
64
68
  ## Contributing to glimmer-cs-calculator
65
69
 
@@ -73,5 +77,12 @@ And, then instantiate the Calculator custom shell in your Glimmer application vi
73
77
 
74
78
  ## Copyright
75
79
 
76
- Copyright (c) 2020 Andy Maleh. See LICENSE.txt for
77
- further details.
80
+ [MIT](https://opensource.org/licenses/MIT)
81
+
82
+ Copyright (c) 2020 Andy Maleh. See [LICENSE.txt](LICENSE.txt) for further details.
83
+
84
+ --
85
+
86
+ [<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 Library)
87
+
88
+ Gladiator 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.0.2
1
+ 1.1.0
@@ -0,0 +1,71 @@
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-calculator 1.1.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "glimmer-cs-calculator".freeze
9
+ s.version = "1.1.0"
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 = "2020-09-27"
15
+ s.description = "Calculator - Glimmer Custom Shell".freeze
16
+ s.email = "andy.am@gmail.com".freeze
17
+ s.executables = ["glimmer-cs-calculator".freeze, "calculator".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/calculator",
28
+ "bin/glimmer-cs-calculator",
29
+ "glimmer-cs-calculator.gemspec",
30
+ "lib/glimmer-cs-calculator.rb",
31
+ "lib/models/glimmer/calculator/command.rb",
32
+ "lib/models/glimmer/calculator/command/all_clear.rb",
33
+ "lib/models/glimmer/calculator/command/equals.rb",
34
+ "lib/models/glimmer/calculator/command/number.rb",
35
+ "lib/models/glimmer/calculator/command/operation.rb",
36
+ "lib/models/glimmer/calculator/command/operation/add.rb",
37
+ "lib/models/glimmer/calculator/command/operation/divide.rb",
38
+ "lib/models/glimmer/calculator/command/operation/multiply.rb",
39
+ "lib/models/glimmer/calculator/command/operation/subtract.rb",
40
+ "lib/models/glimmer/calculator/command/point.rb",
41
+ "lib/models/glimmer/calculator/presenter.rb",
42
+ "lib/views/glimmer/calculator.rb"
43
+ ]
44
+ s.homepage = "http://github.com/AndyObtiva/glimmer-cs-calculator".freeze
45
+ s.licenses = ["MIT".freeze]
46
+ s.rubygems_version = "3.1.4".freeze
47
+ s.summary = "Calculator - Glimmer Custom Shell".freeze
48
+
49
+ if s.respond_to? :specification_version then
50
+ s.specification_version = 4
51
+ end
52
+
53
+ if s.respond_to? :add_runtime_dependency then
54
+ s.add_runtime_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.17.2.0", "< 5.0.0.0"])
55
+ s.add_runtime_dependency(%q<easily_typable>.freeze, ["~> 1.0.2"])
56
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
57
+ s.add_development_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
58
+ s.add_development_dependency(%q<warbler>.freeze, ["= 2.0.5"])
59
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
60
+ s.add_development_dependency(%q<glimmer-cs-gladiator>.freeze, [">= 0.3.0"])
61
+ else
62
+ s.add_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.17.2.0", "< 5.0.0.0"])
63
+ s.add_dependency(%q<easily_typable>.freeze, ["~> 1.0.2"])
64
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
65
+ s.add_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
66
+ s.add_dependency(%q<warbler>.freeze, ["= 2.0.5"])
67
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
68
+ s.add_dependency(%q<glimmer-cs-gladiator>.freeze, [">= 0.3.0"])
69
+ end
70
+ end
71
+
@@ -32,7 +32,7 @@ module Glimmer
32
32
  # No need for preferences. Just display about dialog.
33
33
  display_about_dialog
34
34
  }
35
- on_event_keydown { |key_event|
35
+ on_swt_keydown { |key_event|
36
36
  char = key_event.character.chr rescue nil
37
37
  @presenter.press(char)
38
38
  }
metadata CHANGED
@@ -1,35 +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.2
4
+ version: 1.1.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-07-16 00:00:00.000000000 Z
11
+ date: 2020-09-27 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.1.1
18
+ version: 4.17.2.0
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: 2.0.0
21
+ version: 5.0.0.0
22
22
  name: glimmer-dsl-swt
23
- type: :runtime
24
23
  prerelease: false
24
+ type: :runtime
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.1.1
29
+ version: 4.17.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 2.0.0
32
+ version: 5.0.0.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
@@ -37,8 +37,8 @@ dependencies:
37
37
  - !ruby/object:Gem::Version
38
38
  version: 1.0.2
39
39
  name: easily_typable
40
- type: :runtime
41
40
  prerelease: false
41
+ type: :runtime
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
@@ -51,8 +51,8 @@ dependencies:
51
51
  - !ruby/object:Gem::Version
52
52
  version: 3.5.0
53
53
  name: rspec
54
- type: :development
55
54
  prerelease: false
55
+ type: :development
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
@@ -65,13 +65,27 @@ dependencies:
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.3.9
67
67
  name: jeweler
68
- type: :development
69
68
  prerelease: false
69
+ type: :development
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - '='
73
73
  - !ruby/object:Gem::Version
74
74
  version: 2.3.9
75
+ - !ruby/object:Gem::Dependency
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - '='
79
+ - !ruby/object:Gem::Version
80
+ version: 2.0.5
81
+ name: warbler
82
+ prerelease: false
83
+ type: :development
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - '='
87
+ - !ruby/object:Gem::Version
88
+ version: 2.0.5
75
89
  - !ruby/object:Gem::Dependency
76
90
  requirement: !ruby/object:Gem::Requirement
77
91
  requirements:
@@ -79,8 +93,8 @@ dependencies:
79
93
  - !ruby/object:Gem::Version
80
94
  version: '0'
81
95
  name: simplecov
82
- type: :development
83
96
  prerelease: false
97
+ type: :development
84
98
  version_requirements: !ruby/object:Gem::Requirement
85
99
  requirements:
86
100
  - - ">="
@@ -91,15 +105,15 @@ dependencies:
91
105
  requirements:
92
106
  - - ">="
93
107
  - !ruby/object:Gem::Version
94
- version: 0.2.0
108
+ version: 0.3.0
95
109
  name: glimmer-cs-gladiator
96
- type: :development
97
110
  prerelease: false
111
+ type: :development
98
112
  version_requirements: !ruby/object:Gem::Requirement
99
113
  requirements:
100
114
  - - ">="
101
115
  - !ruby/object:Gem::Version
102
- version: 0.2.0
116
+ version: 0.3.0
103
117
  description: Calculator - Glimmer Custom Shell
104
118
  email: andy.am@gmail.com
105
119
  executables:
@@ -110,11 +124,13 @@ extra_rdoc_files:
110
124
  - LICENSE.txt
111
125
  - README.md
112
126
  files:
127
+ - CHANGELOG.md
113
128
  - LICENSE.txt
114
129
  - README.md
115
130
  - VERSION
116
131
  - bin/calculator
117
132
  - bin/glimmer-cs-calculator
133
+ - glimmer-cs-calculator.gemspec
118
134
  - lib/glimmer-cs-calculator.rb
119
135
  - lib/models/glimmer/calculator/command.rb
120
136
  - lib/models/glimmer/calculator/command/all_clear.rb
@@ -147,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
163
  - !ruby/object:Gem::Version
148
164
  version: '0'
149
165
  requirements: []
150
- rubygems_version: 3.0.6
166
+ rubygems_version: 3.1.4
151
167
  signing_key:
152
168
  specification_version: 4
153
169
  summary: Calculator - Glimmer Custom Shell