bhf 0.10.15 → 0.10.16
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/README.md +0 -2
- data/VERSION +1 -1
- data/app/helpers/bhf/application_helper.rb +8 -0
- data/app/views/layouts/bhf/application.haml +2 -2
- data/bhf.gemspec +3 -3
- 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: 119f18c8ad1f3915d59d75aa74718925d8a7d173
|
|
4
|
+
data.tar.gz: 53c9f3546e4e9f2496a0f4908cd1ed95f9c6da58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 151ecee95c0c3b51725a0702efe0812ab54ac51759a081de71f5922799002bbd5dd7681f2c5085a6f2db350ced1cc774edfe935301d9ba9fac767784d36e0fde
|
|
7
|
+
data.tar.gz: 3fce326a757bbcf6ec4968001e3aceb594f390bcb931cc94d0eb4f6fc0efcf97908d81364d1b4e25eb2d3dff99abec40ccef0349e06ca9c5c5d5c79773fd8a9f
|
data/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## [Guide and Documentation](http://antpaw.github.io/bhf/)
|
|
4
4
|
|
|
5
|
-
Also see [Getting Started](Getting_Started.md) document for additional info.
|
|
6
|
-
|
|
7
5
|
## Contributing to bhf
|
|
8
6
|
|
|
9
7
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.10.
|
|
1
|
+
0.10.16
|
|
@@ -35,5 +35,13 @@ module Bhf
|
|
|
35
35
|
Bhf.configuration.paperclip_image_types.include?(type)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
+
def asset_exist?(path)
|
|
39
|
+
if Rails.configuration.assets.compile
|
|
40
|
+
Rails.application.precompiled_assets.include? path
|
|
41
|
+
else
|
|
42
|
+
Rails.application.assets_manifest.assets[path].present?
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
38
46
|
end
|
|
39
47
|
end
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
= render partial: 'bhf/helper/flash', locals: {flash: flash}
|
|
13
13
|
%header
|
|
14
14
|
%h1
|
|
15
|
-
- logo = if params[:bhf_area] &&
|
|
15
|
+
- logo = if params[:bhf_area] && asset_exist?("logo_#{params[:bhf_area]}_bhf.svg")
|
|
16
16
|
- "logo_#{params[:bhf_area]}_bhf.svg"
|
|
17
17
|
- else
|
|
18
|
-
-
|
|
18
|
+
- asset_exist?('logo_bhf.png') ? 'logo_bhf.png' : 'logo_bhf.svg'
|
|
19
19
|
|
|
20
20
|
= link_to image_tag(logo), @root_link ? @root_link : main_app.root_url, data: {no_turbolink: true}
|
|
21
21
|
|
data/bhf.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: bhf 0.10.
|
|
5
|
+
# stub: bhf 0.10.16 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "bhf"
|
|
9
|
-
s.version = "0.10.
|
|
9
|
+
s.version = "0.10.16"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Anton Pawlik"]
|
|
14
|
-
s.date = "2016-
|
|
14
|
+
s.date = "2016-05-31"
|
|
15
15
|
s.description = "A simple to use Rails-Engine-Gem that offers an admin interface for trusted user. Easy integratable and highly configurable and agnostic. Works with ActiveRecord and Mongoid."
|
|
16
16
|
s.email = "anton.pawlik@gmail.com"
|
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bhf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anton Pawlik
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|