glib-web 0.5.33 → 0.5.34

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: df63c10f723594d82a2f1074082b307b0723bb8c5ce5a2cd967db0d9bf8c2015
4
- data.tar.gz: 1a1c04881aa9fc5a402986d0494219c33040c832af5a1f4b8ff85186bd11219f
3
+ metadata.gz: b59fad27046de460148c8944bc780f516a85783e9226c694e0f31e83970194ad
4
+ data.tar.gz: e4d9cf6b52c361f41ea114fefd6fef9d1726af5231c8beb21a385063a02474f2
5
5
  SHA512:
6
- metadata.gz: 2efe0df7f6dad19507816d0e9b0d9fe9507c9eddcadd947fc5d4eb8fdb0f8c20f86cced131073edec69b1ea14998e6f900fada9731d89e030928148f05e8efe6
7
- data.tar.gz: f3556cf3d1dab58de728b8b0d0af12c1aff9a038ae474c75c7d6c303bf2f1d962b95af93b16d1a99dee2a70b327cba9509392608a53777d651a8e14379072154
6
+ metadata.gz: '052297f7cbf48213322253214e9bacebad001e58c39168cf0825ac006e9bc72a12218dab6b1901ce7f3562ca002639e272d1b6ea94414b66940aaaab060f2b10'
7
+ data.tar.gz: 6c95b179be6b8ace6c0204e030edbc6f598e10a16073d3f75fb82be45365f2f01da44c468f1b362ce9b76c405b3dc81f5879e36a3741963da8f92f447f49269b
@@ -2,6 +2,7 @@ class Glib::JsonUi::ViewBuilder
2
2
  module Fields
3
3
 
4
4
  class AbstractField < View
5
+ bool :readOnly
5
6
  hash :validation
6
7
 
7
8
  def label(label)
@@ -68,7 +69,6 @@ class Glib::JsonUi::ViewBuilder
68
69
 
69
70
  class Text < AbstractField
70
71
  int :maxLength
71
- bool :readOnly
72
72
  end
73
73
 
74
74
  class Number < Text
@@ -130,7 +130,7 @@ class Glib::JsonUi::ViewBuilder
130
130
 
131
131
  class Select < AbstractField
132
132
  array :options
133
- bool :readOnly
133
+ # bool :readOnly
134
134
  bool :multiple, cache: true
135
135
  # bool :manualEntry
136
136
  hash :append
@@ -138,7 +138,7 @@ class Glib::JsonUi::ViewBuilder
138
138
 
139
139
  class Autocomplete < AbstractField
140
140
  array :options
141
- bool :readOnly
141
+ # bool :readOnly
142
142
  bool :multiple, cache: true
143
143
  # bool :manualEntry
144
144
  hash :append
@@ -164,11 +164,17 @@ class Glib::JsonUi::ViewBuilder
164
164
  # views :groupTemplateViews
165
165
  end
166
166
 
167
- class RadioGroup < View
168
- string :name
169
- string :value
167
+ class RadioGroup < AbstractField
168
+ # string :name
169
+ # string :value
170
170
  views :childViews
171
171
 
172
+ # Override
173
+ def value(value)
174
+ # Convert to string to make sure the value matches with Radio#value
175
+ @value = value.to_s if value != Glib::Value::DEFAULT
176
+ end
177
+
172
178
  string :iconOfBeforeSelected
173
179
  string :iconOfSelected
174
180
  string :iconOfAfterSelected
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.33
4
+ version: 0.5.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''