jekyll-open-sdg-plugins 1.0.0.rc8 → 1.0.0.rc9

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: f160bed8906b6fd6b86f6612e7ac7044218abdc9cd884adbd7f9ca5c892d42fe
4
- data.tar.gz: 759cd30ee149eb860c84662f06523bc34071bfe885cb54739c85df5d0a6aa276
3
+ metadata.gz: c85aa307209e0077f967b1d97737ebb38d3ff70c6c1c49db6bd16d39a4384244
4
+ data.tar.gz: 632f7ab08f3985b1b13436a2112f36dba43b7394f56317e3d43fe7a0f1146bb0
5
5
  SHA512:
6
- metadata.gz: 06659b9ca2933d321c88f1d2b548ebf07912ac0821827da81b1e69be2ac6352775b737ce8d1af433663346c18fb276f911900bec94d0dbf3ce90e755951d89ad
7
- data.tar.gz: 2b56f4591448810825169d17eb0c41a20d04fc847aa319048114ae2fe52b048efa2ee874bbf9c9aeeb90252fd4e309f2ed95ec34fda67c43746ef63f87fc70d4
6
+ metadata.gz: 488369f4cb3ed1081183b50bc440558d30774c51d7e2f75edf2b06e43d8e71394493a2b7b1f052b7e927f4656a85fd275455e6492db3b5d78c90cbd0167858d4
7
+ data.tar.gz: 81dabd4d0fafefeb4f5c0ff415533764ce0bbbeeb7368270ea30dd72249d6eff62251b74e71e673247c490ed38b84e85290ed4782bd72dad111829348325158c
@@ -25,9 +25,9 @@ module JekyllOpenSdgPlugins
25
25
  source = JSON.load(open(endpoint))
26
26
  build[key] = source
27
27
  rescue StandardError => e
28
- puts e.message
29
28
  # For backwards compatibility, we allow 'translations' to be missing.
30
29
  if key != 'translations'
30
+ puts e.message
31
31
  abort 'Unable to fetch remote data from: ' + endpoint
32
32
  end
33
33
  end
@@ -89,7 +89,10 @@ module JekyllOpenSdgPlugins
89
89
  language => url
90
90
  }
91
91
  if language != default_language
92
- urls[default_language] = baseurl + url_without_language
92
+ default_language_url = baseurl + url_without_language
93
+ # Fix potential double-slash.
94
+ default_language_url = default_language_url.gsub('//', '/')
95
+ urls[default_language] = default_language_url
93
96
  end
94
97
  languages.each do |other_language|
95
98
  if other_language == language
@@ -1,3 +1,3 @@
1
1
  module JekyllOpenSdgPlugins
2
- VERSION = "1.0.0.rc8".freeze
2
+ VERSION = "1.0.0.rc9".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-open-sdg-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc8
4
+ version: 1.0.0.rc9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brock Fanning