jekyll-bits 0.11 → 0.11.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: 5dff4c198c29671f9e82d985e6f8776105ac8e51
4
- data.tar.gz: b8298a9b0df0f362fad5804a9e92ecdb5c5431ae
3
+ metadata.gz: bcfb002ae25655d6e7c4fadb6c411d6c90853a79
4
+ data.tar.gz: 10fe83344635175ed2bc45c16314acfc738753e5
5
5
  SHA512:
6
- metadata.gz: 7e21c6aaad88434cbf846e10f2ff513cb68b72f2cce1f7092004b058e72c2f1500a3923a8525014883203501b5b5dc262686bbb849e52b662cf46c227c4a6f94
7
- data.tar.gz: 2f537d508ab083f18d074517ac0d5aa67132675be594f78e7f3ddb16728db4867e891c8735e38aaba95e01d6a3c72b53fdb7d8f6ec43e93e6978ab3d7f1228cd
6
+ metadata.gz: d499957c8f8cf61fd135183c6b52fc1f1dbded175bca62fd913d2ba2914328f66a6af76d763e2e57cb9795bf992169ec22c2319fe3b5e899b0e7900f3c37eeec
7
+ data.tar.gz: 1022ddc6f8b34eafd405eae8c666bd62ba2d6caddd49a2a3d0e12fac08d7be7b4a3ce989b0f50dbf7d977dfafe48e128b1404628a14bd43fe667b28e3c3900e5
data/jekyll-bits.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.rubygems_version = '2.2.2'
9
9
  s.required_ruby_version = '>= 1.9.3'
10
10
  s.name = 'jekyll-bits'
11
- s.version = '0.11'
11
+ s.version = '0.11.1'
12
12
  s.license = 'MIT'
13
13
  s.summary = 'Jekyll Bits'
14
14
  s.description = 'Useful and very simple Jekyll plugins'
@@ -95,8 +95,10 @@ module Jekyll
95
95
  uri = yaml
96
96
  end
97
97
  end
98
- uri = URI.parse(uri)
99
- uri = home + uri.to_s unless %w(http https).include?(uri.scheme)
98
+ unless uri.empty?
99
+ uri = URI.parse(uri)
100
+ uri = home + uri.to_s unless %w(http https).include?(uri.scheme)
101
+ end
100
102
  uri.to_s
101
103
  end
102
104
 
data/test/test_picture.rb CHANGED
@@ -37,6 +37,11 @@ module Jekyll
37
37
  assert_match(/img\.png/, html)
38
38
  end
39
39
 
40
+ def test_generates_html_simple_head_with_no_image
41
+ html = JbBox.new.jb_picture_head({})
42
+ assert(html.empty?, html)
43
+ end
44
+
40
45
  def test_generates_html_complex_head
41
46
  html = JbBox.new.jb_picture_head(
42
47
  'jb_picture' => {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-bits
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.11'
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-24 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll