glimmer-dsl-swt 4.17.10.6 → 4.17.10.7

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: 527278f09cf48caee9d3cdcc5c5ed1c5a066ff822ea1828c17605aeb7e6f07a9
4
- data.tar.gz: cd4ae35f2a0e7312c57eb3d998579793687d9240b51c70a76be07e50f5e700dc
3
+ metadata.gz: 00b44b39eadc5263ddccde3ac95a754a9b4ad32c9412c268e9cf481ce89b7b05
4
+ data.tar.gz: 7a72f47c3a36921160c3217652cc98a1b377f8c5202c2c24ade6288106d87b7a
5
5
  SHA512:
6
- metadata.gz: 799ed5391c3d1e0a658d9f11a94b705bc96889648993a287560355daa0bd567fee8dade2118e2f232115938e5775a17a4500944cc4f1c693a19cfd3e2e452063
7
- data.tar.gz: 1ca39bc3fa61931c2cf2b1b39caaca18938b2014ec73b0d8bcd47291f40895df0abe3b5d23158126ca457d2e9b27fce382c6216361d798fa928476d5625f7a97
6
+ metadata.gz: c630340b8dad5f0fe4f12481aec9dd039e21cd5be5fec8350c8624b23d3a76aa4cd84ce3e5b85fd1506c1037ab5094e2872548061029cf02c906a13b56df5f5b
7
+ data.tar.gz: 1bd3f35d763bb34095e3b600abaf013d38ad7c4545bbcff6e1f1739a9702d760e79b533bc29b863587307bac567e34604fe212980cac3552eb96b05595bbd5c9
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ### 4.17.10.7
4
+
5
+ - Loosened dependencies on most Glimmer author-owned gems
6
+ - Refactored/Simplified/Fixed Hello, Link! Sample
7
+
3
8
  ### 4.17.10.6
4
9
 
5
10
  - Hello, Link! Sample
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 4.17.10.6
1
+ # [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 4.17.10.7
2
2
 
3
3
  ## JRuby Desktop Development GUI Framework
4
4
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
@@ -449,7 +449,7 @@ jgem install glimmer-dsl-swt
449
449
 
450
450
  Or this command if you want a specific version:
451
451
  ```
452
- jgem install glimmer-dsl-swt -v 4.17.10.6
452
+ jgem install glimmer-dsl-swt -v 4.17.10.7
453
453
 
454
454
  ```
455
455
 
@@ -526,7 +526,7 @@ bin/glimmer samples
526
526
  Below are the full usage instructions that come up when running `glimmer` without args.
527
527
 
528
528
  ```
529
- Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.17.10.6
529
+ Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.17.10.7
530
530
 
531
531
 
532
532
  Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
@@ -1004,7 +1004,7 @@ Output:
1004
1004
 
1005
1005
  Css glimmer-dsl-css 1.1.0 AndyMaleh Glimmer DSL for CSS
1006
1006
  Opal glimmer-dsl-opal 0.4.0 AndyMaleh Glimmer DSL for Opal
1007
- Swt glimmer-dsl-swt 4.17.10.6
1007
+ Swt glimmer-dsl-swt 4.17.10.7
1008
1008
  AndyMaleh Glimmer DSL for SWT
1009
1009
  Tk glimmer-dsl-tk 0.0.6 AndyMaleh Glimmer DSL for Tk
1010
1010
  Xml glimmer-dsl-xml 1.1.0 AndyMaleh Glimmer DSL for XML
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.17.10.6
1
+ 4.17.10.7
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: glimmer-dsl-swt 4.17.10.6 ruby lib
5
+ # stub: glimmer-dsl-swt 4.17.10.7 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glimmer-dsl-swt".freeze
9
- s.version = "4.17.10.6"
9
+ s.version = "4.17.10.7"
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 = ["AndyMaleh".freeze]
14
- s.date = "2020-12-11"
14
+ s.date = "2020-12-15"
15
15
  s.description = "Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)".freeze
16
16
  s.email = "andy.am@gmail.com".freeze
17
17
  s.executables = ["glimmer".freeze, "girb".freeze]
@@ -175,16 +175,16 @@ Gem::Specification.new do |s|
175
175
 
176
176
  if s.respond_to? :add_runtime_dependency then
177
177
  s.add_runtime_dependency(%q<glimmer>.freeze, ["~> 1.0.5"])
178
- s.add_runtime_dependency(%q<super_module>.freeze, ["~> 1.4.1"])
179
- s.add_runtime_dependency(%q<nested_inherited_jruby_include_package>.freeze, ["~> 0.3.0"])
180
- s.add_runtime_dependency(%q<puts_debuggerer>.freeze, ["~> 0.10.2"])
178
+ s.add_runtime_dependency(%q<super_module>.freeze, [">= 1.4.1", "< 2.0.0"])
179
+ s.add_runtime_dependency(%q<nested_inherited_jruby_include_package>.freeze, [">= 0.3.0", "< 2.0.0"])
180
+ s.add_runtime_dependency(%q<puts_debuggerer>.freeze, [">= 0.11.0", "< 2.0.0"])
181
181
  s.add_runtime_dependency(%q<rake-tui>.freeze, [">= 0.2.3", "< 2.0.0"])
182
182
  s.add_runtime_dependency(%q<git-glimmer>.freeze, ["= 1.7.0"])
183
183
  s.add_runtime_dependency(%q<logging>.freeze, [">= 2.3.0", "< 3.0.0"])
184
184
  s.add_runtime_dependency(%q<os>.freeze, [">= 1.0.0", "< 2.0.0"])
185
185
  s.add_runtime_dependency(%q<rake>.freeze, [">= 10.1.0", "< 14.0.0"])
186
186
  s.add_runtime_dependency(%q<text-table>.freeze, [">= 1.2.4", "< 2.0.0"])
187
- s.add_runtime_dependency(%q<rouge>.freeze, [">= 3.25.0", "< 4.0.0"])
187
+ s.add_runtime_dependency(%q<rouge>.freeze, [">= 3.26.0", "< 4.0.0"])
188
188
  s.add_development_dependency(%q<juwelier>.freeze, [">= 2.4.9", "< 3.0.0"])
189
189
  s.add_development_dependency(%q<warbler>.freeze, [">= 2.0.5", "< 3.0.0"])
190
190
  s.add_development_dependency(%q<rspec-mocks>.freeze, ["~> 3.5.0"])
@@ -194,16 +194,16 @@ Gem::Specification.new do |s|
194
194
  s.add_development_dependency(%q<simplecov-lcov>.freeze, ["~> 0.7.0"])
195
195
  else
196
196
  s.add_dependency(%q<glimmer>.freeze, ["~> 1.0.5"])
197
- s.add_dependency(%q<super_module>.freeze, ["~> 1.4.1"])
198
- s.add_dependency(%q<nested_inherited_jruby_include_package>.freeze, ["~> 0.3.0"])
199
- s.add_dependency(%q<puts_debuggerer>.freeze, ["~> 0.10.2"])
197
+ s.add_dependency(%q<super_module>.freeze, [">= 1.4.1", "< 2.0.0"])
198
+ s.add_dependency(%q<nested_inherited_jruby_include_package>.freeze, [">= 0.3.0", "< 2.0.0"])
199
+ s.add_dependency(%q<puts_debuggerer>.freeze, [">= 0.11.0", "< 2.0.0"])
200
200
  s.add_dependency(%q<rake-tui>.freeze, [">= 0.2.3", "< 2.0.0"])
201
201
  s.add_dependency(%q<git-glimmer>.freeze, ["= 1.7.0"])
202
202
  s.add_dependency(%q<logging>.freeze, [">= 2.3.0", "< 3.0.0"])
203
203
  s.add_dependency(%q<os>.freeze, [">= 1.0.0", "< 2.0.0"])
204
204
  s.add_dependency(%q<rake>.freeze, [">= 10.1.0", "< 14.0.0"])
205
205
  s.add_dependency(%q<text-table>.freeze, [">= 1.2.4", "< 2.0.0"])
206
- s.add_dependency(%q<rouge>.freeze, [">= 3.25.0", "< 4.0.0"])
206
+ s.add_dependency(%q<rouge>.freeze, [">= 3.26.0", "< 4.0.0"])
207
207
  s.add_dependency(%q<juwelier>.freeze, [">= 2.4.9", "< 3.0.0"])
208
208
  s.add_dependency(%q<warbler>.freeze, [">= 2.0.5", "< 3.0.0"])
209
209
  s.add_dependency(%q<rspec-mocks>.freeze, ["~> 3.5.0"])
@@ -66,7 +66,6 @@ module Glimmer
66
66
  else
67
67
  @swt_widget = swt_widget_class.new(parent.swt_widget)
68
68
  end
69
- DEFAULT_INITIALIZERS['menu']&.call(swt_widget)
70
69
 
71
70
  if styles.include?(:bar)
72
71
  parent.swt_widget.setMenuBar(swt_widget)
@@ -69,7 +69,7 @@ module Glimmer
69
69
  }
70
70
 
71
71
  DEFAULT_INITIALIZERS = {
72
- 'composite' => lambda do |composite|
72
+ composite: lambda do |composite|
73
73
  if composite.get_layout.nil?
74
74
  layout = GridLayout.new
75
75
  layout.marginWidth = 15
@@ -77,18 +77,18 @@ module Glimmer
77
77
  composite.layout = layout
78
78
  end
79
79
  end,
80
- 'scrolled_composite' => lambda do |scrolled_composite|
80
+ scrolled_composite: lambda do |scrolled_composite|
81
81
  scrolled_composite.expand_horizontal = true
82
82
  scrolled_composite.expand_vertical = true
83
83
  end,
84
- 'table' => lambda do |table|
84
+ table: lambda do |table|
85
85
  table.setHeaderVisible(true)
86
86
  table.setLinesVisible(true)
87
87
  end,
88
- 'table_column' => lambda do |table_column|
88
+ table_column: lambda do |table_column|
89
89
  table_column.setWidth(80)
90
90
  end,
91
- 'group' => lambda do |group|
91
+ group: lambda do |group|
92
92
  group.layout = GridLayout.new if group.get_layout.nil?
93
93
  end,
94
94
  }
@@ -160,7 +160,7 @@ module Glimmer
160
160
  end
161
161
  if @swt_widget&.get_data('proxy').nil?
162
162
  @swt_widget.set_data('proxy', self)
163
- DEFAULT_INITIALIZERS[underscored_widget_name]&.call(@swt_widget)
163
+ DEFAULT_INITIALIZERS[underscored_widget_name.to_s.to_sym]&.call(@swt_widget)
164
164
  @parent_proxy.post_initialize_child(self)
165
165
  end
166
166
  end
@@ -212,6 +212,7 @@ module Glimmer
212
212
  end
213
213
 
214
214
  def set_attribute(attribute_name, *args)
215
+ # TODO Think about widget subclasses overriding set_attribute to add more attributes vs adding as Ruby attributes directly
215
216
  widget_custom_attribute = widget_custom_attribute_mapping[attribute_name.to_s]
216
217
  if widget_custom_attribute
217
218
  widget_custom_attribute[:setter][:invoker].call(@swt_widget, args)
@@ -38,9 +38,9 @@ shell { |main_shell|
38
38
 
39
39
  You may click on any <a>link</a> to get help.
40
40
 
41
- How do you know <a href="href">which link</a> you clicked?
41
+ How do you know <a href="which-link-href-value">which link</a> you clicked?
42
42
 
43
- Just keep clicking <a href="all-links">links</a> to find out!
43
+ Just keep clicking <a href="all links">links</a> to find out!
44
44
  MULTI_LINE_STRING
45
45
 
46
46
  on_widget_selected { |selection_event|
@@ -69,10 +69,8 @@ shell { |main_shell|
69
69
  @help_shell.location = Point.new(x, y)
70
70
  }
71
71
  on_focus_lost {
72
- @help_shell.close
73
- }
74
- on_shell_closed {
75
72
  @selected_link = nil
73
+ @help_shell.close
76
74
  }
77
75
  }
78
76
  @help_shell.open
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-swt
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.17.10.6
4
+ version: 4.17.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - AndyMaleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-11 00:00:00.000000000 Z
11
+ date: 2020-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -27,45 +27,63 @@ dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - "~>"
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.4.1
33
+ - - "<"
34
+ - !ruby/object:Gem::Version
35
+ version: 2.0.0
33
36
  name: super_module
34
37
  prerelease: false
35
38
  type: :runtime
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: 1.4.1
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.0
41
47
  - !ruby/object:Gem::Dependency
42
48
  requirement: !ruby/object:Gem::Requirement
43
49
  requirements:
44
- - - "~>"
50
+ - - ">="
45
51
  - !ruby/object:Gem::Version
46
52
  version: 0.3.0
53
+ - - "<"
54
+ - !ruby/object:Gem::Version
55
+ version: 2.0.0
47
56
  name: nested_inherited_jruby_include_package
48
57
  prerelease: false
49
58
  type: :runtime
50
59
  version_requirements: !ruby/object:Gem::Requirement
51
60
  requirements:
52
- - - "~>"
61
+ - - ">="
53
62
  - !ruby/object:Gem::Version
54
63
  version: 0.3.0
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.0.0
55
67
  - !ruby/object:Gem::Dependency
56
68
  requirement: !ruby/object:Gem::Requirement
57
69
  requirements:
58
- - - "~>"
70
+ - - ">="
59
71
  - !ruby/object:Gem::Version
60
- version: 0.10.2
72
+ version: 0.11.0
73
+ - - "<"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.0.0
61
76
  name: puts_debuggerer
62
77
  prerelease: false
63
78
  type: :runtime
64
79
  version_requirements: !ruby/object:Gem::Requirement
65
80
  requirements:
66
- - - "~>"
81
+ - - ">="
67
82
  - !ruby/object:Gem::Version
68
- version: 0.10.2
83
+ version: 0.11.0
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: 2.0.0
69
87
  - !ruby/object:Gem::Dependency
70
88
  requirement: !ruby/object:Gem::Requirement
71
89
  requirements:
@@ -185,7 +203,7 @@ dependencies:
185
203
  requirements:
186
204
  - - ">="
187
205
  - !ruby/object:Gem::Version
188
- version: 3.25.0
206
+ version: 3.26.0
189
207
  - - "<"
190
208
  - !ruby/object:Gem::Version
191
209
  version: 4.0.0
@@ -196,7 +214,7 @@ dependencies:
196
214
  requirements:
197
215
  - - ">="
198
216
  - !ruby/object:Gem::Version
199
- version: 3.25.0
217
+ version: 3.26.0
200
218
  - - "<"
201
219
  - !ruby/object:Gem::Version
202
220
  version: 4.0.0