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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8384ba7ad51bbe18a21f830e90aab4f0c1e4bb33
4
- data.tar.gz: 95f1cb67e98cac5fdea2e17cd7f33928692d2589
3
+ metadata.gz: 5691b7d586a2b85d54495e5432f32a1fb97b64b0
4
+ data.tar.gz: 5a5ceeb6fa06bd6c8add170e313d0e44815c824a
5
5
  SHA512:
6
- metadata.gz: 5102808f75f46d32984404e669f4074024b0b69606d1902522dab96c58f31dafac6a1342d584e5fc5303062017a71923c78a95ffcbbf49ac7dabc5ba6e2a2988
7
- data.tar.gz: 78c3a026e344a1ec7f3959309b701cce599ba842ad01f4b9ff92c0cec7ca02bbb2be572e50b14c4e9187c26684caa6a0b5b2a164d1f8ee9aecc3e5cf5405c411
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
- Jekyll::WebmentionIO::config['js']['destination'] || '/js/'
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' => "js",
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
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module WebmentionIO
3
- VERSION = "2.6.0"
3
+ VERSION = "2.6.1"
4
4
  end
5
5
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2017-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll