derp 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/derp.rb +11 -1
- data/lib/derp/version.rb +1 -1
- data/test/derp_test.rb +4 -0
- metadata +3 -40
data/lib/derp.rb
CHANGED
@@ -40,7 +40,17 @@ class String
|
|
40
40
|
'x' => 'derpherpherpderp',
|
41
41
|
'y' => 'derpherpderpderp',
|
42
42
|
'z' => 'derpderpherpherp',
|
43
|
-
' ' => '.'
|
43
|
+
' ' => '.',
|
44
|
+
'1' => 'herpherpderpderp',
|
45
|
+
'2' => 'herpderpherpderp',
|
46
|
+
'3' => 'derpderpderpderp',
|
47
|
+
'4' => 'derpherpherpherpderp',
|
48
|
+
'5' => 'derpderpderpderpderp',
|
49
|
+
'6' => 'derpherpherpherpherp',
|
50
|
+
'7' => 'herpderpderpderpderp',
|
51
|
+
'8' => 'herpherpherpherpherp',
|
52
|
+
'9' => 'derpherpherpderpderp',
|
53
|
+
'0' => 'herpherpderpderpherp'
|
44
54
|
}
|
45
55
|
|
46
56
|
# This method converts a string to a derp string. Not to be confused
|
data/lib/derp/version.rb
CHANGED
data/test/derp_test.rb
CHANGED
@@ -55,4 +55,8 @@ class TestDerp < MiniTest::Unit::TestCase
|
|
55
55
|
def test_to_capital_letters
|
56
56
|
assert_equal "herpderp herpderp", "AA".to_derp
|
57
57
|
end
|
58
|
+
|
59
|
+
def test_numbers
|
60
|
+
assert_equal "1234567890".to_derp, "herpherpderpderp herpderpherpderp derpderpderpderp derpherpherpherpderp derpderpderpderpderp derpherpherpherpherp herpderpderpderpderp herpherpherpherpherp derpherpherpderpderp herpherpderpderpherp"
|
61
|
+
end
|
58
62
|
end
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: derp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 3005118107932468525
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 1.0.1
|
5
|
+
version: 1.0.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Steve Klabnik
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
13
|
+
date: 2012-01-06 00:00:00 -05:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,9 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 2002549777813010636
|
30
|
-
segments:
|
31
|
-
- 0
|
32
24
|
version: "0"
|
33
25
|
type: :development
|
34
26
|
version_requirements: *id001
|
@@ -40,9 +32,6 @@ dependencies:
|
|
40
32
|
requirements:
|
41
33
|
- - ">="
|
42
34
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 2002549777813010636
|
44
|
-
segments:
|
45
|
-
- 0
|
46
35
|
version: "0"
|
47
36
|
type: :development
|
48
37
|
version_requirements: *id002
|
@@ -54,9 +43,6 @@ dependencies:
|
|
54
43
|
requirements:
|
55
44
|
- - ">="
|
56
45
|
- !ruby/object:Gem::Version
|
57
|
-
hash: 2002549777813010636
|
58
|
-
segments:
|
59
|
-
- 0
|
60
46
|
version: "0"
|
61
47
|
type: :development
|
62
48
|
version_requirements: *id003
|
@@ -68,26 +54,9 @@ dependencies:
|
|
68
54
|
requirements:
|
69
55
|
- - ">="
|
70
56
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 2002549777813010636
|
72
|
-
segments:
|
73
|
-
- 0
|
74
57
|
version: "0"
|
75
58
|
type: :runtime
|
76
59
|
version_requirements: *id004
|
77
|
-
- !ruby/object:Gem::Dependency
|
78
|
-
name: minitest
|
79
|
-
prerelease: false
|
80
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ">="
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
hash: 2002549777813010636
|
86
|
-
segments:
|
87
|
-
- 0
|
88
|
-
version: "0"
|
89
|
-
type: :runtime
|
90
|
-
version_requirements: *id005
|
91
60
|
description: This gem gives you String#to_derp, which converts your string to morse code, and then encodes dots and dashes via herps and derps.
|
92
61
|
email:
|
93
62
|
- steve@steveklabnik.com
|
@@ -125,23 +94,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
94
|
requirements:
|
126
95
|
- - ">="
|
127
96
|
- !ruby/object:Gem::Version
|
128
|
-
hash: 2002549777813010636
|
129
|
-
segments:
|
130
|
-
- 0
|
131
97
|
version: "0"
|
132
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
99
|
none: false
|
134
100
|
requirements:
|
135
101
|
- - ">="
|
136
102
|
- !ruby/object:Gem::Version
|
137
|
-
hash: 2002549777813010636
|
138
|
-
segments:
|
139
|
-
- 0
|
140
103
|
version: "0"
|
141
104
|
requirements: []
|
142
105
|
|
143
106
|
rubyforge_project:
|
144
|
-
rubygems_version: 1.5.
|
107
|
+
rubygems_version: 1.5.0
|
145
108
|
signing_key:
|
146
109
|
specification_version: 3
|
147
110
|
summary: This gem gives you String#to_derp.
|