octopress-filters 1.2.3 → 1.2.4

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: 2002356620eb54fcc5b5ca13a69e33d42c72c0ee
4
- data.tar.gz: b6b85128aee57ca486cace37c545952e562a8a83
3
+ metadata.gz: b2357cb37590cb64fbeaaecd05376b426165491d
4
+ data.tar.gz: 7c1ae0b31902592000b63670e4e6d1bac628e391
5
5
  SHA512:
6
- metadata.gz: 7de67e476e900952f27cdd7c7d640f85ffcd11e2e1b73c14b811145fc781b7f7cd1e5195ea30e28d491bba3820e21b09aa4a67a2c8ec48d562f09e1576d8a0e8
7
- data.tar.gz: 2f2c54300ebdf183a7cab6a10963000b2bfc130815697c7994548bd9a450c9ac64403bacb3c7d4679081da12641930c4c54ff0d6d9ea2443b272551c97c24662
6
+ metadata.gz: 6bf6d18153c2c0033253f8615065cf292cdc463efcae779a3a32c9f87570d3cdef703996b59bb77a9d46c0eacb6aaf7e4680b305ae9331b631c7eed89db3b8f1
7
+ data.tar.gz: f7c237f990bb7c18c6e33443d5c848c2c97aed282476cfbb874864cfeb293cb71d8a9b869c182f0600751c9c1a9b317149f466b020cc9df30d71320199dc557e
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.4 - 2015-01-23
4
+
5
+ - Simple domains won't end in trailing slashes (eg: http://example.com doesn't need a trailing slash).
6
+
3
7
  ### 1.2.3 - 2015-01-23
4
8
 
5
9
  - Full urls will end with trailing slashes when appropriate
@@ -105,11 +105,8 @@ module Octopress
105
105
  File.join(url, input)
106
106
  end
107
107
 
108
- # Ensure a trailing slash if a url:
109
- # - is a site url, eg: http://site.com
110
- # - or ends with a directory
111
- if !(url =~ /\.\w+$/) || url =~ /:\/\/[^\/]+$/
112
- # Add trailing slash if necessary
108
+ # Ensure a trailing slash if a url ends with a directory
109
+ if !(url =~ /\.\w+$/)
113
110
  url = File.join(url, '/')
114
111
  end
115
112
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Filters
3
- VERSION = "1.2.3"
3
+ VERSION = "1.2.4"
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.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis