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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a671d00d7f4680fc4270f6969b711b773d05a6d
4
- data.tar.gz: a20ef1281de933e9aa34788b99cc7da1f6e7beef
3
+ metadata.gz: 524e6bb73299d1b0d1158be720df55d05750aec0
4
+ data.tar.gz: 9b79bfc5e77b5eb1647f2d1084ced01008adedfa
5
5
  SHA512:
6
- metadata.gz: f1322db098088a70aceafb2410c5d35990d50ea1ea2033a19faa0f2ebd2df323e0c39007e745909ec735bfe59d8a096271a1975a4ede42917eb130c2bcde3191
7
- data.tar.gz: 447dd453f5d4897655d128d355bcf2634b024d530df9928b920b2ac6b910f84c59f4f8b7c7b0a7958911712bb0d644d6048b49bb334c5def753d8f435537430e
6
+ metadata.gz: b03745c52f34905c5b9183e2cd72446a11bd8fd9ac446bc6048991e45ae4346757aa0a9748e2a1bb197fe5bdb3cf9c50a3f8a49b617b4f7e20d90c7a4767abb3
7
+ data.tar.gz: 6aa39945e4e983d48fe92a33280a28df72f01f5e303187e2d843183d35651fc210e1ec1a0f775b67a319f52ca37cf48425771b6f087242c3efd926e6990b8135
@@ -16,5 +16,9 @@ module Arcabouco
16
16
  @@gem_root = root
17
17
  end
18
18
 
19
+ def self.asset_list
20
+ %w(jquery.js app.css app.js vendor.js vendor.css *.png)
21
+ end
22
+
19
23
  end
20
24
 
@@ -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
- assets_list.each do |asset|
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 self.web.assets_list
128
+ manifest.compile Arcabouco.asset_list
133
129
 
134
130
  compile_view "/", "index.html"
135
131
  compile_view "/save_app.html", "save_app.html"
@@ -1,3 +1,3 @@
1
1
  module Arcabouco
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -10,6 +10,7 @@ CACHE:
10
10
 
11
11
  <% if assets['jquery.js'] %>/app.assets/<%= assets['jquery.js'].digest_path %><% end %>
12
12
 
13
+
13
14
  NETWORK:
14
15
  *
15
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcabouco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Negri