escompress 0.2.0 → 0.3.0
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/Gemfile.lock +4 -1
- data/Rakefile +5 -0
- data/escompress.gemspec +2 -0
- data/lib/escompress/version.rb +1 -1
- data/lib/escompress.rb +4 -3
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41d04aee1692b8dcb3d122a0ebce14713b990928436f20eb4d31912a3092a058
|
4
|
+
data.tar.gz: 2727e34eb6c9e09fc22eebd4ed8358441078beaae8cf9fd2dec3565571c1f179
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d64f0562372a1e9ebe51bb00c1f1fb18c6fdb8910a585226f8571dd03c07033aae6b2b5e3a690e77be5103e9e1c5ad5203f284cf39c78881f1f3ef228bbfbb56
|
7
|
+
data.tar.gz: ea9b162a7c554845c4bc884807d5358e739691f63030e5004286c8bd9d7fe3cfcea4cdd76352bb5efa4e6bbc1a6f6fc65910d9616d7a64bf2840cb71dc38bb5a
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
escompress (0.
|
4
|
+
escompress (0.3.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.2)
|
10
10
|
json (2.6.2)
|
11
|
+
minitest (5.16.3)
|
11
12
|
parallel (1.22.1)
|
12
13
|
parser (3.1.2.0)
|
13
14
|
ast (~> 2.4.1)
|
@@ -38,9 +39,11 @@ GEM
|
|
38
39
|
|
39
40
|
PLATFORMS
|
40
41
|
x86_64-darwin-20
|
42
|
+
x86_64-linux
|
41
43
|
|
42
44
|
DEPENDENCIES
|
43
45
|
escompress!
|
46
|
+
minitest
|
44
47
|
rake (~> 13.0)
|
45
48
|
standard (~> 1.3)
|
46
49
|
|
data/Rakefile
CHANGED
data/escompress.gemspec
CHANGED
data/lib/escompress/version.rb
CHANGED
data/lib/escompress.rb
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
require_relative "escompress/compressor"
|
2
2
|
require_relative "escompress/version"
|
3
3
|
require "escompress/railtie" if defined?(Rails::Railtie)
|
4
|
+
require "pathname"
|
4
5
|
|
5
6
|
module Escompress
|
6
7
|
class Error < StandardError; end
|
7
8
|
|
8
|
-
|
9
|
+
DEFAULT_LOCATION = "/usr/local/bin/esbuild"
|
9
10
|
|
10
11
|
def self.esbuild_executable=(path)
|
11
|
-
|
12
|
+
@esbuild_executable = Pathname.new(path)
|
12
13
|
end
|
13
14
|
|
14
15
|
def self.esbuild_executable
|
15
|
-
|
16
|
+
@esbuild_executable ||= Pathname.new(DEFAULT_LOCATION)
|
16
17
|
end
|
17
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: escompress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Wilson
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-12-22 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: minitest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description: Use esbuild to compress your Rails CSS
|
14
28
|
email:
|
15
29
|
- justin@jwils.co
|