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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eecbec7c9ce684d3272a2e211c0c36c4c2a322bc
4
- data.tar.gz: cb1e1a4e50933961c6f52b8a4d1ee3809b4e8068
3
+ metadata.gz: 4ff183256fcd8d4a4378b3903e29e082fa571f0e
4
+ data.tar.gz: 6b9f711e3a37403493328b52550410977bdbc934
5
5
  SHA512:
6
- metadata.gz: 2a20edf8c3fe2662843c99119a942f6d0dfb80d23f303cf8773f5f0afabd9ec58108e1a253e8a9db55da222e34190aec187fe657a6ebfc5e4a8b64f878438881
7
- data.tar.gz: 9ce8c991936c997ce6dc90f22d70ff366a1b8f02da2c406f5a07d70489cea07869c614e2de856e0e6bb9dbc30ea70f9376b64d053766940435007d21bb77969a
6
+ metadata.gz: e9fc8ddbb249d94fb028011cbb48f938c5583cde4053b316440ca09a010f752a05816919cef3259f053a635a3aed106d7f3a3f619416d0bf0a97f5ae2930feca
7
+ data.tar.gz: 76dce6ebb8674912435586276150dddcfd2f62e75d33dcc367a0010eb94eda01f7037e813e8c028e7011489e79155f0df007b563e8d6ff7f3eb78d3aaba7f665
data/cone.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'cone'
3
- gem.version = '0.0.5'
3
+ gem.version = '0.0.6'
4
4
  gem.summary = 'Rails client side URL helpers'
5
5
  gem.author = 'Lihan Li'
6
6
  gem.email = 'frankieteardrop@gmail.com'
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cone (0.0.4)
4
+ cone (0.0.6)
5
5
  coffee-rails
6
6
 
7
7
  GEM
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lihan Li