view_assets 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -130,6 +130,9 @@ module ViewAssets
|
|
130
130
|
|
131
131
|
# start point of parsing dependent assets
|
132
132
|
def retrieve_assets_from(manifest)
|
133
|
+
# TODO rspec examples for non-existed files
|
134
|
+
return [] unless FileTest.exist?(manifest)
|
135
|
+
|
133
136
|
assets = []
|
134
137
|
directive = Directive.new(asset_type)
|
135
138
|
|
data/lib/view_assets/version.rb
CHANGED
@@ -1634,3 +1634,38 @@ Started GET "/foo/index" for 127.0.0.1 at 2013-01-04 15:40:41 +0800
|
|
1634
1634
|
Processing by FooController#index as HTML
|
1635
1635
|
Rendered foo/index.html.erb within layouts/application (0.1ms)
|
1636
1636
|
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
1637
|
+
|
1638
|
+
|
1639
|
+
Started GET "/foo/index" for 127.0.0.1 at 2013-01-05 15:56:14 +0800
|
1640
|
+
Connecting to database specified by database.yml
|
1641
|
+
Processing by FooController#index as HTML
|
1642
|
+
Rendered foo/index.html.erb within layouts/application (3.1ms)
|
1643
|
+
Completed 200 OK in 47ms (Views: 45.9ms | ActiveRecord: 0.0ms)
|
1644
|
+
|
1645
|
+
|
1646
|
+
Started GET "/foo/index" for 127.0.0.1 at 2013-01-05 15:56:35 +0800
|
1647
|
+
Processing by FooController#index as HTML
|
1648
|
+
Rendered foo/index.html.erb within layouts/application (0.0ms)
|
1649
|
+
Completed 500 Internal Server Error in 66ms
|
1650
|
+
|
1651
|
+
ActionView::Template::Error (No such file or directory - /Users/hzu/Dropbox/Code/ruby/view_assets/test/dummy/public/vendor/stylesheets/vendor1/index.css):
|
1652
|
+
5: <%# = stylesheet_link_tag "application", :media => "all" %>
|
1653
|
+
6: <%# = javascript_include_tag "application" %>
|
1654
|
+
7: <%# = csrf_meta_tags %>
|
1655
|
+
8: <%= include_assets_with_assets_mvc(params[:controller], params[:action]) %>
|
1656
|
+
9: </head>
|
1657
|
+
10: <body>
|
1658
|
+
11:
|
1659
|
+
app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb___3957117255519139903_2193759580'
|
1660
|
+
|
1661
|
+
|
1662
|
+
Rendered /Users/hzu/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.4ms)
|
1663
|
+
Rendered /Users/hzu/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.5ms)
|
1664
|
+
Rendered /Users/hzu/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (13.6ms)
|
1665
|
+
|
1666
|
+
|
1667
|
+
Started GET "/foo/index" for 127.0.0.1 at 2013-01-05 15:56:54 +0800
|
1668
|
+
Connecting to database specified by database.yml
|
1669
|
+
Processing by FooController#index as HTML
|
1670
|
+
Rendered foo/index.html.erb within layouts/application (2.6ms)
|
1671
|
+
Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.0ms)
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: view_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -122,7 +122,7 @@ files:
|
|
122
122
|
- test/dummy/public/lib/stylesheets/lib2.css
|
123
123
|
- test/dummy/public/vendor/javascripts/vendor1.js
|
124
124
|
- test/dummy/public/vendor/javascripts/vendor2.js
|
125
|
-
- test/dummy/public/vendor/stylesheets/vendor1.css
|
125
|
+
- test/dummy/public/vendor/stylesheets/vendor1/vendor1.css
|
126
126
|
- test/dummy/public/vendor/stylesheets/vendor2.css
|
127
127
|
- test/dummy/Rakefile
|
128
128
|
- test/dummy/README.rdoc
|
@@ -217,7 +217,7 @@ test_files:
|
|
217
217
|
- test/dummy/public/lib/stylesheets/lib2.css
|
218
218
|
- test/dummy/public/vendor/javascripts/vendor1.js
|
219
219
|
- test/dummy/public/vendor/javascripts/vendor2.js
|
220
|
-
- test/dummy/public/vendor/stylesheets/vendor1.css
|
220
|
+
- test/dummy/public/vendor/stylesheets/vendor1/vendor1.css
|
221
221
|
- test/dummy/public/vendor/stylesheets/vendor2.css
|
222
222
|
- test/dummy/Rakefile
|
223
223
|
- test/dummy/README.rdoc
|