cone 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cone.gemspec +1 -1
- data/lib/assets/javascripts/cone.coffee.erb +2 -2
- data/test/Gemfile.lock +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ff183256fcd8d4a4378b3903e29e082fa571f0e
|
4
|
+
data.tar.gz: 6b9f711e3a37403493328b52550410977bdbc934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9fc8ddbb249d94fb028011cbb48f938c5583cde4053b316440ca09a010f752a05816919cef3259f053a635a3aed106d7f3a3f619416d0bf0a97f5ae2930feca
|
7
|
+
data.tar.gz: 76dce6ebb8674912435586276150dddcfd2f62e75d33dcc367a0010eb94eda01f7037e813e8c028e7011489e79155f0df007b563e8d6ff7f3eb78d3aaba7f665
|
data/cone.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
processPath = (path, params) ->
|
1
|
+
processPath = (path, params = {}) ->
|
2
2
|
params.format = if params.format then ".#{params.format}" else ''
|
3
3
|
path = path.replace('(.:format)', params.format)
|
4
4
|
delete(params.format)
|
@@ -19,7 +19,7 @@ processPath = (path, params) ->
|
|
19
19
|
@cone =
|
20
20
|
<% Rails.application.routes.routes.named_routes.each do |route_name, route_val| %>
|
21
21
|
|
22
|
-
<%= route_name.camelize(:lower) %>Path: (params
|
22
|
+
<%= route_name.camelize(:lower) %>Path: (params) ->
|
23
23
|
processPath(<%= route_val.path.spec.to_s.to_json %>, params)
|
24
24
|
|
25
25
|
<% end %>
|
data/test/Gemfile.lock
CHANGED