cmis-ruby 0.5.29 → 0.5.30
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.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/Gemfile +0 -1
- data/lib/cmis/document.rb +8 -5
- data/lib/cmis/exceptions.rb +14 -13
- data/lib/cmis/version.rb +1 -1
- data/readme.md +0 -1
- data/spec/spec_helper.rb +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20089f856da78f7dce17f9480ded9a42547a4a24
|
|
4
|
+
data.tar.gz: 3d704b0dd4b38aa59b65934e44b57367b4b0c58a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d00912f46b66efc81ebbda5ec2c1f86993f976b53abc383f6262de9af21bdbb354315bc430140418c8f35f29087f205d02484e04d2bef99e22fe44d5375ff7ac
|
|
7
|
+
data.tar.gz: ce333f955d989f6d9b0461c777e08ac375a12d1ff70a37a7e857f7c2f3fe38875bbac4422903f6c59ff4c9a05ab9841b5f961df5ed28d1938db500095aadc758
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/lib/cmis/document.rb
CHANGED
|
@@ -45,10 +45,13 @@ module CMIS
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def content(opts = {})
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
if detached?
|
|
49
|
+
@local_content
|
|
50
|
+
else
|
|
51
|
+
server.execute!({ cmisselector: 'content',
|
|
52
|
+
repositoryId: repository.id,
|
|
53
|
+
objectId: cmis_object_id }, opts)
|
|
54
|
+
end
|
|
52
55
|
rescue Exceptions::Constraint => e
|
|
53
56
|
if e.message =~ /no content stream/
|
|
54
57
|
nil
|
|
@@ -66,7 +69,7 @@ module CMIS
|
|
|
66
69
|
end
|
|
67
70
|
|
|
68
71
|
def content=(opts = {})
|
|
69
|
-
opts.symbolize_keys
|
|
72
|
+
opts = opts.symbolize_keys
|
|
70
73
|
content = { stream: opts.delete(:stream),
|
|
71
74
|
mime_type: opts.delete(:mime_type),
|
|
72
75
|
filename: opts.delete(:filename) }
|
data/lib/cmis/exceptions.rb
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
module CMIS
|
|
2
2
|
module Exceptions
|
|
3
|
-
InvalidArgument
|
|
4
|
-
NotSupported
|
|
5
|
-
ObjectNotFound
|
|
6
|
-
PermissionDenied
|
|
7
|
-
Runtime
|
|
8
|
-
Constraint
|
|
9
|
-
ContentAlreadyExists
|
|
10
|
-
FilterNotValid
|
|
11
|
-
NameConstraintViolation
|
|
12
|
-
Storage
|
|
13
|
-
StreamNotSupported
|
|
14
|
-
UpdateConflict
|
|
15
|
-
Versioning
|
|
3
|
+
InvalidArgument = Class.new(StandardError)
|
|
4
|
+
NotSupported = Class.new(StandardError)
|
|
5
|
+
ObjectNotFound = Class.new(StandardError)
|
|
6
|
+
PermissionDenied = Class.new(StandardError)
|
|
7
|
+
Runtime = Class.new(StandardError)
|
|
8
|
+
Constraint = Class.new(StandardError)
|
|
9
|
+
ContentAlreadyExists = Class.new(StandardError)
|
|
10
|
+
FilterNotValid = Class.new(StandardError)
|
|
11
|
+
NameConstraintViolation = Class.new(StandardError)
|
|
12
|
+
Storage = Class.new(StandardError)
|
|
13
|
+
StreamNotSupported = Class.new(StandardError)
|
|
14
|
+
UpdateConflict = Class.new(StandardError)
|
|
15
|
+
Versioning = Class.new(StandardError)
|
|
16
|
+
ProvisionedThroughputExceededException = Class.new(StandardError)
|
|
16
17
|
|
|
17
18
|
# Non-CMIS
|
|
18
19
|
Unauthorized = Class.new(StandardError)
|
data/lib/cmis/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[](https://rubygems.org/gems/cmis-ruby)
|
|
4
4
|
[](https://gemnasium.com/UP-nxt/cmis-ruby)
|
|
5
5
|
[](https://codeclimate.com/github/UP-nxt/cmis-ruby)
|
|
6
|
-
[](https://coveralls.io/r/UP-nxt/cmis-ruby)
|
|
7
6
|
|
|
8
7
|
**CMIS ruby** is a [CMIS](http://chemistry.apache.org/project/cmis.html) client library, using the the _CMIS Browser Binding_ ([CMIS 1.1](http://docs.oasis-open.org/cmis/CMIS/v1.1/CMIS-v1.1.html)).
|
|
9
8
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cmis-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kenneth Geerts
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: faraday
|