rails-tel_to_helper 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0334ad0ec954a9b9d5e8b68e9c519406edad6b98
4
- data.tar.gz: 33f5b9be1f7f744ac44ce48b4e967c2d1aeecb03
3
+ metadata.gz: 21a6fc9f6e693aa4819ba39d0a0f9a137b6238d7
4
+ data.tar.gz: 03ed5516024cf4699895f9721c82b3573721e6f0
5
5
  SHA512:
6
- metadata.gz: a9908b17f394e3c50a9cc6109bde520009dad93c150eb303800024cd7d4530531eb3249a4748f0c767b942394cd4974dd997aad5744255013e815d75f03a35a0
7
- data.tar.gz: bd98690b0653135ed286dde1adcaad3738096a5b9de7c8de6321854a5d26d476a6542839df85c52ed8a4cab389066b7434522449b741512347d386b5ed3bedb9
6
+ metadata.gz: cce55782121f21fe626f861c226d4fab70b3e56171132926044b65d2c122647b9f005e55f4b4a263b550ab4b36402a1b79636e1360ae2fd43c30a758d02d6fb0
7
+ data.tar.gz: be79efa864d1abd0066dce0adbe1d2d2487468cb7e03da5a5d60e5f349a6512f14129b544269a96093e8dbbe6ae32efd1d9113820a8b0c0572078bfb53a0ede3
data/README.md CHANGED
@@ -1,2 +1,40 @@
1
- rails-tel_to_helper
2
- ===================
1
+ # rails-tel_to_helper
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/rails-tel_to_helper.png)](http://badge.fury.io/rb/rails-tel_to_helper) [![Build Status](https://secure.travis-ci.org/swordray/rails-tel_to_helper.png?branch=master)](http://travis-ci.org/swordray/rails-tel_to_helper) [![Dependency Status](https://gemnasium.com/swordray/rails-tel_to_helper.png?travis)](https://gemnasium.com/swordray/rails-tel_to_helper) [![Code Climate](https://codeclimate.com/github/swordray/rails-tel_to_helper.png)](https://codeclimate.com/github/swordray/rails-tel_to_helper)
4
+
5
+ Action View Telephone Link Helper.
6
+
7
+ ## Requirements
8
+
9
+ * Ruby ~> 2.0
10
+ * Rails
11
+
12
+ ## Installation
13
+
14
+ Include the gem in your Gemfile:
15
+
16
+ ```ruby
17
+ gem 'rails-tel_to_helper'
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ```ruby
23
+ tel_to(number, name = nil, link_to_options = nil)
24
+ ```
25
+
26
+ ## Examples
27
+
28
+ ```ruby
29
+ = tel_to '400-881-6609'
30
+ = tel_to '400-881-6609', 'ihaveu.com Customer Service'
31
+ = tel_to '400-881-6609', 'ihaveu.com Customer Service', target: '_blank'
32
+ ```
33
+
34
+ ## Credits
35
+
36
+ * swordray @[ihaveu](http://www.ihaveu.com/home) @[shuhai](http://tw.shuhai.org/) @[leaf](http://leaf.iacger.com)
37
+
38
+ ## License
39
+
40
+ Copyright © 2014 Jianqiu Xiao <swordray@gmail.com> under The [MIT License](http://opensource.org/licenses/MIT).
@@ -7,8 +7,8 @@ module ActionView
7
7
  # Creates a telephone link tag of the given +number+ and +name+. If +nil+
8
8
  # is passed as the +name+ the value of the link itself will become the
9
9
  # +number+. +options+ and +html_options+ will be same as +link_to.
10
- def tel_to(number, name = nil, html_options = nil)
11
- link_to(h(name || number), "tel:#{h(number)}", html_options) if number.present?
10
+ def tel_to(number, name = nil, link_to_options = nil)
11
+ link_to(h(name || number), "tel:#{h(number)}", link_to_options) if number.present?
12
12
  end
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module RailsTelToHelper #:nodoc:
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.author = ["Jianqiu Xiao"]
9
9
  s.email = ["swordray@gmail.com"]
10
10
  s.homepage = "https://github.com/swordray/rails-tel_to_helper"
11
- s.summary = "Action View Telephone Link Helper"
12
- s.description = "Generate tel protocol link tag"
11
+ s.summary = "Action View Telephone Link Helper."
12
+ s.description = "Generate tel protocol link tag."
13
13
  s.license = "MIT"
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-tel_to_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jianqiu Xiao
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: Generate tel protocol link tag
27
+ description: Generate tel protocol link tag.
28
28
  email:
29
29
  - swordray@gmail.com
30
30
  executables: []
@@ -64,5 +64,5 @@ rubyforge_project:
64
64
  rubygems_version: 2.2.2
65
65
  signing_key:
66
66
  specification_version: 4
67
- summary: Action View Telephone Link Helper
67
+ summary: Action View Telephone Link Helper.
68
68
  test_files: []