googlebook 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  pkg/*
2
2
  *.gem
3
3
  .bundle
4
- spec/fixtures/cassette_library/*.yml
4
+ spec/fixtures/cassette_library/*.yml
5
+ Gemfile.lock
@@ -11,10 +11,6 @@ module GoogleBook
11
11
  :subject,
12
12
  :title
13
13
 
14
- def initialize(args={})
15
- args.each { |k, v| self.send "#{k}=", v }
16
- end
17
-
18
14
  def isbn
19
15
  @isbn ||= find_isbn
20
16
  end
@@ -41,17 +41,17 @@ module GoogleBook
41
41
 
42
42
  response['feed']['entry'].map do |book|
43
43
  Book.new(
44
- :images => Images.new(book['link'][0]['href']),
45
- :info => book['link'][1]['href'],
46
- :preview => book['link'][2]['href'],
47
- :creator => book['dc:creator'],
48
- :date => book['dc:date'],
49
- :description => book['dc:description'],
50
- :format => book['dc:format'],
51
- :identifier => book['dc:identifier'],
52
- :publisher => book['dc:publisher'],
53
- :subject => book['dc:subject'],
54
- :title => book['dc:title'])
44
+ Images.new(book['link'][0]['href']),
45
+ book['link'][1]['href'],
46
+ book['link'][2]['href'],
47
+ book['dc:creator'],
48
+ book['dc:date'],
49
+ book['dc:description'],
50
+ book['dc:format'],
51
+ book['dc:identifier'],
52
+ book['dc:publisher'],
53
+ book['dc:subject'],
54
+ book['dc:title'])
55
55
  end
56
56
  end
57
57
 
@@ -1,6 +1,7 @@
1
1
  module GoogleBook
2
2
  class Images
3
3
  attr_accessor :url
4
+
4
5
  def initialize(url)
5
6
  self.url = url
6
7
  end
@@ -1,3 +1,3 @@
1
1
  module GoogleBook
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: googlebook
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paper Cavalier
@@ -70,7 +70,6 @@ files:
70
70
  - .gitignore
71
71
  - .rspec
72
72
  - Gemfile
73
- - Gemfile.lock
74
73
  - LICENSE
75
74
  - README.md
76
75
  - Rakefile
@@ -1,35 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- googlebook (0.1.0)
5
- httparty (~> 0.7.4)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- addressable (2.2.4)
11
- crack (0.1.8)
12
- diff-lcs (1.1.2)
13
- httparty (0.7.4)
14
- crack (= 0.1.8)
15
- rspec (2.5.0)
16
- rspec-core (~> 2.5.0)
17
- rspec-expectations (~> 2.5.0)
18
- rspec-mocks (~> 2.5.0)
19
- rspec-core (2.5.1)
20
- rspec-expectations (2.5.0)
21
- diff-lcs (~> 1.1.2)
22
- rspec-mocks (2.5.0)
23
- vcr (1.7.0)
24
- webmock (1.6.2)
25
- addressable (>= 2.2.2)
26
- crack (>= 0.1.7)
27
-
28
- PLATFORMS
29
- ruby
30
-
31
- DEPENDENCIES
32
- googlebook!
33
- rspec (~> 2.5.0)
34
- vcr (~> 1.7.0)
35
- webmock (~> 1.6.2)