tickethub 0.2.4 → 0.2.5

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: 1f6bf40a66782d4aa6788a5ea436554ca6392606
4
- data.tar.gz: 248f20a58b35833c34ea9bea6acfb51b64f5f68d
3
+ metadata.gz: 3a5e8ddeaf258f74319812446a7e4d61da878007
4
+ data.tar.gz: 121f94295f34fc69e21d8b04948def17d14f0c4f
5
5
  SHA512:
6
- metadata.gz: a562ffd7914429581382c90d3bc4e14f0e720d115a0a3c73514df2effa485bc6edf5232f18c7e1826a0cffa222fd224b2baa83e4e1e295ab7529ed9912de6cdd
7
- data.tar.gz: e1a2657b83191ff0bfd1a00c5c9a7e0066e73c7a0e0e89b719301311ecde63c60a54ea83f44bd9bbe7837094b2493e8cf1b43187b776f157cc49bdb96e306e05
6
+ metadata.gz: 93617a8ee8866f08c5042626d23d9750b0f7445263540073dda139fbeaf085f9e5c30a70b07d30ee3bda6586903daa62c53689697e5717192c78bc6d6ac1f89a
7
+ data.tar.gz: c32d871c434234ef15cfaf525b6fd314974b54c70751a463441f424208b1834d9d193e90402f392fe68887d3f1e232ec40ac5f59800e8bf07d896065594d3a1c
@@ -80,6 +80,10 @@ module Tickethub
80
80
  (params[:filters] || {}).dup
81
81
  end
82
82
 
83
+ def search(value)
84
+ self.filter(search: value)
85
+ end
86
+
83
87
  def order(value = nil)
84
88
  return params[:order].dup if value.nil?
85
89
  order = (params[:order] || []) + (case value
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tickethub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-08 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler