octopress-minify-html 1.2.2 → 1.2.3

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: 15911b5abb878de4c25afe9738b80634eadf8184
4
- data.tar.gz: 0a03fb37a8f05c04445478570fd9bb9050649176
3
+ metadata.gz: 353446441bd8215c7f58475be805aae2085f401c
4
+ data.tar.gz: d214183e8f6861d217d336db6577697a92c709cf
5
5
  SHA512:
6
- metadata.gz: 471871685631817c4e06cc4f588ae86db7d89968482fb5e92dfc645b33e997c83304e001a03dd2c855241a139b3770760d80c7b156b0cdb0ac510b8d6e2de12d
7
- data.tar.gz: 8ad301154ba97a7f546f917ad8b45c0d3a28d3cc35fa0fd2e8283debbe0b77db0e02435d4680eb3111f947ada72fb874f5aa1bf054870efc60e623b89dbc1aec
6
+ metadata.gz: cb56c9d4eb3c5cb551b96db122b6d1e370953fc594e606d08dc83ce005fb268d9333bb87e1e47fc5806ac49be2d62dc7830e5c900f62d9a74a2629c32ec3bd18
7
+ data.tar.gz: a90b095fe446250e4ef303db9ed5f26fdb23bf7581755a3a449658fdc4481184fb192ceb896656802859f88ea69c3cd4eec868e3763eb05257aa16c2e93216bd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.3 (2015-03-09)
4
+
5
+ - Fix: Improved method of checking if a page output will be an HTML page.
6
+
3
7
  ### 1.2.2 (2015-02-25)
4
8
 
5
9
  - Fix: No longer compresses non-HTML pages.
@@ -10,8 +10,8 @@ module Octopress
10
10
  end
11
11
 
12
12
  def minify?(item)
13
- if item.url.end_with?('html')
14
- config = item.site.config
13
+ config = item.site.config
14
+ if item.destination(config['destination']).end_with?('html')
15
15
  minify = config['minify_html']
16
16
  production = config['env'].nil? || config['env'] =~ /production/i
17
17
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module MinifyHTML
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-minify-html
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-25 00:00:00.000000000 Z
11
+ date: 2015-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler