beyond_canvas 0.19.1.pre → 0.19.2.pre

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: 0c84129e6115395f01b8e78b1735dae375c7bb5713da50c46145735030426892
4
- data.tar.gz: e49319bf188fabb275490b5c712a2c8129fc3f109684b537c31d31d490c2aa23
3
+ metadata.gz: 7e521c2269619436efc6e760472ab605213b315b3f14462661a65db7a615a93c
4
+ data.tar.gz: 146a2408feda96383da8def8d2647abd8b003e5dcef55a7b439325c4b1f38832
5
5
  SHA512:
6
- metadata.gz: 736b4b8a858a3c6053687497a69d9fb622895c94953cd0e4786309611720018e38c7d6989ee436e9f2e83a1493981c73bc46a9be0c9d3b68d06395da706b884c
7
- data.tar.gz: 22559c6d1c346a04ec970a042061ec22270463795ec8be10c87229f8d814f09538dc2d886e9316f4252711278875a55ee0f7abc46a65dd81ad83a20b93083c56
6
+ metadata.gz: 34478929f6d039be913f94e7f9ce74544d0481534a8f3e25649ed4daed4f9f677e4b028835263f65e97066f76104b13aa92d8dd7d5ed520425de88d08f6e0df2
7
+ data.tar.gz: e434787b9ff264aa0a661b5c2d35fcb311ba199bdfec9408965a57e32118941ab0fb3d1564b2de5c02d297b7711695091a432663a4aad1d5f9f65e0d0931ce6b
@@ -1,8 +1,8 @@
1
1
  .grid {
2
2
  &__container {
3
3
  display: grid;
4
- gap: 40px;
5
- grid-template-columns: repeat(auto-fill, 385px);
4
+ gap: 40px;
5
+ grid-template-columns: repeat(auto-fill, 385px);
6
6
  }
7
7
 
8
8
  &__item {
@@ -1,7 +1,15 @@
1
1
  .text {
2
2
  &__align {
3
+ &--left {
4
+ text-align: left;
5
+ }
6
+
3
7
  &--center {
4
8
  text-align: center;
5
9
  }
10
+
11
+ &--right {
12
+ text-align: right;
13
+ }
6
14
  }
7
15
  }
@@ -7,5 +7,6 @@ module BeyondCanvas
7
7
  include ::BeyondCanvas::StatusCodes
8
8
  include ::BeyondCanvas::AuthenticationsHelper
9
9
  include ::BeyondCanvas::DebugHelper
10
+ include ::BeyondCanvas::ControllerHelper
10
11
  end
11
12
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BeyondCanvas
4
+ module ControllerHelper # :nodoc:
5
+ def beyond_canvas_controller?
6
+ self.class.const_defined?(:BeyondCanvas)
7
+ end
8
+ end
9
+ end
@@ -24,13 +24,10 @@ module BeyondCanvas
24
24
  include ::BeyondCanvas::StatusCodes
25
25
  include ::BeyondCanvas::AuthenticationsHelper
26
26
  include ::BeyondCanvas::DebugHelper
27
+ include ::BeyondCanvas::ControllerHelper
27
28
 
28
29
  ::ActionController::Base.helper BeyondCanvas::Engine.helpers
29
30
  end
30
-
31
- ActiveSupport.on_load :action_mailer do
32
- layout 'beyond_canvas/mailer'
33
- end
34
31
  end
35
32
  end
36
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BeyondCanvas
4
- VERSION = '0.19.1.pre'
4
+ VERSION = '0.19.2.pre'
5
5
  end
@@ -1,18 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rails/generators/active_record'
4
-
5
3
  module BeyondCanvas
6
4
  module Generators
7
5
  class ControllerGenerator < Rails::Generators::Base # :nodoc:
8
6
  desc 'Creates an inherited Beyond Canvas controller in the app/controllers folder'
9
7
 
10
- argument :scope, required: true, desc: 'The scope to create the controller, e.g. shops, users'
11
-
12
8
  source_root File.expand_path('templates', __dir__)
13
9
 
14
10
  def create_controller
15
- template 'controller.erb', "app/controllers/#{scope}_controller.rb"
11
+ template 'shops_controller.rb', "app/controllers/shops_controller.rb"
16
12
  end
17
13
  end
18
14
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class <%= scope.camelize %>Controller < BeyondCanvas::AuthenticationsController
3
+ class ShopsController < BeyondCanvas::AuthenticationsController
4
4
  # before_action :configure_params, only: [:install]
5
5
 
6
6
  # def new
@@ -83,7 +83,7 @@ BeyondCanvas.setup do |config|
83
83
  #
84
84
  <% unless @skip_webpacker %># <% end %>config.skip_webpacker = <%= @skip_webpacker %>
85
85
 
86
- # ==> Authentication with ePages Beyond API
86
+ # ==> Database encryption
87
87
 
88
88
  config.encryption_key = '<%= SecureRandom.hex(32) %>'
89
89
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond_canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1.pre
4
+ version: 0.19.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unai Abrisketa
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-10-20 00:00:00.000000000 Z
13
+ date: 2020-11-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: attr_encrypted
@@ -275,6 +275,7 @@ files:
275
275
  - app/helpers/beyond_canvas/application_helper.rb
276
276
  - app/helpers/beyond_canvas/authentications_helper.rb
277
277
  - app/helpers/beyond_canvas/cockpit_app_helper.rb
278
+ - app/helpers/beyond_canvas/controller_helper.rb
278
279
  - app/helpers/beyond_canvas/debug_helper.rb
279
280
  - app/helpers/beyond_canvas/locale_switch_helper.rb
280
281
  - app/javascript/beyond_canvas/base.js
@@ -317,7 +318,7 @@ files:
317
318
  - lib/generators/beyond_canvas/assets/templates/beyond_canvas.scss
318
319
  - lib/generators/beyond_canvas/beyond_api/beyond_api_generator.rb
319
320
  - lib/generators/beyond_canvas/controller/controller_generator.rb
320
- - lib/generators/beyond_canvas/controller/templates/controller.erb
321
+ - lib/generators/beyond_canvas/controller/templates/shops_controller.rb
321
322
  - lib/generators/beyond_canvas/custom_menu/custom_menu_generator.rb
322
323
  - lib/generators/beyond_canvas/custom_menu/templates/beyond_canvas_custom_menu.html.erb
323
324
  - lib/generators/beyond_canvas/custom_styles/custom_styles_generator.rb