filterrific 1.3.0 → 1.3.1
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/CHANGELOG.md +8 -2
- data/doc/meta.md +7 -0
- data/lib/filterrific/param_set.rb +2 -2
- data/lib/filterrific/version.rb +1 -1
- data/spec/param_set_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d44cdb5ab999e5e889376c0d0eb35f1964f13b82
|
|
4
|
+
data.tar.gz: b48205b853f675acc7c4013f211f5b67333e231d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 858c6cb75d9f41facd855fb8a41c9ebce9dbdf737f4e76a370588c819ebd9336727cab61d67751a79750a8b08b27f10fffe19825689ab991ea6d87381bd7dd69
|
|
7
|
+
data.tar.gz: e78690c520dc35c8e89e533cbcbf135e3a031487331078f6d98255a17deb14fbf25c86d44fe89ec6d864536f0cc78e8e18c6970d341cae0db8b0d11409673c5c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
### 1.3.1
|
|
2
|
+
|
|
3
|
+
* Changed ParamSet#select_options so that a complete hash can be assigned
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
## 1.3.0
|
|
2
8
|
|
|
3
9
|
* Added ParamSet#select_options (thanks @pnomolos).
|
|
@@ -15,9 +21,9 @@
|
|
|
15
21
|
|
|
16
22
|
## 1.2.0
|
|
17
23
|
|
|
18
|
-
* Added simple wrapper for Filterrific::ParamSet.new so that it can be
|
|
24
|
+
* Added simple wrapper for Filterrific::ParamSet.new so that it can be
|
|
19
25
|
instantiated with Filterrific.new instead of Filterrific::ParamSet.new.
|
|
20
|
-
* Overrode ActionView's form_for to add filterrific magic when applied to a
|
|
26
|
+
* Overrode ActionView's form_for to add filterrific magic when applied to a
|
|
21
27
|
Filterrific object.
|
|
22
28
|
* Fixed bug with javascript periodic observer, changed css selector class to
|
|
23
29
|
avoid conflicts.
|
data/doc/meta.md
CHANGED
|
@@ -7,11 +7,11 @@ module Filterrific
|
|
|
7
7
|
class ParamSet
|
|
8
8
|
|
|
9
9
|
attr_accessor :resource_class
|
|
10
|
-
|
|
10
|
+
attr_accessor :select_options
|
|
11
11
|
|
|
12
12
|
def initialize(a_resource_class, filterrific_params = {})
|
|
13
13
|
self.resource_class = a_resource_class
|
|
14
|
-
@select_options
|
|
14
|
+
@select_options = {}
|
|
15
15
|
|
|
16
16
|
# Use either passed in filterrific_params or resource class' default_settings.
|
|
17
17
|
# Don't merge the hashes. This causes trouble if an option is set to nil
|
data/lib/filterrific/version.rb
CHANGED
data/spec/param_set_spec.rb
CHANGED
|
@@ -111,8 +111,8 @@ describe Filterrific::ParamSet do
|
|
|
111
111
|
expect(filterrific_param_set.select_options).to eq({})
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
it "
|
|
115
|
-
expect{filterrific_param_set.select_options =
|
|
114
|
+
it "lets you assign a hash" do
|
|
115
|
+
expect{filterrific_param_set.select_options = {}}.not_to raise_error
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
it "lets you set a value" do
|
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.3.
|
|
4
|
+
version: 1.3.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-06-
|
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
131
131
|
version: '0'
|
|
132
132
|
requirements: []
|
|
133
133
|
rubyforge_project:
|
|
134
|
-
rubygems_version: 2.2.
|
|
134
|
+
rubygems_version: 2.2.1
|
|
135
135
|
signing_key:
|
|
136
136
|
specification_version: 4
|
|
137
137
|
summary: A Rails engine plugin for filtering ActiveRecord lists.
|