view_assets 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -202,7 +202,7 @@ module ViewAssets
202
202
  end
203
203
 
204
204
  def relatively_pathize(asset_dir, asset)
205
- "#{ asset_dir }/#{ asset.match(/\.#{ asset_extension }$/) ? asset : "#{ asset }.js" }"
205
+ "#{ asset_dir }/#{ asset.match(/\.#{ asset_extension }$/) ? asset : "#{ asset }.#{ asset_extension }" }"
206
206
  end
207
207
 
208
208
  # TODO add tests
@@ -222,7 +222,7 @@ module ViewAssets
222
222
 
223
223
  # todo document
224
224
  def absolutely_pathize(asset_path)
225
- "#{ root }/#{ asset_path.match(/\.#{ asset_extension }$/) ? asset_path : "#{ asset_path }.js" }"
225
+ "#{ root }/#{ asset_path.match(/\.#{ asset_extension }$/) ? asset_path : "#{ asset_path }.#{ asset_extension }" }"
226
226
  end
227
227
 
228
228
  # todo document
@@ -1,3 +1,3 @@
1
1
  module ViewAssets
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -1420,3 +1420,127 @@ ActionController::RoutingError (No route matches [GET] "/app/stylesheets"):
1420
1420
 
1421
1421
 
1422
1422
  Rendered /Users/hzu/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
1423
+
1424
+
1425
+ Started GET "/bar/index" for 127.0.0.1 at 2013-01-03 15:16:07 +0800
1426
+ Connecting to database specified by database.yml
1427
+ Processing by BarController#index as HTML
1428
+ Rendered bar/index.html.erb within layouts/application (3.4ms)
1429
+ Completed 200 OK in 46ms (Views: 45.5ms | ActiveRecord: 0.0ms)
1430
+
1431
+
1432
+ Started GET "/basic_production_orders/index" for 127.0.0.1 at 2013-01-03 15:20:59 +0800
1433
+ Connecting to database specified by database.yml
1434
+
1435
+ ActionController::RoutingError (No route matches [GET] "/basic_production_orders/index"):
1436
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
1437
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
1438
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
1439
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
1440
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
1441
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
1442
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
1443
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
1444
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
1445
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
1446
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
1447
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
1448
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
1449
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
1450
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
1451
+ /Users/hzu/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
1452
+ /Users/hzu/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
1453
+ /Users/hzu/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
1454
+
1455
+
1456
+ Rendered /Users/hzu/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (4.0ms)
1457
+
1458
+
1459
+ Started GET "/foo/index" for 127.0.0.1 at 2013-01-03 15:21:03 +0800
1460
+ Processing by FooController#index as HTML
1461
+ Rendered foo/index.html.erb within layouts/application (0.4ms)
1462
+ Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms)
1463
+
1464
+
1465
+ Started GET "/foo/index" for 127.0.0.1 at 2013-01-03 15:26:47 +0800
1466
+ Connecting to database specified by database.yml
1467
+ Processing by FooController#index as HTML
1468
+ Rendered foo/index.html.erb within layouts/application (3.4ms)
1469
+ Completed 200 OK in 25ms (Views: 24.6ms | ActiveRecord: 0.0ms)
1470
+
1471
+
1472
+ Started GET "/foo/index" for 127.0.0.1 at 2013-01-03 15:27:28 +0800
1473
+ Processing by FooController#index as HTML
1474
+ Rendered foo/index.html.erb within layouts/application (0.0ms)
1475
+ Completed 500 Internal Server Error in 16ms
1476
+
1477
+ ActionView::Template::Error (No such file or directory - /Users/hzu/Dropbox/Code/ruby/view_assets/test/dummy/public/vendor/stylesheets/version1/index.js):
1478
+ 5: <%# = stylesheet_link_tag "application", :media => "all" %>
1479
+ 6: <%# = javascript_include_tag "application" %>
1480
+ 7: <%# = csrf_meta_tags %>
1481
+ 8: <%= include_assets_with_assets_mvc(params[:controller], params[:action]) %>
1482
+ 9: </head>
1483
+ 10: <body>
1484
+ 11:
1485
+ app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb___2223545505954123450_2196002920'
1486
+
1487
+
1488
+ Rendered /Users/hzu/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.3ms)
1489
+ 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.4ms)
1490
+ 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.4ms)
1491
+
1492
+
1493
+ Started GET "/foo/index" for 127.0.0.1 at 2013-01-03 15:28:57 +0800
1494
+ Processing by FooController#index as HTML
1495
+ Rendered foo/index.html.erb within layouts/application (0.0ms)
1496
+ Completed 500 Internal Server Error in 4ms
1497
+
1498
+ ActionView::Template::Error (No such file or directory - /Users/hzu/Dropbox/Code/ruby/view_assets/test/dummy/public/vendor/stylesheets/vendor1/index.js):
1499
+ 5: <%# = stylesheet_link_tag "application", :media => "all" %>
1500
+ 6: <%# = javascript_include_tag "application" %>
1501
+ 7: <%# = csrf_meta_tags %>
1502
+ 8: <%= include_assets_with_assets_mvc(params[:controller], params[:action]) %>
1503
+ 9: </head>
1504
+ 10: <body>
1505
+ 11:
1506
+ app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb___2223545505954123450_2196002920'
1507
+
1508
+
1509
+ 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)
1510
+ 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.4ms)
1511
+ 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 (11.6ms)
1512
+
1513
+
1514
+ Started GET "/foo/index" for 127.0.0.1 at 2013-01-03 15:33:00 +0800
1515
+ Connecting to database specified by database.yml
1516
+ Processing by FooController#index as HTML
1517
+ Rendered foo/index.html.erb within layouts/application (2.6ms)
1518
+ Completed 500 Internal Server Error in 21ms
1519
+
1520
+ ActionView::Template::Error (No such file or directory - /Users/hzu/Dropbox/Code/ruby/view_assets/test/dummy/public/vendor/stylesheets/vendor1/index.vendor/stylesheets/vendor1/index):
1521
+ 5: <%# = stylesheet_link_tag "application", :media => "all" %>
1522
+ 6: <%# = javascript_include_tag "application" %>
1523
+ 7: <%# = csrf_meta_tags %>
1524
+ 8: <%= include_assets_with_assets_mvc(params[:controller], params[:action]) %>
1525
+ 9: </head>
1526
+ 10: <body>
1527
+ 11:
1528
+ app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb__1155885025845635693_2209963300'
1529
+
1530
+
1531
+ Rendered /Users/hzu/.rvm/gems/ruby-1.9.3-p286/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.2ms)
1532
+ 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.4ms)
1533
+ 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 (12.7ms)
1534
+
1535
+
1536
+ Started GET "/foo/index" for 127.0.0.1 at 2013-01-03 15:33:43 +0800
1537
+ Connecting to database specified by database.yml
1538
+ Processing by FooController#index as HTML
1539
+ Rendered foo/index.html.erb within layouts/application (2.7ms)
1540
+ Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)
1541
+
1542
+
1543
+ Started GET "/foo/index" for 127.0.0.1 at 2013-01-03 15:33:55 +0800
1544
+ Processing by FooController#index as HTML
1545
+ Rendered foo/index.html.erb within layouts/application (0.0ms)
1546
+ Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
@@ -0,0 +1,3 @@
1
+ /**
2
+ *= require_vendor vendor1
3
+ */
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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: