tickethub 0.3.31 → 0.3.32

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07c9fbf4c9ee640bac8a02569679bdccec914a6d
4
- data.tar.gz: 335943a4029d019d8188f20dedbf8ee37e78f224
3
+ metadata.gz: cf517c7020af20e8e6a76185b1956a0207ff4002
4
+ data.tar.gz: e0cbc20cf0e611eb5651c0d9d3f6563b369eccd4
5
5
  SHA512:
6
- metadata.gz: aafcc034f51534c2b5cc3f6fc62610f9888b0bf1cdb3de3d7e0ec4c8292b446430cc297674fe5621baf6edb91a6eb9a3b9444f4e5c4f8738e5d20bb589771915
7
- data.tar.gz: 55a409843cd7c4bcad3cb3d5a1434923fa8a8fc980965017584a5ec53a5eedc4926101c447dcd5f4d8113293fe67e3f992951cc1f12730fa4a181c2fd11dc8d5
6
+ metadata.gz: 2133eee0bd6a779336d04260b8c5eb3e205b8bebbe84900a946560aa1f0459816dbc4f9973d4285eb99e7ae441105fad75722df4fd958f61bc063a891fbc647d
7
+ data.tar.gz: 2629d7c9303c2905b2290b6db35f286e212203953eab1b08a017a0da661b08687b17bdd9b2297ad498c1352db006a50c7e8bc1e2edfa11de0931250708aeda08
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.3.31'
2
+ VERSION = '0.3.32'
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.3.31
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-15 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler