hyakunin-issyu 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e153c78b134a5fb5ceaf141df6a9cc405c06c1b
4
- data.tar.gz: d40bb2dc5bb66c33571be7c54fba8ef3c8b9349f
3
+ metadata.gz: c3175e49d35f66daed8dc9409af5264aebca4bb5
4
+ data.tar.gz: cc782f38c662d82d36ee068e3be10f54254961b7
5
5
  SHA512:
6
- metadata.gz: b62720cacb60f8c20c2f31a96347158e177f930cfaa9d65eb512f483836088a3f1e4cab1e907127a7f17ff36f4c00ac327535ddae85510cf770ddb2f625f9dbb
7
- data.tar.gz: 727c1a7c2bb3916baa144c1ca67afdeb1dbdd22562be444c9f8b8d40a1a94e34a6e4cd949f9b4e3f65913b484ce5013bec799c7d43b18ff9b06cad79c4390d34
6
+ metadata.gz: 9fd0f455e0a547921d9d26ab90ef6079a01d42042c33306868a0b094d8fe6226f6943e633bdea929b4976fa93842eb709122019a17c60c1168f8b01d7f7f7c7b
7
+ data.tar.gz: e8a698b34e0d4e745cc7496828f46f0c150ffa876e47b2291a62819149c3538cc6d0b9c1ed1deb1d8cc16dd2c175a75daf4d1453d2482fe1edeaddac07d20b3a
@@ -5,7 +5,7 @@ class HyakuninIssyu
5
5
  @@poets = YAML.load_file(File.expand_path(File.join('..', '..', 'config', 'poets.yml'), __FILE__))
6
6
 
7
7
  def self.find(id=nil)
8
- return false if id.nil? || id<1 || id>100
8
+ return nil if id.nil? || id<1 || id>100
9
9
  Data.new(id)
10
10
  end
11
11
 
@@ -22,8 +22,8 @@ class HyakuninIssyu
22
22
  @id = id
23
23
  end
24
24
 
25
- def inspect
26
- self.poem.inspect
25
+ def to_s
26
+ self.poem.to_s
27
27
  end
28
28
 
29
29
  def poem
@@ -40,7 +40,7 @@ class HyakuninIssyu
40
40
  @poem = @@poems[id-1]
41
41
  end
42
42
 
43
- def inspect
43
+ def to_s
44
44
  self.kanji
45
45
  end
46
46
 
@@ -87,7 +87,7 @@ class HyakuninIssyu
87
87
  @first_en = en_data[0]
88
88
  end
89
89
 
90
- def inspect
90
+ def to_s
91
91
  self.kanji
92
92
  end
93
93
 
@@ -119,7 +119,7 @@ class HyakuninIssyu
119
119
  @last_en = en_data[1]
120
120
  end
121
121
 
122
- def inspect
122
+ def to_s
123
123
  self.kanji
124
124
  end
125
125
 
@@ -142,8 +142,8 @@ class HyakuninIssyu
142
142
  @poet = @@poets[id-1]
143
143
  end
144
144
 
145
- def inspect
146
- self.name.inspect
145
+ def to_s
146
+ self.name.to_s
147
147
  end
148
148
 
149
149
  def id
@@ -159,7 +159,7 @@ class HyakuninIssyu
159
159
  @name = data['name']
160
160
  end
161
161
 
162
- def inspect
162
+ def to_s
163
163
  self.ja
164
164
  end
165
165
 
@@ -1,3 +1,3 @@
1
1
  class HyakuninIssyu
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyakunin-issyu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomomichi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-23 00:00:00.000000000 Z
11
+ date: 2015-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler