centaur 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/centaur +5 -0
- data/lib/centaur/version.rb +1 -1
- data/lib/centaur.rb +3 -2
- metadata +4 -3
data/bin/centaur
ADDED
data/lib/centaur/version.rb
CHANGED
data/lib/centaur.rb
CHANGED
@@ -45,6 +45,7 @@ xxxxxxx xxxxx
|
|
45
45
|
|
46
46
|
def centaur!
|
47
47
|
gsub!(/\s/, '')
|
48
|
+
replace('x') if empty?
|
48
49
|
centaur_length = CENTAUR.scan(/x/).length
|
49
50
|
if length < centaur_length
|
50
51
|
self << self while length < centaur_length
|
@@ -64,7 +65,7 @@ end
|
|
64
65
|
|
65
66
|
|
66
67
|
module Kernel
|
67
|
-
def centaur(string
|
68
|
-
puts string.centaur
|
68
|
+
def centaur(string)
|
69
|
+
puts string.to_s.centaur
|
69
70
|
end
|
70
71
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: centaur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Robert Pitts
|
@@ -17,8 +17,8 @@ dependencies: []
|
|
17
17
|
description: Surely you've wanted your strings to be centaurs, eh?
|
18
18
|
email:
|
19
19
|
- rbxbxdev@gmail.com
|
20
|
-
executables:
|
21
|
-
|
20
|
+
executables:
|
21
|
+
- centaur
|
22
22
|
extensions: []
|
23
23
|
|
24
24
|
extra_rdoc_files: []
|
@@ -28,6 +28,7 @@ files:
|
|
28
28
|
- Gemfile
|
29
29
|
- README.md
|
30
30
|
- Rakefile
|
31
|
+
- bin/centaur
|
31
32
|
- centaur.gemspec
|
32
33
|
- lib/README.md
|
33
34
|
- lib/centaur.rb
|