troy 0.0.30 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/troy/site.rb +10 -1
- data/lib/troy/version.rb +1 -1
- data/troy.gemspec +3 -9
- metadata +22 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 18be336313d289eccaf87d00d64be8f1f8eb3df80c15ac3af6f3dcf5d6f872ba
|
4
|
+
data.tar.gz: 32542f2ed8aafda7cdc0304588de6c45edca52e7eaf2ca963b99dc06c094debb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b740caad132d0f97ec72022fe5e836b2f5f3cded8a54aa8d4987b85ef6758da8c5175623793df36b5091b842882f7e674377c31d3d23bd47bf086d5dec430589
|
7
|
+
data.tar.gz: 9aa40940571fd2f514113ac4f98799fe68687f114754aef0f077780cad3b062aa2ae7f6068e6cbe6bb97fb582a27cc688641e938364ac9bdcbb922819db0ac9a
|
data/lib/troy/site.rb
CHANGED
@@ -77,7 +77,7 @@ module Troy
|
|
77
77
|
sprockets.append_path root.join("assets/javascripts")
|
78
78
|
sprockets.append_path root.join("assets/stylesheets")
|
79
79
|
sprockets.css_compressor = Sprockets::SassCompressor if config.assets.compress_css
|
80
|
-
sprockets.js_compressor = Uglifier.new(
|
80
|
+
sprockets.js_compressor = Uglifier.new(uglifier_options) if config.assets.compress_js
|
81
81
|
|
82
82
|
config.assets.precompile.each do |asset_name|
|
83
83
|
asset = sprockets[asset_name]
|
@@ -91,6 +91,15 @@ module Troy
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
#
|
95
|
+
#
|
96
|
+
#
|
97
|
+
def uglifier_options
|
98
|
+
options = Uglifier::DEFAULTS.dup
|
99
|
+
options[:output][:comments] = :none
|
100
|
+
options
|
101
|
+
end
|
102
|
+
|
94
103
|
#
|
95
104
|
#
|
96
105
|
def source
|
data/lib/troy/version.rb
CHANGED
data/troy.gemspec
CHANGED
@@ -14,14 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
15
15
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
16
|
gem.require_paths = ["lib"]
|
17
|
-
|
18
|
-
gem.post_install_message = <<-TEXT
|
19
|
-
|
20
|
-
=> Troy's configuration file has been updated.
|
21
|
-
=> Please update it according to the new template.
|
22
|
-
=> http://fnando.me/ny
|
23
|
-
|
24
|
-
TEXT
|
17
|
+
gem.license = "MIT"
|
25
18
|
|
26
19
|
gem.add_dependency "i18n"
|
27
20
|
gem.add_dependency "thor"
|
@@ -29,9 +22,10 @@ Gem::Specification.new do |gem|
|
|
29
22
|
gem.add_dependency "redcarpet-abbreviations"
|
30
23
|
gem.add_dependency "rouge"
|
31
24
|
gem.add_dependency "sass"
|
25
|
+
gem.add_dependency "cssminify"
|
32
26
|
gem.add_dependency "sass-globbing"
|
33
27
|
gem.add_dependency "sprockets", ">= 2.8.0"
|
34
|
-
gem.add_dependency "uglifier"
|
28
|
+
gem.add_dependency "uglifier", ">= 4.0.0"
|
35
29
|
gem.add_dependency "rack"
|
36
30
|
gem.add_dependency "builder"
|
37
31
|
gem.add_dependency "html_press"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: troy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: cssminify
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: sass-globbing
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +142,14 @@ dependencies:
|
|
128
142
|
requirements:
|
129
143
|
- - ">="
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
145
|
+
version: 4.0.0
|
132
146
|
type: :runtime
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
152
|
+
version: 4.0.0
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rack
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -236,14 +250,10 @@ files:
|
|
236
250
|
- templates/unicorn.rb
|
237
251
|
- troy.gemspec
|
238
252
|
homepage: http://github.com/fnando/troy
|
239
|
-
licenses:
|
253
|
+
licenses:
|
254
|
+
- MIT
|
240
255
|
metadata: {}
|
241
|
-
post_install_message:
|
242
|
-
|
243
|
-
=> Troy's configuration file has been updated.
|
244
|
-
=> Please update it according to the new template.
|
245
|
-
=> http://fnando.me/ny
|
246
|
-
|
256
|
+
post_install_message:
|
247
257
|
rdoc_options: []
|
248
258
|
require_paths:
|
249
259
|
- lib
|
@@ -259,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
269
|
version: '0'
|
260
270
|
requirements: []
|
261
271
|
rubyforge_project:
|
262
|
-
rubygems_version: 2.
|
272
|
+
rubygems_version: 2.7.3
|
263
273
|
signing_key:
|
264
274
|
specification_version: 4
|
265
275
|
summary: A static site generator
|