webdav-exporter 0.0.1 → 0.0.2

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.
@@ -1,4 +1,5 @@
1
- Public Description:
1
+ Public Description
2
+ ==================
2
3
 
3
4
  A WebDAV server for easy filesharing in hostile environments or for unwilling
4
5
  sysads. Starts directly from the commandline and can do SSL/HTTPS. The
@@ -6,7 +7,8 @@ webdav-exporter uses the webrick-webdav gem which *fakes* a DAV2 protocol
6
7
  implementation.
7
8
 
8
9
 
9
- Description:
10
+ Description
11
+ ===========
10
12
 
11
13
  WebDAV server for easy filesharing in hostile environments or unwilling system
12
14
  administrators. It starts a DAV server directly from commandline and shares
@@ -16,11 +18,19 @@ and the webrick-webdav into a comandline application and tries to fix the
16
18
  missing parts with the DAV2 protocol.
17
19
 
18
20
 
19
- Usage:
21
+ Usage
22
+ =====
20
23
 
21
- execute with no arguments an see usage output for examples. Next step is
22
- reading the source and in case or further demand drop me a line per email to
24
+ execute with no arguments an see the usage output for examples. Next step is
25
+ reading the source and in case or further demand drop me a line per email.
26
+
27
+ have fun
23
28
  dirk at sebrink dot de.
24
29
 
25
30
 
26
- have fun
31
+ references
32
+ ==========
33
+
34
+ http://gmarrone.objectblues.net/cgi-bin/wiki/WebDAV_-_Linux_server%2c_Mac_OS_X_client
35
+ http://www.ruby-forum.com/topic/86624#164365
36
+ http://www.liverail.net/articles/2006/06/25/webdav-ruby-on-rails-plugin
data/bin/webdav-exporter CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rubygems'
4
- require 'app-ctx'
5
4
  require 'webrick'
6
5
  require 'webrick/httpstatus'
7
6
  require 'webrick/https'
8
7
  require 'webrick/httpservlet/webdavhandler'
8
+ require 'app-ctx'
9
9
 
10
10
  # global variable for passing commandline/default values into the webdav servlet
11
11
  $context = nil
@@ -106,11 +106,10 @@ class WebDAVHandlerVersion2 < WEBrick::HTTPServlet::WebDAVHandler
106
106
  def do_LOCK(req, res)
107
107
  #cfg.Logger << ">>>>> LOCK >>>>>\n #{req}"
108
108
 
109
- # XXX I still don't now what to answer but this is an axmple request
109
+ # XXX I still don't now what to answer the LOCK request but here is an example
110
+ # request taken from the (horrible) WebDAV RFC
110
111
  #raise PreconditionFailed, "not implemented"
111
- res.body << "<#{Time.now.to_s}>"
112
-
113
- # this is a example form the WebDAV RFC(which are horrible!)
112
+ res.body << "<XXX-#{Time.now.to_s}/>"
114
113
  #
115
114
  # LOCK /._x%20copy.rb HTTP/1.1
116
115
  # User-Agent: WebDAVFS/1.4.1 (01418000) Darwin/8.8.1 (i386)
data/webdav-exporter.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rubygems'
4
- require 'app-ctx'
5
4
  require 'webrick'
6
5
  require 'webrick/httpstatus'
7
6
  require 'webrick/https'
8
7
  require 'webrick/httpservlet/webdavhandler'
8
+ require 'app-ctx'
9
9
 
10
10
  # global variable for passing commandline/default values into the webdav servlet
11
11
  $context = nil
@@ -106,11 +106,10 @@ class WebDAVHandlerVersion2 < WEBrick::HTTPServlet::WebDAVHandler
106
106
  def do_LOCK(req, res)
107
107
  #cfg.Logger << ">>>>> LOCK >>>>>\n #{req}"
108
108
 
109
- # XXX I still don't now what to answer but this is an axmple request
109
+ # XXX I still don't now what to answer the LOCK request but here is an example
110
+ # request taken from the (horrible) WebDAV RFC
110
111
  #raise PreconditionFailed, "not implemented"
111
- res.body << "<#{Time.now.to_s}>"
112
-
113
- # this is a example form the WebDAV RFC(which are horrible!)
112
+ res.body << "<XXX-#{Time.now.to_s}/>"
114
113
  #
115
114
  # LOCK /._x%20copy.rb HTTP/1.1
116
115
  # User-Agent: WebDAVFS/1.4.1 (01418000) Darwin/8.8.1 (i386)
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: webdav-exporter
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2006-12-31 00:00:00 +01:00
6
+ version: 0.0.2
7
+ date: 2007-01-12 00:00:00 +01:00
8
8
  summary: one-stop WebDAV file export directly from your commandline
9
9
  require_paths:
10
10
  - lib
@@ -29,15 +29,15 @@ authors:
29
29
  - Dirk Luesebrink
30
30
  files:
31
31
  - webdav-exporter.rb
32
- - README
32
+ - README.txt
33
33
  - bin/webdav-exporter
34
34
  test_files: []
35
35
 
36
36
  rdoc_options:
37
37
  - --main
38
- - README
38
+ - README.txt
39
39
  extra_rdoc_files:
40
- - README
40
+ - README.txt
41
41
  executables:
42
42
  - webdav-exporter
43
43
  extensions: []
@@ -45,6 +45,15 @@ extensions: []
45
45
  requirements: []
46
46
 
47
47
  dependencies:
48
+ - !ruby/object:Gem::Dependency
49
+ name: webrick-webdav
50
+ version_requirement:
51
+ version_requirements: !ruby/object:Gem::Version::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "1.0"
56
+ version:
48
57
  - !ruby/object:Gem::Dependency
49
58
  name: app-ctx
50
59
  version_requirement: