book_finder_api 0.0.1 → 0.0.2

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
@@ -10,15 +10,15 @@ Add this line to your application's Gemfile:
10
10
 
11
11
  And then execute:
12
12
 
13
- $ bundle
13
+ $ bundle
14
14
 
15
15
  Or install it yourself as:
16
16
 
17
17
  $ gem install book_finder_api
18
18
 
19
19
  ## Usage
20
-
21
- TODO: Write usage instructions here
20
+
21
+ BookFinder.flipkart(9788120305960)
22
22
 
23
23
  ## Contributing
24
24
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["thamizh@devbrother.com"]
11
11
  gem.description = %q{Finds the book details from the flipkart}
12
12
  gem.summary = %q{This is for the Flipkart scrapping api}
13
- gem.homepage = ""
13
+ gem.homepage = "https://rubygems.org/gems/book_finder_api"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -1,3 +1,3 @@
1
1
  module BookFinderApi
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  require "book_finder_api/version"
2
2
 
3
- module BookFinderApi
4
- def flipkart(isbn)
3
+ class BookFinder
4
+ def self.flipkart(isbn)
5
5
  search_url="http://www.flipkart.com/search/a/all?query=#{isbn}"
6
6
  result=Hash.new
7
7
  agent =Mechanize.new
@@ -16,3 +16,4 @@ module BookFinderApi
16
16
  result
17
17
  end
18
18
  end
19
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: book_finder_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -58,7 +58,7 @@ files:
58
58
  - book_finder_api.gemspec
59
59
  - lib/book_finder_api.rb
60
60
  - lib/book_finder_api/version.rb
61
- homepage: ''
61
+ homepage: https://rubygems.org/gems/book_finder_api
62
62
  licenses: []
63
63
  post_install_message:
64
64
  rdoc_options: []