dav4rack 0.2.9 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -309,6 +309,8 @@ A big thanks to everyone contributing to help make this project better.
309
309
  * {buffym}[https://github.com/buffym]
310
310
  * {jbangert}[https://github.com/jbangert]
311
311
  * {doxavore}[https://github.com/doxavore]
312
+ * {spicyj}[https://github.com/spicyj]
313
+ * {TurchenkoAlex}[https://github.com/TurchenkoAlex]
312
314
 
313
315
  == License
314
316
 
@@ -87,7 +87,7 @@ app = Rack::Builder.new do
87
87
  use Rack::CommonLogger
88
88
  use Rack::Reloader
89
89
  use Rack::Lint
90
-
90
+
91
91
  run DAV4Rack::Handler.new(credentials)
92
92
 
93
93
  end.to_app
@@ -97,7 +97,11 @@ runners << lambda do |x|
97
97
  print 'Looking for unicorn... '
98
98
  require 'unicorn'
99
99
  puts 'OK'
100
- Unicorn.run(x, :listeners => ["0.0.0.0:3000"])
100
+ if(Unicorn.respond_to?(:run))
101
+ Unicorn.run(x, :listeners => ["0.0.0.0:3000"])
102
+ else
103
+ Unicorn::HttpServer.new(x, :listeners => ["0.0.0.0:3000"]).start.join
104
+ end
101
105
  end
102
106
  runners << lambda do |x|
103
107
  print 'Looking for mongrel... '
@@ -116,4 +120,4 @@ begin
116
120
  rescue LoadError
117
121
  puts 'FAILED'
118
122
  retry unless runners.empty?
119
- end
123
+ end
@@ -67,7 +67,7 @@ module DAV4Rack
67
67
  Rack::Directory.new(root).call(request.env)[2].each do |line|
68
68
  response.body << line
69
69
  end
70
- response['Content-Length'] = response.body.size.to_s
70
+ response['Content-Length'] = response.body.bytesize.to_s
71
71
  else
72
72
  file = Rack::File.new(root)
73
73
  response.body = file
@@ -13,5 +13,5 @@ module DAV4Rack
13
13
  end
14
14
  end
15
15
 
16
- VERSION = Version.new('0.2.9')
16
+ VERSION = Version.new('0.2.10')
17
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dav4rack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 9
10
- version: 0.2.9
9
+ - 10
10
+ version: 0.2.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Roberts
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-18 00:00:00 Z
18
+ date: 2011-12-22 00:00:00 -08:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: nokogiri
@@ -94,6 +95,7 @@ files:
94
95
  - bin/dav4rack
95
96
  - spec/handler_spec.rb
96
97
  - README.rdoc
98
+ has_rdoc: true
97
99
  homepage: http://github.com/chrisroberts/dav4rack
98
100
  licenses: []
99
101
 
@@ -123,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
125
  requirements: []
124
126
 
125
127
  rubyforge_project:
126
- rubygems_version: 1.8.11
128
+ rubygems_version: 1.4.2
127
129
  signing_key:
128
130
  specification_version: 3
129
131
  summary: WebDAV handler for Rack