readable_message 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,8 +43,10 @@ module ReadableMessage
43
43
 
44
44
  end
45
45
 
46
- module Kernel
47
- def readable(msg, *args)
48
- ReadableMessage::Formatter.new(msg, args).to_s
46
+ class Object
47
+ def to_readable(*args)
48
+ ReadableMessage::Formatter.new(self, args).to_s
49
49
  end
50
- end
50
+ end
51
+
52
+ "brandon".to_readable
@@ -1,3 +1,3 @@
1
1
  module ReadableMessage
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  describe ReadableMessage do
4
4
 
5
- subject { Kernel }
6
- it { should respond_to(:readable) }
5
+ subject { "my string" }
6
+ it { should respond_to(:to_readable) }
7
7
 
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readable_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: