This commit is contained in:
Netscape Navigator 2020-04-18 13:07:32 -05:00
parent 85b3885a56
commit db1f05a8af
7 changed files with 5 additions and 15 deletions

View File

@ -5,16 +5,16 @@ require "set"
module Pigeon
SEED_CONFIG_KEY = "SEED"
VERSION = "0.0.3"
VERSION = "0.0.4"
TPL_DIR = File.join(".", "lib", "views")
PIGEON_DB_PATH = File.join("db.pigeon")
DEFAULT_BUNDLE_PATH = "./pigeon.bundle"
# MESSAGE TEMPLATE CONSTANTS:
HEADER_TPL = File.read(File.join(TPL_DIR, "1_header.erb")).sub("\n", "")
BODY_TPL = File.read(File.join(TPL_DIR, "2_body.erb")).sub("\n", "")
FOOTER_TPL = File.read(File.join(TPL_DIR, "3_footer.erb")).sub("\n", "")
HEADER_TPL = "author <%= author %>\nkind <%= kind %>\nprev <%= prev %>\ndepth <%= depth %>\nlipmaa <%= lipmaa %>\n\n"
BODY_TPL = "<% body.to_a.each do |k, v| %><%= k %>:<%= v %><%= \"\\n\" %><% end %>\n"
FOOTER_TPL = "signature <%= signature %>"
COMPLETE_TPL = [HEADER_TPL, BODY_TPL, FOOTER_TPL].join("")
CURRENT_DRAFT = "HEAD.draft"
NOTHING = "NONE"

View File

@ -1,7 +0,0 @@
author <%= author %>
kind <%= kind %>
prev <%= prev %>
depth <%= depth %>
lipmaa <%= lipmaa %>

View File

@ -1,2 +0,0 @@
<% body.to_a.each do |k, v| %><%= k %>:<%= v %><%= "\n" %><% end %>

View File

@ -1 +0,0 @@
signature <%= signature %>

Binary file not shown.

BIN
pigeon-0.0.4.gem Normal file

Binary file not shown.

View File

@ -8,7 +8,7 @@ Gem::Specification.new do |s|
s.description = "A Ruby client for Pigeon, an offline peer-to-peer protocol"
s.authors = ["Navigator"]
s.email = "netscape_navigator@tilde.town"
s.files = (Dir["lib/**/*.erb"] + Dir["lib/**/*.rb"])
s.files = Dir["lib/**/*.rb"]
s.homepage = "https://tildegit.org/PigeonProtocolConsortium/pigeon_ruby"
s.license = "GPL-3.0-or-later"
s.executables = "pigeon-cli"