addons-client 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,11 @@ module Addons
14
14
  mocked_list(search)
15
15
  else
16
16
  payload = { :accept => :json }
17
- payload[:params] = { :search => search } unless search.nil? || search == ""
17
+ if search.is_a? String
18
+ payload[:params] = { :search => search } unless search == ""
19
+ elsif !search.nil?
20
+ payload[:params] = search
21
+ end
18
22
  resource["/addons"].get payload
19
23
  end
20
24
  end
@@ -1,5 +1,5 @@
1
1
  module Addons
2
2
  class Client
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addons-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-08-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
17
- requirement: &70177630804760 !ruby/object:Gem::Requirement
17
+ requirement: &70326282116200 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70177630804760
25
+ version_requirements: *70326282116200
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: configliere
28
- requirement: &70177630803620 !ruby/object:Gem::Requirement
28
+ requirement: &70326282114700 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70177630803620
36
+ version_requirements: *70326282114700
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: json
39
- requirement: &70177630794900 !ruby/object:Gem::Requirement
39
+ requirement: &70326282113360 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70177630794900
47
+ version_requirements: *70326282113360
48
48
  description: Addons Platform API client
49
49
  email:
50
50
  - csquared@gmail.com
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: 1377657603124755218
93
+ hash: 3196901536929945356
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: 1377657603124755218
102
+ hash: 3196901536929945356
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.15