local-openid 0.4.1 → 0.4.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.
- checksums.yaml +5 -5
- data/.document +0 -1
- data/.gitignore +2 -1
- data/.olddoc.yml +10 -5
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +1 -6
- data/LICENSE +2 -2
- data/README +3 -3
- data/local-openid.gemspec +9 -13
- data/pkg.mk +1 -1
- metadata +5 -9
- data/Rakefile +0 -70
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5936a7e4684c43221f5baa24eed1c5608d06fbccc51af08bb2b1123b84082fd1
|
|
4
|
+
data.tar.gz: 5fe23347ca6ebcd72957a49ad46ba395755a9a375ca6d8b947fd1253fcc4e25c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e77c492aa28922c3a1e36f784fb03c33e1e62b21b72656c4bccdd9035d6c9f793d2d8e1b7392fd1ab110910ff9fdce52446a589929bf74911cea6c27ada84a4a
|
|
7
|
+
data.tar.gz: abd2a64706a79fdee7f1485c3b7df1e5132891f77e5de39df104a770746ee4c9fae4d0e115260af3dfbd2ae430e27b33f22ac30684992c2c79d58c1884275b6e
|
data/.gitignore
CHANGED
data/.olddoc.yml
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
cgit_url: https://
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
cgit_url: https://yhbt.net/local-openid.git
|
|
3
|
+
source_code:
|
|
4
|
+
- git clone https://yhbt.net/local-openid.git
|
|
5
|
+
- torsocks git clone http://ou63pmih66umazou.onion/local-openid.git
|
|
6
|
+
rdoc_url: https://yhbt.net/local-openid/
|
|
5
7
|
public_email: local-openid@public-inbox.org
|
|
6
|
-
|
|
8
|
+
ml_url:
|
|
9
|
+
- https://public-inbox.org/local-openid/
|
|
10
|
+
- http://ou63pmih66umazou.onion/local-openid/
|
|
7
11
|
nntp_url:
|
|
8
|
-
|
|
12
|
+
- nntp://news.public-inbox.org/inbox.comp.lang.ruby.local-openid
|
|
13
|
+
- nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.local-openid
|
data/GIT-VERSION-GEN
CHANGED
data/GNUmakefile
CHANGED
data/LICENSE
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
local-openid is copyrighted free software by all contributors, see logs
|
|
2
2
|
in revision control for names and email addresses of all of them. You
|
|
3
3
|
can redistribute it and/or modify it under either the terms of the GNU
|
|
4
|
-
Affero General Public License, version 3
|
|
5
|
-
for details.
|
|
4
|
+
Affero General Public License, version 3 or later.
|
|
5
|
+
See the link:COPYING file for details.
|
data/README
CHANGED
|
@@ -75,14 +75,14 @@ a line if you fix any bugs or notice any security holes in it.
|
|
|
75
75
|
|
|
76
76
|
You can get the latest source via git from the following locations:
|
|
77
77
|
|
|
78
|
-
git://
|
|
79
|
-
https://
|
|
78
|
+
git://yhbt.net/local-openid.git
|
|
79
|
+
https://yhbt.net/local-openid.git
|
|
80
80
|
git://repo.or.cz/local-openid.git (mirror)
|
|
81
81
|
http://repo.or.cz/r/local-openid.git (mirror)
|
|
82
82
|
|
|
83
83
|
You may browse the code from the web and download the latest tarballs here:
|
|
84
84
|
|
|
85
|
-
* https://
|
|
85
|
+
* https://yhbt.net/local-openid.git
|
|
86
86
|
* http://repo.or.cz/w/local-openid.git (gitweb mirror)
|
|
87
87
|
|
|
88
88
|
== Disclaimer
|
data/local-openid.gemspec
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
require 'olddoc'
|
|
4
|
-
extend Olddoc::Gemspec
|
|
5
|
-
name, summary, title = readme_metadata
|
|
1
|
+
manifest = File.exist?('.manifest') ?
|
|
2
|
+
IO.readlines('.manifest').map!(&:chomp!) : `git ls-files`.split("\n")
|
|
6
3
|
|
|
7
4
|
Gem::Specification.new do |s|
|
|
8
5
|
s.name = %q{local-openid}
|
|
9
|
-
s.version = ENV[
|
|
10
|
-
|
|
6
|
+
s.version = (ENV['VERSION'] || '0.4.2').dup
|
|
11
7
|
s.authors = ["Eric Wong"]
|
|
12
|
-
s.description =
|
|
8
|
+
s.description = File.read('README').split("\n\n")[1]
|
|
13
9
|
s.email = %q{e@80x24.org}
|
|
14
10
|
s.executables = %w(local-openid)
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f|
|
|
12
|
+
File.exist?(f)
|
|
13
|
+
end
|
|
17
14
|
s.files = manifest
|
|
18
|
-
s.homepage =
|
|
19
|
-
s.summary =
|
|
20
|
-
s.rubyforge_project = %q{qrp}
|
|
15
|
+
s.homepage = 'https://yhbt.net/local-openid'
|
|
16
|
+
s.summary = 'Single User, Ephemeral OpenID Provider'
|
|
21
17
|
s.add_dependency(%q<rack>, ["~> 1.3"])
|
|
22
18
|
s.add_dependency(%q<sinatra>, ["~> 1.0"])
|
|
23
19
|
s.add_dependency(%q<ruby-openid>, ["~> 2.1.7"])
|
data/pkg.mk
CHANGED
|
@@ -60,7 +60,7 @@ doc:: .document .olddoc.yml $(pkg_extra) $(PLACEHOLDERS)
|
|
|
60
60
|
-find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
|
|
61
61
|
-find ext -type f -name '*.rbc' -exec rm -f '{}' ';'
|
|
62
62
|
$(RM) -r doc
|
|
63
|
-
$(RDOC) -f
|
|
63
|
+
$(RDOC) -f dark216
|
|
64
64
|
$(OLDDOC) merge
|
|
65
65
|
install -m644 COPYING doc/COPYING
|
|
66
66
|
install -m644 NEWS doc/NEWS
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: local-openid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Wong
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-02-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -63,7 +63,6 @@ extensions: []
|
|
|
63
63
|
extra_rdoc_files:
|
|
64
64
|
- NEWS
|
|
65
65
|
- LICENSE
|
|
66
|
-
- ChangeLog
|
|
67
66
|
- README
|
|
68
67
|
files:
|
|
69
68
|
- ".document"
|
|
@@ -71,7 +70,6 @@ files:
|
|
|
71
70
|
- ".manifest"
|
|
72
71
|
- ".olddoc.yml"
|
|
73
72
|
- COPYING
|
|
74
|
-
- ChangeLog
|
|
75
73
|
- GIT-VERSION-FILE
|
|
76
74
|
- GIT-VERSION-GEN
|
|
77
75
|
- GNUmakefile
|
|
@@ -79,13 +77,12 @@ files:
|
|
|
79
77
|
- LICENSE
|
|
80
78
|
- NEWS
|
|
81
79
|
- README
|
|
82
|
-
- Rakefile
|
|
83
80
|
- bin/local-openid
|
|
84
81
|
- lib/local_openid.rb
|
|
85
82
|
- local-openid.gemspec
|
|
86
83
|
- pkg.mk
|
|
87
84
|
- setup.rb
|
|
88
|
-
homepage: https://
|
|
85
|
+
homepage: https://yhbt.net/local-openid
|
|
89
86
|
licenses:
|
|
90
87
|
- AGPL-3.0+
|
|
91
88
|
metadata: {}
|
|
@@ -104,9 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
101
|
- !ruby/object:Gem::Version
|
|
105
102
|
version: '0'
|
|
106
103
|
requirements: []
|
|
107
|
-
|
|
108
|
-
rubygems_version: 2.6.2
|
|
104
|
+
rubygems_version: 3.0.2
|
|
109
105
|
signing_key:
|
|
110
106
|
specification_version: 4
|
|
111
|
-
summary:
|
|
107
|
+
summary: Single User, Ephemeral OpenID Provider
|
|
112
108
|
test_files: []
|
data/Rakefile
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# -*- encoding: binary -*-
|
|
2
|
-
require 'olddoc'
|
|
3
|
-
cgit_url = Olddoc.config['cgit_url']
|
|
4
|
-
git_url = Olddoc.config['git_url']
|
|
5
|
-
|
|
6
|
-
desc "post news article to rubyforge"
|
|
7
|
-
task :publish_news do
|
|
8
|
-
require 'rubyforge'
|
|
9
|
-
spec = Gem::Specification.load('local-openid.gemspec')
|
|
10
|
-
tmp = Tempfile.new('rf-news')
|
|
11
|
-
_, subject, body = `git cat-file tag v#{spec.version}`.split(/\n\n/, 3)
|
|
12
|
-
tmp.puts subject
|
|
13
|
-
tmp.puts
|
|
14
|
-
tmp.puts spec.description.strip
|
|
15
|
-
tmp.puts ""
|
|
16
|
-
tmp.puts "* #{spec.homepage}"
|
|
17
|
-
tmp.puts "* #{spec.email}"
|
|
18
|
-
tmp.puts "* #{git_url}"
|
|
19
|
-
tmp.print "\nChanges:\n\n"
|
|
20
|
-
tmp.puts body
|
|
21
|
-
tmp.flush
|
|
22
|
-
system(ENV["VISUAL"], tmp.path) or abort "#{ENV["VISUAL"]} failed: #$?"
|
|
23
|
-
msg = File.readlines(tmp.path)
|
|
24
|
-
subject = msg.shift
|
|
25
|
-
blank = msg.shift
|
|
26
|
-
blank == "\n" or abort "no newline after subject!"
|
|
27
|
-
subject.strip!
|
|
28
|
-
body = msg.join("").strip!
|
|
29
|
-
|
|
30
|
-
rf = RubyForge.new.configure
|
|
31
|
-
rf.login
|
|
32
|
-
rf.post_news('qrp', subject, body)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
desc "post to FM"
|
|
36
|
-
task :fm_update do
|
|
37
|
-
require 'tempfile'
|
|
38
|
-
require 'net/http'
|
|
39
|
-
require 'net/netrc'
|
|
40
|
-
require 'json'
|
|
41
|
-
version = ENV['VERSION'] or abort "VERSION= needed"
|
|
42
|
-
uri = URI.parse('https://freecode.com/projects/local-openid/releases.json')
|
|
43
|
-
rc = Net::Netrc.locate('local-openid-fm') or abort "~/.netrc not found"
|
|
44
|
-
api_token = rc.password
|
|
45
|
-
_, subject, body = `git cat-file tag v#{version}`.split(/\n\n/, 3)
|
|
46
|
-
tmp = Tempfile.new('fm-changelog')
|
|
47
|
-
tmp.puts subject
|
|
48
|
-
tmp.puts
|
|
49
|
-
tmp.puts body
|
|
50
|
-
tmp.flush
|
|
51
|
-
system(ENV["VISUAL"], tmp.path) or abort "#{ENV["VISUAL"]} failed: #$?"
|
|
52
|
-
changelog = File.read(tmp.path).strip
|
|
53
|
-
|
|
54
|
-
req = {
|
|
55
|
-
"auth_code" => api_token,
|
|
56
|
-
"release" => {
|
|
57
|
-
"tag_list" => "Stable",
|
|
58
|
-
"version" => version,
|
|
59
|
-
"changelog" => changelog,
|
|
60
|
-
},
|
|
61
|
-
}.to_json
|
|
62
|
-
|
|
63
|
-
if ! changelog.strip.empty? && version =~ %r{\A[\d\.]+\d+\z}
|
|
64
|
-
Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
|
|
65
|
-
p http.post(uri.path, req, {'Content-Type'=>'application/json'})
|
|
66
|
-
end
|
|
67
|
-
else
|
|
68
|
-
warn "not updating freshmeat for v#{version}"
|
|
69
|
-
end
|
|
70
|
-
end
|