HyakuninIssyu 0.1.0 → 0.2.0
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 +4 -4
- data/README.md +24 -2
- data/lib/HyakuninIssyu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6dc0a88331c18cd7b3095170dedf5e891bde7141
|
|
4
|
+
data.tar.gz: 7636336d6f33e76ed00201095e92aec0031887c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b24f155a4fa0f8bd2f108c015e734d2f83357175f4516f188a2afd2ed11c6ae28970a0ae9b13a87b64fa68561f68856faf2c8afe1e24800f5ad182ba72b6b04b
|
|
7
|
+
data.tar.gz: c1f46a9c9e717ee7a1151d16a058c0250653951bb15cb3d4074e198bc4040c27d7df06fde38378bef1dfb98950e10578180e59343f50ff91907fbc525daf8e09
|
data/README.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# HyakuninIssyu
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
|