arcabouco 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arcabouco/base.rb +4 -0
- data/lib/arcabouco/server.rb +2 -6
- data/lib/arcabouco/version.rb +1 -1
- data/lib/templates/manifest.erb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 524e6bb73299d1b0d1158be720df55d05750aec0
|
4
|
+
data.tar.gz: 9b79bfc5e77b5eb1647f2d1084ced01008adedfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b03745c52f34905c5b9183e2cd72446a11bd8fd9ac446bc6048991e45ae4346757aa0a9748e2a1bb197fe5bdb3cf9c50a3f8a49b617b4f7e20d90c7a4767abb3
|
7
|
+
data.tar.gz: 6aa39945e4e983d48fe92a33280a28df72f01f5e303187e2d843183d35651fc210e1ec1a0f775b67a319f52ca37cf48425771b6f087242c3efd926e6990b8135
|
data/lib/arcabouco/base.rb
CHANGED
data/lib/arcabouco/server.rb
CHANGED
@@ -23,10 +23,6 @@ module Arcabouco
|
|
23
23
|
super
|
24
24
|
end
|
25
25
|
|
26
|
-
def assets_list
|
27
|
-
%w(jquery.js app.css app.js vendor.js vendor.css *.png)
|
28
|
-
end
|
29
|
-
|
30
26
|
def relative_to
|
31
27
|
"../" + Pathname.new(File.expand_path('../templates', File.dirname(__FILE__))).relative_path_from(Pathname.new(Arcabouco.root)).to_s
|
32
28
|
# Pathname.new(File.expand_path('../templates', File.dirname(__FILE__))).relative_path_from(Pathname.new(Arcabouco.root)).to_s
|
@@ -42,7 +38,7 @@ module Arcabouco
|
|
42
38
|
content_type :json
|
43
39
|
obj = {}
|
44
40
|
obj['assets'] = {}
|
45
|
-
|
41
|
+
Arcabouco.asset_list.each do |asset|
|
46
42
|
next if asset.to_s.index("*")
|
47
43
|
obj['assets'][asset] = "/app.assets/" + $environment[asset.to_s].digest_path
|
48
44
|
end
|
@@ -129,7 +125,7 @@ module Arcabouco
|
|
129
125
|
prepare_env_for_build
|
130
126
|
|
131
127
|
manifest = Sprockets::Manifest.new(env, Arcabouco.root + "/public/app.assets/manifest.json")
|
132
|
-
manifest.compile
|
128
|
+
manifest.compile Arcabouco.asset_list
|
133
129
|
|
134
130
|
compile_view "/", "index.html"
|
135
131
|
compile_view "/save_app.html", "save_app.html"
|
data/lib/arcabouco/version.rb
CHANGED
data/lib/templates/manifest.erb
CHANGED