jekyll-torrent 0.0.5.1 → 0.0.5.2
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 +5 -5
- data/jekyll-torrent.gemspec +1 -1
- data/lib/jekyll-torrent.rb +0 -19
- data/lib/jekyll-torrent/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 638507d0c202e67e5171c2db293989ef6195fa4764d84592dc84733fd3f3a58f
|
4
|
+
data.tar.gz: a34353e4d9bb94d1f0c4ceadd21fc669d95a2c450a8eb73ab3d382f122872e06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2faefe32b337762e1e053c9153f1f1793854f430536f55c259dad9b8641af5749d3b0f7f9d4b00aedea99d08cf778c6cb72fd562df334e2bba844581168249a7
|
7
|
+
data.tar.gz: 0b2b853bc143f8af4e0108ac46eca469e8c72127e8fbe5155fd6f583f314c63bf2bb24fce18dfc74ffe802e39564640ac64fc6981a3311d12bed95c852b2f7c5
|
data/jekyll-torrent.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
whole site after it's generated by jekyll. It
|
13
13
|
monkeypatches `Jekyll::Site.process`.}
|
14
14
|
gem.summary = %q{Create a .torrent file with your whole site!}
|
15
|
-
gem.homepage = "https://
|
15
|
+
gem.homepage = "https://0xacab.org/edsl/jekyll-torrent"
|
16
16
|
gem.license = "MIT"
|
17
17
|
|
18
18
|
gem.files = `git ls-files`.split($/)
|
data/lib/jekyll-torrent.rb
CHANGED
@@ -4,22 +4,6 @@ require 'jekyll-torrent/version'
|
|
4
4
|
# Creates a torrent file with your generated site. You should serve the files
|
5
5
|
# with your client.
|
6
6
|
module Jekyll
|
7
|
-
class RenderTorrentUrl < Liquid::Tag
|
8
|
-
def render(context)
|
9
|
-
site = context.registers[:site]
|
10
|
-
File.join site.config.fetch('baseurl'],'/'), site.config.dig('torrent', 'file')
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
class RenderMagnet < Liquid::Tag
|
15
|
-
def render(context)
|
16
|
-
site = context.registers[:site]
|
17
|
-
file = "#{site.dest}/#{site.config.dig('torrent', 'file')}"
|
18
|
-
|
19
|
-
`transmission-show --magnet #{file}`
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
7
|
class Site
|
24
8
|
|
25
9
|
def process_with_torrent
|
@@ -67,6 +51,3 @@ module Jekyll
|
|
67
51
|
end
|
68
52
|
end
|
69
53
|
end
|
70
|
-
|
71
|
-
Liquid::Template.register_tag('magnet', Jekyll::RenderMagnet)
|
72
|
-
Liquid::Template.register_tag('torrent', Jekyll::RenderTorrentUrl)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-torrent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5.
|
4
|
+
version: 0.0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauricio Pasquier Juan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-07
|
12
|
+
date: 2018-09-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -44,7 +44,7 @@ files:
|
|
44
44
|
- jekyll-torrent.gemspec
|
45
45
|
- lib/jekyll-torrent.rb
|
46
46
|
- lib/jekyll-torrent/version.rb
|
47
|
-
homepage: https://
|
47
|
+
homepage: https://0xacab.org/edsl/jekyll-torrent
|
48
48
|
licenses:
|
49
49
|
- MIT
|
50
50
|
metadata: {}
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.
|
67
|
+
rubygems_version: 2.7.6
|
68
68
|
signing_key:
|
69
69
|
specification_version: 4
|
70
70
|
summary: Create a .torrent file with your whole site!
|