timfel-active_cmis 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/active_cmis.gemspec +1 -1
- data/lib/active_cmis/rendition.rb +6 -0
- metadata +7 -7
data/active_cmis.gemspec
CHANGED
@@ -63,6 +63,12 @@ module ActiveCMIS
|
|
63
63
|
status = response.code.to_i
|
64
64
|
if 200 <= status && status < 300
|
65
65
|
data = response.body
|
66
|
+
elsif 300 <= status && status < 400
|
67
|
+
location = response["location"]
|
68
|
+
new_url = URI.parse(location)
|
69
|
+
new_url = @url + location if new_url.relative?
|
70
|
+
@url = new_url
|
71
|
+
get_data
|
66
72
|
else
|
67
73
|
raise HTTPError.new("Problem downloading rendition: status: #{status}, message: #{response.body}")
|
68
74
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timfel-active_cmis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &70336492284760 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.4.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70336492284760
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: ntlm-http
|
27
|
-
requirement: &
|
27
|
+
requirement: &70336492284140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.1.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70336492284140
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: require_relative
|
38
|
-
requirement: &
|
38
|
+
requirement: &70336492283440 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 1.0.2
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70336492283440
|
47
47
|
description: A CMIS library implementing both reading and updating capabilities through
|
48
48
|
the AtomPub/REST binding to CMIS.
|
49
49
|
email: joeri@xaop.com
|