filterrific 1.3.0 → 1.3.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: f5d3faba1051ddc4f44e54c059d8066e79088c01
4
- data.tar.gz: 2fd9d094d986128b8fbcc523fffe2b79a3d04dee
3
+ metadata.gz: d44cdb5ab999e5e889376c0d0eb35f1964f13b82
4
+ data.tar.gz: b48205b853f675acc7c4013f211f5b67333e231d
5
5
  SHA512:
6
- metadata.gz: 2874548de0af99e2cd671314a651231cb6b4c5b87303c36dbb4287767b4f14595290045043745e3285c0fa68cba18bb7a999bb572c7be1c06b9f6defed155a86
7
- data.tar.gz: cd45acb35c256fa3b61ac47ae8bfe517834ed450b818df3f9bc71b59761681d5b52ef3e7629adec535f199d0a8eac23ba03658261f4c21f71c7b9426cdcd2ded
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
@@ -25,3 +25,10 @@ Steps for an update
25
25
 
26
26
 
27
27
  http://prioritized.net/blog/gemify-assets-for-rails/
28
+
29
+
30
+
31
+ How to run specs
32
+ ----------------
33
+
34
+ `bundle exec rake`
@@ -7,11 +7,11 @@ module Filterrific
7
7
  class ParamSet
8
8
 
9
9
  attr_accessor :resource_class
10
- attr_reader :select_options
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
@@ -1,3 +1,3 @@
1
1
  module Filterrific
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -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 "does not let you set itself" do
115
- expect{filterrific_param_set.select_options = nil}.to raise_error
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.0
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-03 00:00:00.000000000 Z
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.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.