archival 0.0.10 → 0.0.11
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 +4 -4
- data/README.md +12 -0
- data/archival.gemspec +1 -1
- data/lib/archival/helper_server.rb +5 -3
- data/lib/archival/markdown_renderer.rb +1 -1
- data/lib/archival/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c44af9438c108896c1e5c3f6577708a150525305045a5e0bd183700b49f20234
|
4
|
+
data.tar.gz: 4033a7f2b80d88eab1d4071552398716f1592b6c07ec34acc00d36613d30f49b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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
|
-
#
|
130
|
+
# warn "Got mask: #{mask.inspect}"
|
131
131
|
|
132
132
|
data = payload_size.times.map { @socket.getbyte }
|
133
|
-
#
|
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
|
-
#
|
140
|
+
# warn "Unmasked the data: #{unmasked_data.inspect}"
|
139
141
|
|
140
142
|
unmasked_data.pack('C*').force_encoding('utf-8')
|
141
143
|
end
|
data/lib/archival/version.rb
CHANGED
data/package.json
CHANGED
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.
|
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-
|
11
|
+
date: 2022-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|