jekyll-uglify 1.1.1 → 1.1.2

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: 03fedfaf0d0b03b2c73e747ccefd103bd73332e8e9124ddd8b591600992ec9a1
4
- data.tar.gz: b5b78ebd24d91eb106200969fb35004ed9891805afec7bf31362eb05f2c9bb7c
3
+ metadata.gz: f7792f085a4c4be9655225856a6f8e9771ff6102f012a856d9d227e78cf6e10b
4
+ data.tar.gz: 4f5b12925427a3bfef28a5e695f89c5071e04a3062b5b166b8c04425dc7c6b08
5
5
  SHA512:
6
- metadata.gz: 042ae01e8d30609151c8a9cc3b4880bbd0b81617f79e7957fdbbb3ef5ad1807ad86437e826c53a18865ba6a461742760a88e16a0fa7ebd29eafc8216e9e86997
7
- data.tar.gz: bfcad15886e8c87635d7c0de1396b4c69959de079bc463e00c3d557caa633aa006e3389af807382922f8f968193eed1892879e6147543ea5ad38120d0c202f3c
6
+ metadata.gz: ed71f5a9cdd60fbc240910665152eb605e032ff776ee1bf883b31f8fb2c47b396b1750db22fb1328becb6a2930cd84a6ca5d3268fab933b75e9af018d176f70d
7
+ data.tar.gz: 42574e110e2b120d32984e89a3c7ffad7f9f79b85542cfe1252b63c7b1ad0ec5347974272a0cfd33e89111dc35bd0742ee952d18e53d4f47a6e705af98807474
@@ -0,0 +1,22 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/).
6
+
7
+ ## [1.1.2] - 2020-07-04
8
+
9
+ ### Fixed
10
+
11
+ - No longer attempts to uglify non-js files in given directories
12
+
13
+ ## [1.1.0] - 2020-06-28
14
+
15
+ ### Added
16
+
17
+ - Ability to uglify files
18
+ - Ability to uglify multiple directories/files
19
+
20
+ ## [1.0.0] - 2020-06-27
21
+
22
+ Uploaded gem; uglifies files in a given directory. Uses config file for config
@@ -45,8 +45,8 @@ module Jekyll
45
45
  end
46
46
  if !(dir.end_with? "/") then dir = dir + "/" end
47
47
  Dir.foreach(Dir.pwd + dir) do |file|
48
- next if file == '.' or file == '..' or file.include? '.min.js'
49
- next unless file.include? '.js'
48
+ next if file == '.' or file == '..' or file.end_with? '.min.js'
49
+ next unless file.end_with? '.js'
50
50
  filepath = Dir.pwd + dir + file
51
51
  output = Uglifier.compile(File.open(filepath, 'r'), config)
52
52
  File.open(filepath, 'w').write(output)
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Uglify
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-uglify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Hofer
@@ -32,6 +32,7 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - ".gitignore"
35
+ - CHANGELOG.md
35
36
  - CODE_OF_CONDUCT.md
36
37
  - Gemfile
37
38
  - Gemfile.lock