docverter 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2012> Docverter
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -18,11 +18,11 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- First, sign up for [Docverter](http://www.docverter.com) and get your API key.
21
+ First, install [Docverter Server](https://github.com/docverter/docverter).
22
22
 
23
- Set your API key before using any of the rest of the library:
23
+ Set your base url before using any of the rest of the library:
24
24
 
25
- Docverter.api_key = <API-KEY>
25
+ Docverter.base_url = <BASE-URL>
26
26
 
27
27
  In a Rails project, put this in an initializer.
28
28
 
@@ -86,7 +86,7 @@ module Docverter
86
86
  end
87
87
 
88
88
  def self.handle_api_error(code, body)
89
- obj = Docverter::OkJson.decode(body)
89
+ obj = Docverter::OkJson.decode(body) rescue {'error' => body}
90
90
  raise APIError.new("Docverter API Error: #{obj['error']} (status: #{code})")
91
91
  end
92
92
 
@@ -1,3 +1,3 @@
1
1
  module Docverter
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docverter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-24 00:00:00.000000000 Z
12
+ date: 2012-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -68,6 +68,7 @@ extra_rdoc_files: []
68
68
  files:
69
69
  - .gitignore
70
70
  - Gemfile
71
+ - LICENSE
71
72
  - LICENSE.txt
72
73
  - README.md
73
74
  - Rakefile
@@ -105,3 +106,4 @@ summary: API for converting documents with the Docverter service
105
106
  test_files:
106
107
  - test/test_docverter.rb
107
108
  - test/test_helper.rb
109
+ has_rdoc: