nsicloudooo 0.5.0 → 0.5.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -163,8 +163,10 @@ module NSICloudooo
163
163
  # @raise NSICloudooo::Errors::Client::AuthenticationError when invalids user and/or password are provided
164
164
  # @raise NSICloudooo::Errors::Client::KeyNotFoundError when an invalid sam_uid is provided
165
165
  #
166
- def extract_metadata(document_key, type)
167
- request = prepare_request :POST, {:sam_uid => document_key, :type => type, :metadata => true}.to_json
166
+ def extract_metadata(document_key, type, callback_url=nil, callback_verb=nil)
167
+ @request_data = {:sam_uid => document_key, :type => type, :metadata => true}
168
+ insert_callback_data {:callback => callback_url, :verb => callback_verb}
169
+ request = prepare_request :POST, @request_data.to_json
168
170
  execute_request(request)
169
171
  end
170
172
 
data/nsicloudooo.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "nsicloudooo"
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Douglas Camata"]
12
- s.date = "2012-12-04"
12
+ s.date = "2012-12-05"
13
13
  s.description = "A simple gem to access a nsi.cloudooo node"
14
14
  s.email = "d.camata@gmail.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nsicloudooo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
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-12-04 00:00:00.000000000 Z
12
+ date: 2012-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  segments:
148
148
  - 0
149
- hash: -3981209681326791150
149
+ hash: 187859411462332015
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements: