htauth 2.1.1 → 2.2.0
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.
- checksums.yaml +4 -4
- data/HISTORY.md +6 -0
- data/README.md +5 -3
- data/Rakefile +3 -2
- data/lib/htauth/algorithm.rb +2 -1
- data/lib/htauth/version.rb +1 -1
- data/tasks/default.rake +5 -5
- data/tasks/this.rb +2 -2
- metadata +25 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a392e544654ec732a878871166ba48129a72dc8e7d2b3b9e1ed37d99117546b9
|
4
|
+
data.tar.gz: fb244f0b94603e5829d36d10e1309d98608a584c1bc8ea3a3d95f60f9950b7fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3350108830c0ce7bb7e406ec2d449c89eaf3ce1047f095cab78cffe8c197fb03eb9a5ffe7ad1b782e6d15c1ed88017ef96cb48e87cd8e91993454e00bc1fffda
|
7
|
+
data.tar.gz: 3b4183cd67ab796c5de2c2fcee847a94ab7d83e925b5283640bd7718274667e141d1618a10f927cf5c6e70cc5a667c284577d83d449a7566770ea60e5a2bc20e
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
## HTAuth
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
[](https://copiousfreetime.semaphoreci.com/projects/htauth)
|
4
|
+
|
5
|
+
* [Homepage](http://github.com/copiousfreetime/htauth)
|
6
|
+
* [Github](http://github.com/copiousfreetime/htauth)
|
5
7
|
|
6
8
|
## DESCRIPTION
|
7
9
|
|
@@ -49,7 +51,7 @@ Additionally, you can access all the functionality of *htdigest-ruby* and
|
|
49
51
|
-v, --version Show version info.
|
50
52
|
--verify Verify password for the specified user
|
51
53
|
|
52
|
-
The SHA
|
54
|
+
The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.
|
53
55
|
|
54
56
|
### htdigest-ruby command line application
|
55
57
|
|
data/Rakefile
CHANGED
@@ -10,8 +10,9 @@ This.ruby_gemspec do |spec|
|
|
10
10
|
spec.add_dependency( 'bcrypt', '~> 3.1' )
|
11
11
|
|
12
12
|
spec.add_development_dependency( 'rake' , '~> 13.0')
|
13
|
-
spec.add_development_dependency( 'minitest' , '~> 5.
|
14
|
-
spec.add_development_dependency( '
|
13
|
+
spec.add_development_dependency( 'minitest' , '~> 5.11' )
|
14
|
+
spec.add_development_dependency( 'minitest-junit' , '~> 1.0' )
|
15
|
+
spec.add_development_dependency( 'rdoc' , '~> 6.4' )
|
15
16
|
spec.add_development_dependency( 'simplecov', '~> 0.17' )
|
16
17
|
|
17
18
|
spec.metadata = {
|
data/lib/htauth/algorithm.rb
CHANGED
@@ -92,7 +92,8 @@ module HTAuth
|
|
92
92
|
end
|
93
93
|
|
94
94
|
# Internal: this is not the Base64 encoding, this is the to64()
|
95
|
-
# method from the
|
95
|
+
# method from the Apache Portable Runtime (APR) library
|
96
|
+
# https://github.com/apache/apr/blob/trunk/crypto/apr_md5.c#L493-L502
|
96
97
|
def to_64(number, rounds)
|
97
98
|
r = StringIO.new
|
98
99
|
rounds.times do |x|
|
data/lib/htauth/version.rb
CHANGED
data/tasks/default.rake
CHANGED
@@ -213,19 +213,19 @@ end
|
|
213
213
|
# Release - the steps we go through to do a final release, this is pulled from
|
214
214
|
# a compbination of mojombo's rakegem, hoe and hoe-git
|
215
215
|
#
|
216
|
-
# 1) make sure we are on the
|
216
|
+
# 1) make sure we are on the main branch
|
217
217
|
# 2) make sure there are no uncommitted items
|
218
218
|
# 3) check the manifest and make sure all looks good
|
219
219
|
# 4) build the gem
|
220
220
|
# 5) do an empty commit to have the commit message of the version
|
221
221
|
# 6) tag that commit as the version
|
222
|
-
# 7) push
|
222
|
+
# 7) push main
|
223
223
|
# 8) push the tag
|
224
224
|
# 7) pus the gem
|
225
225
|
#------------------------------------------------------------------------------
|
226
226
|
task :release_check do
|
227
|
-
unless `git branch` =~ /^\*
|
228
|
-
abort "You must be on the
|
227
|
+
unless `git branch` =~ /^\* main/
|
228
|
+
abort "You must be on the main branch to release!"
|
229
229
|
end
|
230
230
|
unless `git status` =~ /^nothing to commit/m
|
231
231
|
abort "Nope, sorry, you have unfinished business"
|
@@ -236,7 +236,7 @@ desc "Create tag v#{This.version}, build and push #{This.platform_gemspec.full_n
|
|
236
236
|
task :release => [ :release_check, 'manifest:check', :gem ] do
|
237
237
|
sh "git commit --allow-empty -a -m 'Release #{This.version}'"
|
238
238
|
sh "git tag -a -m 'v#{This.version}' v#{This.version}"
|
239
|
-
sh "git push origin
|
239
|
+
sh "git push origin main"
|
240
240
|
sh "git push origin v#{This.version}"
|
241
241
|
sh "gem push pkg/#{This.platform_gemspec.full_name}.gem"
|
242
242
|
end
|
data/tasks/this.rb
CHANGED
@@ -25,7 +25,7 @@ class ThisProject
|
|
25
25
|
#
|
26
26
|
# Yields self
|
27
27
|
def initialize(&block)
|
28
|
-
@exclude_from_manifest = Regexp.union(/\.(git|DS_Store)/,
|
28
|
+
@exclude_from_manifest = Regexp.union(/\.(git|DS_Store|semaphore)/,
|
29
29
|
/^(doc|coverage|pkg|tmp|Gemfile(\.lock)?)/,
|
30
30
|
/^[^\/]+\.gemspec/,
|
31
31
|
/\.(swp|jar|bundle|so|rvmrc|travis.yml|byebug_history|fossa.yml|ruby-version)$/,
|
@@ -146,7 +146,7 @@ class ThisProject
|
|
146
146
|
spec.rdoc_options = [ "--main" , 'README.md',
|
147
147
|
"--markup", "tomdoc" ]
|
148
148
|
|
149
|
-
spec.required_ruby_version = '>= 2.
|
149
|
+
spec.required_ruby_version = '>= 2.3.0'
|
150
150
|
end
|
151
151
|
end
|
152
152
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hinegardner
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|
@@ -44,28 +44,42 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '5.
|
47
|
+
version: '5.11'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '5.
|
54
|
+
version: '5.11'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest-junit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rdoc
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '6.
|
75
|
+
version: '6.4'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '6.
|
82
|
+
version: '6.4'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: simplecov
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,7 +167,7 @@ metadata:
|
|
153
167
|
changelog_uri: https://github.com/copiousfreetime/htauth/blob/master/HISTORY.md
|
154
168
|
homepage_uri: https://github.com/copiousfreetime/htauth
|
155
169
|
source_code_uri: https://github.com/copiousfreetime/htauth
|
156
|
-
post_install_message:
|
170
|
+
post_install_message:
|
157
171
|
rdoc_options:
|
158
172
|
- "--main"
|
159
173
|
- README.md
|
@@ -165,15 +179,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
179
|
requirements:
|
166
180
|
- - ">="
|
167
181
|
- !ruby/object:Gem::Version
|
168
|
-
version: 2.
|
182
|
+
version: 2.3.0
|
169
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
184
|
requirements:
|
171
185
|
- - ">="
|
172
186
|
- !ruby/object:Gem::Version
|
173
187
|
version: '0'
|
174
188
|
requirements: []
|
175
|
-
rubygems_version: 3.
|
176
|
-
signing_key:
|
189
|
+
rubygems_version: 3.4.6
|
190
|
+
signing_key:
|
177
191
|
specification_version: 4
|
178
192
|
summary: HTAuth is a pure ruby replacement for the Apache support programs htdigest
|
179
193
|
and htpasswd. Command line and API access are provided for access to htdigest and
|