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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25be1f91da436b8de6a9c4a87c9b24ac1122fbc8
|
4
|
+
data.tar.gz: 5a42d5a6f11a99c9dff221816e7624346bc744f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b11f213c0573f692ef5b7cdabf3d20eb0e21a3d1fa297294ad8ac2199f0c8e19e3d375375a1dce0cfe6a04f09d2f33848e1058e78f1f012d77a65f0a35fcfa7
|
7
|
+
data.tar.gz: 0ba48952beae83ded5a3644a748db0b88e4b88103fd301b2b12eebfdda16fce01a44283222b70d78018cfc215b35ad4f45101c982087154780f103e780a82092
|
@@ -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
|
data/lib/rails_templated_urls.rb
CHANGED
@@ -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'
|
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.
|
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-
|
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: '
|
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: '
|
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:
|