awestruct 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/awestruct.gemspec +1 -1
- data/lib/awestruct/extensions/minify.rb +5 -5
- data/lib/awestruct/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ea889a6bb19a3b97e492244a460a1cc38a0623fb3edcfc52f66962590296862
|
4
|
+
data.tar.gz: 0e01df0d65eeea46003888291e158dacfb1082b93b1d0455b3dc6179dd61ab10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 332b3ad1276ea7c24181878d2a38d825110ca9126b5dee25b09266fc3dc3a92dd549970b735a99e1ee81a46fb83f044035dd52041701af0b809ea414563ae1fd
|
7
|
+
data.tar.gz: 5be5f1ad75ee0aeaccb9658a65f062943728c3ea5124488bd95809dedeb19dc9605374db2cae4a62bf7071ce0b727cc2788ab38a67247ed65abc7a227718625a
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Awestruct
|
2
2
|
[![Gem](https://img.shields.io/gem/v/awestruct)](https://rubygems.org/gems/awestruct)
|
3
3
|
[![Gem](https://img.shields.io/gem/dt/awestruct?color=blue)](https://rubygems.org/gems/awestruct)
|
4
|
-
[![Build Status](https://secure.travis-ci.org/awestruct/awestruct.png)](https://travis-ci.org/awestruct/awestruct)
|
5
4
|
|
6
5
|
## Requirements
|
7
6
|
|
@@ -17,7 +16,7 @@ Please see the complete site at <https://awestruct.github.io/>.
|
|
17
16
|
|
18
17
|
## License
|
19
18
|
|
20
|
-
Copyright (c) 2010-
|
19
|
+
Copyright (c) 2010-2024 Bob McWhirter and contributors (see git log)
|
21
20
|
|
22
21
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
23
22
|
of this software and associated documentation files (the "Software"), to
|
data/awestruct.gemspec
CHANGED
@@ -4,7 +4,7 @@ require 'awestruct/version'
|
|
4
4
|
spec = Gem::Specification.new do |s|
|
5
5
|
s.name = 'awestruct'
|
6
6
|
s.version = Awestruct::VERSION
|
7
|
-
s.date = '
|
7
|
+
s.date = '2024-01-02'
|
8
8
|
|
9
9
|
s.authors = ['Bob McWhirter', 'Jason Porter', 'Lance Ball', 'Dan Allen', 'Torsten Curdt', 'other contributors']
|
10
10
|
s.email = ['bob@mcwhirter.org', 'lightguard.jp@gmail.com', 'lball@redhat.com', 'dan.j.allen@gmail.com', 'tcurdt@vafer.org']
|
@@ -1,8 +1,3 @@
|
|
1
|
-
require 'shellwords'
|
2
|
-
require 'fileutils'
|
3
|
-
require 'htmlcompressor'
|
4
|
-
require 'uglifier'
|
5
|
-
|
6
1
|
##
|
7
2
|
# Awestruct:Extensions:Minify is a transformer that minimizes JavaScript, CSS and HTML files.
|
8
3
|
# The transform runs on the rendered stream before it's written to the output path.
|
@@ -57,6 +52,11 @@ module Awestruct
|
|
57
52
|
|
58
53
|
def transform(site, page, input)
|
59
54
|
if site.minify
|
55
|
+
require 'shellwords'
|
56
|
+
require 'fileutils'
|
57
|
+
require 'htmlcompressor'
|
58
|
+
require 'uglifier'
|
59
|
+
|
60
60
|
ext = File.extname(page.output_path)
|
61
61
|
if !ext.empty?
|
62
62
|
ext_sym = ext[1..-1].to_sym
|
data/lib/awestruct/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awestruct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob McWhirter
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2024-01-02 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: haml
|