yaccl 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGI3MTMzNDY0MTNlOWI1YTllM2EwODVkYTEwNWZhZDMzYjQ3OTliYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTc2ODUyMjM2NjJlNWU4ZWY5MDQ4ZWQwNTJlMjA3YWNmNmE4MjljZg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjBiNjQzNGUzZWNmZjdhNzU0NTFhZjIxZGI2MjQ0NDU4NzFjNzk2YTYzNWZk
|
10
|
+
ZTg4NTk3OWVmZjc5ZTE2Nzk4OTQ1MWNkYzA5Yzk2YTkyMjZkOGI0NWFkZTE3
|
11
|
+
MTk5ZDFkODkwNDM2ZTFkODA5YjhiOThiYjllNGU2YWQ0NDNmNzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjkwOGU1NjgyZTI5OTFlYzU5ZGFmOWE1MjcxMWYwZGMzOTc2ZWIyNzY5YzRm
|
14
|
+
ZWM0NGM4NjliYTQ1ZWNmOTU1ZTMwNmFhNzk4OWE3OTAzYTMwMGNlMjhhYjFi
|
15
|
+
NWM1NmY2Nzg3MWU4ODUyMmYzYjA2OTFhYTM2NGJhZDllMGZmNjM=
|
@@ -4,8 +4,10 @@ module YACCL
|
|
4
4
|
def self.create(repository_id, raw)
|
5
5
|
base_type_id = if raw[:properties]
|
6
6
|
raw[:properties][:'cmis:baseTypeId'][:value]
|
7
|
-
|
7
|
+
elsif raw[:succinctProperties]
|
8
8
|
raw[:succinctProperties][:'cmis:baseTypeId']
|
9
|
+
else
|
10
|
+
raise "Unexpected raw: #{raw}"
|
9
11
|
end
|
10
12
|
|
11
13
|
case base_type_id
|
@@ -134,7 +134,8 @@ module YACCL
|
|
134
134
|
url = URI.parse(url)
|
135
135
|
req = Net::HTTP::Post::Multipart.new(url.path, options)
|
136
136
|
req.basic_auth @username, @password unless @username.nil?
|
137
|
-
|
137
|
+
opts = url.scheme == 'https' ? { use_ssl: true , verify_mode: OpenSSL::SSL::VERIFY_NONE } : {}
|
138
|
+
Net::HTTP.start(url.host, url.port, opts) { |http| http.request(req) }
|
138
139
|
end
|
139
140
|
end
|
140
141
|
end
|
data/lib/yaccl/version.rb
CHANGED