glimmer-cs-calculator 1.1.1 → 1.1.2

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: ec35f63a2331f52aeb09b998b3bec6314f140ab8b2377c2d8c6bae2ee39c4fd4
4
- data.tar.gz: 0a586ad6ad389bace7d4f0edb0d9f3586bd6ffaaa540f88842f9c134d7923f9f
3
+ metadata.gz: 897141c9ef84b60521fb95588fc994824e573fb3a75f60f964df9f46fb586409
4
+ data.tar.gz: '008c1d1874d3cfcb3c0dc281f678ce84b2b0ce188c6889db18594e54c7761791'
5
5
  SHA512:
6
- metadata.gz: 0bef94466c9b52f77b328f821840bbf532f90a76ca6ed58add979e98db63fb58138a5ac59e919d94d9b2cb83160932262cac2cdd0e39bb8e9bdbea6e3fb3579b
7
- data.tar.gz: 64e525f32d00449388ade751e304bdbb433fc51b53867797b47b02f55b01ab33f25ccbb3acfa922077fecbe36097411c6a1b9e4c5ef4c88e6ae3134c17257c35
6
+ metadata.gz: 17eb51f99d846c5b4711ae8d828099eec41cff6efa2447f8eda36ea26d7e3068379ffd39cf2402950f06eec043baeeb531ee80afef57e22eb21b79ddfe2dbd2f
7
+ data.tar.gz: aa0e0237a9831a6d9cb98a903f8f08a819f9a0813ba1f8dcd49dd53417b265c392f99e24a75b92816b18d2b9da6afa4b67688e3275176871b13a29de6c410811
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.1.2
4
+
5
+ - Official Opal (Web) support via [Glimmer DSL for Opal](https://github.com/AndyObtiva/glimmer-dsl-opal)
6
+
3
7
  ## 1.1.1
4
8
 
5
9
  - Official Windows support
data/README.md CHANGED
@@ -14,6 +14,10 @@ Glimmer Calculator on Linux
14
14
 
15
15
  ![Calculator](glimmer-cs-calculator-screenshot-linux.png)
16
16
 
17
+ Glimmer Calculator on [Opal](https://github.com/AndyObtiva/glimmer-dsl-opal) (Web)
18
+
19
+ ![Calculator](glimmer-cs-calculator-screenshot-opal.png)
20
+
17
21
  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).
18
22
 
19
23
  Architectural Pattern is MVP (Model View Presenter) thanks to [Glimmer data-binding](https://github.com/AndyObtiva/glimmer-dsl-swt#data-binding) support.
@@ -30,13 +34,14 @@ Here are the calculator commands under the [models directory](lib/models/glimmer
30
34
 
31
35
  [<img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" height=40 />Download Glimmer Calculator v1.1.1 MSI for Windows](https://www.dropbox.com/s/e8b586s2xgjn9bg/Glimmer%20Calculator-1.1.1.msi?dl=1)
32
36
 
33
- [<img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" height=40 />Download Glimmer Calculator v1.1.1 GEM for Linux](#setup-instructions)
37
+ [<img alt="Glimmer Calculator Icon" src="glimmer-cs-calculator-icon.png" height=40 />Download Glimmer Calculator v1.1.2 GEM for Linux](#setup-instructions)
34
38
 
35
39
  ## Platforms
36
40
 
37
41
  - Mac: Tested and [packaged](https://github.com/AndyObtiva/glimmer-dsl-swt#packaging--distribution) for Mac. ([Download Here](https://www.dropbox.com/s/2wbyy0z0w875n39/Glimmer%20Calculator-1.1.1.dmg?dl=1))
38
42
  - Windows: Tested and [packaged](https://github.com/AndyObtiva/glimmer-dsl-swt#packaging--distribution) for Windows. ([Download Here](https://www.dropbox.com/s/e8b586s2xgjn9bg/Glimmer%20Calculator-1.1.1.msi?dl=1))
39
43
  - Linux: Tested and [packaged](http://rubygems.org/gems/glimmer-cs-calculator) for Linux (Follow [setup instructions](#setup-instructions) to install [gem](http://rubygems.org/gems/glimmer-cs-calculator) and run `calculator` command)
44
+ - Opal (Web): Tested with [Glimmer DSL for Opal](https://github.com/AndyObtiva/glimmer-dsl-opal)
40
45
 
41
46
  ## Development Environment Pre-requisites
42
47
 
@@ -65,7 +70,7 @@ To reuse Calculator as a Glimmer Custom Shell inside another Glimmer application
65
70
  following to the application's `Gemfile`:
66
71
 
67
72
  ```
68
- gem 'glimmer-cs-calculator', '1.1.1'
73
+ gem 'glimmer-cs-calculator', '1.1.2'
69
74
  ```
70
75
 
71
76
  Run:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -1,5 +1 @@
1
- require_relative '../lib/glimmer-cs-calculator'
2
-
3
- include Glimmer
4
-
5
- calculator.open
1
+ require_relative '../lib/glimmer-cs-calculator/launch'
@@ -2,16 +2,16 @@
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-calculator 1.1.1 ruby lib
5
+ # stub: glimmer-cs-calculator 1.1.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glimmer-cs-calculator".freeze
9
- s.version = "1.1.1"
9
+ s.version = "1.1.2"
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 = "2020-10-14"
14
+ s.date = "2020-10-15"
15
15
  s.description = "Calculator - Glimmer Custom Shell".freeze
16
16
  s.email = "andy.am@gmail.com".freeze
17
17
  s.executables = ["glimmer-cs-calculator".freeze, "calculator".freeze]
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
28
28
  "bin/glimmer-cs-calculator",
29
29
  "glimmer-cs-calculator.gemspec",
30
30
  "lib/glimmer-cs-calculator.rb",
31
+ "lib/glimmer-cs-calculator/launch.rb",
31
32
  "lib/models/glimmer/calculator/command.rb",
32
33
  "lib/models/glimmer/calculator/command/all_clear.rb",
33
34
  "lib/models/glimmer/calculator/command/equals.rb",
@@ -53,7 +54,6 @@ 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.17.2.2", "< 5.0.0.0"])
57
57
  s.add_runtime_dependency(%q<easily_typable>.freeze, ["~> 1.0.2"])
58
58
  s.add_development_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
59
59
  s.add_development_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
@@ -61,7 +61,6 @@ Gem::Specification.new do |s|
61
61
  s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
62
62
  s.add_development_dependency(%q<glimmer-cs-gladiator>.freeze, [">= 0.3.0"])
63
63
  else
64
- s.add_dependency(%q<glimmer-dsl-swt>.freeze, [">= 4.17.2.2", "< 5.0.0.0"])
65
64
  s.add_dependency(%q<easily_typable>.freeze, ["~> 1.0.2"])
66
65
  s.add_dependency(%q<rspec>.freeze, ["~> 3.5.0"])
67
66
  s.add_dependency(%q<jeweler>.freeze, ["= 2.3.9"])
@@ -0,0 +1,5 @@
1
+ require_relative '../glimmer-cs-calculator'
2
+
3
+ include Glimmer
4
+
5
+ calculator.open
@@ -86,4 +86,14 @@ module Glimmer
86
86
  end
87
87
  end
88
88
 
89
- Dir[File.join(File.dirname(__FILE__), 'command', '**', '*.rb')].each {|f| require(f)}
89
+ # Dir[File.join(File.dirname(__FILE__), 'command', '**', '*.rb')].each {|f| require(f)}
90
+
91
+ require 'models/glimmer/calculator/command/all_clear'
92
+ require 'models/glimmer/calculator/command/equals'
93
+ require 'models/glimmer/calculator/command/number'
94
+ require 'models/glimmer/calculator/command/operation'
95
+ require 'models/glimmer/calculator/command/point'
96
+ require 'models/glimmer/calculator/command/operation/add'
97
+ require 'models/glimmer/calculator/command/operation/divide'
98
+ require 'models/glimmer/calculator/command/operation/multiply'
99
+ require 'models/glimmer/calculator/command/operation/subtract'
@@ -30,7 +30,7 @@ module Glimmer
30
30
  display_about_dialog
31
31
  }
32
32
  on_preferences {
33
- # No need for preferences. Just display about dialog.
33
+ # No need for preferences. Just display about dialog.
34
34
  display_about_dialog
35
35
  }
36
36
  on_swt_keydown { |key_event|
metadata CHANGED
@@ -1,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-cs-calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.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-10-14 00:00:00.000000000 Z
11
+ date: 2020-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: 4.17.2.2
19
- - - "<"
20
- - !ruby/object:Gem::Version
21
- version: 5.0.0.0
22
- name: glimmer-dsl-swt
23
- prerelease: false
24
- type: :runtime
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 4.17.2.2
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: 5.0.0.0
33
13
  - !ruby/object:Gem::Dependency
34
14
  requirement: !ruby/object:Gem::Requirement
35
15
  requirements:
@@ -132,6 +112,7 @@ files:
132
112
  - bin/glimmer-cs-calculator
133
113
  - glimmer-cs-calculator.gemspec
134
114
  - lib/glimmer-cs-calculator.rb
115
+ - lib/glimmer-cs-calculator/launch.rb
135
116
  - lib/models/glimmer/calculator/command.rb
136
117
  - lib/models/glimmer/calculator/command/all_clear.rb
137
118
  - lib/models/glimmer/calculator/command/equals.rb