routesjs-rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +54 -21
- data/lib/assets/javascripts/routesjs-rails.js.erb +119 -0
- data/lib/generators/routes_js/install/install_generator.rb +14 -0
- data/lib/generators/routes_js/install/templates/routesjs_rails.rb +11 -0
- data/lib/routesjs/rails/version.rb +1 -1
- data/lib/routesjs/routes.rb +52 -7
- data/lib/routesjs/routing/route.rb +7 -11
- data/test/dummy/config/environments/test.rb +2 -0
- data/test/dummy/log/development.log +141 -6727
- data/test/dummy/log/test.log +679 -3245
- data/test/dummy/tmp/cache/assets/development/sprockets/05692f6df8d9c8a21cddee78b033d6a1 +0 -0
- data/test/dummy/tmp/cache/assets/{test/sprockets/a70550f1a2c27e11c3188a48c01170f3 → development/sprockets/13425b8c69f361b34a2adb1bf8218606} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2c09aee0a645a825addf0f5616ee6b16 +0 -0
- data/test/dummy/tmp/cache/assets/{test/sprockets/e98bc73f3afc0368fc3c110e3305bb6e → development/sprockets/2e503f9bf3200337d8622d2c5deb5a88} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{4f69580262ad653bc0809da19ad82711 → 356002e67afbbd3de37a35e399a5f01f} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3d0ef99233f99b77c4a86a9beeb627b1 +0 -0
- data/test/dummy/tmp/cache/assets/{test/sprockets/dca3f6a70d551aa519687c2fccd97176 → development/sprockets/468f4cff2f2cafed8daf0e65cc7de9ca} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{e2e6a86be7c636f28c9b0311d987720a → 503bcec7d5643647543187be417fad1e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{38f92cfa1698a8913703ad40c946b0a5 → 529ec2f921e6340e883d35bc1fe32596} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/620c1f6a7e2e7a5a9033008890f9cdcd +0 -0
- data/test/dummy/tmp/cache/assets/{test/sprockets/e45a5d1eb39ff43af7c681e2a271a726 → development/sprockets/7057f85cf8569c553562956f3f0cc9ee} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b4d2666fe8fd2e3e2ceb3d639a9801f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{6b41edb1d59348fc5f5a9be9e0070ba3 → a27c72844d398ed583407f8b3d22eaa4} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b0ae7e78830bad5b8a5881732e1e6e8c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ca833e36536d94432cd33017b1b8603a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d014f120eef471d1eae882ab0ed347cd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/{test/sprockets/6a2ef5706e101143d91085f790648f13 → development/sprockets/f4c9f6576c681a0acb0f032503f4e9fd} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ffeecb8748b1733f3cff82f66a2a7deb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/3d0ef99233f99b77c4a86a9beeb627b1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/620c1f6a7e2e7a5a9033008890f9cdcd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ffeecb8748b1733f3cff82f66a2a7deb +0 -0
- data/test/generators/routes_js/install_generator_test.rb +20 -0
- data/test/generators/tmp/config/initializers/routesjs_rails.rb +11 -0
- data/test/javascripts/routesjs-rails_spec.js +86 -22
- data/test/routesjs/routes_test.rb +50 -8
- data/test/routesjs/routing/route_test.rb +14 -27
- data/test/test_helper.rb +15 -3
- metadata +86 -190
- data/test/dummy/tmp/cache/assets/development/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1015a631e7a66a0b078c820da841a4dc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1ef842e27a58c8d5c6c766a808769124 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2df1d6547949be98cd48ede842b34de8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3e71ddc988273b8745f0699a893f6fae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/57f13cf7825213c3b1df69a76df722a9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58c347f7e5c0045579ef085f41ae6d56 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5c5fe53e623b63ead476521957eb59ad +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69b7946c418b75e7ba78f9fc73d3e9b9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6a2ef5706e101143d91085f790648f13 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7515bb9ad36eda8e3aac73de7b584b3c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7840a99f97a3c7111c6dd22a4c17ae1a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7cfb78f56f62208e304eaee5a4687ff5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7ef98e1f987a1d927316b649e3b8f790 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8e3d112db39b8bcf2303854a25c999b9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9487c761e1ddfe7509f566400379f444 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/96832d64502eeedb77b21df1afce651e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a1decc358031a7672d2d3545b45c8f15 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a70550f1a2c27e11c3188a48c01170f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ae24e9c0cdbfb9ec06caa64916150789 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bc3e7b57c45ee11b581d32cb285f3ded +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bc499c125dd2de53421b8a948c8777ee +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bf36f67f2b6fbdcfe8d00c090481e768 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c09b0ea3f4c777394e24f505d23d6324 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cb0accde733d1c9c2a0b096cb0f3c3f2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cce1f28f0d1f5c2817e6eaf392bac615 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dca3f6a70d551aa519687c2fccd97176 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e280b920f9f8a02070c974eba18074c1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e45a5d1eb39ff43af7c681e2a271a726 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e98bc73f3afc0368fc3c110e3305bb6e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ebfb2f47de67d2be33a5117afe306e80 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f72501aca20f34d765720253853e6105 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fbe3b083eab395ea58275e685320100c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1015a631e7a66a0b078c820da841a4dc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1597598c873fec75c50410326d52dab7 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1ef842e27a58c8d5c6c766a808769124 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2df1d6547949be98cd48ede842b34de8 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/38f92cfa1698a8913703ad40c946b0a5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/4f69580262ad653bc0809da19ad82711 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/57f13cf7825213c3b1df69a76df722a9 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/58c347f7e5c0045579ef085f41ae6d56 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5bdd912f192e505000c28dea42844491 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5c5fe53e623b63ead476521957eb59ad +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7515bb9ad36eda8e3aac73de7b584b3c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/7cfb78f56f62208e304eaee5a4687ff5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9487c761e1ddfe7509f566400379f444 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ae24e9c0cdbfb9ec06caa64916150789 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b5bfff8e2b7ddf0764244738df18fe7d +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bc499c125dd2de53421b8a948c8777ee +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bf36f67f2b6fbdcfe8d00c090481e768 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cea726b2a0ada8d0bf1754030bb4ded3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e280b920f9f8a02070c974eba18074c1 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e2e6a86be7c636f28c9b0311d987720a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e4ea4e96ddd14ee81c3c72883cb23bd2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/eb41926965866a0bfed229b4a3ce9259 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ebfb2f47de67d2be33a5117afe306e80 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/fbe3b083eab395ea58275e685320100c +0 -0
- data/test/generators/tmp/app/assets/javascripts/routesjs.js +0 -75
- data/vendor/assets/javascripts/routesjs-rails.js.erb +0 -74
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
require "generators/routes_js/install/install_generator"
|
3
|
+
|
4
|
+
module Generators
|
5
|
+
module RoutesJs
|
6
|
+
class InstallGeneratorTest < Rails::Generators::TestCase
|
7
|
+
tests ::RoutesJs::Generators::InstallGenerator
|
8
|
+
destination File.expand_path("../tmp", File.dirname(__FILE__))
|
9
|
+
|
10
|
+
setup do
|
11
|
+
prepare_destination
|
12
|
+
end
|
13
|
+
|
14
|
+
test "generates the initializer" do
|
15
|
+
run_generator
|
16
|
+
assert_file "config/initializers/routesjs_rails.rb"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Options (all default to nil)
|
2
|
+
# default_format: Used to set a default format for all routes
|
3
|
+
# only: An array of route names to be included (all others are excluded)
|
4
|
+
# except: An array of routes to be excluded (all other routes are included)
|
5
|
+
|
6
|
+
# EXAMPLES
|
7
|
+
# RoutesJS::Routes.init(default_format: :json)
|
8
|
+
# RoutesJS::Routes.init(only: [:root, :new_user])
|
9
|
+
# RoutesJS::Routes.init(except: [:root, :some_route])
|
10
|
+
|
11
|
+
RoutesJS::Routes.init
|
@@ -1,39 +1,47 @@
|
|
1
1
|
describe("Routes", function() {
|
2
2
|
beforeEach(function() {
|
3
|
+
jasmine.Matchers.prototype.toRouteTo = function(expected) {
|
4
|
+
return this.actual === expected;
|
5
|
+
};
|
6
|
+
|
3
7
|
Routes.setBaseUrl("//example.com/");
|
4
8
|
});
|
5
9
|
|
6
10
|
describe("simple path and url generation", function() {
|
7
11
|
beforeEach(function() {
|
8
12
|
Routes.initRoutes({
|
9
|
-
"
|
10
|
-
|
11
|
-
|
13
|
+
"routes": {
|
14
|
+
"google": "https://www.google.com/",
|
15
|
+
"oauthToken": "/oauth/token",
|
16
|
+
"adminRoot": "/admin"
|
17
|
+
}
|
12
18
|
});
|
13
19
|
});
|
14
20
|
|
15
21
|
it("makes a path function for each route", function() {
|
16
|
-
expect(Routes.oauthTokenPath()).
|
17
|
-
expect(Routes.adminRootPath()).
|
22
|
+
expect(Routes.oauthTokenPath()).toRouteTo("/oauth/token");
|
23
|
+
expect(Routes.adminRootPath()).toRouteTo("/admin");
|
18
24
|
});
|
19
25
|
|
20
26
|
it("makes a url function for each route", function() {
|
21
|
-
expect(Routes.oauthTokenUrl()).
|
22
|
-
expect(Routes.adminRootUrl()).
|
27
|
+
expect(Routes.oauthTokenUrl()).toRouteTo("//example.com/oauth/token");
|
28
|
+
expect(Routes.adminRootUrl()).toRouteTo("//example.com/admin");
|
23
29
|
});
|
24
30
|
|
25
31
|
it("returns the raw route for both path and url when absolute", function() {
|
26
|
-
expect(Routes.googlePath()).
|
27
|
-
expect(Routes.googleUrl()).
|
32
|
+
expect(Routes.googlePath()).toRouteTo("https://www.google.com/");
|
33
|
+
expect(Routes.googleUrl()).toRouteTo("https://www.google.com/");
|
28
34
|
});
|
29
35
|
});
|
30
36
|
|
31
37
|
describe("token replacement with object", function() {
|
32
38
|
beforeEach(function() {
|
33
39
|
Routes.initRoutes({
|
34
|
-
"
|
35
|
-
|
36
|
-
|
40
|
+
"routes": {
|
41
|
+
"user": "/users/:id",
|
42
|
+
"userRoles": "/users/:id/roles",
|
43
|
+
"userRole": "/users/:id/roles/:role_id"
|
44
|
+
}
|
37
45
|
});
|
38
46
|
});
|
39
47
|
|
@@ -43,32 +51,88 @@ describe("Routes", function() {
|
|
43
51
|
role_id: 2
|
44
52
|
};
|
45
53
|
|
46
|
-
expect(Routes.userPath(user)).
|
47
|
-
expect(Routes.userRolesPath(user)).
|
48
|
-
expect(Routes.userRoleUrl(user)).
|
54
|
+
expect(Routes.userPath(user)).toRouteTo("/users/1");
|
55
|
+
expect(Routes.userRolesPath(user)).toRouteTo("/users/1/roles");
|
56
|
+
expect(Routes.userRoleUrl(user)).toRouteTo("//example.com/users/1/roles/2");
|
49
57
|
});
|
50
58
|
});
|
51
59
|
|
52
60
|
describe("token replacement with arguments", function() {
|
53
61
|
beforeEach(function() {
|
54
62
|
Routes.initRoutes({
|
55
|
-
"
|
56
|
-
|
57
|
-
|
63
|
+
"routes": {
|
64
|
+
"root": "/",
|
65
|
+
"user": "/users/:id",
|
66
|
+
"userRole": "/users/:id/roles/:role_id"
|
67
|
+
}
|
58
68
|
});
|
59
69
|
});
|
60
70
|
|
61
71
|
it("replaces tokens with ordered arguments", function() {
|
62
|
-
expect(Routes.userPath(1)).
|
63
|
-
expect(Routes.userRoleUrl(1, "admin")).
|
72
|
+
expect(Routes.userPath(1)).toRouteTo("/users/1");
|
73
|
+
expect(Routes.userRoleUrl(1, "admin")).toRouteTo("//example.com/users/1/roles/admin");
|
64
74
|
});
|
65
75
|
|
66
76
|
it("ignores extra arguments", function() {
|
67
|
-
expect(Routes.userPath(1, "this", 2, "be", "ignored")).
|
77
|
+
expect(Routes.userPath(1, "this", 2, "be", "ignored")).toRouteTo("/users/1");
|
68
78
|
});
|
69
79
|
|
70
80
|
it("returns the unmodified route when no tokens are found", function() {
|
71
|
-
expect(Routes.rootPath(1, 2)).
|
81
|
+
expect(Routes.rootPath(1, 2)).toRouteTo("/");
|
82
|
+
});
|
83
|
+
});
|
84
|
+
|
85
|
+
describe("specifying formats on a route by route basis", function() {
|
86
|
+
beforeEach(function() {
|
87
|
+
Routes.initRoutes({
|
88
|
+
"routes": {
|
89
|
+
"login": "/login",
|
90
|
+
"user": "/users/:id",
|
91
|
+
"userRole": "/users/:id/roles/:role_id"
|
92
|
+
}
|
93
|
+
});
|
94
|
+
});
|
95
|
+
|
96
|
+
it("uses the format property when specified", function() {
|
97
|
+
expect(Routes.loginPath({ format: "html" })).toRouteTo("/login.html");
|
98
|
+
expect(Routes.userPath({ id: 1, format: "json" })).toRouteTo("/users/1.json");
|
99
|
+
expect(Routes.userRolePath({ id: 1, role_id: 2, format: "json" })).toRouteTo("/users/1/roles/2.json");
|
100
|
+
});
|
101
|
+
|
102
|
+
it("overrides the format when modifier method is called", function() {
|
103
|
+
expect(Routes.loginPath({ format: "html" }).json()).toRouteTo("/login.json");
|
104
|
+
expect(Routes.userPath({ id: 1, format: "json" }).html()).toRouteTo("/users/1.html");
|
105
|
+
expect(Routes.userRolePath({ id: 1, role_id: 2, format: "json" }).html()).toRouteTo("/users/1/roles/2.html");
|
106
|
+
});
|
107
|
+
});
|
108
|
+
|
109
|
+
describe("specifying default format", function() {
|
110
|
+
beforeEach(function() {
|
111
|
+
Routes.initRoutes({
|
112
|
+
"routes": {
|
113
|
+
"login": "/login",
|
114
|
+
"user": "/users/:id",
|
115
|
+
"userRole": "/users/:id/roles/:role_id"
|
116
|
+
},
|
117
|
+
"format": "json"
|
118
|
+
});
|
119
|
+
});
|
120
|
+
|
121
|
+
it("applies the default format to routes", function() {
|
122
|
+
expect(Routes.loginPath()).toRouteTo("/login.json");
|
123
|
+
expect(Routes.userPath(1)).toRouteTo("/users/1.json");
|
124
|
+
expect(Routes.userRolePath(1, 2)).toRouteTo("/users/1/roles/2.json");
|
125
|
+
});
|
126
|
+
|
127
|
+
it("allows overriding the default format", function() {
|
128
|
+
expect(Routes.loginPath({ format: "html" })).toRouteTo("/login.html");
|
129
|
+
expect(Routes.userPath({ format: "html", id: 1 })).toRouteTo("/users/1.html");
|
130
|
+
expect(Routes.userRolePath({ format: "html", id: 1, role_id: 2 })).toRouteTo("/users/1/roles/2.html");
|
131
|
+
});
|
132
|
+
|
133
|
+
it("respects format modifiers", function() {
|
134
|
+
expect(Routes.userPath({ id: 1, format: "html" }).xml()).toRouteTo("/users/1.xml");
|
135
|
+
expect(Routes.userPath(1).none()).toRouteTo("/users/1");
|
72
136
|
});
|
73
137
|
});
|
74
138
|
});
|
@@ -1,17 +1,59 @@
|
|
1
1
|
require "test_helper"
|
2
2
|
|
3
|
-
class RoutesJS::RoutesTest <
|
4
|
-
include ActionDispatch::Assertions::RoutingAssertions
|
3
|
+
class RoutesJS::RoutesTest < RoutingTest
|
5
4
|
|
6
|
-
test "routes are rendered as
|
7
|
-
|
5
|
+
test "routes are rendered as part of json object" do
|
6
|
+
assert config.has_key?("routes")
|
7
|
+
end
|
8
|
+
|
9
|
+
test "when not specified, default format is not part of the json object" do
|
10
|
+
refute config.has_key?("format")
|
11
|
+
end
|
12
|
+
|
13
|
+
test "when specified, default format is part of the json object" do
|
14
|
+
RoutesJS::Routes.init(default_format: :json)
|
15
|
+
assert config.has_key?("format")
|
16
|
+
end
|
17
|
+
|
18
|
+
test "non-named routes are not included" do
|
19
|
+
refute_includes config["routes"].values, "/path"
|
20
|
+
end
|
21
|
+
|
22
|
+
test "support for only filter" do
|
23
|
+
RoutesJS::Routes.init(only: :root)
|
24
|
+
assert_equal 1, config["routes"].size
|
25
|
+
assert_equal "root", config["routes"].keys.first
|
26
|
+
end
|
27
|
+
|
28
|
+
test "support for except filter" do
|
29
|
+
RoutesJS::Routes.init(except: [:root, :google])
|
30
|
+
refute_includes config["routes"].keys, "root"
|
31
|
+
assert_includes config["routes"].keys, "newIncludedUser"
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
def config
|
37
|
+
@config ||= RoutesJS::Routes.as_json(routes)
|
38
|
+
end
|
39
|
+
|
40
|
+
def routes
|
41
|
+
@routes ||= with_routing do |set|
|
8
42
|
set.draw do
|
9
|
-
|
10
|
-
|
43
|
+
root "dashboard#index"
|
44
|
+
get "/path", to: redirect("/") # won't be named
|
45
|
+
get "/google", to: redirect("https://www.google.com/"), as: :google
|
11
46
|
|
12
|
-
|
13
|
-
|
47
|
+
namespace :included do
|
48
|
+
resources :users
|
49
|
+
end
|
50
|
+
|
51
|
+
namespace :excluded do
|
52
|
+
resources :admins
|
53
|
+
end
|
14
54
|
end
|
55
|
+
|
56
|
+
set.named_routes.routes
|
15
57
|
end
|
16
58
|
end
|
17
59
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require "test_helper"
|
2
2
|
|
3
|
-
class RoutesJS::Routing::RouteTest <
|
4
|
-
include ActionDispatch::Assertions::RoutingAssertions
|
3
|
+
class RoutesJS::Routing::RouteTest < RoutingTest
|
5
4
|
|
6
5
|
test "hand crafted URLs are left untouched" do
|
7
6
|
assert_equal "/admin", routes["admin"]
|
@@ -27,36 +26,24 @@ class RoutesJS::Routing::RouteTest < ActiveSupport::TestCase
|
|
27
26
|
assert_equal "/api", routes["apiRoot"]
|
28
27
|
end
|
29
28
|
|
30
|
-
test "routes that start with /rails are excluded" do
|
31
|
-
routes.each do |key, value|
|
32
|
-
refute key =~ /\Arails/
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
29
|
private
|
37
30
|
|
38
31
|
def routes
|
39
|
-
@routes ||=
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
get "/
|
49
|
-
|
50
|
-
|
51
|
-
namespace :api do
|
52
|
-
root to: "api#index"
|
53
|
-
get "/redir", to: redirect("/"), as: :redir
|
54
|
-
resources :users, only: [:index, :show]
|
55
|
-
end
|
32
|
+
@routes ||= with_routing do |set|
|
33
|
+
set.draw do
|
34
|
+
root to: "home#index"
|
35
|
+
get "/admin", to: "home#index", as: :admin
|
36
|
+
get "/google", to: redirect("https://www.google.com/"), as: :google
|
37
|
+
get "/rails/props", to: "home#index", as: :rails_props
|
38
|
+
|
39
|
+
namespace :api do
|
40
|
+
root to: "api#index"
|
41
|
+
get "/redir", to: redirect("/"), as: :redir
|
42
|
+
resources :users, only: [:index, :show]
|
56
43
|
end
|
57
|
-
|
58
|
-
set.routes
|
59
44
|
end
|
45
|
+
|
46
|
+
RoutesJS::Routes.as_json(set.named_routes.routes)["routes"]
|
60
47
|
end
|
61
48
|
end
|
62
49
|
end
|
data/test/test_helper.rb
CHANGED
@@ -3,12 +3,24 @@ ENV["RAILS_ENV"] = "test"
|
|
3
3
|
require "codeclimate-test-reporter"
|
4
4
|
CodeClimate::TestReporter.start
|
5
5
|
|
6
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
7
|
-
require "rails/test_help"
|
8
|
-
|
9
6
|
begin
|
10
7
|
require "pry"
|
11
8
|
rescue LoadError
|
12
9
|
end
|
13
10
|
|
11
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
12
|
+
require "rails/test_help"
|
13
|
+
|
14
14
|
Rails.backtrace_cleaner.remove_silencers!
|
15
|
+
|
16
|
+
class RoutingTest < ActiveSupport::TestCase
|
17
|
+
include ActionDispatch::Assertions::RoutingAssertions
|
18
|
+
|
19
|
+
setup :init_routesjs
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def init_routesjs
|
24
|
+
RoutesJS::Routes.init
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routesjs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Muto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -40,6 +40,9 @@ files:
|
|
40
40
|
- LICENSE
|
41
41
|
- README.md
|
42
42
|
- Rakefile
|
43
|
+
- lib/assets/javascripts/routesjs-rails.js.erb
|
44
|
+
- lib/generators/routes_js/install/install_generator.rb
|
45
|
+
- lib/generators/routes_js/install/templates/routesjs_rails.rb
|
43
46
|
- lib/generators/routes_js/module/module_generator.rb
|
44
47
|
- lib/routesjs-rails.rb
|
45
48
|
- lib/routesjs/rails.rb
|
@@ -84,95 +87,41 @@ files:
|
|
84
87
|
- test/dummy/public/500.html
|
85
88
|
- test/dummy/public/favicon.ico
|
86
89
|
- test/dummy/spec/teaspoon_env.rb
|
87
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
88
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
90
|
+
- test/dummy/tmp/cache/assets/development/sprockets/05692f6df8d9c8a21cddee78b033d6a1
|
91
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13425b8c69f361b34a2adb1bf8218606
|
89
92
|
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
90
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
91
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
93
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2c09aee0a645a825addf0f5616ee6b16
|
94
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2e503f9bf3200337d8622d2c5deb5a88
|
92
95
|
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
96
|
+
- test/dummy/tmp/cache/assets/development/sprockets/356002e67afbbd3de37a35e399a5f01f
|
93
97
|
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
94
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
95
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
96
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
97
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
98
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
99
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
100
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
101
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
102
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
103
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
104
|
-
- test/dummy/tmp/cache/assets/development/sprockets/7840a99f97a3c7111c6dd22a4c17ae1a
|
105
|
-
- test/dummy/tmp/cache/assets/development/sprockets/7cfb78f56f62208e304eaee5a4687ff5
|
106
|
-
- test/dummy/tmp/cache/assets/development/sprockets/7ef98e1f987a1d927316b649e3b8f790
|
107
|
-
- test/dummy/tmp/cache/assets/development/sprockets/8e3d112db39b8bcf2303854a25c999b9
|
108
|
-
- test/dummy/tmp/cache/assets/development/sprockets/9487c761e1ddfe7509f566400379f444
|
109
|
-
- test/dummy/tmp/cache/assets/development/sprockets/96832d64502eeedb77b21df1afce651e
|
110
|
-
- test/dummy/tmp/cache/assets/development/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44
|
111
|
-
- test/dummy/tmp/cache/assets/development/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88
|
112
|
-
- test/dummy/tmp/cache/assets/development/sprockets/a1decc358031a7672d2d3545b45c8f15
|
113
|
-
- test/dummy/tmp/cache/assets/development/sprockets/a70550f1a2c27e11c3188a48c01170f3
|
114
|
-
- test/dummy/tmp/cache/assets/development/sprockets/ae24e9c0cdbfb9ec06caa64916150789
|
115
|
-
- test/dummy/tmp/cache/assets/development/sprockets/bc3e7b57c45ee11b581d32cb285f3ded
|
116
|
-
- test/dummy/tmp/cache/assets/development/sprockets/bc499c125dd2de53421b8a948c8777ee
|
117
|
-
- test/dummy/tmp/cache/assets/development/sprockets/bf36f67f2b6fbdcfe8d00c090481e768
|
118
|
-
- test/dummy/tmp/cache/assets/development/sprockets/c09b0ea3f4c777394e24f505d23d6324
|
119
|
-
- test/dummy/tmp/cache/assets/development/sprockets/cb0accde733d1c9c2a0b096cb0f3c3f2
|
120
|
-
- test/dummy/tmp/cache/assets/development/sprockets/cce1f28f0d1f5c2817e6eaf392bac615
|
98
|
+
- test/dummy/tmp/cache/assets/development/sprockets/3d0ef99233f99b77c4a86a9beeb627b1
|
99
|
+
- test/dummy/tmp/cache/assets/development/sprockets/468f4cff2f2cafed8daf0e65cc7de9ca
|
100
|
+
- test/dummy/tmp/cache/assets/development/sprockets/503bcec7d5643647543187be417fad1e
|
101
|
+
- test/dummy/tmp/cache/assets/development/sprockets/529ec2f921e6340e883d35bc1fe32596
|
102
|
+
- test/dummy/tmp/cache/assets/development/sprockets/620c1f6a7e2e7a5a9033008890f9cdcd
|
103
|
+
- test/dummy/tmp/cache/assets/development/sprockets/7057f85cf8569c553562956f3f0cc9ee
|
104
|
+
- test/dummy/tmp/cache/assets/development/sprockets/7b4d2666fe8fd2e3e2ceb3d639a9801f
|
105
|
+
- test/dummy/tmp/cache/assets/development/sprockets/a27c72844d398ed583407f8b3d22eaa4
|
106
|
+
- test/dummy/tmp/cache/assets/development/sprockets/b0ae7e78830bad5b8a5881732e1e6e8c
|
107
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ca833e36536d94432cd33017b1b8603a
|
121
108
|
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
109
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d014f120eef471d1eae882ab0ed347cd
|
122
110
|
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
123
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
124
|
-
- test/dummy/tmp/cache/assets/development/sprockets/e280b920f9f8a02070c974eba18074c1
|
125
|
-
- test/dummy/tmp/cache/assets/development/sprockets/e2e6a86be7c636f28c9b0311d987720a
|
126
|
-
- test/dummy/tmp/cache/assets/development/sprockets/e45a5d1eb39ff43af7c681e2a271a726
|
127
|
-
- test/dummy/tmp/cache/assets/development/sprockets/e98bc73f3afc0368fc3c110e3305bb6e
|
128
|
-
- test/dummy/tmp/cache/assets/development/sprockets/ebfb2f47de67d2be33a5117afe306e80
|
129
|
-
- test/dummy/tmp/cache/assets/development/sprockets/f72501aca20f34d765720253853e6105
|
111
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f4c9f6576c681a0acb0f032503f4e9fd
|
130
112
|
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
131
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
132
|
-
- test/dummy/tmp/cache/assets/test/sprockets/
|
133
|
-
- test/dummy/tmp/cache/assets/test/sprockets/
|
134
|
-
- test/dummy/tmp/cache/assets/test/sprockets/
|
135
|
-
- test/
|
136
|
-
- test/dummy/tmp/cache/assets/test/sprockets/2df1d6547949be98cd48ede842b34de8
|
137
|
-
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
138
|
-
- test/dummy/tmp/cache/assets/test/sprockets/38f92cfa1698a8913703ad40c946b0a5
|
139
|
-
- test/dummy/tmp/cache/assets/test/sprockets/4f69580262ad653bc0809da19ad82711
|
140
|
-
- test/dummy/tmp/cache/assets/test/sprockets/57f13cf7825213c3b1df69a76df722a9
|
141
|
-
- test/dummy/tmp/cache/assets/test/sprockets/58c347f7e5c0045579ef085f41ae6d56
|
142
|
-
- test/dummy/tmp/cache/assets/test/sprockets/5bdd912f192e505000c28dea42844491
|
143
|
-
- test/dummy/tmp/cache/assets/test/sprockets/5c5fe53e623b63ead476521957eb59ad
|
144
|
-
- test/dummy/tmp/cache/assets/test/sprockets/6a2ef5706e101143d91085f790648f13
|
145
|
-
- test/dummy/tmp/cache/assets/test/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3
|
146
|
-
- test/dummy/tmp/cache/assets/test/sprockets/7515bb9ad36eda8e3aac73de7b584b3c
|
147
|
-
- test/dummy/tmp/cache/assets/test/sprockets/7cfb78f56f62208e304eaee5a4687ff5
|
148
|
-
- test/dummy/tmp/cache/assets/test/sprockets/9487c761e1ddfe7509f566400379f444
|
149
|
-
- test/dummy/tmp/cache/assets/test/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44
|
150
|
-
- test/dummy/tmp/cache/assets/test/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88
|
151
|
-
- test/dummy/tmp/cache/assets/test/sprockets/a70550f1a2c27e11c3188a48c01170f3
|
152
|
-
- test/dummy/tmp/cache/assets/test/sprockets/ae24e9c0cdbfb9ec06caa64916150789
|
153
|
-
- test/dummy/tmp/cache/assets/test/sprockets/b5bfff8e2b7ddf0764244738df18fe7d
|
154
|
-
- test/dummy/tmp/cache/assets/test/sprockets/bc499c125dd2de53421b8a948c8777ee
|
155
|
-
- test/dummy/tmp/cache/assets/test/sprockets/bf36f67f2b6fbdcfe8d00c090481e768
|
156
|
-
- test/dummy/tmp/cache/assets/test/sprockets/cea726b2a0ada8d0bf1754030bb4ded3
|
157
|
-
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
158
|
-
- test/dummy/tmp/cache/assets/test/sprockets/dca3f6a70d551aa519687c2fccd97176
|
159
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e280b920f9f8a02070c974eba18074c1
|
160
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e2e6a86be7c636f28c9b0311d987720a
|
161
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e45a5d1eb39ff43af7c681e2a271a726
|
162
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e4ea4e96ddd14ee81c3c72883cb23bd2
|
163
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e98bc73f3afc0368fc3c110e3305bb6e
|
164
|
-
- test/dummy/tmp/cache/assets/test/sprockets/eb41926965866a0bfed229b4a3ce9259
|
165
|
-
- test/dummy/tmp/cache/assets/test/sprockets/ebfb2f47de67d2be33a5117afe306e80
|
166
|
-
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
167
|
-
- test/dummy/tmp/cache/assets/test/sprockets/fbe3b083eab395ea58275e685320100c
|
113
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ffeecb8748b1733f3cff82f66a2a7deb
|
114
|
+
- test/dummy/tmp/cache/assets/test/sprockets/3d0ef99233f99b77c4a86a9beeb627b1
|
115
|
+
- test/dummy/tmp/cache/assets/test/sprockets/620c1f6a7e2e7a5a9033008890f9cdcd
|
116
|
+
- test/dummy/tmp/cache/assets/test/sprockets/ffeecb8748b1733f3cff82f66a2a7deb
|
117
|
+
- test/generators/routes_js/install_generator_test.rb
|
168
118
|
- test/generators/routes_js/module_generator_test.rb
|
169
|
-
- test/generators/tmp/
|
119
|
+
- test/generators/tmp/config/initializers/routesjs_rails.rb
|
170
120
|
- test/javascripts/routesjs-rails_spec.js
|
171
121
|
- test/javascripts/spec_helper.js
|
172
122
|
- test/routesjs/routes_test.rb
|
173
123
|
- test/routesjs/routing/route_test.rb
|
174
124
|
- test/test_helper.rb
|
175
|
-
- vendor/assets/javascripts/routesjs-rails.js.erb
|
176
125
|
homepage: https://github.com/pseudomuto/routesjs-rails
|
177
126
|
licenses:
|
178
127
|
- MIT
|
@@ -199,127 +148,74 @@ specification_version: 4
|
|
199
148
|
summary: Make named rails routes available in JS
|
200
149
|
test_files:
|
201
150
|
- test/test_helper.rb
|
202
|
-
- test/
|
203
|
-
- test/
|
204
|
-
- test/
|
151
|
+
- test/generators/routes_js/install_generator_test.rb
|
152
|
+
- test/generators/routes_js/module_generator_test.rb
|
153
|
+
- test/generators/tmp/config/initializers/routesjs_rails.rb
|
154
|
+
- test/javascripts/spec_helper.js
|
155
|
+
- test/javascripts/routesjs-rails_spec.js
|
156
|
+
- test/routesjs/routing/route_test.rb
|
157
|
+
- test/routesjs/routes_test.rb
|
158
|
+
- test/dummy/spec/teaspoon_env.rb
|
205
159
|
- test/dummy/README.rdoc
|
206
|
-
- test/dummy/log/development.log
|
207
|
-
- test/dummy/log/test.log
|
208
|
-
- test/dummy/app/assets/stylesheets/application.css
|
209
|
-
- test/dummy/app/assets/javascripts/application.js
|
210
|
-
- test/dummy/app/controllers/home_controller.rb
|
211
|
-
- test/dummy/app/controllers/application_controller.rb
|
212
|
-
- test/dummy/app/views/home/index.html.erb
|
213
|
-
- test/dummy/app/views/layouts/application.html.erb
|
214
|
-
- test/dummy/app/helpers/application_helper.rb
|
215
160
|
- test/dummy/config.ru
|
161
|
+
- test/dummy/Rakefile
|
162
|
+
- test/dummy/public/favicon.ico
|
163
|
+
- test/dummy/public/404.html
|
164
|
+
- test/dummy/public/422.html
|
165
|
+
- test/dummy/public/500.html
|
166
|
+
- test/dummy/config/secrets.yml
|
167
|
+
- test/dummy/config/routes.rb
|
168
|
+
- test/dummy/config/locales/en.yml
|
169
|
+
- test/dummy/config/environments/test.rb
|
170
|
+
- test/dummy/config/environments/production.rb
|
171
|
+
- test/dummy/config/environments/development.rb
|
216
172
|
- test/dummy/config/boot.rb
|
217
|
-
- test/dummy/config/application.rb
|
218
173
|
- test/dummy/config/initializers/mime_types.rb
|
219
174
|
- test/dummy/config/initializers/assets.rb
|
220
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
221
175
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
222
|
-
- test/dummy/config/initializers/
|
176
|
+
- test/dummy/config/initializers/session_store.rb
|
223
177
|
- test/dummy/config/initializers/inflections.rb
|
178
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
179
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
224
180
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
225
|
-
- test/dummy/config/initializers/session_store.rb
|
226
181
|
- test/dummy/config/environment.rb
|
227
|
-
- test/dummy/config/
|
228
|
-
- test/dummy/
|
229
|
-
- test/dummy/
|
230
|
-
- test/dummy/
|
231
|
-
- test/dummy/
|
232
|
-
- test/dummy/
|
233
|
-
- test/dummy/
|
234
|
-
- test/dummy/
|
235
|
-
- test/dummy/
|
236
|
-
- test/dummy/
|
237
|
-
- test/dummy/
|
238
|
-
- test/dummy/tmp/cache/assets/
|
239
|
-
- test/dummy/tmp/cache/assets/
|
240
|
-
- test/dummy/tmp/cache/assets/
|
241
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
242
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
243
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
244
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
245
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
246
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
247
|
-
- test/dummy/tmp/cache/assets/development/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3
|
248
|
-
- test/dummy/tmp/cache/assets/development/sprockets/a1decc358031a7672d2d3545b45c8f15
|
249
|
-
- test/dummy/tmp/cache/assets/development/sprockets/ae24e9c0cdbfb9ec06caa64916150789
|
250
|
-
- test/dummy/tmp/cache/assets/development/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1
|
251
|
-
- test/dummy/tmp/cache/assets/development/sprockets/bf36f67f2b6fbdcfe8d00c090481e768
|
252
|
-
- test/dummy/tmp/cache/assets/development/sprockets/7515bb9ad36eda8e3aac73de7b584b3c
|
182
|
+
- test/dummy/config/application.rb
|
183
|
+
- test/dummy/bin/bundle
|
184
|
+
- test/dummy/bin/rails
|
185
|
+
- test/dummy/bin/rake
|
186
|
+
- test/dummy/app/controllers/home_controller.rb
|
187
|
+
- test/dummy/app/controllers/application_controller.rb
|
188
|
+
- test/dummy/app/assets/stylesheets/application.css
|
189
|
+
- test/dummy/app/assets/javascripts/application.js
|
190
|
+
- test/dummy/app/helpers/application_helper.rb
|
191
|
+
- test/dummy/app/views/layouts/application.html.erb
|
192
|
+
- test/dummy/app/views/home/index.html.erb
|
193
|
+
- test/dummy/tmp/cache/assets/test/sprockets/620c1f6a7e2e7a5a9033008890f9cdcd
|
194
|
+
- test/dummy/tmp/cache/assets/test/sprockets/ffeecb8748b1733f3cff82f66a2a7deb
|
195
|
+
- test/dummy/tmp/cache/assets/test/sprockets/3d0ef99233f99b77c4a86a9beeb627b1
|
196
|
+
- test/dummy/tmp/cache/assets/development/sprockets/529ec2f921e6340e883d35bc1fe32596
|
197
|
+
- test/dummy/tmp/cache/assets/development/sprockets/7b4d2666fe8fd2e3e2ceb3d639a9801f
|
198
|
+
- test/dummy/tmp/cache/assets/development/sprockets/503bcec7d5643647543187be417fad1e
|
199
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13425b8c69f361b34a2adb1bf8218606
|
200
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
201
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d014f120eef471d1eae882ab0ed347cd
|
253
202
|
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
254
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
255
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
256
|
-
- test/dummy/tmp/cache/assets/development/sprockets/e280b920f9f8a02070c974eba18074c1
|
257
|
-
- test/dummy/tmp/cache/assets/development/sprockets/f72501aca20f34d765720253853e6105
|
258
|
-
- test/dummy/tmp/cache/assets/development/sprockets/96832d64502eeedb77b21df1afce651e
|
259
|
-
- test/dummy/tmp/cache/assets/development/sprockets/4f69580262ad653bc0809da19ad82711
|
260
|
-
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
261
|
-
- test/dummy/tmp/cache/assets/development/sprockets/bc499c125dd2de53421b8a948c8777ee
|
262
|
-
- test/dummy/tmp/cache/assets/development/sprockets/5c5fe53e623b63ead476521957eb59ad
|
263
|
-
- test/dummy/tmp/cache/assets/development/sprockets/a70550f1a2c27e11c3188a48c01170f3
|
264
|
-
- test/dummy/tmp/cache/assets/development/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88
|
265
|
-
- test/dummy/tmp/cache/assets/development/sprockets/8e3d112db39b8bcf2303854a25c999b9
|
266
|
-
- test/dummy/tmp/cache/assets/development/sprockets/6a2ef5706e101143d91085f790648f13
|
203
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ca833e36536d94432cd33017b1b8603a
|
204
|
+
- test/dummy/tmp/cache/assets/development/sprockets/05692f6df8d9c8a21cddee78b033d6a1
|
267
205
|
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
268
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
269
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
270
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
271
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
206
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f4c9f6576c681a0acb0f032503f4e9fd
|
207
|
+
- test/dummy/tmp/cache/assets/development/sprockets/356002e67afbbd3de37a35e399a5f01f
|
208
|
+
- test/dummy/tmp/cache/assets/development/sprockets/a27c72844d398ed583407f8b3d22eaa4
|
209
|
+
- test/dummy/tmp/cache/assets/development/sprockets/620c1f6a7e2e7a5a9033008890f9cdcd
|
210
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
211
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2e503f9bf3200337d8622d2c5deb5a88
|
212
|
+
- test/dummy/tmp/cache/assets/development/sprockets/468f4cff2f2cafed8daf0e65cc7de9ca
|
272
213
|
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
273
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
274
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
275
|
-
- test/dummy/tmp/cache/assets/development/sprockets/
|
214
|
+
- test/dummy/tmp/cache/assets/development/sprockets/7057f85cf8569c553562956f3f0cc9ee
|
215
|
+
- test/dummy/tmp/cache/assets/development/sprockets/ffeecb8748b1733f3cff82f66a2a7deb
|
216
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2c09aee0a645a825addf0f5616ee6b16
|
217
|
+
- test/dummy/tmp/cache/assets/development/sprockets/3d0ef99233f99b77c4a86a9beeb627b1
|
218
|
+
- test/dummy/tmp/cache/assets/development/sprockets/b0ae7e78830bad5b8a5881732e1e6e8c
|
276
219
|
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
277
|
-
- test/dummy/
|
278
|
-
- test/dummy/
|
279
|
-
- test/dummy/tmp/cache/assets/test/sprockets/1597598c873fec75c50410326d52dab7
|
280
|
-
- test/dummy/tmp/cache/assets/test/sprockets/58c347f7e5c0045579ef085f41ae6d56
|
281
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e98bc73f3afc0368fc3c110e3305bb6e
|
282
|
-
- test/dummy/tmp/cache/assets/test/sprockets/cea726b2a0ada8d0bf1754030bb4ded3
|
283
|
-
- test/dummy/tmp/cache/assets/test/sprockets/fbe3b083eab395ea58275e685320100c
|
284
|
-
- test/dummy/tmp/cache/assets/test/sprockets/dca3f6a70d551aa519687c2fccd97176
|
285
|
-
- test/dummy/tmp/cache/assets/test/sprockets/2df1d6547949be98cd48ede842b34de8
|
286
|
-
- test/dummy/tmp/cache/assets/test/sprockets/57f13cf7825213c3b1df69a76df722a9
|
287
|
-
- test/dummy/tmp/cache/assets/test/sprockets/5bdd912f192e505000c28dea42844491
|
288
|
-
- test/dummy/tmp/cache/assets/test/sprockets/ebfb2f47de67d2be33a5117afe306e80
|
289
|
-
- test/dummy/tmp/cache/assets/test/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44
|
290
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e4ea4e96ddd14ee81c3c72883cb23bd2
|
291
|
-
- test/dummy/tmp/cache/assets/test/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3
|
292
|
-
- test/dummy/tmp/cache/assets/test/sprockets/ae24e9c0cdbfb9ec06caa64916150789
|
293
|
-
- test/dummy/tmp/cache/assets/test/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1
|
294
|
-
- test/dummy/tmp/cache/assets/test/sprockets/bf36f67f2b6fbdcfe8d00c090481e768
|
295
|
-
- test/dummy/tmp/cache/assets/test/sprockets/b5bfff8e2b7ddf0764244738df18fe7d
|
296
|
-
- test/dummy/tmp/cache/assets/test/sprockets/7515bb9ad36eda8e3aac73de7b584b3c
|
297
|
-
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
298
|
-
- test/dummy/tmp/cache/assets/test/sprockets/38f92cfa1698a8913703ad40c946b0a5
|
299
|
-
- test/dummy/tmp/cache/assets/test/sprockets/7cfb78f56f62208e304eaee5a4687ff5
|
300
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e280b920f9f8a02070c974eba18074c1
|
301
|
-
- test/dummy/tmp/cache/assets/test/sprockets/eb41926965866a0bfed229b4a3ce9259
|
302
|
-
- test/dummy/tmp/cache/assets/test/sprockets/4f69580262ad653bc0809da19ad82711
|
303
|
-
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
304
|
-
- test/dummy/tmp/cache/assets/test/sprockets/bc499c125dd2de53421b8a948c8777ee
|
305
|
-
- test/dummy/tmp/cache/assets/test/sprockets/5c5fe53e623b63ead476521957eb59ad
|
306
|
-
- test/dummy/tmp/cache/assets/test/sprockets/a70550f1a2c27e11c3188a48c01170f3
|
307
|
-
- test/dummy/tmp/cache/assets/test/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88
|
308
|
-
- test/dummy/tmp/cache/assets/test/sprockets/6a2ef5706e101143d91085f790648f13
|
309
|
-
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
310
|
-
- test/dummy/tmp/cache/assets/test/sprockets/9487c761e1ddfe7509f566400379f444
|
311
|
-
- test/dummy/tmp/cache/assets/test/sprockets/1015a631e7a66a0b078c820da841a4dc
|
312
|
-
- test/dummy/tmp/cache/assets/test/sprockets/1ef842e27a58c8d5c6c766a808769124
|
313
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e2e6a86be7c636f28c9b0311d987720a
|
314
|
-
- test/dummy/tmp/cache/assets/test/sprockets/e45a5d1eb39ff43af7c681e2a271a726
|
315
|
-
- test/dummy/spec/teaspoon_env.rb
|
316
|
-
- test/dummy/public/422.html
|
317
|
-
- test/dummy/public/favicon.ico
|
318
|
-
- test/dummy/public/404.html
|
319
|
-
- test/dummy/public/500.html
|
320
|
-
- test/routesjs/routing/route_test.rb
|
321
|
-
- test/routesjs/routes_test.rb
|
322
|
-
- test/generators/routes_js/module_generator_test.rb
|
323
|
-
- test/generators/tmp/app/assets/javascripts/routesjs.js
|
324
|
-
- test/javascripts/spec_helper.js
|
325
|
-
- test/javascripts/routesjs-rails_spec.js
|
220
|
+
- test/dummy/log/test.log
|
221
|
+
- test/dummy/log/development.log
|