archival 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0b66a3140671bb0e77bceb609bf3474cd69aa960f7c3de3a9d9931b5c14bb6f
4
- data.tar.gz: 8451171849fc29a01f773861b5436dedcf411b91578ace7847a08d02cb53389b
3
+ metadata.gz: c44af9438c108896c1e5c3f6577708a150525305045a5e0bd183700b49f20234
4
+ data.tar.gz: 4033a7f2b80d88eab1d4071552398716f1592b6c07ec34acc00d36613d30f49b
5
5
  SHA512:
6
- metadata.gz: 5712c5e1f67f602b667bad310b265991942ad9d4ac3a6fa6d8f1e0ca74808a7aeb4625ccc11a69ca9bec87bfbdf9066430c30e04e9c64c8817ce8f159d4dd003
7
- data.tar.gz: 612032276d7031ec758f6023e4c11f438e2e74d7882c4afe359f0e95024ca2be04080662a7dfd04b24b2eb62620343ee22beee87b06ffe03c206a9c06848dfef
6
+ metadata.gz: ddad0158c303b58e247f6e974dc22ef0967936c113afa7f090a9302cd4cd890512f58b2136b0aabecec6ddfc8ae29c242a0f8ee7a2842734241c783942820792
7
+ data.tar.gz: ef1663df39febc76cf51af9eedfcf106db95712bf8f96d51e76e94e8daa4bd0a5d9133e0e2971e696a74add29bb4f3214da3a13d400b0711e64861678c753571
data/README.md CHANGED
@@ -53,6 +53,18 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
53
53
 
54
54
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
55
55
 
56
+ To point a local archival site at a local version, run inside the website dir:
57
+
58
+ ```
59
+ bundle config local.archival /path/to/local/git/repository
60
+ ```
61
+
62
+ Then comment out the archival dependency in Gemfile and add:
63
+
64
+ ```
65
+ gem 'archival', github: 'jesseditson/archival', branch: 'main'
66
+ ```
67
+
56
68
  ## Contributing
57
69
 
58
70
  Bug reports and pull requests are welcome on GitHub at https://github.com/jesseditson/archival.
data/archival.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'archival'
5
- s.version = '0.0.10'
5
+ s.version = '0.0.11'
6
6
  s.summary = 'An incredibly simple CMS for durable websites'
7
7
  s.description = 'https://jesseditson.com/the-simplest-cms-part-1'
8
8
  s.authors = ['Jesse Ditson']
@@ -127,15 +127,17 @@ module Archival
127
127
  # warn "Payload size: #{payload_size} bytes"
128
128
 
129
129
  mask = 4.times.map { @socket.getbyte }
130
- # warn "Got mask: #{mask.inspect}"
130
+ # warn "Got mask: #{mask.inspect}"
131
131
 
132
132
  data = payload_size.times.map { @socket.getbyte }
133
- # warn "Got masked data: #{data.inspect}"
133
+ # warn "Got masked data: #{data.inspect}"
134
+
135
+ return unless data[0]
134
136
 
135
137
  unmasked_data = data.each_with_index.map do |byte, i|
136
138
  byte ^ mask[i % 4]
137
139
  end
138
- # warn "Unmasked the data: #{unmasked_data.inspect}"
140
+ # warn "Unmasked the data: #{unmasked_data.inspect}"
139
141
 
140
142
  unmasked_data.pack('C*').force_encoding('utf-8')
141
143
  end
@@ -4,7 +4,7 @@ require 'redcarpet'
4
4
 
5
5
  module Archival
6
6
  class MarkdownRenderer < Redcarpet::Render::HTML
7
- def autolink(link, _link_type, _opts)
7
+ def autolink(link, _opts)
8
8
  # TODO: handle link_type?
9
9
  "<a href=\"#{rewrite_link(link)}\">#{rewrite_link(link)}</a>"
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Archival
4
- VERSION = '0.0.10'
4
+ VERSION = '0.0.11'
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archival",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "An incredibly simple CMS for durable websites",
5
5
  "bin": "build.rb",
6
6
  "directories": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archival
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Ditson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid