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 +22 -2
- data/lib/htauth/algorithm.rb +1 -0
- data/lib/htauth/digest.rb +2 -0
- data/lib/htauth/digest_entry.rb +1 -0
- data/lib/htauth/file.rb +1 -0
- data/lib/htauth/gemspec.rb +2 -1
- data/lib/htauth/passwd.rb +2 -0
- data/lib/htauth/passwd_entry.rb +1 -1
- data/lib/htauth/passwd_file.rb +1 -0
- data/lib/htauth/specification.rb +1 -0
- data/lib/htauth/version.rb +2 -1
- data/lib/htauth.rb +4 -17
- data/spec/passwd_spec.rb +0 -1
- metadata +10 -1
data/CHANGES
CHANGED
@@ -1,4 +1,24 @@
|
|
1
|
-
=
|
2
|
-
|
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
|
+
|
data/lib/htauth/algorithm.rb
CHANGED
data/lib/htauth/digest.rb
CHANGED
data/lib/htauth/digest_entry.rb
CHANGED
data/lib/htauth/file.rb
CHANGED
data/lib/htauth/gemspec.rb
CHANGED
@@ -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
data/lib/htauth/passwd_entry.rb
CHANGED
data/lib/htauth/passwd_file.rb
CHANGED
data/lib/htauth/specification.rb
CHANGED
data/lib/htauth/version.rb
CHANGED
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
|
-
|
11
|
+
require 'htauth/version'
|
12
|
+
require 'htauth/gemspec'
|
13
|
+
require 'htauth/passwd'
|
14
|
+
require 'htauth/digest'
|
data/spec/passwd_spec.rb
CHANGED
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.
|
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:
|