glib-web 0.4.39 → 0.4.40

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: 2dd8870bd6a50672d21f1440c673adaaa6a9d8cd
4
- data.tar.gz: a702e758ca40ca38b664f4c2aff31ee2de43ba5c
3
+ metadata.gz: 31a8aaa6e7b4405f106578e2cddfab876155ea8d
4
+ data.tar.gz: efa7c8b87a131cfab49535911fd059d2ba217c24
5
5
  SHA512:
6
- metadata.gz: 7706412ce95dc289929d1a2c529ba1f7aa21351f958e82434bd436b6c76bf0c5e024c1d2661fb8b9506b07c0f8b34cbe9159c22f020991347f94ce40431d5d10
7
- data.tar.gz: cf0bfb7a66787505b8b154b84554e2aa4c246c5726133d86876982e05c52bbf598e88fde4c920271daa303b16a7820e113c7603ad86e55245f5451b7e5aef254
6
+ metadata.gz: 147dbb21d3fc7caf2a7a4895ccdc128d9bb1780e80ec86c86a782681581938cf30b1789f0e6979ccea6313072c1eb40a9abd75f34ce869c0ad05975c0bde9fce
7
+ data.tar.gz: 6136ac11c721549916293670d86d3d7261c0b75420ae9a0d8415529751a58398128550d0c1e079b74170d634c4ef62aacaca7139b2860895cc4042c617cbb5a7
@@ -96,16 +96,15 @@ module Glib::Auth
96
96
 
97
97
  module ClassMethods
98
98
  def glib_auth_init
99
+ @__glib_auth_init = true
100
+
99
101
  before_action :glib_load_resource
100
102
  before_action :glib_authorize_resource
101
- # glib_authorize_resource
102
103
  end
103
104
 
104
- # def __glib_load_resource
105
- # case action_name.to_sym
106
- # # glib_load_resource
107
- # end
108
- # end
105
+ def glib_auth_inited?
106
+ @__glib_auth_init || false
107
+ end
109
108
 
110
109
  # TODO: Consider deprecating
111
110
  public
@@ -1,7 +1,9 @@
1
1
  module Glib
2
2
  class HomeController < ApplicationController
3
- skip_before_action :glib_load_resource
4
- skip_before_action :glib_authorize_resource
3
+ if glib_auth_inited?
4
+ skip_before_action :glib_load_resource
5
+ skip_before_action :glib_authorize_resource
6
+ end
5
7
 
6
8
  def json_ui_garage
7
9
  @path_prefix = 'json_ui/garage'
@@ -19,11 +19,22 @@ json_ui_page json do |page|
19
19
  template.thumbnail title: "Submission Indicator", onClick: ->(action) do
20
20
  action.windows_open url: json_ui_garage_url(path: 'forms/submission_indicator')
21
21
  end
22
+ template.thumbnail title: 'GET Request', onClick: ->(action) do
23
+ action.windows_open url: json_ui_garage_url(path: 'forms/get_request')
24
+ end
25
+
26
+ end
27
+ end, ->(section) do
28
+ section.header padding: glib_json_padding_list, childViews: ->(header) do
29
+ header.h2 text: 'Form Logics'
30
+ end
31
+
32
+ section.rows builder: ->(template) do
22
33
  template.thumbnail title: 'Text Validation', onClick: ->(action) do
23
34
  action.windows_open url: json_ui_garage_url(path: 'forms/text_validation')
24
35
  end
25
- template.thumbnail title: 'GET Request', onClick: ->(action) do
26
- action.windows_open url: json_ui_garage_url(path: 'forms/get_request')
36
+ template.thumbnail title: 'Show/Hide', onClick: ->(action) do
37
+ action.windows_open url: json_ui_garage_url(path: 'forms/show_hide')
27
38
  end
28
39
 
29
40
  end
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.4.39
4
+ version: 0.4.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''