glib-web 0.0.19 → 0.0.20

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
  SHA1:
3
- metadata.gz: 6ff72d632f2ccda7a312c6f67ea42b620f01790d
4
- data.tar.gz: 49a537573b405d49555d18a25a31e9df06a626f9
3
+ metadata.gz: b1b5a425928735be9469436bca93ef7038f04493
4
+ data.tar.gz: 3d4cef59edf9dfa459d64ae431a60061611fb707
5
5
  SHA512:
6
- metadata.gz: 780513ae9629877b920527715f0dd63a2e05f24477f14974e14e9f29a121ae98f5a41c0e0dd30f5ed896a58ff7e81ea5e54e07dc1852c58efcf43157955ade5e
7
- data.tar.gz: 4aced0097bd2c02644ad5746d52ac2d656810c3efb54f9ea4e679cb921425b728a060fff1588b97e4b1d2acd24c1fd73596b9e95221f720e38c49c3f665849ef
6
+ metadata.gz: 3eb353d6707a45cf1b0df6fd6188436860607a25eaa7375aa77fddd514eeaa6b49db15e6beca97da11bcaafa41339a0ffe957431a4848510c6be0a123a9b2992
7
+ data.tar.gz: 42444f429383dbd23602b3a4888a6869cf6fc9cdf887ade8537dd9ea262c3e461d368f9e66d21b0c95d6daf5adb59d256c5452a7385f9097b949b00ad28bb66f
@@ -5,11 +5,11 @@ class Glib::JsonUi::ViewBuilder
5
5
  string :label
6
6
 
7
7
  def name(name)
8
- @name = name if name != Glib::DEFAULT
8
+ @name = name if name != Glib::Value::DEFAULT
9
9
  end
10
10
 
11
11
  def value(value)
12
- @value = value if value != Glib::DEFAULT
12
+ @value = value if value != Glib::Value::DEFAULT
13
13
  end
14
14
 
15
15
  def prop(prop)
data/lib/glib/value.rb ADDED
@@ -0,0 +1,7 @@
1
+ module Glib
2
+ module Value
3
+ # See ViewBuilder::Fields
4
+ class DEFAULT
5
+ end
6
+ end
7
+ end
data/lib/glib-web.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  require "glib/version"
2
- require "glib/engine" if defined?(::Rails)
2
+ require "glib/engine" if defined?(::Rails)
3
+ require "glib/value"
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.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -35,7 +35,6 @@ files:
35
35
  - app/controllers/concerns/application/json/ui.rb
36
36
  - app/controllers/concerns/application/json/validation.rb
37
37
  - app/controllers/glib/home_controller.rb
38
- - app/helpers/glib.rb
39
38
  - app/helpers/glib/json_ui/abstract_builder.rb
40
39
  - app/helpers/glib/json_ui/action_builder.rb
41
40
  - app/helpers/glib/json_ui/json_ui_helper.rb
@@ -80,6 +79,7 @@ files:
80
79
  - config/routes.rb
81
80
  - lib/glib-web.rb
82
81
  - lib/glib/engine.rb
82
+ - lib/glib/value.rb
83
83
  - lib/glib/version.rb
84
84
  homepage:
85
85
  licenses: []
data/app/helpers/glib.rb DELETED
@@ -1,4 +0,0 @@
1
- module Glib
2
- class DEFAULT
3
- end
4
- end