openlibrary 2.0.2 → 2.1.0
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/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/README.rdoc +9 -2
- data/lib/openlibrary.rb +6 -6
- data/lib/openlibrary/client.rb +9 -9
- data/lib/openlibrary/version.rb +1 -1
- data/openlibrary.gemspec +1 -1
- metadata +6 -4
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
openlibrary
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby-2.0.0-p195
|
data/README.rdoc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
== Openlibrary 2.0
|
|
1
|
+
== Openlibrary 2.1.0
|
|
2
2
|
|
|
3
3
|
The openlibrary gem provides Ruby clients for the {Open Library REST API}[http://openlibrary.org/dev/docs/restful_api] and {Books API}[http://openlibrary.org/dev/docs/api/books].
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ For more information about Open Library development, visit the {Open Library Dev
|
|
|
7
7
|
|
|
8
8
|
== Installation
|
|
9
9
|
|
|
10
|
-
The gem is tested against Ruby
|
|
10
|
+
The gem is tested against Ruby 2.0.0 and runs smoothly with Rails 4.
|
|
11
11
|
|
|
12
12
|
gem install openlibrary
|
|
13
13
|
|
|
@@ -200,5 +200,12 @@ Other built-in finder methods:
|
|
|
200
200
|
* Eric Larson https://github.com/ewlarson
|
|
201
201
|
* Charles Horn https://github.com/hornc
|
|
202
202
|
* Alex Grant https://github.com/grantovich
|
|
203
|
+
<<<<<<< HEAD
|
|
203
204
|
* Bryan L. Fordham https://github.com/bfordham
|
|
204
205
|
* Kyle Corbitt https://github.com/kcorbitt
|
|
206
|
+
=======
|
|
207
|
+
|
|
208
|
+
== LICENSE
|
|
209
|
+
|
|
210
|
+
This code is released under the {CC0 License}[http://creativecommons.org/publicdomain/zero/1.0/], and may be used for any purpose without restrictions.
|
|
211
|
+
>>>>>>> 3e3db18144f8faad94b5c0353424e4207a795c88
|
data/lib/openlibrary.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
require_relative 'openlibrary/version'
|
|
2
|
+
require_relative 'openlibrary/data'
|
|
3
|
+
require_relative 'openlibrary/view'
|
|
4
|
+
require_relative 'openlibrary/client'
|
|
5
|
+
require_relative 'openlibrary/errors'
|
|
6
|
+
require_relative 'openlibrary/request'
|
|
7
7
|
|
|
8
8
|
module Openlibrary
|
|
9
9
|
# Create a new Openlibrary::Client instance
|
data/lib/openlibrary/client.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
require_relative 'request'
|
|
2
|
+
require_relative 'client/books'
|
|
3
|
+
require_relative 'client/authors'
|
|
4
|
+
require_relative 'client/history'
|
|
5
|
+
require_relative 'client/recent'
|
|
6
|
+
require_relative 'client/editions'
|
|
7
|
+
require_relative 'client/search'
|
|
8
|
+
require_relative 'client/login'
|
|
9
|
+
require_relative 'client/save'
|
|
10
10
|
|
|
11
11
|
module Openlibrary
|
|
12
12
|
class Client
|
data/lib/openlibrary/version.rb
CHANGED
data/openlibrary.gemspec
CHANGED
|
@@ -24,5 +24,5 @@ Gem::Specification.new do |s|
|
|
|
24
24
|
s.add_runtime_dependency 'json', '~> 1.7.7'
|
|
25
25
|
s.add_runtime_dependency 'rest-client', '~> 1.6'
|
|
26
26
|
s.add_runtime_dependency 'hashie', '~> 2.0.2'
|
|
27
|
-
s.add_runtime_dependency 'activesupport', '~>
|
|
27
|
+
s.add_runtime_dependency 'activesupport', '~> 4'
|
|
28
28
|
end
|
metadata
CHANGED
|
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 2
|
|
7
|
+
- 1
|
|
7
8
|
- 0
|
|
8
|
-
|
|
9
|
-
version: 2.0.2
|
|
9
|
+
version: 2.1.0
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Jay Fajardo
|
|
@@ -92,8 +92,8 @@ dependencies:
|
|
|
92
92
|
- - ~>
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
94
|
segments:
|
|
95
|
-
-
|
|
96
|
-
version: "
|
|
95
|
+
- 4
|
|
96
|
+
version: "4"
|
|
97
97
|
type: :runtime
|
|
98
98
|
version_requirements: *id006
|
|
99
99
|
description: Openlibrary.org API Interface
|
|
@@ -107,6 +107,8 @@ extra_rdoc_files: []
|
|
|
107
107
|
|
|
108
108
|
files:
|
|
109
109
|
- .gitignore
|
|
110
|
+
- .ruby-gemset
|
|
111
|
+
- .ruby-version
|
|
110
112
|
- Gemfile
|
|
111
113
|
- README.rdoc
|
|
112
114
|
- Rakefile
|