net_dav 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1 +1,11 @@
1
1
  Net::Dav library, in the style of Net::HTTP
2
+
3
+ == Install
4
+
5
+ Installing the gem:
6
+
7
+ sudo gem install net_dav
8
+
9
+ If you're having install issues with nokogiri on Mac OS X read
10
+ http://wiki.github.com/tenderlove/nokogiri/what-to-do-if-libxml2-is-being-a-jerk
11
+
data/Rakefile CHANGED
@@ -10,8 +10,9 @@ begin
10
10
  gem.email = "c1.github@niftybox.net"
11
11
  gem.homepage = "http://github.com/devrandom/net_dav"
12
12
  gem.authors = ["Miron Cuperman"]
13
- gem.add_development_dependency "rspec", ">= 1.2.9"
14
13
  gem.add_dependency "nokogiri", ">= 1.3.0"
14
+ gem.add_development_dependency "rspec", ">= 1.2.0"
15
+
15
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
17
  end
17
18
  Jeweler::GemcutterTasks.new
@@ -35,6 +36,15 @@ task :spec => :check_dependencies
35
36
 
36
37
  task :default => :spec
37
38
 
39
+ task :release => [:clean, :gemspec, 'gemcutter:release']
40
+
41
+ task :clean do
42
+ Dir.glob("**/*~").each do |file|
43
+ File.unlink file
44
+ end
45
+ puts "cleaned"
46
+ end
47
+
38
48
  require 'rake/rdoctask'
39
49
  Rake::RDocTask.new do |rdoc|
40
50
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/net/dav.rb CHANGED
@@ -4,15 +4,6 @@ require 'nokogiri'
4
4
 
5
5
  module Net #:nodoc:
6
6
  class DAV
7
- # :stopdoc:
8
- VERSION = '0.0.1'
9
- # :startdoc:
10
-
11
- # Returns the library version string
12
- def self.version
13
- VERSION
14
- end
15
-
16
7
  # Seconds to wait until reading one block (by one system call).
17
8
  # If the DAV object cannot read a block in this many seconds,
18
9
  # it raises a TimeoutError exception.
@@ -57,7 +48,7 @@ module Net #:nodoc:
57
48
  def initialize(uri)
58
49
  @uri = uri
59
50
  @uri = URI.parse(@uri) if @uri.is_a? String
60
- case uri.scheme
51
+ case @uri.scheme
61
52
  when "http"
62
53
  @http = Net::HTTP.new(@uri.host, @uri.port)
63
54
  when "https"
data/net_dav.gemspec ADDED
@@ -0,0 +1,62 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{net_dav}
8
+ s.version = "0.0.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Miron Cuperman"]
12
+ s.date = %q{2009-10-29}
13
+ s.default_executable = %q{dav}
14
+ s.description = %q{WebDAV client library in the style of Net::HTTP}
15
+ s.email = %q{c1.github@niftybox.net}
16
+ s.executables = ["dav"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".gitignore",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "bin/dav",
29
+ "lib/net/dav.rb",
30
+ "net_dav.gemspec",
31
+ "spec/net_dav_spec.rb",
32
+ "spec/spec.opts",
33
+ "spec/spec_helper.rb",
34
+ "tmp/.gitignore"
35
+ ]
36
+ s.homepage = %q{http://github.com/devrandom/net_dav}
37
+ s.rdoc_options = ["--charset=UTF-8"]
38
+ s.require_paths = ["lib"]
39
+ s.rubygems_version = %q{1.3.5}
40
+ s.summary = %q{WebDAV client library in the style of Net::HTTP}
41
+ s.test_files = [
42
+ "spec/net_dav_spec.rb",
43
+ "spec/spec_helper.rb"
44
+ ]
45
+
46
+ if s.respond_to? :specification_version then
47
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
+ s.specification_version = 3
49
+
50
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.3.0"])
52
+ s.add_development_dependency(%q<rspec>, [">= 1.2.0"])
53
+ else
54
+ s.add_dependency(%q<nokogiri>, [">= 1.3.0"])
55
+ s.add_dependency(%q<rspec>, [">= 1.2.0"])
56
+ end
57
+ else
58
+ s.add_dependency(%q<nokogiri>, [">= 1.3.0"])
59
+ s.add_dependency(%q<rspec>, [">= 1.2.0"])
60
+ end
61
+ end
62
+
data/spec/net_dav_spec.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
- describe "NetDav" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
3
+ describe "Net::Dav" do
4
+ it "should create a Net::Dav object" do
5
+ Net::DAV.new("http://localhost.localdomain/").should_not be_nil
6
6
  end
7
7
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- require 'net_dav'
3
+ require 'rubygems'
4
+ require 'net/dav'
4
5
  require 'spec'
5
6
  require 'spec/autorun'
6
7
 
data/tmp/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net_dav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miron Cuperman
@@ -9,28 +9,28 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-28 00:00:00 -07:00
12
+ date: 2009-10-29 00:00:00 -07:00
13
13
  default_executable: dav
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rspec
17
- type: :development
16
+ name: nokogiri
17
+ type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.2.9
23
+ version: 1.3.0
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: nokogiri
27
- type: :runtime
26
+ name: rspec
27
+ type: :development
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.0
33
+ version: 1.2.0
34
34
  version:
35
35
  description: WebDAV client library in the style of Net::HTTP
36
36
  email: c1.github@niftybox.net
@@ -50,9 +50,11 @@ files:
50
50
  - VERSION
51
51
  - bin/dav
52
52
  - lib/net/dav.rb
53
+ - net_dav.gemspec
53
54
  - spec/net_dav_spec.rb
54
55
  - spec/spec.opts
55
56
  - spec/spec_helper.rb
57
+ - tmp/.gitignore
56
58
  has_rdoc: true
57
59
  homepage: http://github.com/devrandom/net_dav
58
60
  licenses: []