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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfeeb89ecbb8633a86e9714443be0e1dec39b28b
4
- data.tar.gz: 29795af6901eab99af4dcdd8009defb4fb3295fb
3
+ metadata.gz: 8319fe298662aa7cfbf8f535386900c463980dda
4
+ data.tar.gz: b5cf4554ce05881a0d40bf1e689eb2e5be887e54
5
5
  SHA512:
6
- metadata.gz: 1162e9fb2f9f4338355d0467d5c014968fe1f7599bc9144eeede2f3b497eb6f5a9d60f1d1104c615bbaf56bfcac1493aac09a7a8049fd15e437c2e04e054ac29
7
- data.tar.gz: 26b93548f73deaf22da434d237e1b4adea446abb2ece75bc68c2ee57cbd8e3440f381a4e1f4f7cf16948a725b7125ae9fc07f7ae02b9f8358272fb137eaf8a2d
6
+ metadata.gz: 5080e45c99e3d025360f30c4de3d09286d28327d7bc86490f41b5a12a20ac1fd998b3e47ed4d88f180bd61cbeb9e03ae64927d31e221466716cfa951097d643c
7
+ data.tar.gz: 165bd6393ad6decf0568d7caeda8277fd252f1e2c9262f4b3afff3ca92c3a01618e77b1de1d5759141584e0e942d661af6536bf4601bbf1ac8328e9fd908d35b
@@ -46,6 +46,11 @@ API changes
46
46
  bug fixes in 3.1, and use of asset pipeline)
47
47
 
48
48
 
49
+ ### 1.4.1
50
+
51
+ * Updated initialization of ActiveRecord and ActionView extensions
52
+
53
+
49
54
 
50
55
  ### 1.4.0
51
56
 
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:
@@ -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
- Steps for an update
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
- filterrific uses Travis CI for testing. Currently we test the following ruby
41
- versions:
40
+ Sequence of a release:
42
41
 
43
- * 1.9.3
44
- * 2.0.0
45
- * 2.1.1
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.
@@ -8,22 +8,24 @@ module Filterrific
8
8
 
9
9
  require 'filterrific/param_set'
10
10
 
11
- initializer "filterrific.active_record_extension" do |app|
12
- require 'filterrific/active_record_extension'
13
- class ::ActiveRecord::Base
14
- extend Filterrific::ActiveRecordExtension::ClassMethods
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
- initializer "filterrific.action_view_extension" do |app|
19
- require 'filterrific/action_view_extension'
20
- class ::ActionView::Base
21
- include Filterrific::ActionViewExtension
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
@@ -1,3 +1,3 @@
1
1
  module Filterrific
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  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: 1.4.0
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-14 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails