Skip to content

Commit 92eeb6e

Browse files
committed
First draft for vObject integrity.
1 parent d2e94ae commit 92eeb6e

70 files changed

Lines changed: 13908 additions & 2239 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gemfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22

3-
# gem 'sha3-pure-ruby'
4-
# gem 'digest-whirlpool'
5-
6-
gem 'cryptopp'
7-
#gem 'mhash'
3+
gem "asciidoctor-rfc", git: "https://github.com/riboseinc/asciidoctor-rfc"
4+
# gem "asciidoctor-rfc", path: "~/src/asciidoctor-rfc"
5+
gem "asciidoctor-bibliography", git: "https://github.com/riboseinc/asciidoctor-bibliography"

Gemfile.lock

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,60 @@
1+
GIT
2+
remote: https://github.com/riboseinc/asciidoctor-bibliography
3+
revision: 5171a3738cccbc96ca0f79b10b4a61b5a2d7f1e8
4+
specs:
5+
asciidoctor-bibliography (0.7.3)
6+
asciidoctor (~> 1.5.6)
7+
bibtex-ruby (~> 4.4.4)
8+
citeproc-ruby (~> 1.1.7)
9+
csl-styles (~> 1.0.1)
10+
latex-decode (~> 0.2.2)
11+
nokogiri (~> 1.8.1)
12+
13+
GIT
14+
remote: https://github.com/riboseinc/asciidoctor-rfc
15+
revision: 480205e463d0a7d016ae19ba5d18f6586f2df9c3
16+
specs:
17+
asciidoctor-rfc (0.8.1)
18+
asciidoctor (~> 1.5.6)
19+
htmlentities (~> 4.3.4)
20+
nokogiri
21+
ruby-jing
22+
thread_safe
23+
124
GEM
225
remote: https://rubygems.org/
326
specs:
4-
cryptopp (0.0.5)
27+
asciidoctor (1.5.6.2)
28+
bibtex-ruby (4.4.6)
29+
latex-decode (~> 0.0)
30+
citeproc (1.0.9)
31+
namae (~> 1.0)
32+
citeproc-ruby (1.1.10)
33+
citeproc (~> 1.0, >= 1.0.9)
34+
csl (~> 1.5)
35+
csl (1.5.0)
36+
namae (~> 1.0)
37+
csl-styles (1.0.1.8)
38+
csl (~> 1.0)
39+
htmlentities (4.3.4)
40+
latex-decode (0.2.2)
41+
unicode (~> 0.4)
42+
mini_portile2 (2.3.0)
43+
namae (1.0.1)
44+
nokogiri (1.8.2)
45+
mini_portile2 (~> 2.3.0)
46+
optout (0.0.2)
47+
ruby-jing (0.0.1)
48+
optout (>= 0.0.2)
49+
thread_safe (0.3.6)
50+
unicode (0.4.4.4)
551

652
PLATFORMS
753
ruby
854

955
DEPENDENCIES
10-
cryptopp
56+
asciidoctor-bibliography!
57+
asciidoctor-rfc!
1158

1259
BUNDLED WITH
13-
1.14.3
60+
1.16.1

Makefile

Lines changed: 0 additions & 1 deletion
This file was deleted.

Makefile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
SRC := $(wildcard draft-*.adoc)
2+
TXT := $(patsubst %.adoc,%.txt,$(SRC))
3+
XML := $(patsubst %.adoc,%.xml,$(SRC))
4+
HTML := $(patsubst %.adoc,%.html,$(SRC))
5+
NITS := $(patsubst %.adoc,%.nits,$(SRC))
6+
7+
SHELL := /bin/bash
8+
# Ensure the xml2rfc cache directory exists locally
9+
IGNORE := $(shell mkdir -p $(HOME)/.cache/xml2rfc)
10+
11+
all: $(TXT) $(HTML) $(XML) $(NITS)
12+
13+
clean:
14+
rm -f $(TXT) $(HTML) $(XML)
15+
16+
%.xml: %.adoc
17+
bundle exec asciidoctor -r ./lib/glob-include-processor.rb -r asciidoctor-rfc -b rfc2 -a flush-biblio=true $^ --trace > $@
18+
19+
%.txt: %.xml
20+
xml2rfc --text $^ $@
21+
22+
%.html: %.xml
23+
xml2rfc --html $^ $@
24+
25+
%.nits: %.txt
26+
VERSIONED_NAME=`grep :name: $*.adoc | cut -f 2 -d ' '`; \
27+
cp $^ $${VERSIONED_NAME}.txt && \
28+
idnits --verbose $${VERSIONED_NAME}.txt > $@ && \
29+
cp $@ $${VERSIONED_NAME}.nits && \
30+
cat $${VERSIONED_NAME}.nits
31+
32+
open:
33+
open *.txt
34+

0 commit comments

Comments
 (0)