octopress-filters 1.2.5 → 1.2.6

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
  SHA1:
3
- metadata.gz: 11cba7cb5a1ea7328d01334b1f6e9e17dced1c10
4
- data.tar.gz: 7fbcb1e3b70bb1dd1cff8f510552921163611e44
3
+ metadata.gz: 275742bcf0c2c8509d00c77967e676656d414359
4
+ data.tar.gz: 55acae0b91e3ff40333ebb176a92eb7fa22fefa6
5
5
  SHA512:
6
- metadata.gz: 7e649ed873418aafb09229b1336d5da8b618dee985e279be8ca49ad094ec77e1f062aff617cfe3c98625f66212ff3cccddf89aae54cd78c8fe1fe9080b5b5c78
7
- data.tar.gz: 6c856e68115ed7ed6efe595876838f0a23e8d6c15f5e0f7369ee6a7af0ce28359d618e6a1af1a28755c4607725d9a0fa7cf0005a218d4be41a6a556cfe9793b7
6
+ metadata.gz: 459fcd158dd11dd276c5b1ef871f2dc02ccfa638b112d28e8ad15df1a489c9f27b931d230607af9166ef234bb349462d1b84588fe69d459d295126f505e60273
7
+ data.tar.gz: 60d86ad2b640030e3ee0483054f4e7fa03d799cff19742895c8f9cad8203e7da9778a47356737cd7917468e47cb1900f1d86e0f7cc9eff7ab228fb61a5f62990
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.6 - 2015-01-24
4
+
5
+ - Fix: Baseurl expansion no longer breaks root relative URLs.
6
+
3
7
  ### 1.2.5 - 2015-01-24
4
8
 
5
9
  - New: join_url filter, works like File.join.
@@ -90,7 +90,7 @@ module Octopress
90
90
  # If a baseurl has been manually added to a url,
91
91
  # this ensures it isn't added twice
92
92
  def strip_baseurls(input)
93
- if baseurl
93
+ if !baseurl.empty?
94
94
  input.gsub /(\s+(href|src|poster)\s*=\s*["|'])(\/#{baseurl})/, '\1'
95
95
  else
96
96
  input
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Filters
3
- VERSION = "1.2.5"
3
+ VERSION = "1.2.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-filters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis