bhf 1.0.0.beta1 → 1.0.0.beta2
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/VERSION +1 -1
- data/app/assets/javascripts/bhf/application.js +1 -4
- data/app/helpers/bhf/pages_helper.rb +2 -1
- data/app/views/layouts/bhf/application.haml +3 -3
- 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: 85e5844f6e0702d76d497fa8f8acce1657e9f4c3
|
4
|
+
data.tar.gz: a08b7268c1284022db5abd03efcd7068253a2f6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bcd8d72a4ccd41de2ff74849c3adf2c31e85ab4efb66921226e880568fd905ddc50a5a79cde630ec28c0774f9aafc42c176228bfcd27ee10c4aa715b6ea0378
|
7
|
+
data.tar.gz: 3432f7a79e22c4150567c88de9fc8cbd2c85ddaef60bac95d5f41be6eee40ed2b124d7ecf42902626ea022e19329d5aa7496c666dba0dcf55055c8d138768e60
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.beta2
|
@@ -5,9 +5,6 @@
|
|
5
5
|
//= require_tree ./locales/
|
6
6
|
//= require_tree ./classes/
|
7
7
|
|
8
|
-
// Turbolinks bugs out on popState if you add own pushState events, so we cancel it
|
9
|
-
Turbolinks.pagesCached(0);
|
10
|
-
|
11
8
|
(function(){
|
12
9
|
var lang = document.html.get('lang').split('-')[0];
|
13
10
|
lang = (lang === 'en') ? 'en-US' : lang.toLowerCase()+'-'+lang.toUpperCase();
|
@@ -399,7 +396,7 @@ Turbolinks.pagesCached(0);
|
|
399
396
|
var scopeCallback = function(scope){
|
400
397
|
window.fireEvent('bhfDomChunkReady', [scope]);
|
401
398
|
};
|
402
|
-
document.addEventListener('
|
399
|
+
document.addEventListener('turbolinks:load', bodyCallback);
|
403
400
|
window.addEvent('domready', bodyCallback);
|
404
401
|
window.addEvent('platformUpdate', scopeCallback);
|
405
402
|
window.addEvent('quickEditFormInject', scopeCallback);
|
@@ -10,7 +10,8 @@ module Bhf
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def current_order_path(order_by, platform_name)
|
13
|
-
params_platfrom = params[platform_name] ? params[platform_name].clone : {}
|
13
|
+
params_platfrom = params[platform_name] ? params[platform_name].clone : ActionController::Parameters.new({})
|
14
|
+
params_platfrom.permit!
|
14
15
|
|
15
16
|
if params_platfrom['order'] == order_by && params_platfrom['direction'] != 'desc'
|
16
17
|
params_platfrom['direction'] = 'desc'
|
@@ -2,11 +2,14 @@
|
|
2
2
|
%html{lang: I18n.locale}
|
3
3
|
%head
|
4
4
|
%meta{charset: 'utf-8'}
|
5
|
+
%meta{name: 'turbolinks-cache-control', content: 'no-cache'}
|
5
6
|
%title= @title
|
6
7
|
= csrf_meta_tags
|
7
8
|
%link{href: "/favicon.ico?#{@app_title.to_s.downcase}", rel: 'icon', type: 'image/x-icon'}
|
8
9
|
- Bhf.configuration.css.each do |css|
|
9
10
|
= stylesheet_link_tag css
|
11
|
+
- Bhf.configuration.js.each do |js|
|
12
|
+
= javascript_include_tag js
|
10
13
|
%body
|
11
14
|
|
12
15
|
= render partial: 'bhf/helper/flash', locals: {flash: flash}
|
@@ -36,6 +39,3 @@
|
|
36
39
|
%footer
|
37
40
|
= render 'bhf/user'
|
38
41
|
= render 'bhf/footer'
|
39
|
-
|
40
|
-
- Bhf.configuration.js.each do |js|
|
41
|
-
= javascript_include_tag js, data: {turbolinks_eval: false}
|
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 1.0.0.
|
5
|
+
# stub: bhf 1.0.0.beta2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bhf".freeze
|
9
|
-
s.version = "1.0.0.
|
9
|
+
s.version = "1.0.0.beta2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Anton Pawlik".freeze]
|
14
|
-
s.date = "2018-05-
|
14
|
+
s.date = "2018-05-07"
|
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.".freeze
|
16
16
|
s.email = "anton.pawlik@gmail.com".freeze
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Pawlik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|