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 +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/jekyll/uglify.rb +2 -2
- data/lib/jekyll/uglify/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7792f085a4c4be9655225856a6f8e9771ff6102f012a856d9d227e78cf6e10b
|
|
4
|
+
data.tar.gz: 4f5b12925427a3bfef28a5e695f89c5071e04a3062b5b166b8c04425dc7c6b08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed71f5a9cdd60fbc240910665152eb605e032ff776ee1bf883b31f8fb2c47b396b1750db22fb1328becb6a2930cd84a6ca5d3268fab933b75e9af018d176f70d
|
|
7
|
+
data.tar.gz: 42574e110e2b120d32984e89a3c7ffad7f9f79b85542cfe1252b63c7b1ad0ec5347974272a0cfd33e89111dc35bd0742ee952d18e53d4f47a6e705af98807474
|
data/CHANGELOG.md
ADDED
|
@@ -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
|
data/lib/jekyll/uglify.rb
CHANGED
|
@@ -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.
|
|
49
|
-
next unless file.
|
|
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)
|
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.
|
|
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
|