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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83b1a20d46994621884725694c12b5fdbc7ec33f
4
- data.tar.gz: 704f6263f83c60f06fc6e3f69d838ebf9014b043
3
+ metadata.gz: ef422337eb29663e74a7780b2b8494703a308130
4
+ data.tar.gz: 10f5b410faf83945478751069c1e636595a1b3c7
5
5
  SHA512:
6
- metadata.gz: 37bd4d2be7e4c2dd6a6a75a7ad7d65e703422592d621cbe674dcf150ae25f3e24a82727b9e3b939d135dc97b67c10fa752b18bb99dfa8591fc678a8a2f839e1e
7
- data.tar.gz: d7e766ac87d7244e28c6c287bbde68da6a7eea1088365bf99e4fc395d1932de65c158a1be9ceaceb2d292cc8b7fc7a10ccad7bd441bd213cec9d4e5da556656c
6
+ metadata.gz: 83ed96bc8f6f23b52e899538e532889eb8ca440b40630e3d423edc38e24b1d3c3edb80a3c93f10394ff8d4159f36eb8661683fc3318049c1839427dc3b2d9af2
7
+ data.tar.gz: 626c073bcc2cd4dc842650a3abb5eabdf0f74d27246890851d75ddb65eb2eaf2f9b5b9fbefed62402f8f2251fa0eff94a20756d5140667e88c1fd4405809eda5
@@ -111,7 +111,7 @@ module Tilia
111
111
  handle.flock(::File::LOCK_SH)
112
112
 
113
113
  # Reading data until the eof
114
- data = handle.readlines.join('')
114
+ data = handle.read
115
115
 
116
116
  # We're all good
117
117
  handle.flock(::File::LOCK_UN)
@@ -3,7 +3,7 @@ module Tilia
3
3
  # This class contains the SabreDAV version constants.
4
4
  class Version
5
5
  # Full version number
6
- VERSION = '3.1.0-alpha5'
6
+ VERSION = '3.1.0-alpha6'
7
7
  end
8
8
  end
9
9
  end
@@ -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.readlines.join('') if data.respond_to?(:readlines)
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)}\""
@@ -55,7 +55,7 @@ module Tilia
55
55
  # @param resource data
56
56
  # @return string|null
57
57
  def put(data)
58
- data = data.readlines.join('') if data.respond_to?(:readlines)
58
+ data = data.read unless data.is_a?(String)
59
59
 
60
60
  @contents = data
61
61
  "\"#{Digest::MD5.hexdigest(data)}\""
@@ -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.readlines(::File.join(@temp_dir, 'testput.txt')).join(''))
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.readlines.join("\n") if input.respond_to?(:readlines)
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.alpha5
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-02 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilia-vobject