lux_assets 0.2.23 → 0.2.24
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/.version +1 -1
- data/bin/lux_assets +2 -4
- data/lib/lux_assets/asset.rb +3 -0
- data/lib/lux_assets/element.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: cb68802cf5ed14c71b6f770abcfe926f09cfb1c7c2dd5a244b48b584bb3276e7
|
|
4
|
+
data.tar.gz: 2a44525caf1e867a16abbd9018dc9ba29564c63b918ed70841aaac5b3f816098
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e5afb9c3384e8f15108406ca8750bf8136e061fcc6f6c6950e591d8cb83a5122f53f7808197eb438da9b64d00aa628900c458f8ce2f23ccad2c8fe13236ae32
|
|
7
|
+
data.tar.gz: cf240e48dcf1dd6a9ab869097a6bb32174747537520f1cd97dab99fbd1f2b8908b48bd9a5f88b23c9cfb0711b4be0900311422e4b1d140dbf923e5913ed0aded
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.24
|
data/bin/lux_assets
CHANGED
|
@@ -54,15 +54,13 @@ class AssetsCli < Thor
|
|
|
54
54
|
|
|
55
55
|
desc :install, 'Install all needed packages via yarn'
|
|
56
56
|
def install
|
|
57
|
-
packages = ["
|
|
57
|
+
packages = ["coffeescript", "node-sass", "typescript", "babel-cli", "autoprefixer-cli"]
|
|
58
58
|
|
|
59
59
|
if `which yarn`.empty?
|
|
60
60
|
Cli.die('yarn not found -> install with "npm install yarn -g"')
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
Cli.run 'yarn add %s' % pkg
|
|
65
|
-
end
|
|
63
|
+
Cli.run 'yarn add %s' % packages.join(' ')
|
|
66
64
|
|
|
67
65
|
puts '* Installed: %s' % packages.map(&:green).join(', ')
|
|
68
66
|
|
data/lib/lux_assets/asset.rb
CHANGED
|
@@ -69,6 +69,9 @@ class LuxAssets::Asset
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
def save_data data
|
|
72
|
+
# BOM (Byte order mark) remove
|
|
73
|
+
data.gsub!("\xEF\xBB\xBF".force_encoding("UTF-8"), '')
|
|
74
|
+
|
|
72
75
|
@asset_file = '/assets/%s' % (@target.sub('/', '-') + '-' + Digest::SHA1.hexdigest(data) + '.' + @ext.to_s)
|
|
73
76
|
@asset_path = Pathname.new "./public#{@asset_file}"
|
|
74
77
|
|
data/lib/lux_assets/element.rb
CHANGED
|
@@ -47,7 +47,7 @@ class LuxAssets::Element
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
def compile_coffee
|
|
50
|
-
coffee_path = './node_modules/
|
|
50
|
+
coffee_path = './node_modules/coffeescript/bin/coffee'
|
|
51
51
|
coffee_opts = @production ? '-cp' : '-Mcp --no-header'
|
|
52
52
|
|
|
53
53
|
if LuxAssets::Cli.run("#{coffee_path} #{coffee_opts} '#{@source}' > '#{@cache}'", cache_file: @cache, message: "Compile Coffee: #{@source}")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lux_assets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dino Reic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03
|
|
11
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|