groupdocs 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/groupdocs/job.rb CHANGED
@@ -118,6 +118,7 @@ module GroupDocs
118
118
  request[:path] = "/async/{{client_id}}/jobs/#{id}/documents"
119
119
  end.execute!
120
120
 
121
+ self.status = json[:job_status]
121
122
  json[:inputs].map do |document|
122
123
  document.merge!(file: GroupDocs::Storage::File.new(document))
123
124
  Document.new(document)
@@ -1,3 +1,3 @@
1
1
  module GroupDocs
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end # GroupDocs
@@ -129,6 +129,11 @@ describe GroupDocs::Job do
129
129
  end.should_not raise_error(ArgumentError)
130
130
  end
131
131
 
132
+ it 'updates job status' do
133
+ subject.documents!
134
+ subject.status.should == :archived
135
+ end
136
+
132
137
  it 'returns array of GroupDocs::Document objects' do
133
138
  documents = subject.documents!
134
139
  documents.should be_an(Array)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &8104360 !ruby/object:Gem::Requirement
16
+ requirement: &6056380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.6'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *8104360
24
+ version_requirements: *6056380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &8118880 !ruby/object:Gem::Requirement
27
+ requirement: &6071300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.7'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *8118880
35
+ version_requirements: *6071300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ruby-hmac
38
- requirement: &8117640 !ruby/object:Gem::Requirement
38
+ requirement: &6069660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *8117640
46
+ version_requirements: *6069660
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &8115840 !ruby/object:Gem::Requirement
49
+ requirement: &6067820 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '2.9'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *8115840
57
+ version_requirements: *6067820
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rake
60
- requirement: &8114880 !ruby/object:Gem::Requirement
60
+ requirement: &6066840 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0.9'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *8114880
68
+ version_requirements: *6066840
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
- requirement: &8113960 !ruby/object:Gem::Requirement
71
+ requirement: &6065920 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0.6'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *8113960
79
+ version_requirements: *6065920
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: yard
82
- requirement: &8112440 !ruby/object:Gem::Requirement
82
+ requirement: &6064420 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0.8'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *8112440
90
+ version_requirements: *6064420
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: webmock
93
- requirement: &8124720 !ruby/object:Gem::Requirement
93
+ requirement: &6076960 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: '1.8'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *8124720
101
+ version_requirements: *6076960
102
102
  description: Ruby SDK for GroupDocs REST API
103
103
  email: p0deje@gmail.com
104
104
  executables: []
@@ -253,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  segments:
255
255
  - 0
256
- hash: -1350849799093489805
256
+ hash: -4558237692296558788
257
257
  required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  none: false
259
259
  requirements:
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  version: '0'
263
263
  segments:
264
264
  - 0
265
- hash: -1350849799093489805
265
+ hash: -4558237692296558788
266
266
  requirements: []
267
267
  rubyforge_project:
268
268
  rubygems_version: 1.8.10