jekyll-webmention_io 2.6.0 → 2.6.1
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/lib/jekyll/generators/compile_js.rb +7 -3
- data/lib/jekyll/webmention_io/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5691b7d586a2b85d54495e5432f32a1fb97b64b0
|
4
|
+
data.tar.gz: 5a5ceeb6fa06bd6c8add170e313d0e44815c824a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c501ed93f5e988238b1e6d432e25b0c1881ee98d3d329b201de68f2582c6fe99d8bc3f0786071d043634dcdfed66a67dbf1375b7fc01ec4486a35af2ceeb870f
|
7
|
+
data.tar.gz: 579bb3bf566c68d15b93a87c0541bdedb04b369ca0baf226ee237f2c545ef29dfd913184e657c3591831f92b34cfbfebf23843b4c732fa0898aa785ace8c7f90
|
@@ -11,7 +11,12 @@ module Jekyll
|
|
11
11
|
module WebmentionIO
|
12
12
|
class JavaScriptFile < StaticFile
|
13
13
|
def destination_rel_dir
|
14
|
-
|
14
|
+
config = {
|
15
|
+
'destination' => 'js'
|
16
|
+
}
|
17
|
+
js_config = Jekyll::WebmentionIO::config['js'] || {}
|
18
|
+
config = config.merge(js_config)
|
19
|
+
config['destination']
|
15
20
|
end
|
16
21
|
end
|
17
22
|
|
@@ -28,7 +33,7 @@ module Jekyll
|
|
28
33
|
end
|
29
34
|
|
30
35
|
config = {
|
31
|
-
'destination' =>
|
36
|
+
'destination' => 'js',
|
32
37
|
'uglify' => true
|
33
38
|
}
|
34
39
|
site_config = site.config['webmentions']['js'] || {}
|
@@ -66,7 +71,6 @@ module Jekyll
|
|
66
71
|
# Generate the file
|
67
72
|
file_name = 'JekyllWebmentionIO.js'
|
68
73
|
source_file_destination = ( config['source'] == false ? Dir.mktmpdir : "#{site.config['source']}/#{config['destination']}" )
|
69
|
-
puts source_file_destination
|
70
74
|
Dir.mkdir( source_file_destination ) unless File.exists?( source_file_destination )
|
71
75
|
File.open("#{source_file_destination}/#{file_name}", 'w') { |f| f.write( javascript ) }
|
72
76
|
unless config['deploy'] == false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-webmention_io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Gustafson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|