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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d11d7f035acc9b03fa5f8b986c005836bf8bd8a1bc87547e2641d8e0156f35cd
4
- data.tar.gz: b0ea93494ccc5c0cc3d5ac81ac12b4bba7ee53678b79c7ff8e1c4bdcae5e6b2a
3
+ metadata.gz: 7ea889a6bb19a3b97e492244a460a1cc38a0623fb3edcfc52f66962590296862
4
+ data.tar.gz: 0e01df0d65eeea46003888291e158dacfb1082b93b1d0455b3dc6179dd61ab10
5
5
  SHA512:
6
- metadata.gz: 88e821c890a57c3bd522e9984438c93fc83876f107a595aa5a6bb23740b0aec2153469df871dfe82b0e6a9540b4c57a70f211c9d5074bf5bf0b6a127fc56103d
7
- data.tar.gz: 96ec194dda79640a405bfb98be2d42ec25e6c3d365eb6c0a1d2ebbfd82eb7e02c609406b3a747dbea15d307dc900abc51c7145b293a52fe57abd63c863d116cb
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-2014 Bob McWhirter and contributors (see git log)
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 = '2023-04-16'
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
@@ -1,3 +1,3 @@
1
1
  module Awestruct
2
- VERSION = '0.6.6'
2
+ VERSION = '0.6.7'
3
3
  end
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.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: 2023-04-16 00:00:00.000000000 Z
16
+ date: 2024-01-02 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: haml