nsicloudooo 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -9,6 +9,6 @@ group :development do
9
9
  gem "rspec", "~> 2.8.0"
10
10
  gem "yard", "~> 0.7"
11
11
  gem "rdoc", "~> 3.12"
12
- gem "bundler", "~> 1.0.0"
12
+ gem "bundler", "~> 1.1.0"
13
13
  gem "jeweler", "~> 1.8.3"
14
14
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -67,6 +67,22 @@ module NSICloudooo
67
67
  execute_request(request)
68
68
  end
69
69
 
70
+ # Return the keys of the grains of a document
71
+ #
72
+ # @raise NSICloudooo::Errors::Client:KeyNotFoundError when an invalid document key is provided
73
+ #
74
+ # @param [String] key of the desired document
75
+ # @return [Hash] response
76
+ # * "images" [String] keys to the images grains of the document
77
+ # * "files" [String] keys to the files grains of the document
78
+ #
79
+ # @example
80
+ # nsicloudooo.grains_kets_for("some key")
81
+ def grains_keys_for(document_key)
82
+ request = prepare_request :GET, {:doc_key => document_key}.to_json
83
+ execute_request(request)
84
+ end
85
+
70
86
  private
71
87
 
72
88
  def insert_download_data(options)
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.2.2"
8
+ s.version = "0.2.3"
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-03-13"
12
+ s.date = "2012-03-27"
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 = [
@@ -46,14 +46,14 @@ Gem::Specification.new do |s|
46
46
  s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
47
47
  s.add_development_dependency(%q<yard>, ["~> 0.7"])
48
48
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
49
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
49
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
50
50
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
51
51
  else
52
52
  s.add_dependency(%q<sinatra>, [">= 0"])
53
53
  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
54
54
  s.add_dependency(%q<yard>, ["~> 0.7"])
55
55
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
56
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
56
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
57
57
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
58
58
  end
59
59
  else
@@ -61,7 +61,7 @@ Gem::Specification.new do |s|
61
61
  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
62
62
  s.add_dependency(%q<yard>, ["~> 0.7"])
63
63
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
64
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
64
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
65
65
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
66
66
  end
67
67
  end
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.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-13 00:00:00.000000000 Z
12
+ date: 2012-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
- requirement: &12329260 !ruby/object:Gem::Requirement
16
+ requirement: &70140067600480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12329260
24
+ version_requirements: *70140067600480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &12327540 !ruby/object:Gem::Requirement
27
+ requirement: &70140067520540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.8.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *12327540
35
+ version_requirements: *70140067520540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yard
38
- requirement: &12326780 !ruby/object:Gem::Requirement
38
+ requirement: &70140067511860 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.7'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *12326780
46
+ version_requirements: *70140067511860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc
49
- requirement: &12326240 !ruby/object:Gem::Requirement
49
+ requirement: &70140067509840 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,21 +54,21 @@ dependencies:
54
54
  version: '3.12'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *12326240
57
+ version_requirements: *70140067509840
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bundler
60
- requirement: &12325480 !ruby/object:Gem::Requirement
60
+ requirement: &70140067506560 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
64
64
  - !ruby/object:Gem::Version
65
- version: 1.0.0
65
+ version: 1.1.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *12325480
68
+ version_requirements: *70140067506560
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jeweler
71
- requirement: &12324860 !ruby/object:Gem::Requirement
71
+ requirement: &70140067502580 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: 1.8.3
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *12324860
79
+ version_requirements: *70140067502580
80
80
  description: A simple gem to access a nsi.cloudooo node
81
81
  email: d.camata@gmail.com
82
82
  executables: []
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: 3531818452433327755
117
+ hash: -803188749709581665
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements: