···11+#
22+# Copyright (c) 2014, 2016 joshua stein <jcs@jcs.org>
33+#
44+# Redistribution and use in source and binary forms, with or without
55+# modification, are permitted provided that the following conditions
66+# are met:
77+#
88+# 1. Redistributions of source code must retain the above copyright
99+# notice, this list of conditions and the following disclaimer.
1010+# 2. Redistributions in binary form must reproduce the above copyright
1111+# notice, this list of conditions and the following disclaimer in the
1212+# documentation and/or other materials provided with the distribution.
1313+# 3. The name of the author may not be used to endorse or promote products
1414+# derived from this software without specific prior written permission.
1515+#
1616+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1717+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1818+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1919+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2020+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2121+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2222+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2323+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2424+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2525+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626+#
2727+128require "sqlite3"
229330class Db
+27
lib/outputter.rb
···11+#
22+# Copyright (c) 2014, 2016 joshua stein <jcs@jcs.org>
33+#
44+# Redistribution and use in source and binary forms, with or without
55+# modification, are permitted provided that the following conditions
66+# are met:
77+#
88+# 1. Redistributions of source code must retain the above copyright
99+# notice, this list of conditions and the following disclaimer.
1010+# 2. Redistributions in binary form must reproduce the above copyright
1111+# notice, this list of conditions and the following disclaimer in the
1212+# documentation and/or other materials provided with the distribution.
1313+# 3. The name of the author may not be used to endorse or promote products
1414+# derived from this software without specific prior written permission.
1515+#
1616+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1717+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1818+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1919+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2020+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2121+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2222+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2323+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2424+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2525+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626+#
2727+128class Outputter
229 def initialize(scanner)
330 @scanner = scanner
+27
lib/rcsfile.rb
···11+#
22+# Copyright (c) 2014, 2016 joshua stein <jcs@jcs.org>
33+#
44+# Redistribution and use in source and binary forms, with or without
55+# modification, are permitted provided that the following conditions
66+# are met:
77+#
88+# 1. Redistributions of source code must retain the above copyright
99+# notice, this list of conditions and the following disclaimer.
1010+# 2. Redistributions in binary form must reproduce the above copyright
1111+# notice, this list of conditions and the following disclaimer in the
1212+# documentation and/or other materials provided with the distribution.
1313+# 3. The name of the author may not be used to endorse or promote products
1414+# derived from this software without specific prior written permission.
1515+#
1616+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1717+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1818+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1919+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2020+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2121+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2222+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2323+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2424+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2525+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626+#
2727+128class RCSFile
229 attr_accessor :revisions, :first_undead_version
330
+27
lib/rcsrevision.rb
···11+#
22+# Copyright (c) 2014, 2016 joshua stein <jcs@jcs.org>
33+#
44+# Redistribution and use in source and binary forms, with or without
55+# modification, are permitted provided that the following conditions
66+# are met:
77+#
88+# 1. Redistributions of source code must retain the above copyright
99+# notice, this list of conditions and the following disclaimer.
1010+# 2. Redistributions in binary form must reproduce the above copyright
1111+# notice, this list of conditions and the following disclaimer in the
1212+# documentation and/or other materials provided with the distribution.
1313+# 3. The name of the author may not be used to endorse or promote products
1414+# derived from this software without specific prior written permission.
1515+#
1616+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1717+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1818+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1919+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2020+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2121+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2222+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2323+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2424+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2525+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626+#
2727+128require "date"
229330class RCSRevision
+27
lib/scanner.rb
···11+#
22+# Copyright (c) 2014, 2016 joshua stein <jcs@jcs.org>
33+#
44+# Redistribution and use in source and binary forms, with or without
55+# modification, are permitted provided that the following conditions
66+# are met:
77+#
88+# 1. Redistributions of source code must retain the above copyright
99+# notice, this list of conditions and the following disclaimer.
1010+# 2. Redistributions in binary form must reproduce the above copyright
1111+# notice, this list of conditions and the following disclaimer in the
1212+# documentation and/or other materials provided with the distribution.
1313+# 3. The name of the author may not be used to endorse or promote products
1414+# derived from this software without specific prior written permission.
1515+#
1616+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1717+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1818+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1919+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2020+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2121+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2222+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2323+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2424+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2525+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626+#
2727+128class Scanner
229 attr_accessor :outputter, :db
330
+26
openbsd-commitid.rb
···11#!/usr/bin/env ruby
22+#
33+# Copyright (c) 2014, 2016 joshua stein <jcs@jcs.org>
44+#
55+# Redistribution and use in source and binary forms, with or without
66+# modification, are permitted provided that the following conditions
77+# are met:
88+#
99+# 1. Redistributions of source code must retain the above copyright
1010+# notice, this list of conditions and the following disclaimer.
1111+# 2. Redistributions in binary form must reproduce the above copyright
1212+# notice, this list of conditions and the following disclaimer in the
1313+# documentation and/or other materials provided with the distribution.
1414+# 3. The name of the author may not be used to endorse or promote products
1515+# derived from this software without specific prior written permission.
1616+#
1717+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1818+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1919+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2020+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2121+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2222+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2323+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2424+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2525+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2626+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727+#
228329DIR = File.dirname(__FILE__) + "/lib/"
430