tybo 0.0.29 → 0.0.30

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 893f297e8e1856c21f1e1d15b3a698723a2210f7ceff54d40e704a539752ee29
4
- data.tar.gz: 969d1819fb9fc76e19ab67fe41be57a270ad34219b090c4f06262c76a1a2c277
3
+ metadata.gz: ba87b228afc0fbf8d86b0e7a131014e3b3ea48dc2371b1683370a84abfc325b0
4
+ data.tar.gz: e74cb37337e05ec1cb5ab8b2c58b68aa481c351c639c5ef2bcb547e5308fafd8
5
5
  SHA512:
6
- metadata.gz: ea19fe2f0f0ea1aaa2724c4aa7d1768e98e0c3365e6913e8ed57c301f9870156dd383da0adb30444d03c8a6b525a6354c7e36a36ab574617218b497d6a5490b8
7
- data.tar.gz: 59eeb4e00b5da3ebe6e3f4d86cfda0d8aba29c1c043fd2434454a9a416b7da2db0501e6d59b0620799f252074debf4ed7fd2210b7fb5b9c94763ba92523cf3ea
6
+ metadata.gz: ebe56be83770dc24bc3a86df204b1706b8c877f35b9c75730400976381dc57d92e84d2c39080076099db1b06f3cc90c5cb6c896b7d243e7bed9d89b5f9d4b347
7
+ data.tar.gz: 5deda09e96c218454755eb4b9bfa0b8cb151fdf32b4f54dcf39f1a961d2e7700d2564ee57ef20aa4e389f2eadcfc5e385aab61e2252b3fba37c810b83a91f592
@@ -20,7 +20,7 @@ class BoGenerator < Rails::Generators::NamedBase
20
20
  template 'show.html.erb', File.join("app/views/#{options[:namespace]}", "#{plural_name}/show.html.erb")
21
21
  template 'controller.rb', File.join("app/controllers/#{options[:namespace]}", "#{plural_name}_controller.rb")
22
22
  template 'policy.rb', File.join("app/policies/bo/#{options[:namespace]}", "#{file_name.underscore}_policy.rb")
23
- unless File.exists?("app/policies/bo/#{options[:namespace]}.rb")
23
+ unless File.exists?("app/policies/bo/#{options[:namespace]}_policy.rb")
24
24
  template 'namespace_policy.rb', "app/policies/bo/#{options[:namespace]}_policy.rb"
25
25
  end
26
26
  create_translations
@@ -64,7 +64,7 @@ class BoGenerator < Rails::Generators::NamedBase
64
64
  end
65
65
 
66
66
  def excluded_columns
67
- %i[id created_at updated_at]
67
+ %i[id created_at updated_at encrypted_password]
68
68
  end
69
69
 
70
70
  def permited_params
@@ -19,7 +19,7 @@
19
19
  <%%= tr.with_td do %>
20
20
  <%%= link_to <%="#{options[:namespace]}_#{class_name.underscore}_path(#{class_name.underscore})"%>,
21
21
  class: "text-tybo-600 hover:text-tybo-900",
22
- data: {turbo_method: :delete, turbo_confirm: "êtes vous sur ?"} do %>
22
+ data: {turbo_method: :delete, turbo_confirm: "êtes-vous sûr ?"} do %>
23
23
  <%%= render(Icons::TrashComponent.new) %>
24
24
  <%% end %>
25
25
  <%% end %>
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Bo
2
4
  class <%= options[:namespace].camelize %>Policy < ActionPolicy::Base
3
5
  def show?
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Bo
2
4
  module <%= options[:namespace].camelize %>
3
5
  class <%= class_name %>Policy < Bo::<%= options[:namespace].camelize %>Policy
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.29'
2
+ VERSION = '0.0.30'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-15 00:00:00.000000000 Z
12
+ date: 2023-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails