alexander_graham_bell 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alexander_graham_bell.rb +5 -5
- data/lib/alexander_graham_bell/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a381ae7b9f471a805d9fb9af0a225cb4a464a9
|
4
|
+
data.tar.gz: 2c490a2fb48e0052039aa177763d9c63fb943569
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 627af571057b837854119ecec444c4356ef26dc0dc250463f1e780172faf283baa455427e0a058b5b4b178e48a578107603444a419b2be381a6752c0720e9a85
|
7
|
+
data.tar.gz: 4f762ef72da0457d7fcdb6c35c5549dc85049bc6cae1dd0e521d96fa24fcd8515d93256730f2fe06d3167c4b75e125bf5b2f6db9ea5afdc08321aab08a37fbde
|
@@ -4,11 +4,11 @@ require 'alexander_graham_bell/phone'
|
|
4
4
|
|
5
5
|
module AlexanderGrahamBell
|
6
6
|
class << self
|
7
|
-
def tel_link(phone_number
|
7
|
+
def tel_link(phone_number)
|
8
8
|
phone = Phone.new(phone_number)
|
9
|
-
escaped_phone_number = escape_phone_number(phone_number
|
9
|
+
escaped_phone_number = escape_phone_number(phone_number)
|
10
10
|
return escaped_phone_number unless phone.valid?
|
11
|
-
"<a href=\"
|
11
|
+
"<a href=\"#{tel_href(phone_number)}\">#{escaped_phone_number}</a>"
|
12
12
|
end
|
13
13
|
|
14
14
|
def tel_href(phone_number)
|
@@ -20,8 +20,8 @@ module AlexanderGrahamBell
|
|
20
20
|
|
21
21
|
private
|
22
22
|
|
23
|
-
def escape_phone_number(phone_number
|
24
|
-
|
23
|
+
def escape_phone_number(phone_number)
|
24
|
+
ERB::Util.h(phone_number)
|
25
25
|
end
|
26
26
|
|
27
27
|
def isub(phone)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alexander_graham_bell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Speidel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|