htauth 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,4 +1,24 @@
1
- = rpasswd Changelog
2
- === Version 1.0.0
1
+ = HTAuth
2
+
3
+ == Version 1.0.1 (2008-02-06)
4
+
5
+ === Changes
6
+
7
+ * Bugs
8
+ - fix require dependency chain
9
+ - fix gem dependency on rake
10
+
11
+ === Release Notes
12
+
13
+ * Look at 'htpasswd-ruby' and 'htdigest-ruby' to get started.
14
+
15
+ == Version 1.0.0 (2008-02-05)
16
+
17
+ === Changes
3
18
 
4
19
  * Initial public release
20
+
21
+ === Release Notes
22
+
23
+ * Look at 'htpasswd-ruby' and 'htdigest-ruby' to get started.
24
+
@@ -1,3 +1,4 @@
1
+ require 'htauth'
1
2
 
2
3
  module HTAuth
3
4
  class InvalidAlgorithmError < StandardError ; end
data/lib/htauth/digest.rb CHANGED
@@ -1,4 +1,6 @@
1
+ require 'htauth'
1
2
  require 'htauth/digest_file'
3
+
2
4
  require 'ostruct'
3
5
  require 'optparse'
4
6
 
@@ -1,3 +1,4 @@
1
+ require 'htauth/entry'
1
2
  require 'digest/md5'
2
3
 
3
4
  module HTAuth
data/lib/htauth/file.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'stringio'
2
+ require 'htauth'
2
3
 
3
4
  module HTAuth
4
5
  class FileAccessError < StandardError ; end
@@ -30,7 +30,8 @@ module HTAuth
30
30
  spec.executables << "htpasswd-ruby"
31
31
  spec.files = spec.test_files + spec.extra_rdoc_files +
32
32
  FileList["lib/**/*.rb"]
33
-
33
+
34
+ spec.add_dependency("rake")
34
35
  spec.add_dependency("highline", ">= 1.4.0")
35
36
 
36
37
  spec.platform = Gem::Platform::RUBY
data/lib/htauth/passwd.rb CHANGED
@@ -1,4 +1,6 @@
1
+ require 'htauth'
1
2
  require 'htauth/passwd_file'
3
+
2
4
  require 'ostruct'
3
5
  require 'optparse'
4
6
 
@@ -1,5 +1,5 @@
1
-
2
1
  require 'htauth/entry'
2
+ require 'htauth/algorithm'
3
3
 
4
4
  module HTAuth
5
5
  class InvalidPasswdEntry < StandardError ; end
@@ -1,6 +1,7 @@
1
1
  require 'stringio'
2
2
  require 'tempfile'
3
3
 
4
+ require 'htauth/file'
4
5
  require 'htauth/passwd_entry'
5
6
 
6
7
  module HTAuth
@@ -1,6 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'rubygems/specification'
3
3
  require 'rake'
4
+ require 'htauth'
4
5
 
5
6
  module HTAuth
6
7
  # Add some additional items to Gem::Specification
@@ -1,8 +1,9 @@
1
+ require 'htauth'
1
2
  module HTAuth
2
3
  class Version
3
4
  MAJOR = 1
4
5
  MINOR = 0
5
- BUILD = 0
6
+ BUILD = 1
6
7
 
7
8
  class << self
8
9
  def to_a
data/lib/htauth.rb CHANGED
@@ -3,25 +3,12 @@ module HTAuth
3
3
  ROOT_DIR = ::File.expand_path(::File.join(::File.dirname(__FILE__),".."))
4
4
  LIB_DIR = ::File.join(ROOT_DIR,"lib").freeze
5
5
 
6
- #
7
- # Utility method to require all files ending in .rb in the directory
8
- # with the same name as this file minus .rb
9
- #
10
- def require_all_libs_relative_to(fname)
11
- prepend = ::File.basename(fname,".rb")
12
- search_me = ::File.join(::File.dirname(fname),prepend)
13
-
14
- Dir.entries(search_me).each do |rb|
15
- if ::File.extname(rb) == ".rb" then
16
- require "#{prepend}/#{::File.basename(rb,".rb")}"
17
- end
18
- end
19
- end
20
- module_function :require_all_libs_relative_to
21
-
22
6
  class FileAccessError < StandardError ; end
23
7
  class TempFileError < StandardError ; end
24
8
  class PasswordError < StandardError ; end
25
9
  end
26
10
 
27
- HTAuth.require_all_libs_relative_to(__FILE__)
11
+ require 'htauth/version'
12
+ require 'htauth/gemspec'
13
+ require 'htauth/passwd'
14
+ require 'htauth/digest'
data/spec/passwd_spec.rb CHANGED
@@ -159,7 +159,6 @@ describe HTAuth::Passwd do
159
159
  @htauth.run(["-n", "-p", "-b", "bradley", "a bad password"])
160
160
  rescue SystemExit => se
161
161
  se.status.should == 0
162
- STDOUT.puts @stdout.string
163
162
  @stdout.string.strip.should == "bradley:a bad password"
164
163
  end
165
164
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: htauth
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
6
+ version: 1.0.1
7
7
  date: 2008-02-06 00:00:00 -07:00
8
8
  summary: HTAuth provides htdigest and htpasswd support.
9
9
  require_paths:
@@ -111,6 +111,15 @@ extensions: []
111
111
  requirements: []
112
112
 
113
113
  dependencies:
114
+ - !ruby/object:Gem::Dependency
115
+ name: rake
116
+ version_requirement:
117
+ version_requirements: !ruby/object:Gem::Version::Requirement
118
+ requirements:
119
+ - - ">"
120
+ - !ruby/object:Gem::Version
121
+ version: 0.0.0
122
+ version:
114
123
  - !ruby/object:Gem::Dependency
115
124
  name: highline
116
125
  version_requirement: