tilia-dav 3.1.0.pre.alpha5 → 3.1.0.pre.alpha6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tilia/dav/locks/backend/file.rb +1 -1
- data/lib/tilia/dav/version.rb +1 -1
- data/test/dav/mock/collection.rb +1 -1
- data/test/dav/mock/file.rb +1 -1
- data/test/dav/temporary_file_filter_test.rb +1 -1
- data/test/test_helper.rb +1 -1
- 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: ef422337eb29663e74a7780b2b8494703a308130
|
4
|
+
data.tar.gz: 10f5b410faf83945478751069c1e636595a1b3c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ed96bc8f6f23b52e899538e532889eb8ca440b40630e3d423edc38e24b1d3c3edb80a3c93f10394ff8d4159f36eb8661683fc3318049c1839427dc3b2d9af2
|
7
|
+
data.tar.gz: 626c073bcc2cd4dc842650a3abb5eabdf0f74d27246890851d75ddb65eb2eaf2f9b5b9fbefed62402f8f2251fa0eff94a20756d5140667e88c1fd4405809eda5
|
data/lib/tilia/dav/version.rb
CHANGED
data/test/dav/mock/collection.rb
CHANGED
@@ -71,7 +71,7 @@ module Tilia
|
|
71
71
|
# @param resource|string data Initial payload
|
72
72
|
# @return null|string
|
73
73
|
def create_file(name, data = nil)
|
74
|
-
data = data.
|
74
|
+
data = data.read unless data.is_a?(String)
|
75
75
|
|
76
76
|
@children << File.new(name, data, self)
|
77
77
|
"\"#{Digest::MD5.hexdigest(data)}\""
|
data/test/dav/mock/file.rb
CHANGED
@@ -19,7 +19,7 @@ module Tilia
|
|
19
19
|
assert_equal(201, @response.status)
|
20
20
|
assert_equal('0', @response.header('Content-Length'))
|
21
21
|
|
22
|
-
assert_equal('Testing new file', ::File.
|
22
|
+
assert_equal('Testing new file', ::File.read(::File.join(@temp_dir, 'testput.txt')))
|
23
23
|
end
|
24
24
|
|
25
25
|
def test_put_temp
|
data/test/test_helper.rb
CHANGED
@@ -30,7 +30,7 @@ module Minitest
|
|
30
30
|
|
31
31
|
def assert_v_object_equals(expected, actual, message = nil)
|
32
32
|
get_obj = lambda do |input|
|
33
|
-
input = input.
|
33
|
+
input = input.read if input.respond_to?(:read)
|
34
34
|
|
35
35
|
input = Tilia::VObject::Reader.read(input) if input.is_a?(String)
|
36
36
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tilia-dav
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.pre.
|
4
|
+
version: 3.1.0.pre.alpha6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakob Sack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tilia-vobject
|