barkest_core 1.5.3.0 → 1.5.4.0
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/Gemfile.lock +3 -3
- data/app/views/layouts/barkest_core/_application.html.erb +8 -0
- data/lib/barkest_core.rb +24 -0
- data/lib/barkest_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0d173d5521b381c4f3ddd903801d2818196d58c
|
|
4
|
+
data.tar.gz: de3aea5d8c3838f35e7b719e72442f8607a6f4db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6311106e8712b511a477ac9a153e8b209d72a586fe2b3d90a6a6f21d1616c8a423e76862552c0e5e84fed136b4f6c45984ba548df5c8f768c59e25f72b9d9a7c
|
|
7
|
+
data.tar.gz: 0c7d15dad96efd18ed36af6b4d6da1633bebb9154df2cf500ecf748feaeb5369ea93d4e635b11f3ed3e84bcedf74adea0b192c319f10d9b70a48d7da01de4cce
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
barkest_core (1.5.
|
|
4
|
+
barkest_core (1.5.4.0)
|
|
5
5
|
activerecord-sqlserver-adapter (~> 4.2.1)
|
|
6
6
|
axlsx (~> 2.0.1)
|
|
7
7
|
axlsx_rails (>= 0.4.0)
|
|
@@ -74,7 +74,7 @@ GEM
|
|
|
74
74
|
tzinfo (~> 1.1)
|
|
75
75
|
ansi (1.5.0)
|
|
76
76
|
arel (6.0.4)
|
|
77
|
-
autoprefixer-rails (6.
|
|
77
|
+
autoprefixer-rails (6.7.2)
|
|
78
78
|
execjs
|
|
79
79
|
axlsx (2.0.1)
|
|
80
80
|
htmlentities (~> 4.3.1)
|
|
@@ -217,7 +217,7 @@ GEM
|
|
|
217
217
|
sqlite3 (1.3.13-x86-mingw32)
|
|
218
218
|
thor (0.19.4)
|
|
219
219
|
thread_safe (0.3.5)
|
|
220
|
-
tilt (2.0.
|
|
220
|
+
tilt (2.0.6)
|
|
221
221
|
tiny_tds (1.0.5)
|
|
222
222
|
mini_portile2 (~> 2.0)
|
|
223
223
|
tiny_tds (1.0.5-x86-mingw32)
|
|
@@ -3,12 +3,20 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title><%= page_title(yield(:title)) %></title>
|
|
5
5
|
<%= stylesheet_link_tag 'application', media: 'all' %>
|
|
6
|
+
<% BarkestCore.send(:css_registry).each do |css_file| %>
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="<%= css_file %>" >
|
|
8
|
+
<% end %>
|
|
9
|
+
<%= yield(:additional_styles) %>
|
|
6
10
|
<script type="text/javascript">
|
|
7
11
|
application_root_offset = '<%= (root_url[-1] == '/' ? root_url[0...-1] : root_url).gsub("'", "\\'") %>';
|
|
8
12
|
</script>
|
|
9
13
|
<%= javascript_include_tag 'application' %>
|
|
10
14
|
<%= csrf_meta_tags %>
|
|
11
15
|
<%= render 'layouts/barkest_core/shim' %>
|
|
16
|
+
<% BarkestCore.send(:js_registry).each do |js_file| %>
|
|
17
|
+
<script type="text/javascript" src="<%= js_file %>"></script>
|
|
18
|
+
<% end %>
|
|
19
|
+
<%= yield(:additional_scripts) %>
|
|
12
20
|
</head>
|
|
13
21
|
<body>
|
|
14
22
|
<%= render 'layouts/barkest_core/header' %>
|
data/lib/barkest_core.rb
CHANGED
|
@@ -260,6 +260,22 @@ module BarkestCore
|
|
|
260
260
|
end
|
|
261
261
|
end
|
|
262
262
|
|
|
263
|
+
##
|
|
264
|
+
# Registers a CSS file to include in the application template.
|
|
265
|
+
def self.registry_css_file(css_path)
|
|
266
|
+
unless css_path.blank?
|
|
267
|
+
css_registry << css_path unless css_registry.include?(css_path)
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
##
|
|
272
|
+
# Registers a JS file to include in the application template.
|
|
273
|
+
def self.registry_js_file(js_path)
|
|
274
|
+
unless js_path.blank?
|
|
275
|
+
js_registry << js_path unless js_registry.include?(js_path)
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
|
|
263
279
|
##
|
|
264
280
|
# Gets the root path of the BarkestCore gem.
|
|
265
281
|
def self.gem_root_path
|
|
@@ -276,6 +292,14 @@ module BarkestCore
|
|
|
276
292
|
@auth_menu_registry ||= [ 'layouts/menu_auth' ]
|
|
277
293
|
end
|
|
278
294
|
|
|
295
|
+
def self.css_registry
|
|
296
|
+
@css_registry ||= [ ]
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
def self.js_registry
|
|
300
|
+
@js_registry ||= [ ]
|
|
301
|
+
end
|
|
302
|
+
|
|
279
303
|
def self.footer_menu_registry
|
|
280
304
|
@footer_menu_registry ||= [ 'layouts/menu_footer' ]
|
|
281
305
|
end
|
data/lib/barkest_core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: barkest_core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Beau Barker
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|