base_editing_bootstrap 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +13 -0
  4. data/CHANGELOG.md +5 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/Dockerfile +57 -0
  7. data/LICENSE.txt +21 -0
  8. data/MIT-LICENSE +20 -0
  9. data/README.md +130 -0
  10. data/Rakefile +8 -0
  11. data/app/assets/config/base_editing_bootstrap_manifest.js +0 -0
  12. data/app/assets/images/base_editing_bootstrap/.keep +0 -0
  13. data/app/assets/stylesheets/base_editing_bootstrap/.keep +0 -0
  14. data/app/controllers/.keep +0 -0
  15. data/app/controllers/base_editing_controller.rb +209 -0
  16. data/app/controllers/concerns/.keep +0 -0
  17. data/app/controllers/restricted_area_controller.rb +26 -0
  18. data/app/helpers/.keep +0 -0
  19. data/app/helpers/base_editing_helper.rb +22 -0
  20. data/app/helpers/utilities/enum_helper.rb +24 -0
  21. data/app/helpers/utilities/form_helper.rb +61 -0
  22. data/app/helpers/utilities/modal_helper.rb +11 -0
  23. data/app/helpers/utilities/page_helper.rb +51 -0
  24. data/app/helpers/utilities/search_helper.rb +110 -0
  25. data/app/helpers/utilities/template_helper.rb +22 -0
  26. data/app/jobs/.keep +0 -0
  27. data/app/mailers/.keep +0 -0
  28. data/app/models/.keep +0 -0
  29. data/app/models/concerns/.keep +0 -0
  30. data/app/policies/base_model_policy.rb +42 -0
  31. data/app/views/.keep +0 -0
  32. data/app/views/base_editing/_edit_page_title_header.html.erb +3 -0
  33. data/app/views/base_editing/_editing_form_measure_unit.html.erb +15 -0
  34. data/app/views/base_editing/_form.html.erb +17 -0
  35. data/app/views/base_editing/_form_field.html.erb +6 -0
  36. data/app/views/base_editing/_form_field_header.html.erb +1 -0
  37. data/app/views/base_editing/_form_footer.html.erb +3 -0
  38. data/app/views/base_editing/_index_body.html.erb +17 -0
  39. data/app/views/base_editing/_index_main_buttons.html.erb +1 -0
  40. data/app/views/base_editing/_index_title_header.html.erb +10 -0
  41. data/app/views/base_editing/_navbar.html.erb +0 -0
  42. data/app/views/base_editing/_new_page_title_header.html.erb +3 -0
  43. data/app/views/base_editing/_search.html.erb +17 -0
  44. data/app/views/base_editing/_search_field.erb +4 -0
  45. data/app/views/base_editing/_search_footer.html.erb +1 -0
  46. data/app/views/base_editing/_search_result.html.erb +13 -0
  47. data/app/views/base_editing/_search_result_row.html.erb +8 -0
  48. data/app/views/base_editing/_tabs.html.erb +2 -0
  49. data/app/views/base_editing/cell_field/_base.html.erb +3 -0
  50. data/app/views/base_editing/cell_field/_timestamps.html.erb +3 -0
  51. data/app/views/base_editing/edit.html.erb +3 -0
  52. data/app/views/base_editing/form_field/_base.html.erb +7 -0
  53. data/app/views/base_editing/form_field/_date.html.erb +2 -0
  54. data/app/views/base_editing/form_field/_datetime.html.erb +2 -0
  55. data/app/views/base_editing/form_field/_decimal.html.erb +2 -0
  56. data/app/views/base_editing/form_field/_integer.html.erb +2 -0
  57. data/app/views/base_editing/index.html.erb +5 -0
  58. data/app/views/base_editing/new.html.erb +3 -0
  59. data/app/views/base_editing/show.html.erb +1 -0
  60. data/app/views/kaminari/_first_page.html.erb +3 -0
  61. data/app/views/kaminari/_gap.html.erb +3 -0
  62. data/app/views/kaminari/_last_page.html.erb +3 -0
  63. data/app/views/kaminari/_next_page.html.erb +3 -0
  64. data/app/views/kaminari/_page.html.erb +9 -0
  65. data/app/views/kaminari/_paginator.html.erb +17 -0
  66. data/app/views/kaminari/_prev_page.html.erb +3 -0
  67. data/base_editing_bootstrap.gemspec +39 -0
  68. data/cog.toml +26 -0
  69. data/config/initializers/base_field_error_proc.rb +1 -0
  70. data/config/locales/it.yml +67 -0
  71. data/config/routes.rb +2 -0
  72. data/docker-compose.yml +20 -0
  73. data/lib/base_editing_bootstrap/base_model.rb +30 -0
  74. data/lib/base_editing_bootstrap/engine.rb +15 -0
  75. data/lib/base_editing_bootstrap/forms/base.rb +101 -0
  76. data/lib/base_editing_bootstrap/is_validated.rb +20 -0
  77. data/lib/base_editing_bootstrap/searches/base.rb +47 -0
  78. data/lib/base_editing_bootstrap/searches/field.rb +18 -0
  79. data/lib/base_editing_bootstrap/version.rb +3 -0
  80. data/lib/base_editing_bootstrap.rb +26 -0
  81. data/lib/tasks/base_editing_bootstrap_tasks.rake +4 -0
  82. data/spec/support/external_shared/base_editing_controller_helpers.rb +154 -0
  83. data/spec/support/external_shared/base_model.rb +62 -0
  84. data/spec/support/external_shared/factory_bot.rb +28 -0
  85. data/spec/support/external_shared/pundit.rb +14 -0
  86. metadata +214 -0
metadata ADDED
@@ -0,0 +1,214 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: base_editing_bootstrap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Marino Bonetti
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-04-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '7.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '7.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pundit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.3.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.3.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: ransack
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 4.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 4.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: kaminari
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 1.2.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 1.2.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: factory_bot_rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Raccolta di utility per semplificare costruzione cms in rails
98
+ email:
99
+ - marinobonetti@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".rspec"
105
+ - ".rubocop.yml"
106
+ - CHANGELOG.md
107
+ - CODE_OF_CONDUCT.md
108
+ - Dockerfile
109
+ - LICENSE.txt
110
+ - MIT-LICENSE
111
+ - README.md
112
+ - Rakefile
113
+ - app/assets/config/base_editing_bootstrap_manifest.js
114
+ - app/assets/images/base_editing_bootstrap/.keep
115
+ - app/assets/stylesheets/base_editing_bootstrap/.keep
116
+ - app/controllers/.keep
117
+ - app/controllers/base_editing_controller.rb
118
+ - app/controllers/concerns/.keep
119
+ - app/controllers/restricted_area_controller.rb
120
+ - app/helpers/.keep
121
+ - app/helpers/base_editing_helper.rb
122
+ - app/helpers/utilities/enum_helper.rb
123
+ - app/helpers/utilities/form_helper.rb
124
+ - app/helpers/utilities/modal_helper.rb
125
+ - app/helpers/utilities/page_helper.rb
126
+ - app/helpers/utilities/search_helper.rb
127
+ - app/helpers/utilities/template_helper.rb
128
+ - app/jobs/.keep
129
+ - app/mailers/.keep
130
+ - app/models/.keep
131
+ - app/models/concerns/.keep
132
+ - app/policies/base_model_policy.rb
133
+ - app/views/.keep
134
+ - app/views/base_editing/_edit_page_title_header.html.erb
135
+ - app/views/base_editing/_editing_form_measure_unit.html.erb
136
+ - app/views/base_editing/_form.html.erb
137
+ - app/views/base_editing/_form_field.html.erb
138
+ - app/views/base_editing/_form_field_header.html.erb
139
+ - app/views/base_editing/_form_footer.html.erb
140
+ - app/views/base_editing/_index_body.html.erb
141
+ - app/views/base_editing/_index_main_buttons.html.erb
142
+ - app/views/base_editing/_index_title_header.html.erb
143
+ - app/views/base_editing/_navbar.html.erb
144
+ - app/views/base_editing/_new_page_title_header.html.erb
145
+ - app/views/base_editing/_search.html.erb
146
+ - app/views/base_editing/_search_field.erb
147
+ - app/views/base_editing/_search_footer.html.erb
148
+ - app/views/base_editing/_search_result.html.erb
149
+ - app/views/base_editing/_search_result_row.html.erb
150
+ - app/views/base_editing/_tabs.html.erb
151
+ - app/views/base_editing/cell_field/_base.html.erb
152
+ - app/views/base_editing/cell_field/_timestamps.html.erb
153
+ - app/views/base_editing/edit.html.erb
154
+ - app/views/base_editing/form_field/_base.html.erb
155
+ - app/views/base_editing/form_field/_date.html.erb
156
+ - app/views/base_editing/form_field/_datetime.html.erb
157
+ - app/views/base_editing/form_field/_decimal.html.erb
158
+ - app/views/base_editing/form_field/_integer.html.erb
159
+ - app/views/base_editing/index.html.erb
160
+ - app/views/base_editing/new.html.erb
161
+ - app/views/base_editing/show.html.erb
162
+ - app/views/kaminari/_first_page.html.erb
163
+ - app/views/kaminari/_gap.html.erb
164
+ - app/views/kaminari/_last_page.html.erb
165
+ - app/views/kaminari/_next_page.html.erb
166
+ - app/views/kaminari/_page.html.erb
167
+ - app/views/kaminari/_paginator.html.erb
168
+ - app/views/kaminari/_prev_page.html.erb
169
+ - base_editing_bootstrap.gemspec
170
+ - cog.toml
171
+ - config/initializers/base_field_error_proc.rb
172
+ - config/locales/it.yml
173
+ - config/routes.rb
174
+ - docker-compose.yml
175
+ - lib/base_editing_bootstrap.rb
176
+ - lib/base_editing_bootstrap/base_model.rb
177
+ - lib/base_editing_bootstrap/engine.rb
178
+ - lib/base_editing_bootstrap/forms/base.rb
179
+ - lib/base_editing_bootstrap/is_validated.rb
180
+ - lib/base_editing_bootstrap/searches/base.rb
181
+ - lib/base_editing_bootstrap/searches/field.rb
182
+ - lib/base_editing_bootstrap/version.rb
183
+ - lib/tasks/base_editing_bootstrap_tasks.rake
184
+ - spec/support/external_shared/base_editing_controller_helpers.rb
185
+ - spec/support/external_shared/base_model.rb
186
+ - spec/support/external_shared/factory_bot.rb
187
+ - spec/support/external_shared/pundit.rb
188
+ homepage: https://github.com/oniram88/BaseEditingBootstrap
189
+ licenses:
190
+ - MIT
191
+ metadata:
192
+ homepage_uri: https://github.com/oniram88/BaseEditingBootstrap
193
+ source_code_uri: https://github.com/oniram88/BaseEditingBootstrap
194
+ changelog_uri: https://github.com/oniram88/BaseEditingBootstrap/CHANGELOG
195
+ post_install_message:
196
+ rdoc_options: []
197
+ require_paths:
198
+ - lib
199
+ required_ruby_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '3.1'
204
+ required_rubygems_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ requirements: []
210
+ rubygems_version: 3.5.3
211
+ signing_key:
212
+ specification_version: 4
213
+ summary: 'BaseEditing: funzionalità di base per cms rails'
214
+ test_files: []