middleman-metaman 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e08c257ca67ade428e6d27121867bf6c05e2be373a8323372d5d8979b51248b
4
- data.tar.gz: c0ecba8075673e6f81a0f5b31e14389fa3355b2de3c111f2f571500a69c97d3c
3
+ metadata.gz: f1cdc0b544fd0b162e644bbfa7bba14088078d159c27e42df4ea43eba79fe196
4
+ data.tar.gz: c8f9d9b584da0c5be99da28e92f02675348c3514a9c7eab50e0d6a19580a3f35
5
5
  SHA512:
6
- metadata.gz: 2a02a8f451e0fae5cd7b48db6b76f241d84cb9fd70ff4c89773224bfe67f4743e9bf2f674532b67dd75e9682477786b8b362dc4108631511328d661ca8074cff
7
- data.tar.gz: 074c59989a98cf4784fe901c773f422e0bd3f075d3c8439311d5dda6522bc89d529c8e45db314522832addefe39a692ba63569a7c4a8946638120f1707665e37
6
+ metadata.gz: 56fb6b85fab37f1e9e54e4f329ca936de1eb31dcdeb211b5a6e2bc0a0c7dea6f0034bc76ebda2573f95e8a56b58f4c333c4634a24a07d676394d0cddd7bfbf14
7
+ data.tar.gz: 8455ac3053eb1c3135ea4f58e3befedd3815590ba6df8928dd9707ffe90bfa3e41734459ad479c9497a7c433b00b2220cd2df7f6b8eda2f3e08c9049d7822046
@@ -139,7 +139,9 @@ module Middleman
139
139
  return nil unless image
140
140
  return image unless URI(image).scheme.nil?
141
141
 
142
- "#{host}#{image_path(image)}"
142
+ # sometimes image_path has no leading slash
143
+ image_path = "/#{image_path(image)}" unless image_path(image)[0] == '/'
144
+ "#{host}#{image_path}"
143
145
  end
144
146
 
145
147
  def default_value(scope, key, default = nil)
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Metaman
3
- VERSION = '0.1.11'.freeze
3
+ VERSION = '0.1.12'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-metaman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarrett Lusso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-29 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.2.15
66
+ rubygems_version: 3.1.6
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Manage your middleman meta tags.