glimmer-dsl-libui 0.5.23 → 0.5.24

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: 8d65b51e65342731318494bdb1fa0df0eb06f896be6081f4d05e4605a2946a6b
4
- data.tar.gz: deba712fec6a46b8738fd25ae15b2d4309720cc984594d6a19b3aa66e4e31389
3
+ metadata.gz: 8a3fb5422bc0c88094c10ddb3c369ae175f35d3b726e49650d1cb85e12a1f31d
4
+ data.tar.gz: 420c3b8d874def1cae001e6c4001b228a1a94b5d81443bb7bb9497debb5fc2c7
5
5
  SHA512:
6
- metadata.gz: 1a3a2ebc7ac9a2ebf29805b39d11dbf30b76cdb1455663b67f730ae4e2ed5cfe5dceaf298c7a164156f910318de1847c34eee41103ffff3c57699984b1d68b45
7
- data.tar.gz: bdb5b5bdd475811fc62de1207074d0074a1d7436eafd9f1ff67c336d654c8fbc4aaa697783300f0b1758b7606f18fa6cdde689f209ffb711423aa19e4f0075b0
6
+ metadata.gz: 336a366ffa0435d3479ed5ed966782b23f38b5b7f6053e212bfaa0bab7e659231cf71f92b7987d1c761f2dd4849786a69fa7e0f90e3cb7699097c1410a028a60
7
+ data.tar.gz: 2b739a8f08f4d8fee60275bae6473a6d47546db2b242e63a55e9e25289f380ef2e4336754670f4cce9405bf8446fd2d6b9ec4ebcb1b3a9800985bb0f1c930ed5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.5.24
4
+
5
+ - Update examples/gp2_notepad.rb to avoid sorting ( thank you @kojix2 )
6
+ - Fix issue with `refined_table` crashing when `cell_rows` contains `nil` values for some of the cells.
7
+
3
8
  ## 0.5.23
4
9
 
5
10
  - New examples/gp2_notepad.rb
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.5.23
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.5.24
2
2
  ## Prerequisite-Free Ruby Desktop Development GUI Library
3
3
  [![Gem Version](https://badge.fury.io/rb/glimmer-dsl-libui.svg)](http://badge.fury.io/rb/glimmer-dsl-libui)
4
4
  [![Join the chat at https://gitter.im/AndyObtiva/glimmer](https://badges.gitter.im/AndyObtiva/glimmer.svg)](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -539,7 +539,7 @@ gem install glimmer-dsl-libui
539
539
  Or install via Bundler `Gemfile`:
540
540
 
541
541
  ```ruby
542
- gem 'glimmer-dsl-libui', '~> 0.5.23'
542
+ gem 'glimmer-dsl-libui', '~> 0.5.24'
543
543
  ```
544
544
 
545
545
  Test that installation worked by running the [Meta-Example](#examples):
@@ -2642,6 +2642,18 @@ https://github.com/bzanchet/pmv-calc
2642
2642
 
2643
2643
  ![PMV Calc](https://raw.githubusercontent.com/AndyObtiva/pmv-calc/screenshot/screenshots/PMV-Calc.png)
2644
2644
 
2645
+ ### Suika Box
2646
+
2647
+ https://github.com/kojix2/suikabox
2648
+
2649
+ ![suika box screenshot](https://raw.githubusercontent.com/AndyObtiva/suikabox/main/screenshot.png)
2650
+
2651
+ ### HTS Grid
2652
+
2653
+ https://github.com/kojix2/htsgrid
2654
+
2655
+ ![hts grid screenshot](https://raw.githubusercontent.com/AndyObtiva/htsgrid/main/screenshot-00.png)
2656
+
2645
2657
  ## Process
2646
2658
 
2647
2659
  [Glimmer Process](https://github.com/AndyObtiva/glimmer/blob/master/PROCESS.md)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.23
1
+ 0.5.24
@@ -48,9 +48,9 @@ class GPT2TextPredictor
48
48
  return logits.argmax unless prob
49
49
 
50
50
  log_probs = softmax(logits)
51
- idx = log_probs.sort_index
52
- i = (log_probs[idx].cumsum < rand).count
53
- idx[i]
51
+ cum_probs = log_probs.cumsum(1)
52
+ r = rand(0..cum_probs[-1]) # 0..1
53
+ (cum_probs < r).count
54
54
  end
55
55
 
56
56
  def predict_text(max = 30)
@@ -72,7 +72,7 @@ class GPT2Notepad
72
72
  end
73
73
 
74
74
  body {
75
- window('Notepad', 500, 300) {
75
+ window('GPT-2 Notepad', 500, 300) {
76
76
  vertical_box {
77
77
  padded true
78
78
 
Binary file
@@ -31,7 +31,7 @@ module Glimmer
31
31
  include Glimmer::LibUI::CustomControl
32
32
 
33
33
  FILTER_DEFAULT = lambda do |row_hash, query|
34
- text = row_hash.values.map(&:downcase).join(' ')
34
+ text = row_hash.values.map(&:to_s).map(&:downcase).join(' ')
35
35
  if query != @last_query
36
36
  @last_query = query
37
37
  @query_words = []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-libui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.23
4
+ version: 0.5.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-10 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: glimmer
@@ -517,7 +517,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
517
517
  - !ruby/object:Gem::Version
518
518
  version: '0'
519
519
  requirements: []
520
- rubygems_version: 3.3.16
520
+ rubygems_version: 3.3.3
521
521
  signing_key:
522
522
  specification_version: 4
523
523
  summary: Glimmer DSL for LibUI