glimmer-dsl-web 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f636fd9070bcacf8775433ffe589b81f7590710fa9605302b249a3c22be641c7
4
- data.tar.gz: 2c40869f1eb9275701eb18c6f9555559b69f26358925845e0000445a143f5bc9
3
+ metadata.gz: 1c41a710ea68b7c1e82d5a11f4a3199ad7a13e5bcbe360dcca1e329d14b4290e
4
+ data.tar.gz: b99ec986f4538d9b1808bdc0d117e7cf5dbd793897197d46aae0dc9d65212290
5
5
  SHA512:
6
- metadata.gz: 188bcb0445c91ee19342cda641b15e810d80211c1e7c138315d71e83a3be741b5ba98bd0430b2ea5ed743f67c6bafdae15cec2f847d30a83da6f25eb9ad10674
7
- data.tar.gz: c41e90e255713b6cd88537c2d34a47b7656c33e9af3c8bbbb70de000da040d26c769f28a16450f27c62aeb2f33cb5e5419412a2baffbc13aa760ed7b513376aa
6
+ metadata.gz: 1ec419eb0abf5490a56576256facbfc18a02a5743ef9bb1344186a95df5cf014535e962a5d88f1598c23243e07e691d264545a906aba761c88d93245564e08aa
7
+ data.tar.gz: 52005399abe94f026d634fc5e73bca0e6d508dddce246e858adaa8e8c798a7f4c90e751695f1c2fdce707c77d49a5b0916a09987607fa78d4835f6069038ca69
data/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.8.1
4
+
5
+ - Implement `Glimmer::Web::ElementProxy#inspect` method that includes element ID, keyword, args, and parent and prevents recursing through multiple parent levels to improve readability for troubleshooting.
6
+ - Implement `Glimmer::Web::Component#inspect` method that includes element ID, keyword, args, and parent and prevents recursing through multiple parent levels to improve readability for troubleshooting.
7
+
3
8
  ## 0.8.0
4
9
 
5
10
  - Support formatting-paragraph-elements (e.g. 'br', 'strong', 'em') as stand-alone elements (not inside p)
11
+ - Render void tags (<br>, <hr>, <img>, <input>, <meta>, <link>) as a single tag without generating a closing tag (e.g. NOT <br></br>).
6
12
 
7
13
  ## 0.7.3
8
14
 
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 Web 0.8.0 (Beta)
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 Web 0.8.1 (Beta)
2
2
  ## Ruby-in-the-Browser Web Frontend Framework
3
3
  ### The "Rails" of Frontend Frameworks!!! ([Fukuoka Award Winning](https://andymaleh.blogspot.com/2025/01/glimmer-dsl-for-web-wins-in-fukuoka.html))
4
4
  #### Finally, Ruby Developer Productivity, Happiness, and Fun in the Frontend!!!
@@ -1418,7 +1418,7 @@ rails new glimmer_app_server
1418
1418
  Add the following to `Gemfile`:
1419
1419
 
1420
1420
  ```
1421
- gem 'glimmer-dsl-web', '~> 0.8.0'
1421
+ gem 'glimmer-dsl-web', '~> 0.8.1'
1422
1422
  ```
1423
1423
 
1424
1424
  Run:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.8.1
@@ -2,11 +2,11 @@
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-dsl-web 0.8.0 ruby lib
5
+ # stub: glimmer-dsl-web 0.8.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glimmer-dsl-web".freeze
9
- s.version = "0.8.0".freeze
9
+ s.version = "0.8.1".freeze
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]
@@ -545,6 +545,17 @@ module Glimmer
545
545
  can_handle_observation_request?(method_name) or
546
546
  markup_root.respond_to?(method_name, include_private)
547
547
  end
548
+
549
+ def inspect(basic: false)
550
+ keyword = self.class.keyword
551
+ if basic
552
+ attributes = {keyword:, args:}
553
+ else
554
+ parent_inspect = parent.is_a?(Glimmer::Web::ElementProxy) || parent.is_a?(Glimmer::Web::Component) ? parent.inspect(basic: true) : parent.inspect
555
+ attributes = {keyword:, args:, parent: parent_inspect}
556
+ end
557
+ "#<#{self.class}:0x#{object_id.to_s(16)} #{markup_root&.keyword}##{markup_root&.element_id} #{attributes}>"
558
+ end
548
559
 
549
560
  private
550
561
 
@@ -1021,6 +1021,16 @@ module Glimmer
1021
1021
  }
1022
1022
  end
1023
1023
 
1024
+ def inspect(basic: false)
1025
+ if basic
1026
+ attributes = {keyword:, args:}
1027
+ else
1028
+ parent_inspect = parent.is_a?(Glimmer::Web::ElementProxy) || parent.is_a?(Glimmer::Web::Component) ? parent.inspect(basic: true) : parent.inspect
1029
+ attributes = {keyword:, args:, parent: parent_inspect}
1030
+ end
1031
+ "#<#{self.class}:0x#{object_id.to_s(16)} #{keyword}##{element_id} #{attributes}>"
1032
+ end
1033
+
1024
1034
  private
1025
1035
 
1026
1036
  def base_css_classes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh