HyakuninIssyu 0.3.0 → 0.3.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: 9fa8a0763bc38a73c08b075a2266465cde4032da
4
- data.tar.gz: 86db85f965311e0ef6486bd0698ea54b6cda7267
3
+ metadata.gz: 7bf042c25359297101ac7411c5c0122a4ae83256
4
+ data.tar.gz: 2e0fff49fcbad45da695391518abe3b3fecc5e27
5
5
  SHA512:
6
- metadata.gz: 7bcc91e45b63b6d2b53f4a9fa56c41bebe8d5cb7a9eedf9ce5651cc130c172c06ff509342183341c7ba579e46cba44bdcc05f69c9e0ab0baec0f00fdbdc195c4
7
- data.tar.gz: b99303f0fbb01ddee735a998848d44e34031dd4dbae9815f01b522420410a93f73c6cb335e1f439f83188493e281a398ce3e316f1ed7ce46c1302620547b6cd8
6
+ metadata.gz: 456f397c3fd53d522ec30a9b210e01ec90b7822bf1c2b5b6751ddbdf5847ad8decea9b55c8ff3e7dc66206fcbf6e0b1a610f0423adf138e32433d0db1979c856
7
+ data.tar.gz: 04f1b56a826b618c1cafc950d51fa5a6577e00d730ccc0ef1d16d86abdc5e47e2dd566296c2edfdf3fbed2c5a05486fc171951fb8ffb9614df1ef5815b3403f5
data/README.md CHANGED
@@ -22,24 +22,26 @@ Or install it yourself as:
22
22
  $ gem install HyakuninIssyu
23
23
 
24
24
  ## Usage
25
+ When retrieving the 64th poem (it's one of my favourite),
26
+ make the instance of HyakuninIssyu class with its poem id first.
27
+
28
+ data = HyakuninIssyu.new(64)
25
29
 
26
30
  ###Poem Info | 歌情報の取得
27
- When retrieving the 64th poem (it's one of my favourite),
31
+ To retrieve the poem info,
28
32
 
29
- poem = HyakuninIssyu::Poem.new(64)
30
- poem.full #=> "朝ぼらけ 宇治の川霧 たえだえに あらはれわたる 瀬々の網代木"
31
- poem.comment #=> "「朝ぼらけ」は夜明けであたりがほのぼのと明るくなってくる頃..."
32
- poem.first #=> "朝ぼらけ宇治の川霧たえだえに"
33
- poem.last #=> "あらはれわたる瀬々の網代木"
33
+ data.poem.full #=> "朝ぼらけ 宇治の川霧 たえだえに あらはれわたる 瀬々の網代木"
34
+ data.poem.first #=> "朝ぼらけ宇治の川霧たえだえに"
35
+ data.poem.last #=> "あらはれわたる瀬々の網代木"
36
+ data.poem.comment #=> "「朝ぼらけ」は夜明けであたりがほのぼのと明るくなってくる頃..."
34
37
 
35
38
 
36
39
  ###Poet Info | 歌人情報の取得
37
40
  To retrieve the poet info for the same poem,
38
41
 
39
- poet = HyakuninIssyu::Poet.new(64)
40
- poet.name #=> "権中納言定頼"
41
- poet.period #=> "995-1045"
42
- poet.info #=> "本名は藤原定頼(ふじわらの さだより)。平安時代中期の公家・歌人..."
42
+ data.poet.name #=> "権中納言定頼"
43
+ data.poet.period #=> "995-1045"
44
+ data.poet.info #=> "本名は藤原定頼(ふじわらの さだより)。平安時代中期の公家・歌人..."
43
45
 
44
46
 
45
47
  ## Contributing
@@ -1,3 +1,3 @@
1
1
  class HyakuninIssyu
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HyakuninIssyu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomomichi