glimmer-dsl-libui 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -2
- data/VERSION +1 -1
- data/glimmer-dsl-libui.gemspec +0 -0
- data/lib/glimmer/libui/custom_control.rb +10 -10
- data/lib/glimmer/libui/custom_shape.rb +10 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 664a95631db2e2b9bf943f9843c6954df9dc55ba335e51214d721b376969094c
|
4
|
+
data.tar.gz: 61bc5b8242902e1273296c74dd74b470930a38cf9c34af48e296e14a91dce2e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7045e3c06a6551286523e8f6564b6b57e86477d4c1693ba8b0852c4e259a69151caa0d945d05187cb9b1d0642274323dc6c5d7dcfe02e8481cc01f227a99e993
|
7
|
+
data.tar.gz: 5927641112ab6807a6f8f941f1e89d1927f85242bdadf79dd1ed9aa8d52f2707cf9607a702ed730a7f76f9594557fadb9f26415b4e87f6ee03b263740f013205
|
data/CHANGELOG.md
CHANGED
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 LibUI 0.11.
|
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 LibUI 0.11.2
|
2
2
|
## Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library ([Fukuoka Award Winning](http://www.digitalfukuoka.jp/topics/187?locale=ja))
|
3
3
|
### The Quickest Way From Zero To GUI
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-libui.svg)](http://badge.fury.io/rb/glimmer-dsl-libui)
|
@@ -431,7 +431,7 @@ gem install glimmer-dsl-libui
|
|
431
431
|
Or install via Bundler `Gemfile`:
|
432
432
|
|
433
433
|
```ruby
|
434
|
-
gem 'glimmer-dsl-libui', '~> 0.11.
|
434
|
+
gem 'glimmer-dsl-libui', '~> 0.11.2'
|
435
435
|
```
|
436
436
|
|
437
437
|
Test that installation worked by running the [Glimmer Meta-Example](#examples):
|
@@ -636,6 +636,8 @@ Mac | Windows | Linux
|
|
636
636
|
|
637
637
|
Application scaffolding enables automatically generating the directories/files of a new desktop GUI application that follows the MVC architecture and can be packaged as a Ruby gem that includes an executable script for running the app conveniently. It also ensures that software engineers follow the recommended Glimmer DSL for LibUI conventions and best practices. Application Scaffolding greatly improves software engineering productivity when building desktop applications with [Glimmer DSL for LibUI](https://rubygems.org/gems/glimmer-dsl-libui).
|
638
638
|
|
639
|
+
Application Scaffolding relies on the [juwelier](https://rubygems.org/gems/juwelier) Ruby gem, which expects having a local Git config (global settings in `~/.gitconfig`) of [`user.name`](https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git#setting-your-git-username-for-every-repository-on-your-computer), [`user.email`](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address#setting-your-email-address-for-every-repository-on-your-computer), and `github.user`.
|
640
|
+
|
639
641
|
Scaffold Glimmer DSL for LibUI application with this command:
|
640
642
|
|
641
643
|
```
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.11.
|
1
|
+
0.11.2
|
data/glimmer-dsl-libui.gemspec
CHANGED
Binary file
|
@@ -52,6 +52,16 @@ module Glimmer
|
|
52
52
|
result ||= can_handle_listener?(method_name)
|
53
53
|
result ||= @body_root.respond_to?(method_name, *args, &block)
|
54
54
|
end
|
55
|
+
|
56
|
+
# Returns content block if used as an attribute reader (no args)
|
57
|
+
# Otherwise, if a block is passed, it adds it as content to this custom control
|
58
|
+
def content(&block)
|
59
|
+
if block_given?
|
60
|
+
Glimmer::DSL::Engine.add_content(self, Glimmer::DSL::Libui::CustomControlExpression.new, self.class.keyword, &block)
|
61
|
+
else
|
62
|
+
@content
|
63
|
+
end
|
64
|
+
end
|
55
65
|
end
|
56
66
|
|
57
67
|
super_module_included do |klass|
|
@@ -233,16 +243,6 @@ module Glimmer
|
|
233
243
|
!method(method_name)&.source_location&.first&.include?('glimmer/dsl/engine.rb') and
|
234
244
|
!method(method_name)&.source_location&.first&.include?('glimmer/libui/control_proxy.rb')
|
235
245
|
end
|
236
|
-
|
237
|
-
# Returns content block if used as an attribute reader (no args)
|
238
|
-
# Otherwise, if a block is passed, it adds it as content to this custom control
|
239
|
-
def content(&block)
|
240
|
-
if block_given?
|
241
|
-
Glimmer::DSL::Engine.add_content(self, Glimmer::DSL::Libui::CustomControlExpression.new, self.class.keyword, &block)
|
242
|
-
else
|
243
|
-
@content
|
244
|
-
end
|
245
|
-
end
|
246
246
|
|
247
247
|
private
|
248
248
|
|
@@ -52,6 +52,16 @@ module Glimmer
|
|
52
52
|
result ||= can_handle_listener?(method_name)
|
53
53
|
result ||= @body_root.respond_to?(method_name, *args, &block)
|
54
54
|
end
|
55
|
+
|
56
|
+
# Returns content block if used as an attribute reader (no args)
|
57
|
+
# Otherwise, if a block is passed, it adds it as content to this custom shape
|
58
|
+
def content(&block)
|
59
|
+
if block_given?
|
60
|
+
Glimmer::DSL::Engine.add_content(self, Glimmer::DSL::Libui::CustomShapeExpression.new, self.class.keyword, &block)
|
61
|
+
else
|
62
|
+
@content
|
63
|
+
end
|
64
|
+
end
|
55
65
|
end
|
56
66
|
|
57
67
|
super_module_included do |klass|
|
@@ -230,16 +240,6 @@ module Glimmer
|
|
230
240
|
!method(method_name)&.source_location&.first&.include?('glimmer/dsl/engine.rb') and
|
231
241
|
!method(method_name)&.source_location&.first&.include?('glimmer/libui/shape.rb')
|
232
242
|
end
|
233
|
-
|
234
|
-
# Returns content block if used as an attribute reader (no args)
|
235
|
-
# Otherwise, if a block is passed, it adds it as content to this custom shape
|
236
|
-
def content(&block)
|
237
|
-
if block_given?
|
238
|
-
Glimmer::DSL::Engine.add_content(self, Glimmer::DSL::Libui::CustomShapeExpression.new, self.class.keyword, &block)
|
239
|
-
else
|
240
|
-
@content
|
241
|
-
end
|
242
|
-
end
|
243
243
|
|
244
244
|
private
|
245
245
|
|