keigo 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{keigo}
8
- s.version = "0.0.0"
8
+ s.version = "0.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{kano4}]
@@ -1,5 +1,6 @@
1
- class Object
1
+ # encoding: utf-8
2
+ class Keigo
2
3
  def sama(name)
3
- puts "#{name}様"
4
+ "#{name}様"
4
5
  end
5
6
  end
@@ -1,7 +1,10 @@
1
+ # encoding: utf-8
1
2
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
3
 
3
4
  describe "Keigo" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
5
+ it "は、samaを使うと'様'が付加される" do
6
+ keigo = Keigo.new
7
+ name = keigo.sama('Keigo')
8
+ name.should == 'Keigo様'
6
9
  end
7
10
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: keigo
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.0
5
+ version: 0.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - kano4
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- hash: -1756575960022708435
94
+ hash: -1390406890285455638
95
95
  segments:
96
96
  - 0
97
97
  version: "0"