jekyll-purgecss 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 4d55d64dd4ff74ea6fd490898e731790b09cda56f5c543acf56c545b7284e0c7
4
- data.tar.gz: 932db5db484dec986eec3885c8762cdbf9cf32e720c04f5f2c672bbbe3c98b65
3
+ metadata.gz: 805cfbe79d29e03c8f270338b18eb47b286176cb6cc8b17b60e38caba023c61c
4
+ data.tar.gz: b47946af616f7cb4e8f677954cd9a48465e1b760167d011b03d0d7e61e399763
5
5
  SHA512:
6
- metadata.gz: 891b8e2c655e931619703465253fa96ce471ceb371473f9eb942df4e358b5e9d9583a0a862404b90e983b86a369cf6d4cebdafa0ba346986f3dfc6c98da5ea31
7
- data.tar.gz: 647bdda9fc863c724e757a5aaa61c8cae5619f1019e85ebeb6c0b467939a68bff601d2534b046b51c8090f1039c44e341330e05f6321e36d855a4aad33b91c48
6
+ metadata.gz: 141d451a32056a183fb2a4768c738513d0cbbf2a4976f876b183a4cdbfd442114ed9d8f62a2e08563c5a31aab8b283090ecd81f0aae800ba92cc137a437d0d4e
7
+ data.tar.gz: 63358fcac6e86facb2daa68f9800ab062fbf250c050cdc1ba0abba6ab73daf0c1ae737d3db6c6c3a2bd4c3442c9b89d1bfaa8fd1fbf30f293fae1b8a562f6a87
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-purgecss (0.1.0)
4
+ jekyll-purgecss (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Jekyll Purgecss
2
2
 
3
+ [![Build Status](https://travis-ci.com/mhanberg/jekyll-purgecss.svg?branch=master)](https://travis-ci.com/mhanberg/jekyll-purgecss)
4
+ [![Gem Version](https://badge.fury.io/rb/jekyll-purgecss.svg)](https://badge.fury.io/rb/jekyll-purgecss)
5
+
3
6
  A Jekyll plugin for Purgecss.
4
7
 
5
8
  ## Installation
@@ -17,6 +20,8 @@ And then add this line to your application's `_config.yml`:
17
20
 
18
21
  plugins:
19
22
  - jekyll-purgecss
23
+
24
+ css_dir: "<css_dir>" # defaults to "css"
20
25
  ```
21
26
 
22
27
  ## Usage
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Purgecss
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- Jekyll::Hooks.register(:site, :post_write) do |_site|
3
+ Jekyll::Hooks.register(:site, :post_write) do |site|
4
4
  if Jekyll.env == "production"
5
5
  raise PurgecssNotFoundError unless File.file?("./node_modules/.bin/purgecss")
6
6
 
7
7
  raise PurgecssRuntimeError unless system(
8
- "./node_modules/.bin/purgecss --config ./purgecss.config.js --out _site/css/"
8
+ "./node_modules/.bin/purgecss " \
9
+ "--config ./purgecss.config.js " \
10
+ "--out _site/#{site.config.fetch("css_dir", "css")}/"
9
11
  )
10
12
  end
11
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-purgecss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hanberg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-24 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.7.7
129
+ rubygems_version: 2.7.6
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: A PurgeCSS plugin for Jekyll.