glib-web 0.4.46 → 0.4.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +5 -5
  2. data/app/controllers/concerns/glib/auth/policy.rb +0 -0
  3. data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
  4. data/app/controllers/concerns/glib/json/traversal.rb +0 -0
  5. data/app/controllers/glib/home_controller.rb +0 -0
  6. data/app/helpers/glib/dynamic_images_helper.rb +0 -0
  7. data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
  8. data/app/helpers/glib/forms_helper.rb +0 -0
  9. data/app/helpers/glib/json_ui/abstract_builder.rb +0 -0
  10. data/app/helpers/glib/json_ui/action_builder.rb +0 -0
  11. data/app/helpers/glib/json_ui/action_builder/dialogs.rb +0 -0
  12. data/app/helpers/glib/json_ui/action_builder/sheets.rb +0 -0
  13. data/app/helpers/glib/json_ui/action_builder/snackbars.rb +0 -0
  14. data/app/helpers/glib/json_ui/action_builder/windows.rb +0 -0
  15. data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
  16. data/app/helpers/glib/json_ui/list_builders.rb +0 -0
  17. data/app/helpers/glib/json_ui/menu_builder.rb +0 -0
  18. data/app/helpers/glib/json_ui/page_helper.rb +0 -0
  19. data/app/helpers/glib/json_ui/response_helper.rb +0 -0
  20. data/app/helpers/glib/json_ui/split_builders.rb +0 -0
  21. data/app/helpers/glib/json_ui/styling_helper.rb +0 -0
  22. data/app/helpers/glib/json_ui/table_builders.rb +0 -0
  23. data/app/helpers/glib/json_ui/view_builder.rb +0 -0
  24. data/app/helpers/glib/json_ui/view_builder/banners.rb +0 -0
  25. data/app/helpers/glib/json_ui/view_builder/fields.rb +0 -0
  26. data/app/helpers/glib/json_ui/view_builder/panels.rb +0 -0
  27. data/app/models/glib/active_storage/attachment.rb +0 -0
  28. data/app/models/glib/active_storage/blob.rb +0 -0
  29. data/app/models/glib/dynamic_text_record.rb +0 -0
  30. data/app/models/glib/text.rb +0 -0
  31. data/app/policies/glib/application_policy.rb +0 -0
  32. data/app/validators/email_validator.rb +7 -0
  33. data/app/validators/url_validator.rb +20 -0
  34. data/app/views/app/views/json_ui/vue/renderer.html.erb +0 -0
  35. data/app/views/json_ui/garage/_nav_menu.json.jbuilder +0 -0
  36. data/app/views/json_ui/garage/actions/_dialogs.json.jbuilder +0 -0
  37. data/app/views/json_ui/garage/actions/_sheets.json.jbuilder +0 -0
  38. data/app/views/json_ui/garage/actions/_snackbars.json.jbuilder +0 -0
  39. data/app/views/json_ui/garage/actions/_windows.json.jbuilder +0 -0
  40. data/app/views/json_ui/garage/actions/index.json.jbuilder +0 -0
  41. data/app/views/json_ui/garage/forms/_alert_post_data.json.jbuilder +0 -0
  42. data/app/views/json_ui/garage/forms/basic.json.jbuilder +0 -0
  43. data/app/views/json_ui/garage/forms/basic_post.json.jbuilder +0 -0
  44. data/app/views/json_ui/garage/forms/checkboxes.json.jbuilder +0 -0
  45. data/app/views/json_ui/garage/forms/dynamic_group.json.jbuilder +0 -0
  46. data/app/views/json_ui/garage/forms/dynamic_select.json.jbuilder +0 -0
  47. data/app/views/json_ui/garage/forms/dynamic_select_data.json.jbuilder +0 -0
  48. data/app/views/json_ui/garage/forms/file_upload.json.jbuilder +0 -0
  49. data/app/views/json_ui/garage/forms/floating_submit.json.jbuilder +0 -0
  50. data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
  51. data/app/views/json_ui/garage/forms/get_request.json.jbuilder +0 -0
  52. data/app/views/json_ui/garage/forms/index.json.jbuilder +0 -0
  53. data/app/views/json_ui/garage/forms/pickers.json.jbuilder +0 -0
  54. data/app/views/json_ui/garage/forms/rich_text.json.jbuilder +0 -0
  55. data/app/views/json_ui/garage/forms/selects.json.jbuilder +0 -0
  56. data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +0 -0
  57. data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
  58. data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
  59. data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
  60. data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
  61. data/app/views/json_ui/garage/forms/text_validation.json.jbuilder +0 -0
  62. data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
  63. data/app/views/json_ui/garage/home/index.json.jbuilder +0 -0
  64. data/app/views/json_ui/garage/lists/_infinite_scroll_section.json.jbuilder +0 -0
  65. data/app/views/json_ui/garage/lists/edit_actions.json.jbuilder +0 -0
  66. data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
  67. data/app/views/json_ui/garage/lists/index.json.jbuilder +0 -0
  68. data/app/views/json_ui/garage/lists/infinite_scroll.json.jbuilder +0 -0
  69. data/app/views/json_ui/garage/lists/templating.json.jbuilder +0 -0
  70. data/app/views/json_ui/garage/pages/flat_centered.json.jbuilder +0 -0
  71. data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
  72. data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
  73. data/app/views/json_ui/garage/pages/index.json.jbuilder +0 -0
  74. data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
  75. data/app/views/json_ui/garage/pages/nav_buttons.json.jbuilder +0 -0
  76. data/app/views/json_ui/garage/pages/tab_bar.json.jbuilder +0 -0
  77. data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
  78. data/app/views/json_ui/garage/panels/carousel.json.jbuilder +0 -0
  79. data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
  80. data/app/views/json_ui/garage/panels/flow.json.jbuilder +0 -0
  81. data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +0 -0
  82. data/app/views/json_ui/garage/panels/index.json.jbuilder +0 -0
  83. data/app/views/json_ui/garage/panels/responsive.json.jbuilder +0 -0
  84. data/app/views/json_ui/garage/panels/split.json.jbuilder +0 -0
  85. data/app/views/json_ui/garage/panels/vertical.json.jbuilder +0 -0
  86. data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
  87. data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
  88. data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
  89. data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
  90. data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
  91. data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
  92. data/app/views/json_ui/garage/tables/horizontal_scroll.json.jbuilder +0 -0
  93. data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
  94. data/app/views/json_ui/garage/views/banners.json.jbuilder +0 -0
  95. data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
  96. data/app/views/json_ui/garage/views/carousels.json.jbuilder +0 -0
  97. data/app/views/json_ui/garage/views/charts.json.jbuilder +0 -0
  98. data/app/views/json_ui/garage/views/images.json.jbuilder +0 -0
  99. data/app/views/json_ui/garage/views/index.json.jbuilder +0 -0
  100. data/app/views/json_ui/garage/views/links.json.jbuilder +0 -0
  101. data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
  102. data/app/views/json_ui/garage/views/misc.json.jbuilder +0 -0
  103. data/app/views/json_ui/garage/views/texts.json.jbuilder +0 -0
  104. data/config/routes.rb +0 -0
  105. data/lib/generators/glib/install_generator.rb +0 -0
  106. data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
  107. data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
  108. data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
  109. data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
  110. data/lib/generators/templates/database.yml +0 -0
  111. data/lib/generators/templates/dynamic_text.rb +0 -0
  112. data/lib/glib-web.rb +0 -0
  113. data/lib/glib/dynamic_text.rb +0 -0
  114. data/lib/glib/dynamic_text/config.rb +0 -0
  115. data/lib/glib/engine.rb +0 -0
  116. data/lib/glib/json_crawler.rb +0 -0
  117. data/lib/glib/json_crawler/action_crawler.rb +0 -0
  118. data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
  119. data/lib/glib/json_crawler/action_crawlers/forms_submit.rb +0 -0
  120. data/lib/glib/json_crawler/action_crawlers/nav_initiate.rb +0 -0
  121. data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
  122. data/lib/glib/json_crawler/http.rb +0 -0
  123. data/lib/glib/json_crawler/router.rb +0 -0
  124. data/lib/glib/value.rb +0 -0
  125. data/lib/glib/version.rb +0 -0
  126. data/lib/tasks/db.rake +10 -0
  127. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d57c3b97dd9a007c3fadbab196e27612ac447cbd
4
- data.tar.gz: b67aa135984df79309d297a8eac4299861830eae
2
+ SHA256:
3
+ metadata.gz: 3e68f173ec684cd90fb98a37fe84d5c50a7ae0adf948585853b176c59df71978
4
+ data.tar.gz: 952526d8350ba61c11f5895a2b6e5065ae83b2ff3c52052c07b4b84ace966b5f
5
5
  SHA512:
6
- metadata.gz: 38cd451b9ded3eb5f2a3aa193e1716287a6929c08c9813a7541d0c2adc0575268706c48fa63c806e778edc1933e01fb951786ee9073c0848752873d8af8e3353
7
- data.tar.gz: 2db49faa2d25f02b7696861c4f5a3493c5bd3661696689954158b377d5df2105709d1c1d821addc024f6e59235c6255f7b227109f4e12f11c50ffa18b95b51bd
6
+ metadata.gz: 9353af0fe351b17c660779de92600e8ffd903279511b75aaff23b85f8e46b7a922f0f6ffad62dadc619194be1071808113d1eef6f34fb2ca74b001e292328ebc
7
+ data.tar.gz: 743c75103bd591c58a02fcb0090f91d150ab377b1890b352368bc2a501f84e75d3933c3f16ede8d295f1ca05257de0eef952cb1175446db2ed29c5cdaddc0612
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ class EmailValidator < ActiveModel::EachValidator
2
+ def validate_each(record, attribute, value)
3
+ unless value =~ /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
4
+ record.errors.add(attribute, :invalid)
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,20 @@
1
+ class UrlValidator < ActiveModel::EachValidator
2
+ def validate_each(record, attribute, value)
3
+ schemes = ['https', 'http']
4
+
5
+ begin
6
+ uri = URI.parse(value)
7
+ host = uri && uri.host
8
+ scheme = uri && uri.scheme
9
+
10
+ valid_scheme = host && scheme && schemes.include?(scheme)
11
+ valid_raw_url = scheme && value.match?(URI::regexp([scheme]))
12
+
13
+ unless valid_raw_url && valid_scheme
14
+ record.errors.add(attribute, :invalid)
15
+ end
16
+ rescue URI::InvalidURIError
17
+ record.errors.add(attribute, :invalid)
18
+ end
19
+ end
20
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -22,6 +22,16 @@ namespace :db do
22
22
  Pathname.new(s).basename.to_s.gsub(/\.rb$/,'').camelize
23
23
  end
24
24
 
25
+ begin
26
+ active_storage_classes = ['ActiveStorage::Attachment', 'ActiveStorage::Blob']
27
+ active_storage_classes.each do |klass|
28
+ klass.constantize
29
+ models << klass
30
+ end
31
+ rescue NameError
32
+ puts 'ActiveStorage disabled'
33
+ end
34
+
25
35
  # specify FIXTURES_PATH to test/fixtures if you do test:unit
26
36
  dump_dir = ENV['FIXTURES_PATH'] || "test/fixtures/"
27
37
 
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.46
4
+ version: 0.4.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
@@ -101,6 +101,8 @@ files:
101
101
  - app/models/glib/dynamic_text_record.rb
102
102
  - app/models/glib/text.rb
103
103
  - app/policies/glib/application_policy.rb
104
+ - app/validators/email_validator.rb
105
+ - app/validators/url_validator.rb
104
106
  - app/views/app/views/json_ui/vue/renderer.html.erb
105
107
  - app/views/json_ui/garage/_nav_menu.json.jbuilder
106
108
  - app/views/json_ui/garage/actions/_dialogs.json.jbuilder
@@ -217,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
219
  version: '0'
218
220
  requirements: []
219
221
  rubyforge_project:
220
- rubygems_version: 2.6.8
222
+ rubygems_version: 2.7.6
221
223
  signing_key:
222
224
  specification_version: 4
223
225
  summary: ''