js_routes 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/assets/javascripts/routes.js.erb +8 -5
- data/lib/js_routes/version.rb +1 -1
- metadata +37 -67
@@ -1,7 +1,10 @@
|
|
1
|
+
<%= depend_on Rails.root.join('config', 'routes.rb') %>
|
2
|
+
<%= require_asset 'jquery.pathBuilder' %>
|
3
|
+
|
1
4
|
window.Routes = {};
|
2
|
-
<% Rails.application.routes.routes.each do |route| %>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
<% Rails.application.routes.routes.reject {|r| r.defaults['hidden'] || r.name.blank?}.each do |route| %>
|
6
|
+
Routes.<%= route.name %>_path = function () {
|
7
|
+
Array.prototype.unshift.call(arguments, '<%= route.path.spec %>');
|
8
|
+
return $.buildPath.apply($, arguments);
|
9
|
+
};
|
7
10
|
<% end %>
|
data/lib/js_routes/version.rb
CHANGED
metadata
CHANGED
@@ -1,64 +1,45 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: js_routes
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.18
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 17
|
10
|
-
version: 0.1.17
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Ivan Efremov
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2012-02-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: &70267091182700 !ruby/object:Gem::Requirement
|
23
17
|
none: false
|
24
|
-
requirements:
|
18
|
+
requirements:
|
25
19
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 23
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 0
|
31
|
-
- 0
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 1.0.0
|
33
|
-
prerelease: false
|
34
22
|
type: :development
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70267091182700
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rails
|
27
|
+
requirement: &70267091181440 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
|
-
requirements:
|
29
|
+
requirements:
|
41
30
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 3
|
46
|
-
- 0
|
47
|
-
version: "3.0"
|
48
|
-
prerelease: false
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
49
33
|
type: :development
|
50
|
-
|
51
|
-
|
52
|
-
description:
|
53
|
-
email:
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70267091181440
|
36
|
+
description: ''
|
37
|
+
email:
|
54
38
|
- st8998@gmail.com
|
55
39
|
executables: []
|
56
|
-
|
57
40
|
extensions: []
|
58
|
-
|
59
41
|
extra_rdoc_files: []
|
60
|
-
|
61
|
-
files:
|
42
|
+
files:
|
62
43
|
- .gitignore
|
63
44
|
- Gemfile
|
64
45
|
- Rakefile
|
@@ -71,39 +52,28 @@ files:
|
|
71
52
|
- lib/js_routes/railtie.rb
|
72
53
|
- lib/js_routes/version.rb
|
73
54
|
- lib/tasks/js_routes.rake
|
74
|
-
has_rdoc: true
|
75
55
|
homepage: https://github.com/st8998/js_routes
|
76
56
|
licenses: []
|
77
|
-
|
78
57
|
post_install_message:
|
79
58
|
rdoc_options: []
|
80
|
-
|
81
|
-
require_paths:
|
59
|
+
require_paths:
|
82
60
|
- lib
|
83
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
62
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
|
90
|
-
- 0
|
91
|
-
version: "0"
|
92
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
68
|
none: false
|
94
|
-
requirements:
|
95
|
-
- -
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
|
98
|
-
segments:
|
99
|
-
- 0
|
100
|
-
version: "0"
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
101
73
|
requirements: []
|
102
|
-
|
103
74
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.
|
75
|
+
rubygems_version: 1.8.16
|
105
76
|
signing_key:
|
106
77
|
specification_version: 3
|
107
|
-
summary:
|
78
|
+
summary: ''
|
108
79
|
test_files: []
|
109
|
-
|