obfuscate_email 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/obfuscate +4 -0
- data/lib/obfuscate_email.rb +22 -0
- data.tar.gz.sig +0 -0
- metadata +75 -0
- metadata.gz.sig +1 -0
data/bin/obfuscate
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
class ObfuscateEmail
|
2
|
+
MAIL_TO = 'mailto:'
|
3
|
+
STYLE = 'unicode-bidi: bidi-override; direction: rtl;'
|
4
|
+
|
5
|
+
def initialize(email)
|
6
|
+
@email = email
|
7
|
+
end
|
8
|
+
|
9
|
+
def to_s
|
10
|
+
"<script type=\"text/javascript\">" +
|
11
|
+
" document.write('<a style=\"#{STYLE}\" href=\"#{MAIL_TO}#{obfuscated}\">#{reversed}</a>');" +
|
12
|
+
"</script>"
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
def obfuscated
|
17
|
+
@email.gsub('@', '@').gsub('.', '.')
|
18
|
+
end
|
19
|
+
def reversed
|
20
|
+
@email.each_char.to_a.reverse.join
|
21
|
+
end
|
22
|
+
end
|
data.tar.gz.sig
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: obfuscate_email
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Bèr Kessels
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain:
|
12
|
+
- !binary |-
|
13
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURNRENDQWhpZ0F3SUJB
|
14
|
+
Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREErTVF3d0NnWURWUVFEREFOaVpY
|
15
|
+
SXgKR1RBWEJnb0praWFKay9Jc1pBRVpGZ2wzWldKelkyaDFkWEl4RXpBUkJn
|
16
|
+
b0praWFKay9Jc1pBRVp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GY3UkJrL2d3VWxBNXBsdXJvS1dxTndaT1Zkc3Bl
|
32
|
+
cmYxZ3NsZE8vQ2RkaCsyVXQKT0pyNTgzT2JLOUZnNnNKeHpjZVl3cjFQOXZy
|
33
|
+
d1ByVFpHNThHMEErMTdvWURTSzRSWTZrOWkyRWdiTFlhUHFCNwpZN3lzMjdW
|
34
|
+
a2lMK2JIWmxXdFpsUGRtOHJFWHQ5eGF0ajdKS2JNNERRZ2FnZW9tR2VOc3ov
|
35
|
+
RmN4TWNucy9EQWlPClNpZVc1TTE4WnpaQXlPMUFLOE41UDB2Zmt6dS8wWmxX
|
36
|
+
NVVYcWhZQmdEanltN3lVOTdIY0k5c2dpY1o1VDR4dGYKbDlnYU9XaEorZmVH
|
37
|
+
cHZLQlJvZDVNa3FsWDZDOHljYy9JZzJJRDBiYTRIOWM4YWo3Sm14VjdJa1pH
|
38
|
+
U2hReWpYSwp3ZVpYeUE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
39
|
+
date: 2014-01-31 00:00:00.000000000 Z
|
40
|
+
dependencies: []
|
41
|
+
description: Command to obfuscate an email
|
42
|
+
email: ber@berk.es
|
43
|
+
executables:
|
44
|
+
- obfuscate
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- lib/obfuscate_email.rb
|
49
|
+
- bin/obfuscate
|
50
|
+
homepage: http://rubygems.org/gems/obfuscate_email
|
51
|
+
licenses:
|
52
|
+
- MIT
|
53
|
+
post_install_message:
|
54
|
+
rdoc_options: []
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
requirements: []
|
70
|
+
rubyforge_project:
|
71
|
+
rubygems_version: 1.8.23
|
72
|
+
signing_key:
|
73
|
+
specification_version: 3
|
74
|
+
summary: Obfuscate Email
|
75
|
+
test_files: []
|
metadata.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
�ת��ֆ�]<�J����\B��쀵��T#$�>�x|$I��2(��_L[�YLx>V|g�{�+p� ���־���G��W����m�:L�S����ɮ{�.0�-�=h�o��=����N����}e�W\��I�N���Y�%S�G�R��I���u��T���t��zT��1հ0�����Wܷaنnt{���r��[ �(�DF�S�%��4Ƃ����!�����y���_e��v^s���6�=�����
|