kono_utils 1.0.1 → 1.1.0

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.
Files changed (92) hide show
  1. checksums.yaml +5 -5
  2. data/README.rdoc +0 -76
  3. data/app/assets/javascripts/kono_utils/core.coffee +477 -0
  4. data/app/assets/stylesheets/kono_utils/{_kono_styles.css.scss → core.css.scss} +1 -16
  5. data/app/policies/kono_utils/base_editing_policy_concern.rb +52 -3
  6. data/app/policies/kono_utils/base_search_form_policy_concern.rb +25 -0
  7. data/config/locales/it.yml +3 -1
  8. data/lib/generators/kono_utils/install/install_generator.rb +40 -3
  9. data/lib/generators/templates/base_editing_controller.template +3 -0
  10. data/lib/generators/templates/base_editing_helper.template +3 -0
  11. data/lib/generators/templates/base_editing_policy.template +4 -0
  12. data/lib/generators/templates/initializer.rb +3 -1
  13. data/lib/kono_utils.rb +20 -22
  14. data/lib/kono_utils/application_core_helper.rb +524 -0
  15. data/lib/kono_utils/application_enum_helper.rb +53 -0
  16. data/lib/kono_utils/application_helper.rb +4 -578
  17. data/lib/kono_utils/base_editing_core_helper.rb +194 -0
  18. data/lib/kono_utils/base_editing_helper.rb +3 -186
  19. data/lib/kono_utils/base_search.rb +32 -19
  20. data/lib/kono_utils/concerns/active_record_translation.rb +8 -4
  21. data/lib/kono_utils/concerns/active_storage_remover_helper.rb +61 -0
  22. data/lib/kono_utils/concerns/base_editing.rb +199 -53
  23. data/lib/kono_utils/configuration.rb +18 -0
  24. data/lib/kono_utils/engine.rb +15 -7
  25. data/lib/kono_utils/paginate_proxer.rb +17 -0
  26. data/lib/kono_utils/search_form_builder.rb +24 -0
  27. data/lib/kono_utils/version.rb +1 -1
  28. data/spec/dummy/app/assets/config/manifest.js +2 -0
  29. data/spec/dummy/app/assets/javascripts/application.js +1 -0
  30. data/spec/dummy/app/controllers/application_controller.rb +10 -0
  31. data/spec/dummy/app/controllers/base_editing_controller.rb +3 -0
  32. data/spec/dummy/app/controllers/users_controller.rb +2 -0
  33. data/spec/dummy/app/helpers/application_helper.rb +1 -0
  34. data/spec/dummy/app/helpers/base_editing_helper.rb +3 -0
  35. data/spec/dummy/app/models/application_record.rb +5 -0
  36. data/spec/dummy/app/models/user.rb +2 -0
  37. data/spec/dummy/app/policies/application_policy.rb +49 -0
  38. data/spec/dummy/app/policies/base_editing_policy.rb +4 -0
  39. data/spec/dummy/app/policies/user_policy.rb +23 -0
  40. data/spec/dummy/config/application.rb +1 -1
  41. data/spec/dummy/config/initializers/kono_utils.rb +3 -1
  42. data/spec/dummy/config/routes.rb +4 -0
  43. data/spec/dummy/db/migrate/20190716093114_create_users.rb +11 -0
  44. data/spec/dummy/db/schema.rb +23 -0
  45. data/spec/dummy/spec/models/user_spec.rb +5 -0
  46. metadata +63 -131
  47. data/app/assets/javascripts/kono_utils/utilities.coffee +0 -480
  48. data/app/assets/stylesheets/kono_utils/utils.css.scss +0 -4
  49. data/app/input/bs_aceeditor_input.rb +0 -53
  50. data/app/input/bs_autocomplete_input.rb +0 -60
  51. data/app/input/bs_datepicker_input.rb +0 -16
  52. data/app/input/bs_datetimepicker_input.rb +0 -80
  53. data/app/input/bs_file_download_input.rb +0 -35
  54. data/app/input/bs_image_input.rb +0 -35
  55. data/app/input/bs_label_with_container_input.rb +0 -22
  56. data/app/input/bs_location_picker_input.rb +0 -95
  57. data/app/input/bs_readonly_input.rb +0 -52
  58. data/app/input/bs_timepicker_input.rb +0 -14
  59. data/app/views/kono_utils/application/_search_panel.html.erb +0 -36
  60. data/app/views/kono_utils/base_editing/_edit.html.erb +0 -3
  61. data/app/views/kono_utils/base_editing/_edit_page_side_title_header.html.erb +0 -3
  62. data/app/views/kono_utils/base_editing/_edit_page_title_header.html.erb +0 -3
  63. data/app/views/kono_utils/base_editing/_form.html.erb +0 -15
  64. data/app/views/kono_utils/base_editing/_index_buttons.html.erb +0 -2
  65. data/app/views/kono_utils/base_editing/_index_page_side_title_header.html.erb +0 -3
  66. data/app/views/kono_utils/base_editing/_index_page_title_header.html.erb +0 -3
  67. data/app/views/kono_utils/base_editing/_index_tfoot.html.erb +0 -0
  68. data/app/views/kono_utils/base_editing/_new.html.erb +0 -3
  69. data/app/views/kono_utils/base_editing/_new_page_side_title_header.html.erb +0 -3
  70. data/app/views/kono_utils/base_editing/_new_page_title_header.html.erb +0 -3
  71. data/app/views/kono_utils/base_editing/_search_form.html.erb +0 -1
  72. data/app/views/kono_utils/base_editing/application/_edit_page_side_title_header.html.erb +0 -1
  73. data/app/views/kono_utils/base_editing/application/_edit_page_title_header.html.erb +0 -1
  74. data/app/views/kono_utils/base_editing/application/_index_page_side_title_header.html.erb +0 -1
  75. data/app/views/kono_utils/base_editing/application/_index_page_title_header.html.erb +0 -1
  76. data/app/views/kono_utils/base_editing/application/_new_page_side_title_header.html.erb +0 -1
  77. data/app/views/kono_utils/base_editing/application/_new_page_title_header.html.erb +0 -1
  78. data/app/views/kono_utils/base_editing/application/edit.html.erb +0 -1
  79. data/app/views/kono_utils/base_editing/application/new.html.erb +0 -1
  80. data/app/views/kono_utils/base_editing/edit.html.erb +0 -1
  81. data/app/views/kono_utils/base_editing/index.html.erb +0 -36
  82. data/app/views/kono_utils/base_editing/new.html.erb +0 -1
  83. data/lib/kono_utils/concerns.rb +0 -10
  84. data/lib/kono_utils/encoder.rb +0 -47
  85. data/lib/kono_utils/fiscal_code.rb +0 -47
  86. data/lib/kono_utils/params_hash_array.rb +0 -37
  87. data/lib/kono_utils/percentage.rb +0 -60
  88. data/lib/kono_utils/tmp_file.rb +0 -81
  89. data/lib/kono_utils/virtual_model.rb +0 -22
  90. data/lib/tasks/kono_utils_tasks.rake +0 -4
  91. data/spec/lib/kono_utils/fiscal_code_spec.rb +0 -56
  92. data/vendor/assets/javascripts/EventEmitter.js +0 -473
@@ -1,19 +1,27 @@
1
1
  module KonoUtils
2
2
  class Engine < ::Rails::Engine
3
3
 
4
- require 'bootstrap3-datetimepicker-rails'
5
- require 'momentjs-rails'
6
- require 'font-awesome-rails'
7
- require 'will_paginate'
8
- require 'will_paginate-bootstrap'
9
4
  require 'rdiscount'
10
- require 'underscore-rails'
11
- require 'formtastic-bootstrap'
5
+ require 'pundit'
6
+ require 'kono_utils_helpers'
12
7
 
13
8
 
14
9
  initializer 'kono_utils.append_views', :group => :all do |app|
15
10
  ActionController::Base.append_view_path KonoUtils::Engine.root.join("app", "views", "kono_utils")
16
11
  end
17
12
 
13
+
14
+ initializer 'kono_utils.append_helpers', :group => :all do |app|
15
+ KonoUtils.configure do |c|
16
+ c.application_helper_includes << KonoUtils::ApplicationCoreHelper
17
+ c.application_helper_includes << KonoUtils::ApplicationEnumHelper
18
+ c.base_editing_helper_includes << KonoUtils::BaseEditingCoreHelper
19
+ end
20
+ end
21
+
22
+ initializer 'kono_utils.appen_custom_format', :group => :all do |app|
23
+ Mime::Type.register Mime[:js].to_s, :inject
24
+ end
25
+
18
26
  end
19
27
  end
@@ -0,0 +1,17 @@
1
+ module KonoUtils
2
+ ##
3
+ # Simple PORO to proxyng the pagination operations
4
+ class PaginateProxer
5
+
6
+ attr_accessor :collection
7
+
8
+ def initialize(collection)
9
+ @collection = collection
10
+ end
11
+
12
+ def paginate(params={})
13
+ raise "TO Override with the correct pagination method of the gem used"
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,24 @@
1
+ module KonoUtils
2
+ ##
3
+ # PORO che si occupa di fare da proxy nella generazione della form della ricerca.
4
+ # Questa classe è designata a staccare la logica del modello della ricerca dalla logica del controller e view
5
+ class SearchFormBuilder
6
+
7
+ #@return [KonoUtils::BaseSearch] o una classe derivata
8
+ attr_reader :search
9
+
10
+ # @param [KonoUtils::BaseSearch] search
11
+ def initialize(search)
12
+ @search = search
13
+ end
14
+
15
+
16
+ ##
17
+ # Costruisce la path per fare le richieste, oppure false nel caso non sia stata configurata
18
+ # @return [String,FalseClass]
19
+ def search_path
20
+ Rails.application.routes.url_helpers.polymorphic_path(search) rescue false
21
+ end
22
+
23
+ end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module KonoUtils
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -0,0 +1,2 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../stylesheets .css
@@ -10,5 +10,6 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
+ //= require jquery/dist/jquery
13
14
  //= require kono_utils/utilities
14
15
  //= require_tree .
@@ -2,4 +2,14 @@ class ApplicationController < ActionController::Base
2
2
  # Prevent CSRF attacks by raising an exception.
3
3
  # For APIs, you may want to use :null_session instead.
4
4
  protect_from_forgery with: :exception
5
+
6
+
7
+ private
8
+
9
+ ##
10
+ # Semplificazione in sviluppo di un possibile utente
11
+ def current_user
12
+ User.first || User.create(username: 'mario', surname: 'rossi',email:"example@tld.it")
13
+ end
14
+
5
15
  end
@@ -0,0 +1,3 @@
1
+ class BaseEditingController < ApplicationController
2
+ include KonoUtils::Concerns::BaseEditing
3
+ end
@@ -0,0 +1,2 @@
1
+ class UsersController < BaseEditingController
2
+ end
@@ -1,2 +1,3 @@
1
1
  module ApplicationHelper
2
+ include KonoUtils::ApplicationHelper
2
3
  end
@@ -0,0 +1,3 @@
1
+ module BaseEditingHelper
2
+ include KonoUtils::BaseEditingHelper
3
+ end
@@ -0,0 +1,5 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ include KonoUtils::Concerns::ActiveRecordTranslation
3
+
4
+ self.abstract_class = true
5
+ end
@@ -0,0 +1,2 @@
1
+ class User < ApplicationRecord
2
+ end
@@ -0,0 +1,49 @@
1
+ class ApplicationPolicy
2
+ attr_reader :user, :record
3
+
4
+ def initialize(user, record)
5
+ @user = user
6
+ @record = record
7
+ end
8
+
9
+ def index?
10
+ false
11
+ end
12
+
13
+ def show?
14
+ false
15
+ end
16
+
17
+ def create?
18
+ false
19
+ end
20
+
21
+ def new?
22
+ create?
23
+ end
24
+
25
+ def update?
26
+ false
27
+ end
28
+
29
+ def edit?
30
+ update?
31
+ end
32
+
33
+ def destroy?
34
+ false
35
+ end
36
+
37
+ class Scope
38
+ attr_reader :user, :scope
39
+
40
+ def initialize(user, scope)
41
+ @user = user
42
+ @scope = scope
43
+ end
44
+
45
+ def resolve
46
+ scope.all
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,4 @@
1
+ class BaseEditingPolicy < ApplicationPolicy
2
+ include KonoUtils::BaseEditingPolicyConcern
3
+
4
+ end
@@ -0,0 +1,23 @@
1
+ class UserPolicy < BaseEditingPolicy
2
+
3
+ def index?
4
+ true
5
+ end
6
+
7
+ def show?
8
+ true
9
+ end
10
+
11
+ def create?
12
+ true
13
+ end
14
+
15
+ def update?
16
+ true
17
+ end
18
+
19
+ def destroy?
20
+ true
21
+ end
22
+
23
+ end
@@ -20,7 +20,7 @@ Bundler.require(*Rails.groups)
20
20
  module Dummy
21
21
  class Application < Rails::Application
22
22
  # Initialize configuration defaults for originally generated Rails version.
23
- config.load_defaults 5.0
23
+ config.load_defaults 6.0
24
24
 
25
25
  # Settings in config/environments/* take precedence over those specified here.
26
26
  # Application configuration can go into files in config/initializers
@@ -1,3 +1,5 @@
1
1
  KonoUtils.configure do |config|
2
2
  #config.google_api_key = '' #chiave API
3
- end
3
+ end
4
+
5
+ Rails.application.config.action_controller.include_all_helpers=false
@@ -1,3 +1,7 @@
1
1
  Rails.application.routes.draw do
2
2
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
3
+
4
+ resources :users
5
+
6
+ root to: "users#index"
3
7
  end
@@ -0,0 +1,11 @@
1
+ class CreateUsers < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :username
5
+ t.string :surname
6
+ t.string :email
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,23 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 2019_07_16_093114) do
14
+
15
+ create_table "users", force: :cascade do |t|
16
+ t.string "username"
17
+ t.string "surname"
18
+ t.string "email"
19
+ t.datetime "created_at", null: false
20
+ t.datetime "updated_at", null: false
21
+ end
22
+
23
+ end
@@ -0,0 +1,5 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe User, type: :model do
4
+ pending "add some examples to (or delete) #{__FILE__}"
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kono_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-05 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -25,21 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: font-awesome-rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: underscore-rails
28
+ name: rdiscount
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -53,7 +39,7 @@ dependencies:
53
39
  - !ruby/object:Gem::Version
54
40
  version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
- name: active_type
42
+ name: coffee-rails
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -67,7 +53,7 @@ dependencies:
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
- name: codice-fiscale
56
+ name: sass-rails
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - ">="
@@ -81,77 +67,21 @@ dependencies:
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: rails-jquery-autocomplete
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 1.0.3
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 1.0.3
97
- - !ruby/object:Gem::Dependency
98
- name: formtastic-bootstrap
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 3.1.1
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 3.1.1
111
- - !ruby/object:Gem::Dependency
112
- name: momentjs-rails
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: 2.9.0
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: 2.9.0
125
- - !ruby/object:Gem::Dependency
126
- name: bootstrap3-datetimepicker-rails
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 4.17.42
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 4.17.42
139
- - !ruby/object:Gem::Dependency
140
- name: will_paginate
70
+ name: pundit
141
71
  requirement: !ruby/object:Gem::Requirement
142
72
  requirements:
143
73
  - - "~>"
144
74
  - !ruby/object:Gem::Version
145
- version: 3.1.0
75
+ version: '2.0'
146
76
  type: :runtime
147
77
  prerelease: false
148
78
  version_requirements: !ruby/object:Gem::Requirement
149
79
  requirements:
150
80
  - - "~>"
151
81
  - !ruby/object:Gem::Version
152
- version: 3.1.0
82
+ version: '2.0'
153
83
  - !ruby/object:Gem::Dependency
154
- name: will_paginate-bootstrap
84
+ name: kono_utils_helpers
155
85
  requirement: !ruby/object:Gem::Requirement
156
86
  requirements:
157
87
  - - ">="
@@ -165,7 +95,7 @@ dependencies:
165
95
  - !ruby/object:Gem::Version
166
96
  version: '0'
167
97
  - !ruby/object:Gem::Dependency
168
- name: rdiscount
98
+ name: zeitwerk
169
99
  requirement: !ruby/object:Gem::Requirement
170
100
  requirements:
171
101
  - - ">="
@@ -179,7 +109,7 @@ dependencies:
179
109
  - !ruby/object:Gem::Version
180
110
  version: '0'
181
111
  - !ruby/object:Gem::Dependency
182
- name: coffee-rails
112
+ name: active_type
183
113
  requirement: !ruby/object:Gem::Requirement
184
114
  requirements:
185
115
  - - ">="
@@ -234,6 +164,20 @@ dependencies:
234
164
  - - ">="
235
165
  - !ruby/object:Gem::Version
236
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: listen
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
237
181
  description: Gemma per che raccoglie varie tipologie di classi di utilità varia che
238
182
  possono servire al funzionamento delle applicazioni e semplificare la vita al programmatore
239
183
  Rails
@@ -246,82 +190,59 @@ files:
246
190
  - MIT-LICENSE
247
191
  - README.rdoc
248
192
  - Rakefile
249
- - app/assets/javascripts/kono_utils/utilities.coffee
250
- - app/assets/stylesheets/kono_utils/_kono_styles.css.scss
251
- - app/assets/stylesheets/kono_utils/utils.css.scss
193
+ - app/assets/javascripts/kono_utils/core.coffee
194
+ - app/assets/stylesheets/kono_utils/core.css.scss
252
195
  - app/controllers/kono_utils/change_log_controller.rb
253
- - app/input/bs_aceeditor_input.rb
254
- - app/input/bs_autocomplete_input.rb
255
- - app/input/bs_datepicker_input.rb
256
- - app/input/bs_datetimepicker_input.rb
257
- - app/input/bs_file_download_input.rb
258
- - app/input/bs_image_input.rb
259
- - app/input/bs_label_with_container_input.rb
260
- - app/input/bs_location_picker_input.rb
261
- - app/input/bs_readonly_input.rb
262
- - app/input/bs_timepicker_input.rb
263
196
  - app/policies/kono_utils/base_editing_policy_concern.rb
264
- - app/views/kono_utils/application/_search_panel.html.erb
265
- - app/views/kono_utils/base_editing/_edit.html.erb
266
- - app/views/kono_utils/base_editing/_edit_page_side_title_header.html.erb
267
- - app/views/kono_utils/base_editing/_edit_page_title_header.html.erb
268
- - app/views/kono_utils/base_editing/_form.html.erb
269
- - app/views/kono_utils/base_editing/_index_buttons.html.erb
270
- - app/views/kono_utils/base_editing/_index_page_side_title_header.html.erb
271
- - app/views/kono_utils/base_editing/_index_page_title_header.html.erb
272
- - app/views/kono_utils/base_editing/_index_tfoot.html.erb
273
- - app/views/kono_utils/base_editing/_new.html.erb
274
- - app/views/kono_utils/base_editing/_new_page_side_title_header.html.erb
275
- - app/views/kono_utils/base_editing/_new_page_title_header.html.erb
276
- - app/views/kono_utils/base_editing/_search_form.html.erb
277
- - app/views/kono_utils/base_editing/application/_edit_page_side_title_header.html.erb
278
- - app/views/kono_utils/base_editing/application/_edit_page_title_header.html.erb
279
- - app/views/kono_utils/base_editing/application/_index_page_side_title_header.html.erb
280
- - app/views/kono_utils/base_editing/application/_index_page_title_header.html.erb
281
- - app/views/kono_utils/base_editing/application/_new_page_side_title_header.html.erb
282
- - app/views/kono_utils/base_editing/application/_new_page_title_header.html.erb
283
- - app/views/kono_utils/base_editing/application/edit.html.erb
284
- - app/views/kono_utils/base_editing/application/new.html.erb
285
- - app/views/kono_utils/base_editing/edit.html.erb
286
- - app/views/kono_utils/base_editing/index.html.erb
287
- - app/views/kono_utils/base_editing/new.html.erb
197
+ - app/policies/kono_utils/base_search_form_policy_concern.rb
288
198
  - app/views/kono_utils/change_log/index.html.erb
289
199
  - config/initializers/mysql.rb
290
200
  - config/initializers/time.rb
291
201
  - config/locales/it.yml
292
202
  - lib/generators/kono_utils/install/install_generator.rb
203
+ - lib/generators/templates/base_editing_controller.template
204
+ - lib/generators/templates/base_editing_helper.template
205
+ - lib/generators/templates/base_editing_policy.template
293
206
  - lib/generators/templates/initializer.rb
294
207
  - lib/kono_utils.rb
208
+ - lib/kono_utils/application_core_helper.rb
209
+ - lib/kono_utils/application_enum_helper.rb
295
210
  - lib/kono_utils/application_helper.rb
211
+ - lib/kono_utils/base_editing_core_helper.rb
296
212
  - lib/kono_utils/base_editing_helper.rb
297
213
  - lib/kono_utils/base_search.rb
298
- - lib/kono_utils/concerns.rb
299
214
  - lib/kono_utils/concerns/active_record_translation.rb
215
+ - lib/kono_utils/concerns/active_storage_remover_helper.rb
300
216
  - lib/kono_utils/concerns/base_editing.rb
301
217
  - lib/kono_utils/concerns/base_modals.rb
302
218
  - lib/kono_utils/concerns/success_message.rb
303
- - lib/kono_utils/encoder.rb
219
+ - lib/kono_utils/configuration.rb
304
220
  - lib/kono_utils/engine.rb
305
- - lib/kono_utils/fiscal_code.rb
306
- - lib/kono_utils/params_hash_array.rb
307
- - lib/kono_utils/percentage.rb
221
+ - lib/kono_utils/paginate_proxer.rb
308
222
  - lib/kono_utils/search_attribute.rb
309
- - lib/kono_utils/tmp_file.rb
223
+ - lib/kono_utils/search_form_builder.rb
310
224
  - lib/kono_utils/version.rb
311
- - lib/kono_utils/virtual_model.rb
312
- - lib/tasks/kono_utils_tasks.rake
313
225
  - spec/dummy/.gitignore
314
226
  - spec/dummy/README.rdoc
315
227
  - spec/dummy/Rakefile
228
+ - spec/dummy/app/assets/config/manifest.js
316
229
  - spec/dummy/app/assets/images/.keep
317
230
  - spec/dummy/app/assets/javascripts/application.js
318
231
  - spec/dummy/app/assets/stylesheets/application.css
319
232
  - spec/dummy/app/controllers/application_controller.rb
233
+ - spec/dummy/app/controllers/base_editing_controller.rb
320
234
  - spec/dummy/app/controllers/concerns/.keep
235
+ - spec/dummy/app/controllers/users_controller.rb
321
236
  - spec/dummy/app/helpers/application_helper.rb
237
+ - spec/dummy/app/helpers/base_editing_helper.rb
322
238
  - spec/dummy/app/mailers/.keep
323
239
  - spec/dummy/app/models/.keep
240
+ - spec/dummy/app/models/application_record.rb
324
241
  - spec/dummy/app/models/concerns/.keep
242
+ - spec/dummy/app/models/user.rb
243
+ - spec/dummy/app/policies/application_policy.rb
244
+ - spec/dummy/app/policies/base_editing_policy.rb
245
+ - spec/dummy/app/policies/user_policy.rb
325
246
  - spec/dummy/app/views/layouts/application.html.erb
326
247
  - spec/dummy/bin/bundle
327
248
  - spec/dummy/bin/rails
@@ -353,6 +274,8 @@ files:
353
274
  - spec/dummy/config/routes.rb
354
275
  - spec/dummy/config/secrets.yml
355
276
  - spec/dummy/config/storage.yml
277
+ - spec/dummy/db/migrate/20190716093114_create_users.rb
278
+ - spec/dummy/db/schema.rb
356
279
  - spec/dummy/lib/assets/.keep
357
280
  - spec/dummy/log/.keep
358
281
  - spec/dummy/package.json
@@ -360,11 +283,10 @@ files:
360
283
  - spec/dummy/public/422.html
361
284
  - spec/dummy/public/500.html
362
285
  - spec/dummy/public/favicon.ico
286
+ - spec/dummy/spec/models/user_spec.rb
363
287
  - spec/dummy/yarn.lock
364
- - spec/lib/kono_utils/fiscal_code_spec.rb
365
288
  - spec/rails_helper.rb
366
289
  - spec/spec_helper.rb
367
- - vendor/assets/javascripts/EventEmitter.js
368
290
  homepage: https://github.com/ArchimediaZerogroup/KonoUtils
369
291
  licenses:
370
292
  - MIT
@@ -384,8 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
306
  - !ruby/object:Gem::Version
385
307
  version: '0'
386
308
  requirements: []
387
- rubyforge_project:
388
- rubygems_version: 2.5.2
309
+ rubygems_version: 3.0.8
389
310
  signing_key:
390
311
  specification_version: 4
391
312
  summary: Kono Utilities
@@ -393,15 +314,24 @@ test_files:
393
314
  - spec/dummy/.gitignore
394
315
  - spec/dummy/README.rdoc
395
316
  - spec/dummy/Rakefile
317
+ - spec/dummy/app/assets/config/manifest.js
396
318
  - spec/dummy/app/assets/images/.keep
397
319
  - spec/dummy/app/assets/javascripts/application.js
398
320
  - spec/dummy/app/assets/stylesheets/application.css
399
321
  - spec/dummy/app/controllers/application_controller.rb
322
+ - spec/dummy/app/controllers/base_editing_controller.rb
400
323
  - spec/dummy/app/controllers/concerns/.keep
324
+ - spec/dummy/app/controllers/users_controller.rb
401
325
  - spec/dummy/app/helpers/application_helper.rb
326
+ - spec/dummy/app/helpers/base_editing_helper.rb
402
327
  - spec/dummy/app/mailers/.keep
403
328
  - spec/dummy/app/models/.keep
329
+ - spec/dummy/app/models/application_record.rb
404
330
  - spec/dummy/app/models/concerns/.keep
331
+ - spec/dummy/app/models/user.rb
332
+ - spec/dummy/app/policies/application_policy.rb
333
+ - spec/dummy/app/policies/base_editing_policy.rb
334
+ - spec/dummy/app/policies/user_policy.rb
405
335
  - spec/dummy/app/views/layouts/application.html.erb
406
336
  - spec/dummy/bin/bundle
407
337
  - spec/dummy/bin/rails
@@ -433,6 +363,8 @@ test_files:
433
363
  - spec/dummy/config/routes.rb
434
364
  - spec/dummy/config/secrets.yml
435
365
  - spec/dummy/config/storage.yml
366
+ - spec/dummy/db/migrate/20190716093114_create_users.rb
367
+ - spec/dummy/db/schema.rb
436
368
  - spec/dummy/lib/assets/.keep
437
369
  - spec/dummy/log/.keep
438
370
  - spec/dummy/package.json
@@ -440,7 +372,7 @@ test_files:
440
372
  - spec/dummy/public/422.html
441
373
  - spec/dummy/public/500.html
442
374
  - spec/dummy/public/favicon.ico
375
+ - spec/dummy/spec/models/user_spec.rb
443
376
  - spec/dummy/yarn.lock
444
- - spec/lib/kono_utils/fiscal_code_spec.rb
445
377
  - spec/rails_helper.rb
446
378
  - spec/spec_helper.rb