hokusai-zero 0.2.2 → 0.2.3

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: fb994904ecf8589ee8d168209baa7fc6d61ae7db559612d2a699e8713ce71ab4
4
- data.tar.gz: 66bcfbc82970f35f21d5e06f86e3318236e490bf4fc59986fe93bb93035d04dd
3
+ metadata.gz: b0b51936165c28af713ec3b359aec1b2cfc7b47f64bbe5dd365e31ea701e7640
4
+ data.tar.gz: 38dc1e09dae8a502c0e89e32c21c6cd99fdfa20eac15c15577441827c48fa097
5
5
  SHA512:
6
- metadata.gz: 1d3349d72139c7ae68e1535046decb64970160c17f662e0e8c40d319a24f55a3d12f3525a6d72281e1afdf7a42958ab733886ed8dab5234f15896b115f134ddd
7
- data.tar.gz: 63173f4724a9aaf097f3fb5e11d468f51197191c743e40badd2464fbd89226c8e11133ab79a35c6e2c1a4aaf1c9ef4ca0bd286aa8b904a59369166161486f643
6
+ metadata.gz: b7df65215d0dd03500b92809ba8d05d996aa7ef2f1d25c8a418da3b78e82dd69ef88b44c12b120bbc913aff1063a817b653bf0c0ca1ba5c7c5fec48fb2f00cfc
7
+ data.tar.gz: e59f199ebcc5ecf2179d5b69e5b4a8e79b0b09e11862403b002a86fd18bfe534d09086c9b43c409218d124b63aa5076f10d020fbb9b8b4efaa5f244b15d13cdf
data/README.md CHANGED
@@ -12,7 +12,7 @@ A Ruby library for authoring GUI applications
12
12
  In your Gemfile
13
13
 
14
14
  ```ruby
15
- gem "hokusai-zero", "0.2.1"
15
+ gem "hokusai-zero", "0.2.3"
16
16
  ```
17
17
 
18
18
  ## In order to run an application, you will need to install a backend
data/hokusai.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'hokusai-zero'
3
- s.version = '0.2.2'
3
+ s.version = '0.2.3'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "A Ruby library for writing GUI applications"
6
6
  s.authors = ["skinnyjames"]
@@ -199,11 +199,11 @@ class Hokusai::Blocks::Text < Hokusai::Block
199
199
 
200
200
  def render(canvas)
201
201
  if Hokusai.can_render(canvas)
202
- unless last_content == content && last_width == canvas.width
202
+ if last_content != content || last_width != canvas.width
203
203
  # self.last_clamping&.free
204
204
  self.last_clamping = clamp(content, canvas.width - (padding.left + padding.right))
205
205
  self.last_width = canvas.width
206
- self.last_content = content
206
+ self.last_content = content.clone
207
207
  end
208
208
 
209
209
  height = internal_render(last_clamping, canvas)
@@ -149,7 +149,7 @@ module Hokusai
149
149
  children[patch.target].node.add_styles(target.class)
150
150
  children[patch.target].node.add_props_from_block(target, context: ctx)
151
151
 
152
- # UpdateEntry.new(children[patch.target], uparent, utarget).register(context: ctx)
152
+ UpdateEntry.new(children[patch.target], uparent, utarget).register(context: ctx)
153
153
  when MovePatch
154
154
  if patch.delete
155
155
  from = children[patch.from]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hokusai-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - skinnyjames