kono_utils_bootstrap_view4 0.1.0.pre.rc.7 → 0.1.0

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
  SHA256:
3
- metadata.gz: ab3b8f777ea0b69e24f153b152fe0b5391e5b61b089e21a26bead7523a8331d7
4
- data.tar.gz: '0876a4f81cb16aa08c042c472e9877aa94e826a8a734add60bb250ac541bce81'
3
+ metadata.gz: 7e54f4cbc61c0d98ae9d1b58fbf27d17a96b739d3f63d481281aadee542936be
4
+ data.tar.gz: df5d2ffcefd20dc75bd3a6dba4b148cb79c872c2ace672057f7f917fdfd670b2
5
5
  SHA512:
6
- metadata.gz: b8e651363c135914d2c58830f6a4d8eb4d9da7b509c11b3407950008ca57e7a6f7cfe183c70ca03394abf3e6b47efd6e7cdfd6575fc8bc82ee6bf10503cfbf53
7
- data.tar.gz: 3d0bf632b6f8f0b1145fc9835a0fde8d77ad6b3cc02567904584412cf3912bc884912b532504b8a368552ca2093bef35799ea6a568cf5982a666faf28c2044db
6
+ metadata.gz: a8095d99d28f25bb6fdcf700ae217f922c066498b6f4b96bed7da48d17dcf5be23b85baf799357978aadd5cd30016c7aea5458f6d339ccb7b1e8e7c1bbe92cba
7
+ data.tar.gz: 41c9f248d01a5313b7739aaec6f2d6ad7f34a3c42c86911dd60e41a392aed0702e99a53acf06cda674265edbdff0c2edb5709c16416b18ab3b0066226f5a5d4a
@@ -81,10 +81,14 @@ module KonoUtils
81
81
  base_class.concept_prefix + super + parent_controller.lookup_context.view_paths.collect(&:to_path)
82
82
  end
83
83
 
84
- def current_user
85
- context[:current_user]
84
+ def kono_user
85
+ context[:kono_user]
86
86
  end
87
87
 
88
+ ##
89
+ # In questo modo se non viene modificato l'utente di pundit, il pundit interno a kono utilizza quello di kono_utils
90
+ alias_method :current_user, :kono_user
91
+
88
92
  def title_mod
89
93
  "#{t(:edit)} #{model.mn}"
90
94
  end
@@ -46,7 +46,7 @@ module KonoUtils
46
46
  form: form,
47
47
  base_class: base_class,
48
48
  nested_layout: nested_layout,
49
- current_user: context[:current_user]
49
+ kono_user: context[:kono_user]
50
50
  }.merge(remote_context)
51
51
  )
52
52
 
@@ -77,7 +77,7 @@ module KonoUtils
77
77
  context: {
78
78
  form: form,
79
79
  base_class: base_class,
80
- current_user: context[:current_user]
80
+ kono_user: context[:kono_user]
81
81
  }.merge(remote_context)
82
82
  )
83
83
 
@@ -1,8 +1,8 @@
1
1
  <% content_for :page_title do %>
2
- <%= concept(base_class.concept_ns("cell/edits/page_title"), @object, context: {current_user: current_user,base_class:base_class}) %>
2
+ <%= concept(base_class.concept_ns("cell/edits/page_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
3
3
  <% end %>
4
4
  <% content_for :side_title do %>
5
- <%= concept(base_class.concept_ns("cell/edits/side_title"), @object, context: {current_user: current_user,base_class:base_class}) %>
5
+ <%= concept(base_class.concept_ns("cell/edits/side_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
6
6
  <% end %>
7
7
 
8
- <%= concept(base_class.concept_ns("cell/form"), @object, context: {current_user: current_user,base_class:base_class}) %>
8
+ <%= concept(base_class.concept_ns("cell/form"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
@@ -1,2 +1,2 @@
1
1
  <%= concept(@object.class.concept_ns("cell/inject"), @object,
2
- params: params, context: {current_user: current_user, base_class: @object.class}) -%>
2
+ params: params, context: {kono_user: kono_user, base_class: @object.class}) -%>
@@ -1,10 +1,10 @@
1
1
  <% content_for(:page_title) do %>
2
- <%= concept(base_class.concept_ns("cell/index/page_title"), @objects, context: {current_user: current_user,base_class:base_class}) %>
2
+ <%= concept(base_class.concept_ns("cell/index/page_title"), @objects, context: {kono_user: kono_user,base_class:base_class}) %>
3
3
  <% end %>
4
4
  <% content_for(:side_title) do %>
5
- <%= concept(base_class.concept_ns("cell/index/side_title"), @objects, context: {current_user: current_user,base_class:base_class}) %>
5
+ <%= concept(base_class.concept_ns("cell/index/side_title"), @objects, context: {kono_user: kono_user,base_class:base_class}) %>
6
6
  <% end %>
7
7
 
8
- <%= concept(base_class.concept_ns("cell/search"), @search, context: {current_user: current_user,base_class:base_class}) unless @search.nil? %>
8
+ <%= concept(base_class.concept_ns("cell/search"), @search, context: {kono_user: kono_user,base_class:base_class}) unless @search.nil? %>
9
9
 
10
- <%= concept(base_class.concept_ns("cell/index/table"), @objects, context: {current_user: current_user,base_class:base_class}) %>
10
+ <%= concept(base_class.concept_ns("cell/index/table"), @objects, context: {kono_user: kono_user,base_class:base_class}) %>
@@ -1,9 +1,9 @@
1
1
  <% content_for(:page_title) do %>
2
- <%= concept(base_class.concept_ns("cell/create/page_title"), @object, context: {current_user: current_user,base_class:base_class}) %>
2
+ <%= concept(base_class.concept_ns("cell/create/page_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
3
3
  <% end %>
4
4
  <% content_for(:side_title) do %>
5
- <%= concept(base_class.concept_ns("cell/create/side_title"), @object, context: {current_user: current_user,base_class:base_class}) %>
5
+ <%= concept(base_class.concept_ns("cell/create/side_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
6
6
  <% end %>
7
7
 
8
8
 
9
- <%= concept(base_class.concept_ns("cell/form"), @object, context: {current_user: current_user,base_class:base_class}) %>
9
+ <%= concept(base_class.concept_ns("cell/form"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
@@ -1,2 +1,2 @@
1
1
  <%= concept(@object.class.concept_ns("cell/inject"), @object,
2
- params: params, context: {current_user: current_user, base_class: @object.class}) -%>
2
+ params: params, context: {kono_user: kono_user, base_class: @object.class}) -%>
@@ -1,8 +1,8 @@
1
1
  <% content_for :page_title do %>
2
- <%= concept(base_class.concept_ns("cell/shows/page_title"), @object, context: {current_user: current_user,base_class:base_class}) %>
2
+ <%= concept(base_class.concept_ns("cell/shows/page_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
3
3
  <% end %>
4
4
  <% content_for :side_title do %>
5
- <%= concept(base_class.concept_ns("cell/shows/side_title"), @object, context: {current_user: current_user,base_class:base_class}) %>
5
+ <%= concept(base_class.concept_ns("cell/shows/side_title"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
6
6
  <% end %>
7
7
 
8
- <%= concept(base_class.concept_ns("cell/show"), @object, context: {current_user: current_user,base_class:base_class}) %>
8
+ <%= concept(base_class.concept_ns("cell/show"), @object, context: {kono_user: kono_user,base_class:base_class}) %>
@@ -3,4 +3,4 @@
3
3
  # target: params[:kono_utils][:modal_upgraded_target_container],
4
4
  html_manipulation_method: 'append',
5
5
  inject_show_modal: true,
6
- context: {current_user: current_user, base_class: @object.class}) -%>
6
+ context: {kono_user: kono_user, base_class: @object.class}) -%>
@@ -3,4 +3,4 @@
3
3
  # target: params[:kono_utils][:modal_upgraded_target_container],
4
4
  html_manipulation_method: 'replaceWith',
5
5
  inject_show_modal: true,
6
- context: {current_user: current_user, base_class: @object.class}) -%>
6
+ context: {kono_user: kono_user, base_class: @object.class}) -%>
@@ -1,3 +1,3 @@
1
1
  module KonoUtilsBootstrapView4
2
- VERSION = '0.1.0-rc.7'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kono_utils_bootstrap_view4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.rc.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 2021-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '1.1'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.1.1
42
+ version: 1.1.2
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '1.1'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.1.1
52
+ version: 1.1.2
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: kaminari
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -372,9 +372,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
372
372
  version: '0'
373
373
  required_rubygems_version: !ruby/object:Gem::Requirement
374
374
  requirements:
375
- - - ">"
375
+ - - ">="
376
376
  - !ruby/object:Gem::Version
377
- version: 1.3.1
377
+ version: '0'
378
378
  requirements: []
379
379
  rubygems_version: 3.0.8
380
380
  signing_key: