E1337 0.0.1

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.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/31337/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["M4c S|-|ifforde"]
6
+ gem.email = ["shiroginne@gmail.com"]
7
+ gem.description = %q{conv3rt z0rztrin9 +0 l33+5f34x}
8
+ gem.summary = %q{conv3rt z0rztrin9 +0 l33+5f34x}
9
+ gem.homepage = "https://github.com/shiroginne/31337"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "E1337"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = E1337::VERSION
17
+ end
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in 31337.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Mac Shifford
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,31 @@
1
+ # 31337
2
+
3
+ r[-@I>(/)& |-|e®£! ¥a|^|`|2ʁ!
4
+ `/0µ ¢∂~ [z£4∂ ci13¤you† £€ə-|- z|*[-@ɮ 3y3][ (n)eye|{1 http://en.wikipedia.org/wiki/Leet
5
+
6
+ ## Installation
7
+
8
+ 4dede +hi5 1in3 +0 your 4ff1i(a+ions 93mfi13:
9
+
10
+ gem '31337'
11
+
12
+ ande then 3x3cyut3:
13
+
14
+ $ bundle
15
+
16
+ 0r inz0rz+411 i+ jooour53|ph 4s:
17
+
18
+ $ gem install 31337
19
+
20
+ ## Usage
21
+
22
+ 9em 3x+end5 5trin9 c14z0rzs, s0 yoyu (an (41l m3+|-|0d +0 |eet +0 4ny s+ring joo0u wan+.
23
+ 'Hello, brave new world!'.to_leet
24
+
25
+ ## Contributing
26
+
27
+ 1. f0rx i+
28
+ 2. (r3a+3 yoyur f34+yur3 8ran(h (`git checkout -b my-new-feature`)
29
+ 3. (ommit yoyur ch4n935 (`git commit -am 'Added some feature'`)
30
+ 4. fyu5|-| +o t|-|e 8r4nc|-| (`git push origin my-new-feature`)
31
+ 5. cre4+3 n3w pu|| requez0rz+
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,2 @@
1
+ require "31337/version"
2
+ require "core_ext/string"
@@ -0,0 +1,3 @@
1
+ module E1337
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,47 @@
1
+ # encoding: utf-8
2
+ class String
3
+ SYMBOLS = {
4
+ 'a' => {'noob' => ["a", "4"], 'leet' => ["4", "@", "/-\\", "/\\", "^", "aye", "∂", "ci", "λ", "Z"]},
5
+ 'b' => {'noob' => ["b", "8"], 'leet' => ["8","|3","6","13","|3","ß","]3"]},
6
+ 'c' => {'noob' => ["c", "("], 'leet' => ["(", "<", "¢", "{", "©", "sea", "see"]},
7
+ 'd' => {'noob' => ["d", "de"], 'leet' => ["|)", "[)", "∂", "])", "I>", "|>", "0", "ð", "cl"]},
8
+ 'e' => {'noob' => ["e", "3"], 'leet' => ["3", "£", "&", "€", "[-", "ə"]},
9
+ 'f' => {'noob' => ["f", "ph"], 'leet' => ["|=", "]=", "}", "ph", "(=", "ʃ"]},
10
+ 'g' => {'noob' => ["g", "9"], 'leet' => ["6", "9", "&", "(_+", "C-", "gee", "jee", "(γ,", "cj"]},
11
+ 'h' => {'noob' => ["h", "|-|"], 'leet' => ["|-|", "#", "]-[", "[-]", ")-(", "(-)", " :-:", "}{", "}-{", "#", "aych"]},
12
+ 'i' => {'noob' => ["i"], 'leet' => ["!", "1", "|", "eye", "3y3", "ai", "¡"]},
13
+ 'j' => {'noob' => ["j"], 'leet' => ["_|", "_/", "]", "¿", "</", "_)", "ʝ"]},
14
+ 'k' => {'noob' => ["k", "x"], 'leet' => ["X", "|<", "|X", "|{", "ɮ"]},
15
+ 'l' => {'noob' => ["l", "1", "|"], 'leet' => ["1", "7", "|_", "£", "|", "|_", "lJ", "¬", "1"]},
16
+ 'm' => {'noob' => ["m"], 'leet' => ["/\\/\\", "em", "|v|", "[V]", "^^", "nn", "(V)", "(\/)"]},
17
+ 'n' => {'noob' => ["n"], 'leet' => ["[\]", "<\>", "{\}", "//", "₪", "[]\[]", "]\[", "~"]},
18
+ 'o' => {'noob' => ["o", "0"], 'leet' => ["0", "()", "oh", "[]", "¤", "Ω"]},
19
+ 'p' => {'noob' => ["p", "f"], 'leet' => ["|*", "|o", "|º", "|>", "9", "[]D", "|7", "q", "þ", "¶", "℗", "|D"]},
20
+ 'q' => {'noob' => ["q"], 'leet' => ["0_", "0,", "(,)", "<|", "cue", "9", "¶"]},
21
+ 'r' => {'noob' => ["r"], 'leet' => ["|2", "2", "/2", "I2", "|^", "|~", "lz", "®", "|2", "[z", "|`", "l2", "Я", ".-", "ʁ"]},
22
+ 's' => {'noob' => ["s", "5", "z0rz"], 'leet' => ["5", "$", "z", "§", "es", "z0rz"]},
23
+ 't' => {'noob' => ["t", "+"], 'leet' => ["7", "+", "-|-", "1", "']['", "†"]},
24
+ 'u' => {'noob' => ["u", "yu"], 'leet' => ["_|", "(_)", "Y3W", "M", "µ", "[_]", "you"]},
25
+ 'v' => {'noob' => ["v"], 'leet' => ["\/", "√", "v"]},
26
+ 'w' => {'noob' => ["w"], 'leet' => ["vv", "'//", "\\'", "\^/", "(n)", "\X/", "]I[", "UU", "Ш", "ɰ"]},
27
+ 'x' => {'noob' => ["x", "cks"], 'leet' => ["%", "><", "Ж", "}{", "ecks", "×", "*", ")(", "ex"]},
28
+ 'y' => {'noob' => ["y", "joo"], 'leet' => ["j", "`/", "`(", "-/", "'/", "Ψ", "φ", "λ", "Ч", "¥"]},
29
+ 'z' => {'noob' => ["z", "s"], 'leet' => ["2", "≥", "~/_", " %", "ʒ", "7_"]},
30
+ " " => {'noob' => [" "], 'leet' => [" "]},
31
+ "!" => {'noob' => ["!"], 'leet' => ["!"]},
32
+ "," => {'noob' => [","], 'leet' => [","]},
33
+ "?" => {'noob' => ["?"], 'leet' => ["?"]},
34
+ "." => {'noob' => ["."], 'leet' => ["."]}
35
+ }
36
+
37
+ def to_leet(type = 'noob')
38
+ self.each_char.map{|c| char_convert(c.downcase, type)}.join
39
+ end
40
+
41
+ private
42
+
43
+ def char_convert(char, type)
44
+ SYMBOLS[char] ? SYMBOLS[char][type].shuffle.first : " "
45
+ end
46
+
47
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: E1337
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - M4c S|-|ifforde
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-31 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: conv3rt z0rztrin9 +0 l33+5f34x
15
+ email:
16
+ - shiroginne@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - 31337.gemspec
23
+ - Gemfile
24
+ - LICENSE
25
+ - README.md
26
+ - Rakefile
27
+ - lib/31337.rb
28
+ - lib/31337/version.rb
29
+ - lib/core_ext/string.rb
30
+ homepage: https://github.com/shiroginne/31337
31
+ licenses: []
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubyforge_project:
50
+ rubygems_version: 1.8.15
51
+ signing_key:
52
+ specification_version: 3
53
+ summary: conv3rt z0rztrin9 +0 l33+5f34x
54
+ test_files: []