routesjs-rails 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +86 -9
  3. data/lib/generators/routes_js/module/module_generator.rb +36 -0
  4. data/lib/routesjs-rails.rb +1 -1
  5. data/lib/routesjs/rails/version.rb +1 -1
  6. data/lib/routesjs/routes.rb +7 -2
  7. data/lib/routesjs/routing/route.rb +39 -0
  8. data/test/dummy/config/application.rb +3 -2
  9. data/test/dummy/config/environments/development.rb +1 -1
  10. data/test/dummy/config/environments/production.rb +1 -1
  11. data/test/dummy/config/environments/test.rb +1 -1
  12. data/test/dummy/config/routes.rb +1 -1
  13. data/test/dummy/log/development.log +2269 -0
  14. data/test/dummy/log/test.log +2384 -0
  15. data/test/dummy/tmp/cache/assets/development/sprockets/1ef842e27a58c8d5c6c766a808769124 +0 -0
  16. data/test/dummy/tmp/cache/assets/development/sprockets/2df1d6547949be98cd48ede842b34de8 +0 -0
  17. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  18. data/test/dummy/tmp/cache/assets/development/sprockets/3e71ddc988273b8745f0699a893f6fae +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/5c5fe53e623b63ead476521957eb59ad +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/7515bb9ad36eda8e3aac73de7b584b3c +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/7cfb78f56f62208e304eaee5a4687ff5 +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/8e3d112db39b8bcf2303854a25c999b9 +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sprockets/96832d64502eeedb77b21df1afce651e +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44 +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sprockets/ae24e9c0cdbfb9ec06caa64916150789 +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sprockets/bf36f67f2b6fbdcfe8d00c090481e768 +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sprockets/fbe3b083eab395ea58275e685320100c +0 -0
  30. data/test/dummy/tmp/cache/assets/test/sprockets/1ef842e27a58c8d5c6c766a808769124 +0 -0
  31. data/test/dummy/tmp/cache/assets/test/sprockets/2df1d6547949be98cd48ede842b34de8 +0 -0
  32. data/test/dummy/tmp/cache/assets/test/sprockets/5c5fe53e623b63ead476521957eb59ad +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sprockets/7515bb9ad36eda8e3aac73de7b584b3c +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/7cfb78f56f62208e304eaee5a4687ff5 +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44 +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/ae24e9c0cdbfb9ec06caa64916150789 +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/bf36f67f2b6fbdcfe8d00c090481e768 +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/fbe3b083eab395ea58275e685320100c +0 -0
  39. data/test/generators/routes_js/module_generator_test.rb +35 -0
  40. data/test/generators/tmp/app/assets/javascripts/routesjs.js +75 -0
  41. data/test/javascripts/routesjs-rails_spec.js +74 -0
  42. data/test/javascripts/spec_helper.js +4 -0
  43. data/test/routesjs/routing/route_test.rb +62 -0
  44. data/test/test_helper.rb +7 -0
  45. data/vendor/assets/javascripts/routesjs-rails.js.erb +11 -2
  46. metadata +55 -17
  47. data/lib/routesjs/formatter.rb +0 -56
  48. data/lib/tasks/routesjs_tasks.rake +0 -9
  49. data/test/dummy/config/database.yml +0 -25
  50. data/test/javascripts/routesjs-rails_spec.coffee +0 -50
  51. data/test/javascripts/spec_helper.coffee +0 -31
  52. data/test/routesjs/formatter_test.rb +0 -65
@@ -0,0 +1,35 @@
1
+ require "test_helper"
2
+ require "generators/routes_js/module/module_generator"
3
+
4
+ module Generators
5
+ module RoutesJs
6
+ class ModuleGeneratorTest < Rails::Generators::TestCase
7
+ tests ::RoutesJs::Generators::ModuleGenerator
8
+ destination File.expand_path("../tmp", File.dirname(__FILE__))
9
+
10
+ setup do
11
+ prepare_destination
12
+ end
13
+
14
+ test "generates the CommonJS module" do
15
+ run_generator
16
+ assert_file "app/assets/javascripts/routesjs.js"
17
+ end
18
+
19
+ test "overwites the existing module if found" do
20
+ run_generator
21
+
22
+ assert_nothing_raised do
23
+ run_generator
24
+ end
25
+ end
26
+
27
+ test "can output to a user specified path" do
28
+ run_generator %w(-o app/assets/javascripts/config/routes.js)
29
+
30
+ assert_no_file "app/assets/javascripts/routesjs.js"
31
+ assert_file "app/assets/javascripts/config/routes.js"
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,75 @@
1
+ var Routes = (function(railsRoutes) {
2
+ var BASE_URL = document.location.protocol +"//" + document.location.host;
3
+ var PARAM_PATTERN = /:[^\/$]+(\/|$)/
4
+
5
+ var isUrl = function(path) {
6
+ return /^https?:\/\//.test(path);
7
+ };
8
+
9
+ var addRoute = function(name, path) {
10
+ RouteSet[name +"Path"] = function() {
11
+ return buildRoute(path, arguments);
12
+ };
13
+
14
+ RouteSet[name +"Url"] = function() {
15
+ var finalPath = path;
16
+ if (!isUrl(path)) finalPath = BASE_URL + path;
17
+
18
+ return buildRoute(finalPath, arguments);
19
+ };
20
+ };
21
+
22
+ var buildRoute = function(route, args) {
23
+ if (!(args && args.length)) return route;
24
+ if (!PARAM_PATTERN.test(route)) return route;
25
+
26
+ if(args.length === 1 && args[0] instanceof Object) {
27
+ return buildRouteWithObject(route, args[0]);
28
+ } else {
29
+ return buildRouteWithValues(route, args);
30
+ }
31
+ };
32
+
33
+ var buildRouteWithObject = function(route, fromObject) {
34
+ var token = null, key = null;
35
+ var tokens = Object.keys(fromObject);
36
+
37
+ for (var i = 0; i < tokens.length; i++) {
38
+ key = tokens[i];
39
+ token = fromObject[key].toString();
40
+ route = route.replace(RegExp(":" + key.toString()), token);
41
+ }
42
+
43
+ return route;
44
+ };
45
+
46
+ var buildRouteWithValues = function(route, values) {
47
+ var param = null;
48
+
49
+ while (PARAM_PATTERN.test(route) && values.length) {
50
+ param = [].shift.call(values).toString();
51
+ route = route.replace(PARAM_PATTERN, param + "$1");
52
+ }
53
+
54
+ return route;
55
+ };
56
+
57
+ var RouteSet = {
58
+ setBaseUrl: function(protocol_and_host) {
59
+ BASE_URL = protocol_and_host.replace(/\/$/, "");
60
+ },
61
+ initRoutes: function(routes) {
62
+ Object.keys(routes).map(function(key) {
63
+ addRoute(key, routes[key]);
64
+ });
65
+ }
66
+ };
67
+
68
+ RouteSet.initRoutes(railsRoutes);
69
+ return RouteSet;
70
+ })({"teaspoon":"/teaspoon","root":"/","adminGoogle":"https://www.google.com/","rolesAdminUser":"/admin/users/:id/roles","adminUsers":"/admin/users","newAdminUser":"/admin/users/new","editAdminUser":"/admin/users/:id/edit","adminUser":"/admin/users/:id"});
71
+
72
+ if (typeof(module) !== 'undefined') {
73
+ module.exports = Routes;
74
+ }
75
+ ;
@@ -0,0 +1,74 @@
1
+ describe("Routes", function() {
2
+ beforeEach(function() {
3
+ Routes.setBaseUrl("//example.com/");
4
+ });
5
+
6
+ describe("simple path and url generation", function() {
7
+ beforeEach(function() {
8
+ Routes.initRoutes({
9
+ "google": "https://www.google.com/",
10
+ "oauthToken": "/oauth/token",
11
+ "adminRoot": "/admin"
12
+ });
13
+ });
14
+
15
+ it("makes a path function for each route", function() {
16
+ expect(Routes.oauthTokenPath()).toBe("/oauth/token");
17
+ expect(Routes.adminRootPath()).toBe("/admin");
18
+ });
19
+
20
+ it("makes a url function for each route", function() {
21
+ expect(Routes.oauthTokenUrl()).toBe("//example.com/oauth/token");
22
+ expect(Routes.adminRootUrl()).toBe("//example.com/admin");
23
+ });
24
+
25
+ it("returns the raw route for both path and url when absolute", function() {
26
+ expect(Routes.googlePath()).toBe("https://www.google.com/");
27
+ expect(Routes.googleUrl()).toBe("https://www.google.com/");
28
+ });
29
+ });
30
+
31
+ describe("token replacement with object", function() {
32
+ beforeEach(function() {
33
+ Routes.initRoutes({
34
+ "user": "/users/:id",
35
+ "userRoles": "/users/:id/roles",
36
+ "userRole": "/users/:id/roles/:role_id"
37
+ });
38
+ });
39
+
40
+ it("replaces tokens with values from object", function() {
41
+ user = {
42
+ id: 1,
43
+ role_id: 2
44
+ };
45
+
46
+ expect(Routes.userPath(user)).toBe("/users/1");
47
+ expect(Routes.userRolesPath(user)).toBe("/users/1/roles");
48
+ expect(Routes.userRoleUrl(user)).toBe("//example.com/users/1/roles/2");
49
+ });
50
+ });
51
+
52
+ describe("token replacement with arguments", function() {
53
+ beforeEach(function() {
54
+ Routes.initRoutes({
55
+ "root": "/",
56
+ "user": "/users/:id",
57
+ "userRole": "/users/:id/roles/:role_id"
58
+ });
59
+ });
60
+
61
+ it("replaces tokens with ordered arguments", function() {
62
+ expect(Routes.userPath(1)).toBe("/users/1");
63
+ expect(Routes.userRoleUrl(1, "admin")).toBe("//example.com/users/1/roles/admin");
64
+ });
65
+
66
+ it("ignores extra arguments", function() {
67
+ expect(Routes.userPath(1, "this", 2, "be", "ignored")).toBe("/users/1");
68
+ });
69
+
70
+ it("returns the unmodified route when no tokens are found", function() {
71
+ expect(Routes.rootPath(1, 2)).toBe("/");
72
+ });
73
+ });
74
+ });
@@ -0,0 +1,4 @@
1
+ /* You can require your own javascript files here. By default this will include everything in application, however you
2
+ * may get better load performance if you require the specific files that are being used in the spec that tests them.
3
+ * = require application
4
+ */
@@ -0,0 +1,62 @@
1
+ require "test_helper"
2
+
3
+ class RoutesJS::Routing::RouteTest < ActiveSupport::TestCase
4
+ include ActionDispatch::Assertions::RoutingAssertions
5
+
6
+ test "hand crafted URLs are left untouched" do
7
+ assert_equal "/admin", routes["admin"]
8
+ end
9
+
10
+ test "namespaced routes include the namespace in the path" do
11
+ assert_equal "/api/users", routes["apiUsers"]
12
+ end
13
+
14
+ test "redirects return the redirect path" do
15
+ assert_equal "https://www.google.com/", routes["google"]
16
+ end
17
+
18
+ test "redirects within a namespace are all good" do
19
+ assert_equal "/", routes["apiRedir"]
20
+ end
21
+
22
+ test "root route is supported" do
23
+ assert_equal "/", routes["root"]
24
+ end
25
+
26
+ test "root route inside a namespace also good" do
27
+ assert_equal "/api", routes["apiRoot"]
28
+ end
29
+
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
+ private
37
+
38
+ def routes
39
+ @routes ||= JSON.parse(RoutesJS::Routes.as_json(app_routes))
40
+ end
41
+
42
+ def app_routes
43
+ @app_routes ||= begin
44
+ with_routing do |set|
45
+ set.draw do
46
+ root to: "home#index"
47
+ get "/admin", to: "home#index", as: :admin
48
+ get "/google", to: redirect("https://www.google.com/"), as: :google
49
+ get "/rails/props", to: "home#index", as: :rails_props
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
56
+ end
57
+
58
+ set.routes
59
+ end
60
+ end
61
+ end
62
+ end
data/test/test_helper.rb CHANGED
@@ -1,7 +1,14 @@
1
1
  # Configure Rails Environment
2
2
  ENV["RAILS_ENV"] = "test"
3
+ require "codeclimate-test-reporter"
4
+ CodeClimate::TestReporter.start
3
5
 
4
6
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
7
  require "rails/test_help"
6
8
 
9
+ begin
10
+ require "pry"
11
+ rescue LoadError
12
+ end
13
+
7
14
  Rails.backtrace_cleaner.remove_silencers!
@@ -2,13 +2,20 @@ var Routes = (function(railsRoutes) {
2
2
  var BASE_URL = document.location.protocol +"//" + document.location.host;
3
3
  var PARAM_PATTERN = /:[^\/$]+(\/|$)/
4
4
 
5
+ var isUrl = function(path) {
6
+ return /^https?:\/\//.test(path);
7
+ };
8
+
5
9
  var addRoute = function(name, path) {
6
10
  RouteSet[name +"Path"] = function() {
7
11
  return buildRoute(path, arguments);
8
12
  };
9
13
 
10
14
  RouteSet[name +"Url"] = function() {
11
- return buildRoute(BASE_URL + path, arguments);
15
+ var finalPath = path;
16
+ if (!isUrl(path)) finalPath = BASE_URL + path;
17
+
18
+ return buildRoute(finalPath, arguments);
12
19
  };
13
20
  };
14
21
 
@@ -62,4 +69,6 @@ var Routes = (function(railsRoutes) {
62
69
  return RouteSet;
63
70
  })(<%= RoutesJS::Routes.as_json %>);
64
71
 
65
- window.Routes = Routes;
72
+ if (typeof(module) !== 'undefined') {
73
+ module.exports = Routes;
74
+ }
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routesjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.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-09-19 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.6
19
+ version: '4.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '4.0'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 4.1.6
32
+ version: '5.0'
27
33
  description: Make named rails routes available in JS
28
34
  email:
29
35
  - david.muto@gmail.com
@@ -34,13 +40,13 @@ files:
34
40
  - LICENSE
35
41
  - README.md
36
42
  - Rakefile
43
+ - lib/generators/routes_js/module/module_generator.rb
37
44
  - lib/routesjs-rails.rb
38
- - lib/routesjs/formatter.rb
39
45
  - lib/routesjs/rails.rb
40
46
  - lib/routesjs/rails/engine.rb
41
47
  - lib/routesjs/rails/version.rb
42
48
  - lib/routesjs/routes.rb
43
- - lib/tasks/routesjs_tasks.rake
49
+ - lib/routesjs/routing/route.rb
44
50
  - test/dummy/README.rdoc
45
51
  - test/dummy/Rakefile
46
52
  - test/dummy/app/assets/javascripts/application.js
@@ -56,7 +62,6 @@ files:
56
62
  - test/dummy/config.ru
57
63
  - test/dummy/config/application.rb
58
64
  - test/dummy/config/boot.rb
59
- - test/dummy/config/database.yml
60
65
  - test/dummy/config/environment.rb
61
66
  - test/dummy/config/environments/development.rb
62
67
  - test/dummy/config/environments/production.rb
@@ -83,22 +88,30 @@ files:
83
88
  - test/dummy/tmp/cache/assets/development/sprockets/1015a631e7a66a0b078c820da841a4dc
84
89
  - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
85
90
  - test/dummy/tmp/cache/assets/development/sprockets/1ef842e27a58c8d5c6c766a808769124
91
+ - test/dummy/tmp/cache/assets/development/sprockets/2df1d6547949be98cd48ede842b34de8
86
92
  - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
87
93
  - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
88
94
  - test/dummy/tmp/cache/assets/development/sprockets/38f92cfa1698a8913703ad40c946b0a5
95
+ - test/dummy/tmp/cache/assets/development/sprockets/3e71ddc988273b8745f0699a893f6fae
89
96
  - test/dummy/tmp/cache/assets/development/sprockets/4f69580262ad653bc0809da19ad82711
90
97
  - test/dummy/tmp/cache/assets/development/sprockets/57f13cf7825213c3b1df69a76df722a9
91
98
  - test/dummy/tmp/cache/assets/development/sprockets/58c347f7e5c0045579ef085f41ae6d56
99
+ - test/dummy/tmp/cache/assets/development/sprockets/5c5fe53e623b63ead476521957eb59ad
92
100
  - test/dummy/tmp/cache/assets/development/sprockets/69b7946c418b75e7ba78f9fc73d3e9b9
93
101
  - test/dummy/tmp/cache/assets/development/sprockets/6a2ef5706e101143d91085f790648f13
94
102
  - test/dummy/tmp/cache/assets/development/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3
103
+ - test/dummy/tmp/cache/assets/development/sprockets/7515bb9ad36eda8e3aac73de7b584b3c
95
104
  - test/dummy/tmp/cache/assets/development/sprockets/7840a99f97a3c7111c6dd22a4c17ae1a
96
105
  - test/dummy/tmp/cache/assets/development/sprockets/7cfb78f56f62208e304eaee5a4687ff5
97
106
  - test/dummy/tmp/cache/assets/development/sprockets/7ef98e1f987a1d927316b649e3b8f790
107
+ - test/dummy/tmp/cache/assets/development/sprockets/8e3d112db39b8bcf2303854a25c999b9
98
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
99
111
  - test/dummy/tmp/cache/assets/development/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88
100
112
  - test/dummy/tmp/cache/assets/development/sprockets/a1decc358031a7672d2d3545b45c8f15
101
113
  - test/dummy/tmp/cache/assets/development/sprockets/a70550f1a2c27e11c3188a48c01170f3
114
+ - test/dummy/tmp/cache/assets/development/sprockets/ae24e9c0cdbfb9ec06caa64916150789
102
115
  - test/dummy/tmp/cache/assets/development/sprockets/bc3e7b57c45ee11b581d32cb285f3ded
103
116
  - test/dummy/tmp/cache/assets/development/sprockets/bc499c125dd2de53421b8a948c8777ee
104
117
  - test/dummy/tmp/cache/assets/development/sprockets/bf36f67f2b6fbdcfe8d00c090481e768
@@ -115,22 +128,28 @@ files:
115
128
  - test/dummy/tmp/cache/assets/development/sprockets/ebfb2f47de67d2be33a5117afe306e80
116
129
  - test/dummy/tmp/cache/assets/development/sprockets/f72501aca20f34d765720253853e6105
117
130
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
131
+ - test/dummy/tmp/cache/assets/development/sprockets/fbe3b083eab395ea58275e685320100c
118
132
  - test/dummy/tmp/cache/assets/test/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1
119
133
  - test/dummy/tmp/cache/assets/test/sprockets/1015a631e7a66a0b078c820da841a4dc
120
134
  - test/dummy/tmp/cache/assets/test/sprockets/1597598c873fec75c50410326d52dab7
121
135
  - test/dummy/tmp/cache/assets/test/sprockets/1ef842e27a58c8d5c6c766a808769124
136
+ - test/dummy/tmp/cache/assets/test/sprockets/2df1d6547949be98cd48ede842b34de8
122
137
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
123
138
  - test/dummy/tmp/cache/assets/test/sprockets/38f92cfa1698a8913703ad40c946b0a5
124
139
  - test/dummy/tmp/cache/assets/test/sprockets/4f69580262ad653bc0809da19ad82711
125
140
  - test/dummy/tmp/cache/assets/test/sprockets/57f13cf7825213c3b1df69a76df722a9
126
141
  - test/dummy/tmp/cache/assets/test/sprockets/58c347f7e5c0045579ef085f41ae6d56
127
142
  - test/dummy/tmp/cache/assets/test/sprockets/5bdd912f192e505000c28dea42844491
143
+ - test/dummy/tmp/cache/assets/test/sprockets/5c5fe53e623b63ead476521957eb59ad
128
144
  - test/dummy/tmp/cache/assets/test/sprockets/6a2ef5706e101143d91085f790648f13
129
145
  - test/dummy/tmp/cache/assets/test/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3
146
+ - test/dummy/tmp/cache/assets/test/sprockets/7515bb9ad36eda8e3aac73de7b584b3c
130
147
  - test/dummy/tmp/cache/assets/test/sprockets/7cfb78f56f62208e304eaee5a4687ff5
131
148
  - test/dummy/tmp/cache/assets/test/sprockets/9487c761e1ddfe7509f566400379f444
149
+ - test/dummy/tmp/cache/assets/test/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44
132
150
  - test/dummy/tmp/cache/assets/test/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88
133
151
  - test/dummy/tmp/cache/assets/test/sprockets/a70550f1a2c27e11c3188a48c01170f3
152
+ - test/dummy/tmp/cache/assets/test/sprockets/ae24e9c0cdbfb9ec06caa64916150789
134
153
  - test/dummy/tmp/cache/assets/test/sprockets/b5bfff8e2b7ddf0764244738df18fe7d
135
154
  - test/dummy/tmp/cache/assets/test/sprockets/bc499c125dd2de53421b8a948c8777ee
136
155
  - test/dummy/tmp/cache/assets/test/sprockets/bf36f67f2b6fbdcfe8d00c090481e768
@@ -145,10 +164,13 @@ files:
145
164
  - test/dummy/tmp/cache/assets/test/sprockets/eb41926965866a0bfed229b4a3ce9259
146
165
  - test/dummy/tmp/cache/assets/test/sprockets/ebfb2f47de67d2be33a5117afe306e80
147
166
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
148
- - test/javascripts/routesjs-rails_spec.coffee
149
- - test/javascripts/spec_helper.coffee
150
- - test/routesjs/formatter_test.rb
167
+ - test/dummy/tmp/cache/assets/test/sprockets/fbe3b083eab395ea58275e685320100c
168
+ - test/generators/routes_js/module_generator_test.rb
169
+ - test/generators/tmp/app/assets/javascripts/routesjs.js
170
+ - test/javascripts/routesjs-rails_spec.js
171
+ - test/javascripts/spec_helper.js
151
172
  - test/routesjs/routes_test.rb
173
+ - test/routesjs/routing/route_test.rb
152
174
  - test/test_helper.rb
153
175
  - vendor/assets/javascripts/routesjs-rails.js.erb
154
176
  homepage: https://github.com/pseudomuto/routesjs-rails
@@ -163,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
185
  requirements:
164
186
  - - ">="
165
187
  - !ruby/object:Gem::Version
166
- version: '0'
188
+ version: 1.9.3
167
189
  required_rubygems_version: !ruby/object:Gem::Requirement
168
190
  requirements:
169
191
  - - ">="
@@ -203,7 +225,6 @@ test_files:
203
225
  - test/dummy/config/initializers/session_store.rb
204
226
  - test/dummy/config/environment.rb
205
227
  - test/dummy/config/locales/en.yml
206
- - test/dummy/config/database.yml
207
228
  - test/dummy/config/routes.rb
208
229
  - test/dummy/config/environments/production.rb
209
230
  - test/dummy/config/environments/development.rb
@@ -212,27 +233,36 @@ test_files:
212
233
  - test/dummy/Rakefile
213
234
  - test/dummy/tmp/cache/assets/development/sprockets/58c347f7e5c0045579ef085f41ae6d56
214
235
  - test/dummy/tmp/cache/assets/development/sprockets/e98bc73f3afc0368fc3c110e3305bb6e
236
+ - test/dummy/tmp/cache/assets/development/sprockets/fbe3b083eab395ea58275e685320100c
215
237
  - test/dummy/tmp/cache/assets/development/sprockets/cce1f28f0d1f5c2817e6eaf392bac615
216
238
  - test/dummy/tmp/cache/assets/development/sprockets/bc3e7b57c45ee11b581d32cb285f3ded
239
+ - test/dummy/tmp/cache/assets/development/sprockets/3e71ddc988273b8745f0699a893f6fae
217
240
  - test/dummy/tmp/cache/assets/development/sprockets/dca3f6a70d551aa519687c2fccd97176
241
+ - test/dummy/tmp/cache/assets/development/sprockets/2df1d6547949be98cd48ede842b34de8
218
242
  - test/dummy/tmp/cache/assets/development/sprockets/69b7946c418b75e7ba78f9fc73d3e9b9
219
243
  - test/dummy/tmp/cache/assets/development/sprockets/57f13cf7825213c3b1df69a76df722a9
220
244
  - test/dummy/tmp/cache/assets/development/sprockets/ebfb2f47de67d2be33a5117afe306e80
245
+ - test/dummy/tmp/cache/assets/development/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44
221
246
  - test/dummy/tmp/cache/assets/development/sprockets/7ef98e1f987a1d927316b649e3b8f790
222
247
  - test/dummy/tmp/cache/assets/development/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3
223
248
  - test/dummy/tmp/cache/assets/development/sprockets/a1decc358031a7672d2d3545b45c8f15
249
+ - test/dummy/tmp/cache/assets/development/sprockets/ae24e9c0cdbfb9ec06caa64916150789
224
250
  - test/dummy/tmp/cache/assets/development/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1
225
251
  - test/dummy/tmp/cache/assets/development/sprockets/bf36f67f2b6fbdcfe8d00c090481e768
252
+ - test/dummy/tmp/cache/assets/development/sprockets/7515bb9ad36eda8e3aac73de7b584b3c
226
253
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
227
254
  - test/dummy/tmp/cache/assets/development/sprockets/38f92cfa1698a8913703ad40c946b0a5
228
255
  - test/dummy/tmp/cache/assets/development/sprockets/7cfb78f56f62208e304eaee5a4687ff5
229
256
  - test/dummy/tmp/cache/assets/development/sprockets/e280b920f9f8a02070c974eba18074c1
230
257
  - test/dummy/tmp/cache/assets/development/sprockets/f72501aca20f34d765720253853e6105
258
+ - test/dummy/tmp/cache/assets/development/sprockets/96832d64502eeedb77b21df1afce651e
231
259
  - test/dummy/tmp/cache/assets/development/sprockets/4f69580262ad653bc0809da19ad82711
232
260
  - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
233
261
  - test/dummy/tmp/cache/assets/development/sprockets/bc499c125dd2de53421b8a948c8777ee
262
+ - test/dummy/tmp/cache/assets/development/sprockets/5c5fe53e623b63ead476521957eb59ad
234
263
  - test/dummy/tmp/cache/assets/development/sprockets/a70550f1a2c27e11c3188a48c01170f3
235
264
  - test/dummy/tmp/cache/assets/development/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88
265
+ - test/dummy/tmp/cache/assets/development/sprockets/8e3d112db39b8bcf2303854a25c999b9
236
266
  - test/dummy/tmp/cache/assets/development/sprockets/6a2ef5706e101143d91085f790648f13
237
267
  - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
238
268
  - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
@@ -250,15 +280,20 @@ test_files:
250
280
  - test/dummy/tmp/cache/assets/test/sprockets/58c347f7e5c0045579ef085f41ae6d56
251
281
  - test/dummy/tmp/cache/assets/test/sprockets/e98bc73f3afc0368fc3c110e3305bb6e
252
282
  - test/dummy/tmp/cache/assets/test/sprockets/cea726b2a0ada8d0bf1754030bb4ded3
283
+ - test/dummy/tmp/cache/assets/test/sprockets/fbe3b083eab395ea58275e685320100c
253
284
  - test/dummy/tmp/cache/assets/test/sprockets/dca3f6a70d551aa519687c2fccd97176
285
+ - test/dummy/tmp/cache/assets/test/sprockets/2df1d6547949be98cd48ede842b34de8
254
286
  - test/dummy/tmp/cache/assets/test/sprockets/57f13cf7825213c3b1df69a76df722a9
255
287
  - test/dummy/tmp/cache/assets/test/sprockets/5bdd912f192e505000c28dea42844491
256
288
  - test/dummy/tmp/cache/assets/test/sprockets/ebfb2f47de67d2be33a5117afe306e80
289
+ - test/dummy/tmp/cache/assets/test/sprockets/96a60c4d6d1a4f2e334ce111b9b15a44
257
290
  - test/dummy/tmp/cache/assets/test/sprockets/e4ea4e96ddd14ee81c3c72883cb23bd2
258
291
  - test/dummy/tmp/cache/assets/test/sprockets/6b41edb1d59348fc5f5a9be9e0070ba3
292
+ - test/dummy/tmp/cache/assets/test/sprockets/ae24e9c0cdbfb9ec06caa64916150789
259
293
  - test/dummy/tmp/cache/assets/test/sprockets/06fe8c2fd8e66b4605fb8720f6f01fa1
260
294
  - test/dummy/tmp/cache/assets/test/sprockets/bf36f67f2b6fbdcfe8d00c090481e768
261
295
  - test/dummy/tmp/cache/assets/test/sprockets/b5bfff8e2b7ddf0764244738df18fe7d
296
+ - test/dummy/tmp/cache/assets/test/sprockets/7515bb9ad36eda8e3aac73de7b584b3c
262
297
  - test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
263
298
  - test/dummy/tmp/cache/assets/test/sprockets/38f92cfa1698a8913703ad40c946b0a5
264
299
  - test/dummy/tmp/cache/assets/test/sprockets/7cfb78f56f62208e304eaee5a4687ff5
@@ -267,6 +302,7 @@ test_files:
267
302
  - test/dummy/tmp/cache/assets/test/sprockets/4f69580262ad653bc0809da19ad82711
268
303
  - test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
269
304
  - test/dummy/tmp/cache/assets/test/sprockets/bc499c125dd2de53421b8a948c8777ee
305
+ - test/dummy/tmp/cache/assets/test/sprockets/5c5fe53e623b63ead476521957eb59ad
270
306
  - test/dummy/tmp/cache/assets/test/sprockets/a70550f1a2c27e11c3188a48c01170f3
271
307
  - test/dummy/tmp/cache/assets/test/sprockets/9c8ef791c17d2b3f0a26d187f1c5cd88
272
308
  - test/dummy/tmp/cache/assets/test/sprockets/6a2ef5706e101143d91085f790648f13
@@ -281,7 +317,9 @@ test_files:
281
317
  - test/dummy/public/favicon.ico
282
318
  - test/dummy/public/404.html
283
319
  - test/dummy/public/500.html
284
- - test/routesjs/formatter_test.rb
320
+ - test/routesjs/routing/route_test.rb
285
321
  - test/routesjs/routes_test.rb
286
- - test/javascripts/routesjs-rails_spec.coffee
287
- - test/javascripts/spec_helper.coffee
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