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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71ecbc7a011b1dee80252eb991f52226d43b667c
4
- data.tar.gz: d802da3c9c28703e80a4756e9ef2ef9f05c77d2a
3
+ metadata.gz: 3399bb18bfa5191cd87ee2b7d31c806a290aee45
4
+ data.tar.gz: dd3f5b946c313509c89006122652d7c27cb28140
5
5
  SHA512:
6
- metadata.gz: 9db85bf8387da951cee9db1271adb80a9e0ac8df13050272c9764a8cce28d212de28fa1390ae93922906b9e14b75a98931e8bd54206a2bb3b30fc0e1aef151ef
7
- data.tar.gz: 30f5409875bd7183bdfc66ab3339a1ecaa6170751cf803129c641d46f61311b7a6ce2b086e7c4dfb48aa331e79c56ee11235fe71b38ca6ecc2d0dee3e4e4af99
6
+ metadata.gz: 1ba9f0d838ce2c7880ecf34c30ab2c2cd04fcbbe36d58875eba52d5d88fee4abce66aac499270c4bcfc458b6ee25d70a880e86293db00e265ea376cc7239f544
7
+ data.tar.gz: b22987d4aec16b97b018b93869d6987a90aac4e43086674941c761e8067816630504dd7ae858955deede691143061c0786c0d263b6f5f27769910631bf87d38d
@@ -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
- // Initialize event observers on document ready and turbolinks page:load
99
- jQuery(document).on('turbolinks:load', function() {
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);
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module Filterrific
4
- VERSION = "4.0.0"
4
+ VERSION = "4.0.1"
5
5
  end
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.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: 2017-12-30 00:00:00.000000000 Z
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
@@ -1,7 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- require 'filterrific/version'
4
- require 'filterrific/engine_api'
5
-
6
- module Filterrific
7
- end