comic_vine 0.0.6 → 0.0.7

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.
data/changelog CHANGED
@@ -1,3 +1,5 @@
1
+ 0.0.7 - Fix bug with search
2
+
1
3
  0.0.6 - Expose the helper methods, add get_details_by_url, allow get_* for ANY of the resource items returned in the body
2
4
 
3
5
  0.0.5 - Behind the scenes cleanup. Change gem to work as a pure ruby implementation. API.key is now manually set as opposed to reading from a config file. Removed generator and railties.
@@ -1,3 +1,3 @@
1
1
  module ComicVine
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/comic_vine.rb CHANGED
@@ -17,7 +17,9 @@ module ComicVine
17
17
 
18
18
  class << self
19
19
  def search res, query, opts={}
20
- resp = hit_api(build_url("search", opts)+"&resources=#{res}&query=#{query}")
20
+ opts[:resources] = res
21
+ opts[:query] = query
22
+ resp = hit_api(build_base_url("search"), build_query(opts))
21
23
  ComicVine::CVSearchList.new(resp, res, query)
22
24
  end
23
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comic_vine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &70331646007340 !ruby/object:Gem::Requirement
16
+ requirement: &70276701602560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70331646007340
24
+ version_requirements: *70276701602560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70331646006800 !ruby/object:Gem::Requirement
27
+ requirement: &70276701601780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 2.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70331646006800
35
+ version_requirements: *70276701601780
36
36
  description: Simple api interface to Comic Vine. Allows for searches and returning
37
37
  specific information on resources.
38
38
  email: jakanapes@gmail.com