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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73abb1591371e3997fe6b22fc5760e151d3907f6
4
- data.tar.gz: eb7cb00592990c0462232f92931ad13f1ab9f635
3
+ metadata.gz: 119f18c8ad1f3915d59d75aa74718925d8a7d173
4
+ data.tar.gz: 53c9f3546e4e9f2496a0f4908cd1ed95f9c6da58
5
5
  SHA512:
6
- metadata.gz: c076188d9fd8c68e5db03dd4acfe98774480f7d170443f30b895d92da8a5ba18de040380314bff892ec787ebe1866b311e3f1327a38e4a9f182df682b98bcd0f
7
- data.tar.gz: 89b699f76a6a52f0b45ba45601e29719b86c10059ae18aed696001f5a60f1e8d8149b926e9d4c55ccfbb94219c4df441f8dbbfd3c75a548b31377f572e9dcfa1
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.15
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] && Rails.application.assets.find_asset("logo_#{params[:bhf_area]}_bhf.svg")
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
- - Rails.application.assets.find_asset('logo_bhf.png') ? 'logo_bhf.png' : 'logo_bhf.svg'
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.15 ruby lib
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.15"
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-03-08"
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.15
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-03-08 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails