openlibrary 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  OPENLIBRARY is a simple wrapper for the Openlibrary REST-API.
5
5
 
6
- For more information on the REST calls, you can view the api docuemtation at [http://openlibrary.org/developers/api].
6
+ For more information on the REST calls, you can view the api documentation at [here](http://openlibrary.org/developers/api).
7
7
 
8
8
 
9
9
  == Installation
@@ -60,3 +60,6 @@ You can also retrieve a book's full metadata details.
60
60
  # or an array of authors
61
61
  book_view.authors
62
62
 
63
+ == TO DO
64
+
65
+ Write Tests
data/Rakefile CHANGED
@@ -1 +1,4 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+ RSpec::Core::RakeTask.new('spec')
4
+
data/lib/openlibrary.rb CHANGED
@@ -7,4 +7,9 @@ module Openlibrary
7
7
  autoload :Data, 'openlibrary/data'
8
8
  autoload :View, 'openlibrary/view'
9
9
 
10
+ def self.version_string
11
+ "Openlibrary version #{Openlibrary::VERSION}"
12
+ end
13
+
14
+
10
15
  end
@@ -1,3 +1,3 @@
1
1
  module Openlibrary
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/openlibrary.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["Jay Fajardo"]
9
9
  s.email = ["jmrfajardo@gmail.com"]
10
10
  s.homepage = "http://www.proudcloud.net"
11
- s.summary = %q{Ruby Interface for the OpenLibrary API}
12
- s.description = %q{OpenLibrary API Interface}
11
+ s.summary = %q{Ruby Interface for the Openlibrary.org API}
12
+ s.description = %q{Openlibrary.oeg API Interface}
13
13
 
14
14
  s.rubyforge_project = "openlibrary"
15
15
 
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe Openlibrary do
4
+ it 'should return correct version string' do
5
+ Openlibrary.version_string.should == "Openlibrary version #{Openlibrary::VERSION}"
6
+ end
7
+ end
8
+
@@ -0,0 +1,8 @@
1
+ require 'rspec'
2
+ require 'openlibrary'
3
+
4
+ RSpec.configure do |config|
5
+ config.color_enabled = true
6
+ config.formatter = 'documentation'
7
+ end
8
+
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: openlibrary
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Fajardo
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-03 00:00:00 +08:00
13
+ date: 2011-09-04 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -46,7 +46,7 @@ dependencies:
46
46
  version: "0"
47
47
  type: :runtime
48
48
  version_requirements: *id003
49
- description: OpenLibrary API Interface
49
+ description: Openlibrary.oeg API Interface
50
50
  email:
51
51
  - jmrfajardo@gmail.com
52
52
  executables: []
@@ -66,6 +66,8 @@ files:
66
66
  - lib/openlibrary/version.rb
67
67
  - lib/openlibrary/view.rb
68
68
  - openlibrary.gemspec
69
+ - spec/openlibrary_spec.rb
70
+ - spec/spec_helper.rb
69
71
  has_rdoc: true
70
72
  homepage: http://www.proudcloud.net
71
73
  licenses: []
@@ -93,6 +95,7 @@ rubyforge_project: openlibrary
93
95
  rubygems_version: 1.6.2
94
96
  signing_key:
95
97
  specification_version: 3
96
- summary: Ruby Interface for the OpenLibrary API
97
- test_files: []
98
-
98
+ summary: Ruby Interface for the Openlibrary.org API
99
+ test_files:
100
+ - spec/openlibrary_spec.rb
101
+ - spec/spec_helper.rb