sabredav_client 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cc0b05832228bea29085253b712b72cd9c3332b
4
- data.tar.gz: 98a50476b735fbdc9b664e4e8dc42de3f2ba4855
3
+ metadata.gz: ffa4c8a0355c51f196c7d2b240363c3192ba4b73
4
+ data.tar.gz: e7349c9ded75303b98bb35189a05f564d6e69aa6
5
5
  SHA512:
6
- metadata.gz: c74076b2c3c17556c50ed4f80ff5659ae18b0ff79df53153fea7c394b951ceec412cf96cab45e3da4f22e36a8d43dc330f06ad913090d32c63957bbc83eb5da1
7
- data.tar.gz: 67e6f8fa5b7c4433767d2a43b95f768d45f811ef3f949022ef4f6c9ecd3f86e4d3c7e1cae4617c72587d9a97741a3bd4e16e6bd983df87a79ae5bd4af3964301
6
+ metadata.gz: f481969286622ee604bdd4ef326c9d8cc8d05c27e5706327528e494a713ea6703c8a3010d6056092042fa47675f164b5f04546f6935b6c1dea655c696292f726
7
+ data.tar.gz: c6704a67ecdb85e2835a9f6fc20038798218a24773537a656cdc858014dc1f37696a3a00ca843a88bc27dbeeba511db6d794110519699581194658541a70acdf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sabredav_client (0.1.2)
4
+ sabredav_client (0.1.3)
5
5
  builder (~> 3.2)
6
6
  net-http-digest_auth (~> 1.4)
7
7
 
@@ -88,7 +88,6 @@ module SabredavClient
88
88
  entry = REXML::Document.new.add(user)
89
89
  sharee = {
90
90
  href: REXML::XPath.first(entry, "//d:href").text,
91
- common_name: REXML::XPath.first(entry, "//d:common-name").text
92
91
  }
93
92
  access = REXML::XPath.first(entry, "//d:access").elements[1].to_s
94
93
  sharee[:access] = access.gsub(/\A[<cs:]+|[\/>]+\Z/, "")
@@ -97,6 +96,7 @@ module SabredavClient
97
96
  sharee[:status] = :accepted unless REXML::XPath.first(entry, "//cs:invite-accepted").nil?
98
97
  # URI depends on a custom plugin
99
98
  begin
99
+ sharee[:common_name] = REXML::XPath.first(entry, "//d:common-name").text
100
100
  sharee[:uri] = REXML::XPath.first(entry, "//cs:uri").text
101
101
  sharee[:principal] = REXML::XPath.first(entry, "//cs:principal").text
102
102
  rescue
@@ -1,3 +1,3 @@
1
1
  module SabredavClient
2
- VERSION="0.1.3"
2
+ VERSION="0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sabredav_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Schwartau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-29 00:00:00.000000000 Z
11
+ date: 2016-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder