bookingsync_application 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 0cbdca0e61d27b5ecef4413b40b0dba4d7f51e2d
4
- data.tar.gz: b57ad899d0954cce2416cb103651f65413f43baf
3
+ metadata.gz: 421c9f24583747e5576b58f5f70e08987f9f3bae
4
+ data.tar.gz: d22e68c114581da684d1f783c995ceae63c524a6
5
5
  SHA512:
6
- metadata.gz: a7d89a5becfed667dfdd0831cfc4c502109c954d5bc1310f29555326e23a0d6380ec6db428fbcfe02e52a8db79cec2081ac31d5ae15e9fb16e14b2ffcc6c979d
7
- data.tar.gz: 4884988bbcdf32507603a78e3ee5c16a508eaf3fecb125a89dda2adcb6b1689fa57a8c134aed5f06ccb38c0f28bb0c15bd090251caa89c33fa8895cfaec2efaa
6
+ metadata.gz: a9fc0ecaa392aa5b16f872624d715c659354483d2476ab3b63faa1320ceb09c51e2f5ffe83ba63e0effe5ea7c8befb6e0cdc8ec27cf0c3709d1691323a48a486
7
+ data.tar.gz: b056156811a7a4b4f976c7e9d0c5476aaf9fc924dbb34d76f3007ec6724ea419e1be14db0f5e38f08f22e4a7b621f41a4645dea591a601b40804180583bd2c81
@@ -5,7 +5,7 @@ class BookingsyncApplication::Admin::BaseController < JSONAPI::ResourceControlle
5
5
 
6
6
  before_action :set_json_format
7
7
 
8
- include BookingsyncApplication::CommonBaseController
8
+ include BookingsyncApplication::Admin::CommonBaseController
9
9
 
10
10
  private
11
11
 
@@ -3,16 +3,7 @@ require 'synced'
3
3
  require 'dotenv-rails'
4
4
  require 'jsonapi-resources'
5
5
  require 'bookingsync_application/engine'
6
- require 'bookingsync_application/common_base_controller'
6
+ require 'bookingsync_application/admin/common_base_controller'
7
7
 
8
8
  module BookingsyncApplication
9
- mattr_accessor :master_controller_class
10
-
11
- def self.master_controller_class
12
- if @@master_controller_class
13
- @@master_controller_class.constantize
14
- else
15
- ApplicationController
16
- end
17
- end
18
9
  end
@@ -0,0 +1,18 @@
1
+ module BookingsyncApplication
2
+ module Admin
3
+ module CommonBaseController
4
+ def self.included(base)
5
+ base.class_eval do
6
+ force_ssl
7
+
8
+ before_action :authenticate_account!
9
+ after_action :allow_bookingsync_iframe
10
+ end
11
+ end
12
+
13
+ def context
14
+ { current_account: current_account }
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module BookingsyncApplication
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookingsync_application
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Nowicki
@@ -176,15 +176,10 @@ files:
176
176
  - MIT-LICENSE
177
177
  - README.md
178
178
  - Rakefile
179
- - app/assets/javascripts/bookingsync_application/application.js
180
- - app/assets/stylesheets/bookingsync_application/application.css
181
179
  - app/controllers/bookingsync_application/admin/base_controller.rb
182
- - app/controllers/bookingsync_application/application_controller.rb
183
- - app/helpers/bookingsync_application/application_helper.rb
184
- - app/views/layouts/bookingsync_application/application.html.erb
185
180
  - config/routes.rb
186
181
  - lib/bookingsync_application.rb
187
- - lib/bookingsync_application/common_base_controller.rb
182
+ - lib/bookingsync_application/admin/common_base_controller.rb
188
183
  - lib/bookingsync_application/engine.rb
189
184
  - lib/bookingsync_application/spec_helper.rb
190
185
  - lib/bookingsync_application/version.rb
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,4 +0,0 @@
1
- module BookingsyncApplication
2
- class ApplicationController < BookingsyncApplication.master_controller_class
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module BookingsyncApplicationEngine
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>BookingsyncApplicationEngine</title>
5
- <%= stylesheet_link_tag "bookingsync_application_engine/application", media: "all" %>
6
- <%= javascript_include_tag "bookingsync_application_engine/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,14 +0,0 @@
1
- module BookingsyncApplication::CommonBaseController
2
- def self.included(base)
3
- base.class_eval do
4
- force_ssl
5
-
6
- before_action :authenticate_account!
7
- after_action :allow_bookingsync_iframe
8
- end
9
- end
10
-
11
- def context
12
- { current_account: current_account }
13
- end
14
- end