cat_api 0.0.2 → 0.1.0
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 +4 -4
- data/lib/cat_api/client.rb +1 -1
- data/lib/cat_api/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf22d9af6d38ad497c726cf60c94244c9fe27d93
|
4
|
+
data.tar.gz: 008963b65576c83cb9898c182048e65f3d729a8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4634d3e16bbfbd0f9fae73d9d9b4d8ec3660e41b0e9cca0d03e5c9adb6ffe3044b63107e2fdc21f68d86168bceeb360f4e482f43018191c3a1fbfba78cc382cb
|
7
|
+
data.tar.gz: a436b55b4121a4e6bc439dd6308f4c60cc9922b4f6a1c2f9a75a0fa95fcb719a2ce06323a8c888408770ee13015c3b2cc29a774f69225c0418ba23e3016d6563
|
data/lib/cat_api/client.rb
CHANGED
@@ -12,7 +12,7 @@ class CatAPI::Client
|
|
12
12
|
|
13
13
|
def get_images(options={})
|
14
14
|
options = @defaults.merge(options)
|
15
|
-
options.delete_if {|k,v| v.nil? || v.empty? }
|
15
|
+
options.delete_if {|k,v| v.nil? || ( v.kind_of?(Array) && v.empty? ) }
|
16
16
|
response = get "#{ BASE_URL }images/get?format=xml&#{ URI.encode_www_form options }"
|
17
17
|
CatAPI::ImageSearch.new( Nokogiri::XML(response) ).results
|
18
18
|
end
|
data/lib/cat_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cat_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Fritz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -157,3 +157,4 @@ summary: CatAPI is a Ruby gem to facilitate communication with the Cat API.
|
|
157
157
|
test_files:
|
158
158
|
- spec/lib/cat_api/client_spec.rb
|
159
159
|
- spec/spec_helper.rb
|
160
|
+
has_rdoc:
|