bookingsync_application 0.1.4 → 0.1.5
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 +4 -4
- data/app/controllers/bookingsync_application/admin/base_controller.rb +1 -1
- data/lib/bookingsync_application.rb +1 -10
- data/lib/bookingsync_application/admin/common_base_controller.rb +18 -0
- data/lib/bookingsync_application/version.rb +1 -1
- metadata +2 -7
- data/app/assets/javascripts/bookingsync_application/application.js +0 -13
- data/app/assets/stylesheets/bookingsync_application/application.css +0 -15
- data/app/controllers/bookingsync_application/application_controller.rb +0 -4
- data/app/helpers/bookingsync_application/application_helper.rb +0 -4
- data/app/views/layouts/bookingsync_application/application.html.erb +0 -14
- data/lib/bookingsync_application/common_base_controller.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 421c9f24583747e5576b58f5f70e08987f9f3bae
|
4
|
+
data.tar.gz: d22e68c114581da684d1f783c995ceae63c524a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9fc0ecaa392aa5b16f872624d715c659354483d2476ab3b63faa1320ceb09c51e2f5ffe83ba63e0effe5ea7c8befb6e0cdc8ec27cf0c3709d1691323a48a486
|
7
|
+
data.tar.gz: b056156811a7a4b4f976c7e9d0c5476aaf9fc924dbb34d76f3007ec6724ea419e1be14db0f5e38f08f22e4a7b621f41a4645dea591a601b40804180583bd2c81
|
@@ -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
|
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
|
+
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,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
|