google_book 0.3.9 → 0.3.9.1

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/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  <div>
16
16
  <h2>Installation</h2>
17
17
  <p>In Gemfile<br/>
18
- <code>gem 'google_book', '0.3.9'</code>
18
+ <code>gem 'google_book', '0.3.9.1'</code>
19
19
  </p>
20
20
  </div>
21
21
  <div>
@@ -0,0 +1,3 @@
1
+ module GoogleBook
2
+ Version = "0.3.9.1"
3
+ end
@@ -0,0 +1,37 @@
1
+ require_relative "../lib/google_book/book_shelves.rb"
2
+ require_relative "spec_helper.rb"
3
+
4
+ describe "book_shelf_item" do
5
+ let(:user_id){"109681907061774445744"}
6
+
7
+ before(:all) do
8
+ @book_shelve = BookShelves.new(user_id)
9
+ @bookshelves_items = @book_shelve.bookshelves
10
+ end
11
+
12
+ it "should return right book shelf of the corresponding user" do
13
+ @bookshelves_items.first.title.should_not be_nil
14
+ @bookshelves_items.first.title.should == "Favorites"
15
+ end
16
+
17
+ it "shouldreturn the right book shelf self link" do
18
+ @bookshelves_items.first.self_link.should_not be_nil
19
+ @bookshelves_items.first.self_link.should == "https://www.googleapis.com/books/v1/users/109681907061774445744/bookshelves/0"
20
+ end
21
+ end
22
+
23
+ describe "books" do
24
+ let(:user_id){"109681907061774445744"}
25
+
26
+ before(:all) do
27
+ @book_shelve = BookShelves.new(user_id)
28
+ @bookshelves_items = @book_shelve.bookshelves
29
+ @books = @bookshelves_items.first.books
30
+ end
31
+
32
+ it "should show the right books data of a bookshelf" do
33
+ @books.should_not be_nil
34
+ @books.should be_a_kind_of(Array)
35
+ @books.first.get_title.should == "Complete Adventures of Feluda"
36
+ end
37
+ end
@@ -0,0 +1,22 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+ require 'rspec'
8
+ require 'rspec/expectations'
9
+ require 'rspec/mocks'
10
+ require 'rspec/core'
11
+ require 'webmock/rspec'
12
+ RSpec.configure do |config|
13
+ config.treat_symbols_as_metadata_keys_with_true_values = true
14
+ config.run_all_when_everything_filtered = true
15
+ config.filter_run :focus
16
+ WebMock.allow_net_connect!(:net_http_connect_on_start => true)
17
+ # Run specs in random order to surface order dependencies. If you find an
18
+ # order dependency and want to debug it, you can fix the order by providing
19
+ # the seed, which is printed after each run.
20
+ # --seed 1234
21
+ config.order = 'random'
22
+ end
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_book
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.9.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Rajarshi Das
8
- autorequire:
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
  date: 2013-08-09 00:00:00.000000000 Z
12
13
  dependencies: []
13
- description:
14
+ description:
14
15
  email: rdasarminus@gmail.com
15
16
  executables: []
16
17
  extensions: []
@@ -21,19 +22,21 @@ files:
21
22
  - Rakefile
22
23
  - spec/base_spec.rb
23
24
  - spec/book_item_spec.rb
25
+ - spec/book_shelf_item_spec.rb
24
26
  - spec/book_shelves_spec.rb
27
+ - spec/spec_helper.rb
25
28
  - lib/google_book.rb
26
29
  - lib/google_book/base.rb
27
30
  - lib/google_book/book_info.rb
28
31
  - lib/google_book/book_item.rb
32
+ - lib/google_book/book_shelf_item.rb
29
33
  - lib/google_book/book_shelves.rb
30
34
  - lib/google_book/uri.rb
31
- - lib/google_book/book_shelf_item.rb
35
+ - lib/google_book/version.rb
32
36
  homepage: https://github.com/rajcybage/google_book
33
37
  licenses:
34
38
  - Copyright (c) Rajarshi Das. All rights reserved
35
- metadata: {}
36
- post_install_message:
39
+ post_install_message:
37
40
  rdoc_options: []
38
41
  require_paths:
39
42
  - lib
@@ -42,20 +45,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
45
  - - '>='
43
46
  - !ruby/object:Gem::Version
44
47
  version: '0'
48
+ none: false
45
49
  required_rubygems_version: !ruby/object:Gem::Requirement
46
50
  requirements:
47
51
  - - '>='
48
52
  - !ruby/object:Gem::Version
49
53
  version: '0'
54
+ none: false
50
55
  requirements: []
51
- rubyforge_project:
52
- rubygems_version: 2.0.0
53
- signing_key:
54
- specification_version: 4
55
- summary: Google Book API integration for fetching the information for google books
56
- and magazines and book shelves also filter them. You can eaisly get most of the
57
- elements for a particular book and magazine or the books of a book shelf from the
58
- google book search. like :-(title,sub title,preview link,authors,publisher,publish
59
- date,buylink,downloadlink,version,ISBN information,ratings,...many more..Also you
60
- can get the google checkout link for that book/magazine
56
+ rubyforge_project:
57
+ rubygems_version: 1.8.24
58
+ signing_key:
59
+ specification_version: 3
60
+ summary: Google Book API integration for fetching the information for google books and magazines and book shelves also filter them. You can eaisly get most of the elements for a particular book and magazine or the books of a book shelf from the google book search. like :-(title,sub title,preview link,authors,publisher,publish date,buylink,downloadlink,version,ISBN information,ratings,...many more..Also you can get the google checkout link for that book/magazine
61
61
  test_files: []
62
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 303b54040302c5b1bc6ab0634a3deeb40fa7e00b
4
- data.tar.gz: a363ac58121fec8908336087c55505fc13430d0d
5
- SHA512:
6
- metadata.gz: c0f7b6bc4798bea54b528fd8680362f8c44cb65266d69afd66035aef6756809eaedd50a1c12833caefefc22cc44bdb3a1a5c493b9f8c3ba1cfff94616a19c276
7
- data.tar.gz: 27ce6ea7f0de31101cd50c3520f59c215f8f7916318b3fc5edc1bca8b8c1724e4a7fff55a695c4f48ae2dcd0ecabccca2e1d36fb0e52a392e739212f458ca5a7