lux_assets 0.2.23 → 0.2.24

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: 6324612191dc1470e710515aec0af628411277d4a80d59c0fe7d0d1058c3ec9a
4
- data.tar.gz: 252f1a34d0a3646e85c0cc27bb3dfbd51ff9c4849162f7e4f0ad66a6a9459360
3
+ metadata.gz: cb68802cf5ed14c71b6f770abcfe926f09cfb1c7c2dd5a244b48b584bb3276e7
4
+ data.tar.gz: 2a44525caf1e867a16abbd9018dc9ba29564c63b918ed70841aaac5b3f816098
5
5
  SHA512:
6
- metadata.gz: 6ce56efba7aacdfe63b5dc498f883a124f707266334c9505249355bd220aa825586ea2b37725c0a9281d1abd7805f3e3f441860d659e2eccddbeb5b8e9b4c61a
7
- data.tar.gz: 6dd3f1c4d6d83edbc34bacd637688c8d9b77b05a27ed13bd52e1ef984bb7a8a789f84f6ff9c574ee3406a3a49306662876b93478794c4511bb57f324b106ca45
6
+ metadata.gz: 2e5afb9c3384e8f15108406ca8750bf8136e061fcc6f6c6950e591d8cb83a5122f53f7808197eb438da9b64d00aa628900c458f8ce2f23ccad2c8fe13236ae32
7
+ data.tar.gz: cf240e48dcf1dd6a9ab869097a6bb32174747537520f1cd97dab99fbd1f2b8908b48bd9a5f88b23c9cfb0711b4be0900311422e4b1d140dbf923e5913ed0aded
data/.version CHANGED
@@ -1 +1 @@
1
- 0.2.23
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 = ["coffee-script", "node-sass", "typescript", "babel-cli", "autoprefixer-cli"]
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
- for pkg in packages
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
 
@@ -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
 
@@ -47,7 +47,7 @@ class LuxAssets::Element
47
47
  end
48
48
 
49
49
  def compile_coffee
50
- coffee_path = './node_modules/coffee-script/bin/coffee'
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.23
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-10 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize