centaur 0.0.1 → 0.0.2

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.
data/bin/centaur ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'centaur'
4
+
5
+ centaur ARGV.first
@@ -1,3 +1,3 @@
1
1
  module Centaur
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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 = 'x')
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.1
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