rails_templated_urls 0.1.0 → 0.1.1

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: ec3cefb24d37775ab9a3d3552c1ee1d64b22620d
4
- data.tar.gz: 2be76e92df5de2274c4cd78d9a6290e4efd6ab39
3
+ metadata.gz: 25be1f91da436b8de6a9c4a87c9b24ac1122fbc8
4
+ data.tar.gz: 5a42d5a6f11a99c9dff221816e7624346bc744f8
5
5
  SHA512:
6
- metadata.gz: 41ab689fb00e8d85097a5a1bdb89b46ebf9f18c7fa97d0870ace0a85771c31bc85b8584d1775a8282e574177a3918076dcc7933ceccf57978569dbb64c1655ba
7
- data.tar.gz: ec2f502e1ab2f04285ebcfa94e0259c68fba851caeac8f54854d2b256bc7475ee19c8b16a2438d00823584f8c5b9b83dece36bd9e02641672392177815f0dd17
6
+ metadata.gz: 2b11f213c0573f692ef5b7cdabf3d20eb0e21a3d1fa297294ad8ac2199f0c8e19e3d375375a1dce0cfe6a04f09d2f33848e1058e78f1f012d77a65f0a35fcfa7
7
+ data.tar.gz: 0ba48952beae83ded5a3644a748db0b88e4b88103fd301b2b12eebfdda16fce01a44283222b70d78018cfc215b35ad4f45101c982087154780f103e780a82092
@@ -1,3 +1,3 @@
1
1
  module RailsTemplatedUrls
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -0,0 +1,11 @@
1
+ module RailsTemplatedUrls
2
+ module ViewHelpers
3
+ def templated_url(name, *params)
4
+ Builder.new(name, params, Rails.application.routes).url
5
+ end
6
+
7
+ def templated_path(name, *params)
8
+ Builder.new(name, params, Rails.application.routes).path
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,4 @@
1
1
  require 'rails_templated_urls/version'
2
2
  require 'rails_templated_urls/errors'
3
3
  require 'rails_templated_urls/builder'
4
+ require 'rails_templated_urls/view_helpers'
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_runtime_dependency 'rails', '~> 4.2.0'
23
23
 
24
- spec.add_development_dependency 'bundler', '~> 1.9'
24
+ spec.add_development_dependency 'bundler'
25
25
  spec.add_development_dependency 'rake', '~> 10.0'
26
26
  spec.add_development_dependency 'minitest'
27
27
  spec.add_development_dependency 'pry'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_templated_urls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lenon Marcel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-14 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.9'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.9'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -99,6 +99,7 @@ files:
99
99
  - lib/rails_templated_urls/builder.rb
100
100
  - lib/rails_templated_urls/errors.rb
101
101
  - lib/rails_templated_urls/version.rb
102
+ - lib/rails_templated_urls/view_helpers.rb
102
103
  - rails_templated_urls.gemspec
103
104
  homepage: https://github.com/lenon/rails_templated_urls
104
105
  licenses: