tickethub 0.3.31 → 0.3.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tickethub/collection.rb +1 -1
- data/lib/tickethub/resource.rb +3 -3
- data/lib/tickethub/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: cf517c7020af20e8e6a76185b1956a0207ff4002
|
4
|
+
data.tar.gz: e0cbc20cf0e611eb5651c0d9d3f6563b369eccd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2133eee0bd6a779336d04260b8c5eb3e205b8bebbe84900a946560aa1f0459816dbc4f9973d4285eb99e7ae441105fad75722df4fd958f61bc063a891fbc647d
|
7
|
+
data.tar.gz: 2629d7c9303c2905b2290b6db35f286e212203953eab1b08a017a0da661b08687b17bdd9b2297ad498c1352db006a50c7e8bc1e2edfa11de0931250708aeda08
|
data/lib/tickethub/collection.rb
CHANGED
@@ -143,7 +143,7 @@ module Tickethub
|
|
143
143
|
when Array
|
144
144
|
self.filter(id: search)
|
145
145
|
when String
|
146
|
-
@klass.call endpoint, CGI::escape(search), @options
|
146
|
+
@klass.call endpoint, CGI::escape(search), @options, @params
|
147
147
|
else
|
148
148
|
raise ArgumentError, 'invalid search value type'
|
149
149
|
end
|
data/lib/tickethub/resource.rb
CHANGED
@@ -151,14 +151,14 @@ module Tickethub
|
|
151
151
|
end.to_h
|
152
152
|
end
|
153
153
|
|
154
|
-
def self.call(endpoint, attributes = nil, options = {})
|
154
|
+
def self.call(endpoint, attributes = nil, options = {}, params = {})
|
155
155
|
if attributes.is_a? String
|
156
156
|
attributes = (options[:shallow] == false ?
|
157
157
|
endpoint[CGI::escape(attributes)] :
|
158
|
-
endpoint[self.path, CGI::escape(attributes)]).get
|
158
|
+
endpoint[self.path, CGI::escape(attributes)]).get params
|
159
159
|
end
|
160
160
|
|
161
|
-
attributes ||= endpoint.get
|
161
|
+
attributes ||= endpoint.get params
|
162
162
|
|
163
163
|
klass = registered_types.find do |type, options|
|
164
164
|
attributes[options[:attribute].to_s] == type
|
data/lib/tickethub/version.rb
CHANGED
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.3.
|
4
|
+
version: 0.3.32
|
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-07-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|