jekyll-uglify 1.1.0 → 1.1.1

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: 118566f4df18bc53be9296785ff33401b7d33fc87cc25c25910abc1e870d88f8
4
- data.tar.gz: 0ec3d27c4bbd8e874415fb3d11fdf609e5426b9b75c3562ebefa093777a5d708
3
+ metadata.gz: 03fedfaf0d0b03b2c73e747ccefd103bd73332e8e9124ddd8b591600992ec9a1
4
+ data.tar.gz: b5b78ebd24d91eb106200969fb35004ed9891805afec7bf31362eb05f2c9bb7c
5
5
  SHA512:
6
- metadata.gz: d2fc90f1c9b2886bc7ee97f709b8b29f53dc3e569f4eeebf6c28e10d42b8806928b4c2c4f107017379c8518bfd81adbdb2cee552a64c9eecfe2ce724ea91a71b
7
- data.tar.gz: 3d2a2ae73ec32ee4f7fe7fa720bc3a2221bb56924068d6c6fa0b4a4c0b357ad72c44051ff5ae38885b5d2b01787e244d5a18e86c019e48829de6e11ee2da4cab
6
+ metadata.gz: 042ae01e8d30609151c8a9cc3b4880bbd0b81617f79e7957fdbbb3ef5ad1807ad86437e826c53a18865ba6a461742760a88e16a0fa7ebd29eafc8216e9e86997
7
+ data.tar.gz: bfcad15886e8c87635d7c0de1396b4c69959de079bc463e00c3d557caa633aa006e3389af807382922f8f968193eed1892879e6147543ea5ad38120d0c202f3c
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # [jekyll-uglify](https://rubygems.org/gems/jekyll-uglify)
2
2
  [![Gem Version](https://badge.fury.io/rb/jekyll-uglify.svg)](https://badge.fury.io/rb/jekyll-uglify)
3
3
 
4
- A Jekyll plugin for uglifying JS in a given directory using [Uglifier](https://github.com/lautis/uglifier), a Ruby wrapper for UglifyJS by [lautis](https://github.com/lautis).
4
+ A Jekyll command plugin for uglifying given JS files or directories using [Uglifier](https://github.com/lautis/uglifier), a Ruby wrapper for UglifyJS by [lautis](https://github.com/lautis).
5
5
 
6
6
  ## Installation
7
7
  ```
@@ -27,9 +27,9 @@ You can find all available options and default values [here](https://github.com/
27
27
 
28
28
  ## Usage
29
29
  ```
30
- bundle exec jekyll uglify [directory]
30
+ bundle exec jekyll uglify FILEPATH [ADDITIONAL_FILEPATHS]
31
31
  ```
32
- Include this command in your build process to uglify JS at build time.
32
+ You can list any number of files or directories to be uglified. Include this command in your build process to uglify JS at build time.
33
33
 
34
34
  ## License
35
35
 
@@ -46,6 +46,7 @@ module Jekyll
46
46
  if !(dir.end_with? "/") then dir = dir + "/" end
47
47
  Dir.foreach(Dir.pwd + dir) do |file|
48
48
  next if file == '.' or file == '..' or file.include? '.min.js'
49
+ next unless file.include? '.js'
49
50
  filepath = Dir.pwd + dir + file
50
51
  output = Uglifier.compile(File.open(filepath, 'r'), config)
51
52
  File.open(filepath, 'w').write(output)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Uglify
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-uglify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Hofer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-28 00:00:00.000000000 Z
11
+ date: 2020-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uglifier