jekyll-torrent 0.0.5.2 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/jekyll-torrent.rb +4 -4
- data/lib/jekyll-torrent/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74aa222859ffee0aeb06f97ecda2a96eb4e26ce0a24f4bcf6000b9c464862847
|
4
|
+
data.tar.gz: ace1f12b46b0531d792ee313b31845a4c238f51df8deb057a35c7b7a90b8d491
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49d24e97d90972b880d540b4d705707aa4ee3654d2d6fe0b59706a52a81e182da0e34c8949f94bd3b22d4992df81b2c168269d7c96ab0a2220d9a9734f3e9652
|
7
|
+
data.tar.gz: 6017d0e812576398998737bdbaf32dc530de897d45f2320ae16da993991165de4fc826a33fa839a114f91c11a676799c53c662a0347078fa3d0d19fcce36a05c
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Default configuration (change it by superseding in `_config.yml`):
|
|
22
22
|
|
23
23
|
* `announce` is the URL of the tracker. It can also be an array. Use
|
24
24
|
the special value `'random'` if you want to use 3 random trackers from
|
25
|
-
<https://
|
25
|
+
<https://github.com/ngosang/trackerslist>
|
26
26
|
|
27
27
|
* `file` is the torrent filename.
|
28
28
|
|
data/lib/jekyll-torrent.rb
CHANGED
@@ -19,7 +19,7 @@ module Jekyll
|
|
19
19
|
tracker = random_tracker if tracker.include? 'random'
|
20
20
|
trackers = tracker.join(' --tracker ')
|
21
21
|
|
22
|
-
# Delete existing file
|
22
|
+
# Delete existing file
|
23
23
|
File.delete(file) if File.exists?(file)
|
24
24
|
|
25
25
|
puts "Generating torrent file at #{file}"
|
@@ -30,9 +30,9 @@ module Jekyll
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def random_tracker
|
33
|
-
open('https://
|
33
|
+
open('https://ngosang.github.io/trackerslist/trackers_best.txt') do |l|
|
34
34
|
l.read
|
35
|
-
end.split("\n").sample(3)
|
35
|
+
end.split("\n\n").sample(3)
|
36
36
|
end
|
37
37
|
|
38
38
|
# Alias method chain
|
@@ -43,7 +43,7 @@ module Jekyll
|
|
43
43
|
# Merges config with default values
|
44
44
|
def torrent
|
45
45
|
@torrent_config ||= {
|
46
|
-
'announce' => 'udp://
|
46
|
+
'announce' => 'udp://tracker.opentrackr.org:1337/announce',
|
47
47
|
'file' => 'site.torrent',
|
48
48
|
'flags' => '',
|
49
49
|
'bin' => 'transmission-create'
|
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.
|
4
|
+
version: 0.0.6
|
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:
|
12
|
+
date: 2020-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -63,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
requirements: []
|
66
|
-
|
67
|
-
rubygems_version: 2.7.6
|
66
|
+
rubygems_version: 3.0.3
|
68
67
|
signing_key:
|
69
68
|
specification_version: 4
|
70
69
|
summary: Create a .torrent file with your whole site!
|