fangorn 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/fangorn/js.rb +3 -6
- metadata +23 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2c7629aa21d17d7bd0f40127406c2b3f5bf81456c7aa514102a6ab871fd2da72
|
4
|
+
data.tar.gz: 3d0d112d91ed3e595ebcedcf642ad820734e4843585f3153895e236147e5baa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75fc1ad06ac873c214ad0dc43508005fdbbf23690c20a5acf004514f89c9a1ce7a25a0fc9595c512e8d8203e12b71696c57f43cf454b637c446489a219b9005b
|
7
|
+
data.tar.gz: '0508f20c4065721122f40fc6e7030d5ac5e5c5a35c80f0f63a2b6490a5ebdda9fb888a41829c9c818efb8e532984f6e380170678f5c0f2072e1dea1fd0da620b'
|
data/lib/fangorn/js.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'securerandom'
|
3
|
+
require 'uglifier'
|
4
|
+
|
3
5
|
module Fangorn
|
4
6
|
class Js < Output
|
5
7
|
|
@@ -28,12 +30,7 @@ module Fangorn
|
|
28
30
|
contents.gsub!(/(templateUrl:\s*["'])([^'"]+)(['"])/, "\\1\\2?q=#{CACHE_BREAK}\\3")
|
29
31
|
|
30
32
|
if Output::dist?
|
31
|
-
|
32
|
-
uglifyjs.write contents
|
33
|
-
uglifyjs.close_write
|
34
|
-
f.puts uglifyjs.read
|
35
|
-
end
|
36
|
-
|
33
|
+
f.puts Uglifier.compile(contents)
|
37
34
|
else
|
38
35
|
f.write contents
|
39
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fangorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Calhoun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|
@@ -70,6 +70,26 @@ dependencies:
|
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '3'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: uglifier
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '4'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4'
|
83
|
+
type: :runtime
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '4'
|
73
93
|
description: Asset compiler for front-end assets.
|
74
94
|
email:
|
75
95
|
- ryanjamescalhoun@gmail.com
|
@@ -107,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
127
|
version: '0'
|
108
128
|
requirements: []
|
109
129
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.6
|
130
|
+
rubygems_version: 2.7.6
|
111
131
|
signing_key:
|
112
132
|
specification_version: 4
|
113
133
|
summary: Haml + Sass + Javascript
|