filterrific 1.4.0 → 1.4.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 +5 -0
- data/README.md +14 -0
- data/doc/meta.md +17 -15
- data/lib/filterrific/engine.rb +13 -11
- data/lib/filterrific/version.rb +1 -1
- 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: 8319fe298662aa7cfbf8f535386900c463980dda
|
4
|
+
data.tar.gz: b5cf4554ce05881a0d40bf1e689eb2e5be887e54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5080e45c99e3d025360f30c4de3d09286d28327d7bc86490f41b5a12a20ac1fd998b3e47ed4d88f180bd61cbeb9e03ae64927d31e221466716cfa951097d643c
|
7
|
+
data.tar.gz: 165bd6393ad6decf0568d7caeda8277fd252f1e2c9262f4b3afff3ca92c3a01618e77b1de1d5759141584e0e942d661af6536bf4601bbf1ac8328e9fd908d35b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -18,6 +18,20 @@ or with bundler in your Gemfile:
|
|
18
18
|
`gem 'filterrific'`
|
19
19
|
|
20
20
|
|
21
|
+
### Compatibility
|
22
|
+
|
23
|
+
Every commit to Filterrific is automatically tested against the following scenarios:
|
24
|
+
|
25
|
+
| Rails version | Ruby environments | Database adapters | Build status |
|
26
|
+
|---------------|-------------------------|------------------------------------|--------------|
|
27
|
+
| Rails 4.1 | MRI 1.9.3, 2.0.0, 2.1.2 | mysql, mysql2, postgresql, sqlite3 |[![Build Status](https://travis-ci.org/jhund/filterrific_demo.svg?branch=rails-4.1)](https://travis-ci.org/jhund/filterrific_demo)|
|
28
|
+
| Rails 4.0 | MRI 1.9.3, 2.0.0, 2.1.2 | mysql, mysql2, postgresql, sqlite3 |[![Build Status](https://travis-ci.org/jhund/filterrific_demo.svg?branch=rails-4.0)](https://travis-ci.org/jhund/filterrific_demo)|
|
29
|
+
| Rails 3.2 | MRI 1.9.3, 2.0.0, 2.1.2 | mysql, mysql2, postgresql, sqlite3 |[![Build Status](https://travis-ci.org/jhund/filterrific_demo.svg?branch=rails-3.2)](https://travis-ci.org/jhund/filterrific_demo)|
|
30
|
+
|
31
|
+
Filterrific version 1.4.0 should work on older versions of Rails and Ruby, however
|
32
|
+
the 1.x branch is not supported any more.
|
33
|
+
|
34
|
+
|
21
35
|
### Guidelines for submitting issues
|
22
36
|
|
23
37
|
I'm happy to help you if you encounter problems when using filterrific. You'll make my job easier if you follow these guidelines:
|
data/doc/meta.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
Workflow to Maintain This Gem
|
2
|
-
=============================
|
1
|
+
# Workflow to Maintain This Gem
|
3
2
|
|
4
3
|
I use the gem-release gem
|
5
4
|
|
6
5
|
For more info see: https://github.com/svenfuchs/gem-release#usage
|
7
6
|
|
8
|
-
|
9
|
-
|
7
|
+
|
8
|
+
|
9
|
+
## Steps for an update
|
10
10
|
|
11
11
|
1. Update code and commit it.
|
12
12
|
2. Add entry to CHANGELOG and commit it:
|
@@ -24,22 +24,24 @@ Steps for an update
|
|
24
24
|
`gem tag`
|
25
25
|
|
26
26
|
|
27
|
-
http://prioritized.net/blog/gemify-assets-for-rails/
|
28
27
|
|
28
|
+
## How to run specs
|
29
29
|
|
30
|
+
`bundle exec rake`
|
30
31
|
|
31
|
-
How to run specs
|
32
|
-
----------------
|
33
32
|
|
34
|
-
`bundle exec rake`
|
35
33
|
|
34
|
+
## Travis CI
|
36
35
|
|
37
|
-
Travis CI
|
38
|
-
|
36
|
+
Filterrific uses Travis CI for testing. We test filterrific code directly here
|
37
|
+
in the gem. We test Rails integration in the filterrific_demo app. There we have
|
38
|
+
a branch for each minor version of Rails that is tested and supported.
|
39
39
|
|
40
|
-
|
41
|
-
versions:
|
40
|
+
Sequence of a release:
|
42
41
|
|
43
|
-
*
|
44
|
-
*
|
45
|
-
*
|
42
|
+
* finish updates in filterrific
|
43
|
+
* run specs in each filterrific_demo branch (via `rake`)
|
44
|
+
* when all specs pass, release filterrific (see above for steps)
|
45
|
+
* after new filterrific is released, add new release version to each branch in
|
46
|
+
filterrific_demo and push each branch to trigger a Travis CI build for the
|
47
|
+
new filterrific release.
|
data/lib/filterrific/engine.rb
CHANGED
@@ -8,22 +8,24 @@ module Filterrific
|
|
8
8
|
|
9
9
|
require 'filterrific/param_set'
|
10
10
|
|
11
|
-
initializer "filterrific
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
initializer "filterrific" do |app|
|
12
|
+
|
13
|
+
ActiveSupport.on_load :active_record do
|
14
|
+
require 'filterrific/active_record_extension'
|
15
|
+
class ::ActiveRecord::Base
|
16
|
+
extend Filterrific::ActiveRecordExtension::ClassMethods
|
17
|
+
end
|
15
18
|
end
|
16
|
-
end
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
ActiveSupport.on_load :action_view do
|
21
|
+
require 'filterrific/action_view_extension'
|
22
|
+
class ::ActionView::Base
|
23
|
+
include Filterrific::ActionViewExtension
|
24
|
+
end
|
22
25
|
end
|
23
|
-
end
|
24
26
|
|
25
|
-
initializer "filterrific.assets.precompile" do |app|
|
26
27
|
app.config.assets.precompile += %w(filterrific-spinner.gif)
|
28
|
+
|
27
29
|
end
|
28
30
|
|
29
31
|
end
|
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: 1.4.
|
4
|
+
version: 1.4.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: 2014-10-
|
11
|
+
date: 2014-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|