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
- ZWFlZTRhYTExOGExZTYyNzczZDZmYTA5Mzc1NDJiYmJjMjk1NDEzYg==
4
+ OGI3MTMzNDY0MTNlOWI1YTllM2EwODVkYTEwNWZhZDMzYjQ3OTliYw==
5
5
  data.tar.gz: !binary |-
6
- OGI5ZjFlZTg4MjM5ZmY0MDlkMmUzZjQ5NDFjMmQ5NTZhMzk4MzkwNQ==
6
+ MTc2ODUyMjM2NjJlNWU4ZWY5MDQ4ZWQwNTJlMjA3YWNmNmE4MjljZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Zjc0ZmZiNmI3ZDUyMDExNjYyMGIyMzk1NDY2NmEwZTI5MzNkYjliOGIzMmIw
10
- OTgxMjJkMzQwMzYyYzU2MTQyZjc3MzQ0ZjQ2ZGQzZWExNjRiZmM3N2Q5YmFh
11
- OWYzZTM0NGM0YWViODhlMmZlNTljYjRhZjJlZTc0YjkyNWJjM2Y=
9
+ YjBiNjQzNGUzZWNmZjdhNzU0NTFhZjIxZGI2MjQ0NDU4NzFjNzk2YTYzNWZk
10
+ ZTg4NTk3OWVmZjc5ZTE2Nzk4OTQ1MWNkYzA5Yzk2YTkyMjZkOGI0NWFkZTE3
11
+ MTk5ZDFkODkwNDM2ZTFkODA5YjhiOThiYjllNGU2YWQ0NDNmNzQ=
12
12
  data.tar.gz: !binary |-
13
- MDhlZTBkZTViOTYxNzA1MmZmODk4NmJlZDUwNDRiMTllZTU0NzhhZjA1NmYx
14
- NTNiODBlOTU4MzVhNTU3YWI4NzhkNzRhMDI2OTgxOGVkZjIwYzNmNWRlNjE1
15
- NjQyZTAxODA2NWYzMTU5ODQ2OGY1Y2RiOTk2YzU3Yjc0YjdkYTg=
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
- else
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
- Net::HTTP.start(url.host, url.port) { |http| http.request(req) }
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
@@ -1,3 +1,3 @@
1
1
  module YACCL
2
- VERSION = '0.0.21'
2
+ VERSION = '0.0.22'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaccl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenneth Geerts