routesjs-rails 0.0.2 → 0.0.3

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: f18a162ac90d8e08244858f15f07b4d90f8041f5
4
- data.tar.gz: 57395a2009db1fd75326f37ec35e0b1d4b72821b
3
+ metadata.gz: c9390c94ca8b8941dc27981c66e1f78965c3119b
4
+ data.tar.gz: 6a6bff765c8ba640d2d31410bc2a2c63d94995de
5
5
  SHA512:
6
- metadata.gz: 7e42f19bf16cfbd5b27009de0317aaea877445daebafad3f94424c2bac59b12cba89de55bd84baf734ee30898c893af9796f6b51071fe9df14e23272fb6dc637
7
- data.tar.gz: b3aa6ae22916d9d5b9b59ad7b0d13eb8671b76303f278a5e1b817fd8758e4ab88892ed3bd043e3d1b79086db6e26600e34c3ac901cec6d44f3459c15fcd7cfb0
6
+ metadata.gz: 23bbf881907fc2b7ee792a7d4b73af629d80e89427ee1d4309dfd4c2dc295ab65c91a170d2813037108a9116d5c3817e0a967dd8d5421aea5a5dc061ebebba51
7
+ data.tar.gz: 2f0e042a6c2a7e0a2e60ccf6477c3d3484925d1d1da58ffb8b44d8445859aecbacf79bd7bf91cbe477459678eb4cabe86f4752a73d1ced684baf26ec73c7e23e
@@ -1,5 +1,5 @@
1
1
  module RoutesJS
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  module RoutesJS
2
2
  class Routes
3
3
  def self.as_json(routes = nil)
4
- routes ||= Rails.application.routes.routes
4
+ routes ||= ::Rails.application.routes.routes
5
5
  inspector = ActionDispatch::Routing::RoutesInspector.new(routes)
6
6
  inspector.format(Formatter.new)
7
7
  end
@@ -1396,3 +1396,68 @@ close: 127.0.0.1:40732
1396
1396
  close: 127.0.0.1:40730
1397
1397
  going to shutdown ...
1398
1398
  WEBrick::HTTPServer#start done.
1399
+ ---------------------------------------------------------------------
1400
+ RoutesJS::RoutesTest: test_routes_are_rendered_as_a_valid_json_object
1401
+ ---------------------------------------------------------------------
1402
+ ------------------------------------------------------------
1403
+ RoutesJS::FormatterTest: test_hand_coded_URLs_are_left_as_is
1404
+ ------------------------------------------------------------
1405
+ -----------------------------------------------------------
1406
+ RoutesJS::FormatterTest: test_named_redirects_are_supported
1407
+ -----------------------------------------------------------
1408
+ ------------------------------------------------------------------------------
1409
+ RoutesJS::FormatterTest: test_named_redirects_within_a_namespace_are_supported
1410
+ ------------------------------------------------------------------------------
1411
+ ----------------------------------------------------------------------------------
1412
+ RoutesJS::FormatterTest: test_namespaced_routes_include_the_namespace_in_the_route
1413
+ ----------------------------------------------------------------------------------
1414
+ ------------------------------------------------------------
1415
+ RoutesJS::FormatterTest: test_only_named_routes_are_included
1416
+ ------------------------------------------------------------
1417
+ -----------------------------------------------------------
1418
+ RoutesJS::FormatterTest: test_result_is_a_valid_JSON_object
1419
+ -----------------------------------------------------------
1420
+ WEBrick 1.3.1
1421
+ ruby 2.1.2 (2014-05-08) [x86_64-linux]
1422
+ Rack::Handler::WEBrick is mounted on /.
1423
+ WEBrick::HTTPServer#start: pid=3838 port=33619
1424
+ accept: 127.0.0.1:53829
1425
+ close: 127.0.0.1:53829
1426
+ accept: 127.0.0.1:53830
1427
+ Rack::Handler::WEBrick is invoked.
1428
+ Started GET "/teaspoon/default?reporter=Console" for 127.0.0.1 at 2014-09-19 15:12:28 +0000
1429
+ Processing by Teaspoon::SuiteController#show as HTML
1430
+ Parameters: {"reporter"=>"Console", "suite"=>"default"}
1431
+ Rendered /home/vagrant/Code/routesjs_rails/vendor/bundle/gems/teaspoon-0.8.0/app/views/teaspoon/suite/_boot.html.erb (12.6ms)
1432
+ Rendered /home/vagrant/Code/routesjs_rails/vendor/bundle/gems/teaspoon-0.8.0/app/views/teaspoon/suite/_body.html.erb (0.3ms)
1433
+ Rendered /home/vagrant/Code/routesjs_rails/vendor/bundle/gems/teaspoon-0.8.0/app/views/teaspoon/suite/show.html.erb (24.7ms)
1434
+ Completed 200 OK in 29ms (Views: 28.7ms)
1435
+ accept: 127.0.0.1:53835
1436
+ accept: 127.0.0.1:53834
1437
+ Rack::Handler::WEBrick is invoked.
1438
+ Started GET "/assets/jasmine/1.3.1.js" for 127.0.0.1 at 2014-09-19 15:12:29 +0000
1439
+ Rack::Handler::WEBrick is invoked.
1440
+ Started GET "/assets/teaspoon-jasmine.js" for 127.0.0.1 at 2014-09-19 15:12:29 +0000
1441
+ Rack::Handler::WEBrick is invoked.
1442
+ Started GET "/assets/teaspoon.css" for 127.0.0.1 at 2014-09-19 15:12:29 +0000
1443
+ accept: 127.0.0.1:53832
1444
+ accept: 127.0.0.1:53833
1445
+ Rack::Handler::WEBrick is invoked.
1446
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-19 15:12:29 +0000
1447
+ accept: 127.0.0.1:53831
1448
+ Rack::Handler::WEBrick is invoked.
1449
+ Started GET "/assets/spec_helper.js?body=1" for 127.0.0.1 at 2014-09-19 15:12:29 +0000
1450
+ Rack::Handler::WEBrick is invoked.
1451
+ Rack::Handler::WEBrick is invoked.
1452
+ Started GET "/assets/support/bind-poly.js?body=1" for 127.0.0.1 at 2014-09-19 15:12:29 +0000
1453
+ Started GET "/assets/routesjs-rails.js?body=1" for 127.0.0.1 at 2014-09-19 15:12:29 +0000
1454
+ Rack::Handler::WEBrick is invoked.
1455
+ Started GET "/assets/routesjs-rails_spec.js?body=1" for 127.0.0.1 at 2014-09-19 15:12:29 +0000
1456
+ close: 127.0.0.1:53834
1457
+ close: 127.0.0.1:53831
1458
+ close: 127.0.0.1:53833
1459
+ close: 127.0.0.1:53830
1460
+ close: 127.0.0.1:53832
1461
+ close: 127.0.0.1:53835
1462
+ going to shutdown ...
1463
+ WEBrick::HTTPServer#start done.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routesjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Muto