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 +4 -4
- data/jekyll-bits.gemspec +1 -1
- data/lib/jekyll-bits/picture.rb +4 -2
- data/test/test_picture.rb +5 -0
- 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: bcfb002ae25655d6e7c4fadb6c411d6c90853a79
|
4
|
+
data.tar.gz: 10fe83344635175ed2bc45c16314acfc738753e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
data/lib/jekyll-bits/picture.rb
CHANGED
@@ -95,8 +95,10 @@ module Jekyll
|
|
95
95
|
uri = yaml
|
96
96
|
end
|
97
97
|
end
|
98
|
-
uri
|
99
|
-
|
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:
|
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-
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|