arcabouco 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arcabouco/compass.rb +4 -2
- data/lib/arcabouco/server.rb +6 -0
- data/lib/arcabouco/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48f186d19f7dd2ac59fde52d75ed7b5e6fdcdac5
|
4
|
+
data.tar.gz: db3a112554f05b8d620c7e79eb4f4a99ba1278d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7be75714d30ae435cedbd8859925eab83d951b8d8189514ee54d832f91e87ddadfc50699bde5232093e84498215a517ea889d0780babe9c98164ace0f981873
|
7
|
+
data.tar.gz: 29c5d3f93e635c7e26963a8bf75e5fc02788a3553b5c55ccac215ed53a378bb23a5724308d85f403f0b62219ace1d6acf02f0e65ed13078899f9d415ba610a0d
|
data/lib/arcabouco/compass.rb
CHANGED
@@ -7,7 +7,9 @@ Compass.configuration do |compass|
|
|
7
7
|
compass.css_dir = 'app/css'
|
8
8
|
compass.sass_dir = 'app/css'
|
9
9
|
compass.javascripts_dir = 'app/js'
|
10
|
-
compass.relative_assets =
|
11
|
-
compass.
|
10
|
+
compass.relative_assets = false
|
11
|
+
# compass.assetCacheBuster = false
|
12
|
+
compass.generated_images_dir = 'public/app.assets'
|
13
|
+
compass.http_generated_images_path = '/app.assets'
|
12
14
|
end
|
13
15
|
|
data/lib/arcabouco/server.rb
CHANGED
@@ -93,6 +93,7 @@ module Arcabouco
|
|
93
93
|
self.env.append_path File.join(Arcabouco.gem_root,'assets','js')
|
94
94
|
Sprockets::Helpers.configure do |config|
|
95
95
|
config.prefix = '/app.assets'
|
96
|
+
config.digest = true
|
96
97
|
end
|
97
98
|
end
|
98
99
|
|
@@ -109,6 +110,7 @@ module Arcabouco
|
|
109
110
|
web = self.web
|
110
111
|
|
111
112
|
# app_css.write_to( Arcabouco.root + "/public/app-#{app_css.digest}.min.css" )
|
113
|
+
self.prepare_env_for_server()
|
112
114
|
$environment = self.get_env()
|
113
115
|
self.rack = Rack::Builder.new do
|
114
116
|
map '/app.assets' do
|
@@ -132,6 +134,10 @@ module Arcabouco
|
|
132
134
|
self.env.css_compressor = :sass
|
133
135
|
end
|
134
136
|
|
137
|
+
def prepare_env_for_server
|
138
|
+
self.env.append_path 'public/app.assets'
|
139
|
+
end
|
140
|
+
|
135
141
|
|
136
142
|
def build
|
137
143
|
FileUtils.mkpath Arcabouco.root + "/public"
|
data/lib/arcabouco/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arcabouco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Negri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|