filterrific 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/filterrific/filterrific-jquery.js +3 -12
- data/doc/scratchpad.md +0 -6
- data/lib/filterrific/version.rb +1 -1
- metadata +2 -4
- data/lib/filterrific/engine_api.rb +0 -26
- data/lib/filterrific_api.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3399bb18bfa5191cd87ee2b7d31c806a290aee45
|
4
|
+
data.tar.gz: dd3f5b946c313509c89006122652d7c27cb28140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ba9f0d838ce2c7880ecf34c30ab2c2cd04fcbbe36d58875eba52d5d88fee4abce66aac499270c4bcfc458b6ee25d70a880e86293db00e265ea376cc7239f544
|
7
|
+
data.tar.gz: b22987d4aec16b97b018b93869d6987a90aac4e43086674941c761e8067816630504dd7ae858955deede691143061c0786c0d263b6f5f27769910631bf87d38d
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
Filterrific major versions match the Ruby on Rails major versions they work with.
|
9
9
|
|
10
|
+
## [4.0.1] - Apr. 6, 2018
|
11
|
+
|
12
|
+
* Updated Filterific JS initialization on page load.
|
13
|
+
|
10
14
|
## [4.0.0] - Dec. 31, 2017
|
11
15
|
|
12
16
|
* This is the first release of Filterrific specifically geared towards Rails 4.x. No functional changes, just new versioning system and removal of unused code.
|
@@ -94,15 +94,6 @@ Filterrific.init = function() {
|
|
94
94
|
);
|
95
95
|
};
|
96
96
|
|
97
|
-
|
98
|
-
|
99
|
-
jQuery(document).on('
|
100
|
-
// Prevent double initilisation. With turbolinks 5 this function
|
101
|
-
// will be called twice: on 'ready' and 'turbolinks:load'
|
102
|
-
jQuery(document).off('ready page:load')
|
103
|
-
Filterrific.init();
|
104
|
-
});
|
105
|
-
|
106
|
-
jQuery(document).on('ready page:load', function() {
|
107
|
-
Filterrific.init();
|
108
|
-
});
|
97
|
+
// Handle with and without Turbolinks
|
98
|
+
jQuery(document).ready(Filterrific.init);
|
99
|
+
jQuery(document).on('page:load', Filterrific.init);
|
data/doc/scratchpad.md
CHANGED
@@ -2,12 +2,7 @@
|
|
2
2
|
|
3
3
|
## TODO
|
4
4
|
|
5
|
-
* Go to deep_stringify_keys (in ActionControllerExtension#initialize_filterrific)
|
6
|
-
* Lock Gemfile to correct version of Rails
|
7
|
-
* Add Rails major version check to filterrific.rb
|
8
|
-
* In ParamSet#condition_filterrific_params: Why are we type casting integers?
|
9
5
|
* add check that no filter_name conflicts with existing methods on included ActiveRecord class (See https://github.com/jhund/filterrific/issues/17)
|
10
|
-
* fix reset url, make controller method, helper method
|
11
6
|
|
12
7
|
## Travis
|
13
8
|
|
@@ -30,7 +25,6 @@ Ruby 1.8.7
|
|
30
25
|
Ruby 1.9.3
|
31
26
|
Ruby 2.0
|
32
27
|
Ruby 2.1
|
33
|
-
Ruby 2.2 No No No No
|
34
28
|
|
35
29
|
Each combination is also tested for postgres and mysql
|
36
30
|
|
data/lib/filterrific/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filterrific
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jo Hund
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Filterrific is a Rails Engine plugin that makes it easy to filter, search,
|
14
14
|
and sort your ActiveRecord lists.
|
@@ -37,11 +37,9 @@ files:
|
|
37
37
|
- lib/filterrific/action_view_extension.rb
|
38
38
|
- lib/filterrific/active_record_extension.rb
|
39
39
|
- lib/filterrific/engine.rb
|
40
|
-
- lib/filterrific/engine_api.rb
|
41
40
|
- lib/filterrific/has_reset_filterrific_url_mixin.rb
|
42
41
|
- lib/filterrific/param_set.rb
|
43
42
|
- lib/filterrific/version.rb
|
44
|
-
- lib/filterrific_api.rb
|
45
43
|
- spec/filterrific/action_controller_extension_spec.rb
|
46
44
|
- spec/filterrific/action_view_extension_spec.rb
|
47
45
|
- spec/filterrific/active_record_extension_spec.rb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
|
-
require 'filterrific/param_set'
|
4
|
-
|
5
|
-
require 'filterrific/action_controller_extension'
|
6
|
-
require 'filterrific/active_record_extension'
|
7
|
-
|
8
|
-
module Filterrific
|
9
|
-
class EngineApi < ::Rails::Engine
|
10
|
-
|
11
|
-
TODO: Since this is API only, I don't think we need an engine!
|
12
|
-
# It's an engine so that we can add javascript and image assets
|
13
|
-
# to the asset pipeline.
|
14
|
-
|
15
|
-
isolate_namespace Filterrific
|
16
|
-
|
17
|
-
ActiveSupport.on_load :action_controller do
|
18
|
-
include Filterrific::ActionControllerExtension
|
19
|
-
end
|
20
|
-
|
21
|
-
ActiveSupport.on_load :active_record do
|
22
|
-
extend Filterrific::ActiveRecordExtension
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|