HyakuninIssyu 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de7a75f3443ac869a3fefbe03b3434cd991dde33
4
- data.tar.gz: f91bf8da91999273c46827db8d7c63bd78803728
3
+ metadata.gz: 6dc0a88331c18cd7b3095170dedf5e891bde7141
4
+ data.tar.gz: 7636336d6f33e76ed00201095e92aec0031887c7
5
5
  SHA512:
6
- metadata.gz: 52f334795d3bb5d152f5aaa772282c512f07a62a32c64dd820aaa568282e7ed85c2ec18d45c94498118fdef2f5093f9a69427fd2b442cd3a4de2db2a97a350c3
7
- data.tar.gz: a3f0d9b97a8b26bf02af9ef392f16be48f0e026748caf31c999428cfec0021ae742365f16380ef3d66f9027dd543846e1e7eb5777471948ad5f986789670a7da
6
+ metadata.gz: b24f155a4fa0f8bd2f108c015e734d2f83357175f4516f188a2afd2ed11c6ae28970a0ae9b13a87b64fa68561f68856faf2c8afe1e24800f5ad182ba72b6b04b
7
+ data.tar.gz: c1f46a9c9e717ee7a1151d16a058c0250653951bb15cb3d4074e198bc4040c27d7df06fde38378bef1dfb98950e10578180e59343f50ff91907fbc525daf8e09
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # HyakuninIssyu
2
2
 
3
- TODO: Write a gem description
3
+ "HyakuninIssyu" is a Gem for installing poems and poets info of Hyakunin-Issyu, 100 poems by 100 poets into your apps.
4
+ You can take any poems of Hyakunin-Issyu, poets info and a commentary on it, in addition of the feature to take the first or last half of the poem.
5
+ (it may be necessary for building game style Hyakunin-Issyu application)
6
+
7
+ HyakuninIssyuは、百人一首の歌情報・歌人情報をアプリに取り込むためのGemです。
8
+ 百首すべての歌の歌人情報や解説に加え、上の句、下の句だけの表示も行うことができます。
4
9
 
5
10
  ## Installation
6
11
 
@@ -18,7 +23,24 @@ Or install it yourself as:
18
23
 
19
24
  ## Usage
20
25
 
21
- TODO: Write usage instructions here
26
+ ###Poem Info
27
+ When retrieving the 64th poem (it's one of my favourite),
28
+
29
+ poem = HyakuninIssyu::Poem.new(64)
30
+ poem.full #=> "朝ぼらけ 宇治の川霧 たえだえに あらはれわたる 瀬々の網代木"
31
+ poem.comment #=> "「朝ぼらけ」は夜明けであたりがほのぼのと明るくなってくる頃..."
32
+ poem.first #=> "朝ぼらけ宇治の川霧たえだえに"
33
+ poem.last #=> "あらはれわたる瀬々の網代木"
34
+
35
+
36
+ ###Poet Info
37
+ To retrieve the poet info for the same poem,
38
+
39
+ poet = HyakuninIssyu::Poet.new(64)
40
+ poet.name #=> "権中納言定頼"
41
+ poet.period #=> "995-1045"
42
+ poet.info #=> "本名は藤原定頼(ふじわらの さだより)。平安時代中期の公家・歌人..."
43
+
22
44
 
23
45
  ## Contributing
24
46
 
@@ -1,3 +1,3 @@
1
1
  module HyakuninIssyu
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomomichi