pebbles-lovelive 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e6837e25d1e6b5324cb99bf10e835da98d9476c1
4
+ data.tar.gz: bb17750b6dd0651d4d1c22a54ac15725758f512b
5
+ SHA512:
6
+ metadata.gz: 6d82dab96d02c270b15226e03c683bf832dfceff343ec344439217d82592afac5fdb5bc30a4002fde8f1b84c8b09132a7a31e062cecaeb7e28883ef4a7251f63
7
+ data.tar.gz: 111bddb3bfb7ca3402f98fd8d263b21aeed5b110013a1d8757bf2d64800b5dbb6aff403da40fb6b1ced5d5d6b81704b5f6d2ead6f8852485a25fe09ac5128348
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ repo_token: xpmotTKaleGLvGwtff1kUOif4FdHLXPI7
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.0
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in lovelive.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 STAR_ZERO
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,90 @@
1
+ # Pebbles::Lovelive
2
+
3
+ [![Build Status](https://travis-ci.org/STAR-ZERO/pebbles-lovelive.svg?branch=master)](https://travis-ci.org/STAR-ZERO/pebbles-lovelive)
4
+ [![Coverage Status](https://coveralls.io/repos/STAR-ZERO/pebbles-lovelive/badge.png)](https://coveralls.io/r/STAR-ZERO/pebbles-lovelive)
5
+ [![Code Climate](https://codeclimate.com/github/STAR-ZERO/pebbles-lovelive.png)](https://codeclimate.com/github/STAR-ZERO/pebbles-lovelive)
6
+
7
+ Show the profile of LoveLive μ's members.
8
+
9
+ [LoveLive!](http://www.lovelive-anime.jp/) is Japanese Animation.
10
+
11
+ ## Installation
12
+
13
+ $ gem install pebbles-lovelive
14
+
15
+ ## Usage
16
+
17
+ ### in Ruby code
18
+
19
+ ```ruby
20
+ require 'pebbles/lovelive'
21
+
22
+ eli = Pebbles::LoveLive.eli
23
+ eli.name # => "絢瀬絵里"
24
+ ```
25
+
26
+ ### in terminal
27
+
28
+ ```
29
+ $ lovelive eli
30
+ 名前: 絢瀬絵里
31
+ CV: 南條愛乃
32
+ 誕生日: 10月21日(天秤座)
33
+ 血液型: B型
34
+ ...
35
+ ...
36
+ ```
37
+
38
+ ```
39
+ $ lovelive eli --aa
40
+ 名前: 絢瀬絵里
41
+ CV: 南條愛乃
42
+ 誕生日: 10月21日(天秤座)
43
+ 血液型: B型
44
+ ...
45
+ ...
46
+
47
+              , 、 , -‐- 、
48
+             /  ∨ / \\
49
+          _,∠二 ー-v'、-‐   | {
50
+       / ´      ̄`ヽ\`ヽj_ \
51
+      /   /|       \ヽ  `ー , ヽ
52
+      ハ   //  ヽ  ヽ     ヽヽ / ト、 }
53
+       | l  ハlー-   \ ヽ    | |Vヽ l リ
54
+      ゛ヽ | ,ィ示.    rテミヽ  / j   } /
55
+        i'ヾ弋ソ   弋ソノ//V   //
56
+       リ|           リ__ノ  "
57
+         | > 、_ ` ´_ /ヽヽ
58
+         ヾ{  /,ニ、:\  }/
59
+             ハ: }∧{: :,、:\
60
+         /: } :。l : : {/: :/
61
+           l: /: :。| : : ヽ;/
62
+          /\:/\:/ヽ
63
+          ヽ土土土土ノ
64
+           |_| |_|
65
+          |:::::| |:::::|
66
+          l::::/ |:::/
67
+          `´.  `´
68
+ ```
69
+
70
+ ## Members and aliases
71
+
72
+ | name | alias |
73
+ |------------|--------|
74
+ | 高坂穂乃果 | honoka |
75
+ | 絢瀬絵里 | eli |
76
+ | 南ことり | kotori |
77
+ | 園田海未 | umi |
78
+ | 星空凛 | rin |
79
+ | 西木野真姫 | maki |
80
+ | 東條希 | nozomi |
81
+ | 小泉花陽 | hanayo |
82
+ | 矢澤にこ | nico |
83
+
84
+ ## Contributing
85
+
86
+ 1. Fork it ( http://github.com/STAR-ZERO/pebbles-lovelive/fork )
87
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
88
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
89
+ 4. Push to the branch (`git push origin my-new-feature`)
90
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/lovelive ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'pebbles/lovelive/cli'
4
+
5
+ Pebbles::LoveLive::CLI.start(ARGV)
data/config/aa_eli.txt ADDED
@@ -0,0 +1,21 @@
1
+              , 、 , -‐- 、
2
+             /  ∨ / \\
3
+          _,∠二 ー-v'、-‐   | {
4
+       / ´      ̄`ヽ\`ヽj_ \
5
+      /   /|       \ヽ  `ー , ヽ
6
+      ハ   //  ヽ  ヽ     ヽヽ / ト、 }
7
+       | l  ハlー-   \ ヽ    | |Vヽ l リ
8
+      ゛ヽ | ,ィ示.    rテミヽ  / j   } /
9
+        i'ヾ弋ソ   弋ソノ//V   //
10
+       リ|           リ__ノ  "
11
+         | > 、_ ` ´_ /ヽヽ
12
+         ヾ{  /,ニ、:\  }/
13
+             ハ: }∧{: :,、:\
14
+         /: } :。l : : {/: :/
15
+           l: /: :。| : : ヽ;/
16
+          /\:/\:/ヽ
17
+          ヽ土土土土ノ
18
+           |_| |_|
19
+          |:::::| |:::::|
20
+          l::::/ |:::/
21
+          `´.  `´
@@ -0,0 +1,21 @@
1
+          /{
2
+        r、/  ,ゝ' :´: ̄:``ヽ、
3
+     r―‐`v':´: : : : : : : : : : : : `ヽ、
4
+     ,ゝ、 /: : : 、:ヽ : : : : : : : : : ヽ.:ヽ
5
+      ヽ V: : : : /ヽ:\: : : : : : : : : :',: ',
6
+       V : : : : |  ヾ´`ヽ、:_:_:_:_:_:_:|: :|
7
+         |: : :|: : | ,ィ笊ミ.   r笊、|゙: :|
8
+         l: : {ヽ: l弋辷ソ   ヒzソ l: : |
9
+       '; : |ヽ_ヾ          ,' ; /
10
+         ヽ:ト、: `ヽ、  ` '  ,ノ ;〃
11
+          `ヽ、:_rv-、ー、´-‐'´
12
+               /:VV:ヽ : )
13
+            |:_/ : ヽ:_:7
14
+             "ノ: :.o|: : :ヽ
15
+              { : : o| : : : ゝ
16
+            /\/\/ ヽ
17
+              く_土土土土/
18
+               l |  l |
19
+               |ー|  |ー|
20
+                ヽ:|  |:/
21
+                   ゛ "
@@ -0,0 +1,21 @@
1
+             /ヽ
2
+          ___ / _  {
3
+        ヽ   rヽ/´. ̄.`.ー-.、
4
+        /´}  /´ . . . /. . . . . . .`ヽ
5
+       /,. .∠ニ/. . . . . ./. . . . . .,、. . . . .ヽ
6
+     j |. . . . / . . . ハ. |. . . . . /  \. . . .',
7
+      l,ハ . . . |. .|. ./ リヽ . . ./ '´  ヽ. . .|
8
+       }. /|.l l. .| ,ィ示、ヽ { f芥ミ、|_. . |
9
+        "   |ハ.ヽ|弋辷ソ  ゛ 弋辷ソj,ハ. {
10
+           "/.ヽ.ゝ     _     /ノ .ヽ
11
+           {. ._._.> 、__ー'___/.´./|.|
12
+          ヾ{ノゝー',.-く X /:ヽ}.〃´  "
13
+           ヾ: :`´;、: : :∨ : 、:ヽ
14
+               `ー´ }: :.:o|: : :{ >: 〉
15
+              /: : :o| : : (、:/
16
+              /\:_:∧:_:ノヾ
17
+                く土土土土土ゝ
18
+                ` l | ̄l | ´
19
+               |__|  |__|
20
+                ヽ:|  |:/
21
+                ゛  "
@@ -0,0 +1,21 @@
1
+         ,.、    _
2
+         /:.:.:ヽ / ゝ-一:.:ー-.、
3
+       {; -‐-、:V /:.:..:.:.:.:.:.:.:.:.:.:.:ヽ
4
+       r'゙´ ̄ /´: ̄: ̄: ̄: ̄`ヽ:|ヽ
5
+        ,ゝ、 /:.:.:.:.:,:.:.:.:.:.:、:.:.:.:.:.ヽ:.:.゛:.:ヽ
6
+       /:.:.:.:.V:.:.:.:.:/_ヽ:.:.:.:.:ヽ:.:.:.:.:.:ヽ:.:.:.:.:',
7
+      j:.:.:.:/|:.:|:.:.:|  ヽ:.:.:.:.lヽ:_:_:_:_|:.:.:.:.:|
8
+       |:.:./  ,!:.:';.:.:lfて心  ゙̄ fて心|:.:/:/ ___
9
+      ヾ /:.ヽ:ヾ弋こソ   弋こソj;/'"l´:.:.:., -、:ヽ
10
+       //:.:./、ヾ    、 ,     /-‐く:.:/   `゙
11
+      {:.:/:.:./|:.:.:.|`>. 、_     _,/:.:.:.:.:.:. ̄:`ヽ、
12
+       ヾ{:.:.:l. |:.:.:.|ヽ:.:.:.;.-<l不l>-、:.:.:.:.:.:.:.:.:.r‐- 、:.|
13
+        ヽ:ヽヽ:.:ヽ /: ; :ヽ_/: : 、:\:.; -―ヽ   リ
14
+          `゙_,/: /|: :.o|: : : |:\:`ー、┐
15
+           ゝ-ゝ'´ /: : o|: : : |ヾ' `ー'"´
16
+              /\:/\:,/ヽ
17
+             ヽ土土土土/
18
+                r|  | |  |
19
+                 `ヽ/' |__/
20
+                 |:/
21
+                 "
@@ -0,0 +1,21 @@
1
+               , . -―- . 、
2
+           ,. :':´: : ; .-――: :`ヽ、
3
+           /: : :/´ : : : : : : : : : : : ヽ
4
+         /: : : :/: : : : : : : : : : :,: : : :、: :',
5
+        j: : : :/: : : : : : : : : :/ ヽ: : :| : |
6
+         |: : : :| : : : : : : :_/"´  ',: :| : |
7
+         |: : : :|゙f芥芯"´   rテ芥ァ|:./ : |
8
+        }: : : :!弋辷ソ    弋辷ソ〃 : : ヽ
9
+        /:.|: 、:ヽ         /: ; : : |:.}
10
+         |: ハ: :ヽ: ト.、 _`_´_ ,/: /: :_;//
11
+         `ヾ ヽ: : |ヾ/;rY-.、:`| ;/'"´〃
12
+           `'/:/:}._∧._.{、:リヽ
13
+              〈: :〈 |: : o|: : :| 〉: :〉
14
+             ヽ.:/: : :o|: : :V: :/
15
+             ゙7\:./\:/ヾr'
16
+               く土土土土土,ゝ
17
+             ` l |  ̄ l |´
18
+                  |__l   |__|
19
+                  |:::|   |:::|
20
+                  |:/   ヽ:|
21
+              "     ゛
@@ -0,0 +1,21 @@
1
+               ,..-―一::ー-....、 |`7‐-.、
2
+          /ヽ. /:::::::::::::::::::::::::::::::::\|/_::::::::::\
3
+         ,..-\//:::::::::::/::::::::::ト、:::ヽ::::::::::ヽ `7::::::::ヽ
4
+       /:::::://:::::::::::::::ハ:::::::::::| ヽ::ト、::::::::::∨、::::::::::::ヽ
5
+        /:::::::ヽ |::::::::::::/-|::::::::/ '´ リ ヽ::::::::|/ヽ::::::::::::::',
6
+ .     /:::::::::<__l::::::::/リ   |:::::/  rテミ、 |:::::::j  ヽ:::::::::::|
7
+      j::::::::::::/|::|::::| ,ィテミ'´  弋辷ソ' |;/ヾ    ヽ::::::|
8
+       l:::::::::/'  |::|::::| 弋辷ソ         |、ノ      ';::::j
9
+       |::::::/   |:ハ:::|、     r  7    r' く      }:/
10
+       ヽ:::{    リ ヽ:ヽヽ __ー_,_< `Tヽ     ,〃
11
+       ヽヽ     ヾ   ,.-:'ニ_X__| : :`:´ : |
12
+          `゛        /: /|:}__只_{: {` ー┘
13
+            _/: / /: V  V: |
14
+            ヽr'ー'´ /: :/___ヽ:ヽ
15
+                /`V土土土l;/、
16
+                  ゝ土土土土土ゝ
17
+                   / /  ̄ ̄|  |´
18
+               /ヽ/    |  |
19
+                {/       |ヽ/
20
+                     | /
21
+                     ゙´
@@ -0,0 +1,21 @@
1
+                 ,..-一::ー-.、
2
+             ,..:'´::::::::::::::::::::、::::`ヽ、
3
+             /:::::::::::::::::::::::::::::;|:::::::::::::ヽ
4
+           /::::::::::/:::::::::::;:::::::::ハ:::::、::::::|:ヽ
5
+          j::;:::::::/::::::://::::::/ー-ヽ:::';::::|:::::|
6
+           |::|::::::|:::://::;/    ヽ|::::|:::::|
7
+           |;ハ:::::l:/,ニ=ミ´    fテミ、|::::|:::::|
8
+            ヽ:|'弋辷ソ    ゞ-‐'´|:/ }:/
9
+            '; 、    __     , -':/_,..-‐..、
10
+        ,..-――-くヽヽ.   ゝ ノ  _/::/}::- 、:::::::::::ヽ
11
+       /://::::_r、工上;ニーz一/ :ヽヾ一':::::::::::\-、::ヽ
12
+     {:/ /:::::::`ー┴┬‐┐://{. j: :,: :| ヽ:::::::::::::::::::ヽ.`ヾ
13
+     リ /:::::::::::::::::::/   }:j |: | |。:{ヽ:ヽ  \:::::::::::::::::',
14
+      |:::::::::; -‐'´     /:.| ヽ| |。:ヽ ヽ:ヽ   `ヽ、:::::::::|
15
+      ヽ:::::{       >、|___|:_;ノ、 Vヽ     ヽ::::|
16
+       ヽ::`ー-イ   / 土土土土 ヽ `´  、 _ノ:ノ
17
+           ̄´     `Tー┬┬ ┬'´      `ー'´
18
+                ヽ ヽ.|  |
19
+                 \ |  |
20
+                        ゙|__/
21
+                    └'
data/config/aa_rin.txt ADDED
@@ -0,0 +1,21 @@
1
+                    , 、
2
+               ____|. ヽ /ヽ
3
+            ,. .'.´ . . . . . . . .`ヽ.V__ノ
4
+             /. . . . . . . . . . . . . . . \``ヽ、
5
+           /. . . ./'|. . . . . . , . . . . . . . ヽ /
6
+        / . . . /_ |. . . . . .ハ. . . . . 、. . . V
7
+          l. ., . /   ヽ. . . / -ヽ . . . |. . |. |
8
+          |. | . ! ,ィテハヽ./    ヽ . /. ./. .|
9
+        ', ヽ.l弋辷リ   ∠´ |.,/. ./ . /
10
+         ヽ. ヾ        〃/ノ/
11
+             ``ヽ、  ーく) ._/ヾ)‐'´
12
+               ` T:/: :/:/|
13
+                 |_:_/:./: |
14
+                 _,ゝ:oヽ: : :ヽ
15
+               「土ヽ:_/\:_/、
16
+              /\土土土土、|
17
+              /,   '´` ーr- 、土|
18
+            "´      / / `゛
19
+                      / /
20
+                  |、/
21
+                  "
data/config/aa_umi.txt ADDED
@@ -0,0 +1,20 @@
1
+                r‐- 、
2
+           , . .-―一ー}-.、
3
+            /: : : :, -―‐- 、: : \
4
+           / : : /´:::::::::::::::::::::`ヽ、:ヽ
5
+        j: : :/::::::::/:::/::::::::::|:::::::::::ヽ}
6
+         {: :/::::::::/|::/l::::::::::ハ:::::::::::::|ヾ:、
7
+           V::::::::/ リ‐|:::::::/-‐ヽ:::::::::| リ
8
+        /|::::::::|r笊ミ ヽ:/ r笊ミ゙!:::::|
9
+         /:::ゝ、::弋zソ    弋zソj;/ヽ
10
+      /:/::::ヽゞヽ   、 ,     /‐':、:::ヽ
11
+       l:::/|:::/:::|::::>...、__ /:;::::::ハ:::::|
12
+      リ |::|::::ハ:::/´ヽX/|\:::/::::/ }:/
13
+          ヽ::{ /:/|: :}_∧/: 、:\:/ 〃
14
+        r‐゙く_;/ j: :o|  |: :{ \:`ーr┐
15
+           ̄´  / : o|―|: :ヽ. `´ ̄
16
+               7ー‐┘土゙ーく
17
+            く土土土土土ゝ
18
+              `゙l__|  ̄ l__|´
19
+              |:::l   |:::|
20
+              ヽj   ヽj
@@ -0,0 +1,144 @@
1
+ :honoka:
2
+ :first_name: 穂乃果
3
+ :last_name: 高坂
4
+ :cv: 新田恵海
5
+ :age: 16
6
+ :birth_month: 8
7
+ :birth_day: 3
8
+ :zodiac_sign: 獅子座
9
+ :blood_type: O
10
+ :height: 157
11
+ :bust: 78
12
+ :waste: 58
13
+ :hip: 82
14
+ :favorite_food: いちご
15
+ :dislike_food: ピーマン
16
+ :profile: 16歳。高校2年生。μ'sの発起人。いつも笑顔でとにかく元気が取り柄。直感と思いつきで行動し、一度決めたら猪突猛進の一直線。多少の困難があっても持ち前の超ポジティブシンキングで次々と突破していく。μ'sのエンジンであり牽引者。
17
+ :eli:
18
+ :first_name: 絵里
19
+ :last_name: 絢瀬
20
+ :cv: 南條愛乃
21
+ :age: 17
22
+ :birth_month: 10
23
+ :birth_day: 21
24
+ :zodiac_sign: 天秤座
25
+ :blood_type: B
26
+ :height: 162
27
+ :bust: 88
28
+ :waste: 60
29
+ :hip: 84
30
+ :favorite_food: チョコレート
31
+ :dislike_food: 梅干・のり
32
+ :profile: 17歳。高校3年生。生徒会の会長にして、ロシア人のクォーター。頭脳明晰、運動神経抜群、何をやらせてもそつなくこなす。学校でも人気抜群で、責任感が強く、生徒会長を務める。
33
+ :kotori:
34
+ :first_name: ことり
35
+ :last_name: 南
36
+ :cv: 内田彩
37
+ :age: 16
38
+ :birth_month: 9
39
+ :birth_day: 12
40
+ :zodiac_sign: 乙女座
41
+ :blood_type: O
42
+ :height: 159
43
+ :bust: 80
44
+ :waste: 58
45
+ :hip: 80
46
+ :favorite_food: チーズケーキ
47
+ :dislike_food: にんにく
48
+ :profile: 16歳。高校2年生。穂乃果の一番の友人。幼馴染で幼稚園の頃からいつも一緒に遊んでいた仲である。穂乃果とは対照的におっとりと柔らかい性格で、勉強もそつなくこなす優等生。おっとりとはしているが芯は強く、物怖じしない。
49
+ :umi:
50
+ :first_name: 海未
51
+ :last_name: 園田
52
+ :cv: 三森すずこ
53
+ :age: 16
54
+ :birth_month: 3
55
+ :birth_day: 15
56
+ :zodiac_sign: 魚座
57
+ :blood_type: A
58
+ :height: 159
59
+ :bust: 76
60
+ :waste: 58
61
+ :hip: 80
62
+ :favorite_food: 穂乃果の家のまんじゅう
63
+ :dislike_food: 炭酸飲料
64
+ :profile: 16歳。高校2年生。日舞の家元の家に育ち、凛とした雰囲気を漂わせる大和撫子。子供の頃から弓道で鍛えられ、礼儀作法も完璧な女の子。自分に厳しく、周りにも厳しいという典型。悪事や怠けるといったことが大嫌い。穂乃果、ことりとは幼馴染。
65
+ :rin:
66
+ :first_name: 凛
67
+ :last_name: 星空
68
+ :cv: 飯田里穂
69
+ :age: 15
70
+ :birth_month: 11
71
+ :birth_day: 1
72
+ :zodiac_sign: 蠍座
73
+ :blood_type: A
74
+ :height: 155
75
+ :bust: 75
76
+ :waste: 59
77
+ :hip: 80
78
+ :favorite_food: ラーメン!
79
+ :dislike_food: お魚
80
+ :profile: 15歳。高校1年生。体育会系でいつも明るく、くよくよ悩むより体を動かすタイプ。面白そうという理由で何にでも参加してしまう。体育会系だけあって面倒見はよく、いつも幼馴染の花陽の面倒を見ている。何を言われても返事は大きく、きびきび練習する。
81
+ :maki:
82
+ :first_name: 真姫
83
+ :last_name: 西木野
84
+ :cv: Pile
85
+ :age: 15
86
+ :birth_month: 4
87
+ :birth_day: 19
88
+ :zodiac_sign: おひつじ座
89
+ :blood_type: AB
90
+ :height: 161
91
+ :bust: 78
92
+ :waste: 56
93
+ :hip: 83
94
+ :favorite_food: トマト
95
+ :dislike_food: みかん
96
+ :profile: 15歳。高校1年生。両親が大病院を経営しているお嬢様。歌が抜群に上手く、ピアノも弾ける待望の一年生。高飛車でプライドが高く、本心を見せるのが苦手。持ち前の度胸で上級生にも強気で渡り合う。実はさみしがりな一面も。
97
+ :nozomi:
98
+ :first_name: 希
99
+ :last_name: 東條
100
+ :cv: 楠田亜衣奈
101
+ :age: 17
102
+ :birth_month: 6
103
+ :birth_day: 9
104
+ :zodiac_sign: 双子座
105
+ :blood_type: O
106
+ :height: 159
107
+ :bust: 90
108
+ :waste: 60
109
+ :hip: 82
110
+ :favorite_food: 焼き肉
111
+ :dislike_food: キャラメル
112
+ :profile: 17歳。高校3年生。生徒会副会長。絵里とは対照的にマイペースな性格で、関西弁混じりの独特の口調で話す。クールな雰囲気の絵里とはいいコンビ。大らかさがあり、全メンバー中、実は精神年齢は一番上と思わせる所も。のほほんとしているけれど、意外と策士?
113
+ :hanayo:
114
+ :first_name: 花陽
115
+ :last_name: 小泉
116
+ :cv: 久保ユリカ
117
+ :age: 15
118
+ :birth_month: 1
119
+ :birth_day: 17
120
+ :zodiac_sign: 山羊座
121
+ :blood_type: B
122
+ :height: 156
123
+ :bust: 82
124
+ :waste: 60
125
+ :hip: 83
126
+ :favorite_food: 白いごはん
127
+ :dislike_food: なし
128
+ :profile: 15歳。高校1年生。クラスでもあまり目立たない、おとなしい女の子。自信がなく、何をやろうとしても諦めてしまいがち。μ'sに憧れて、凛、真姫と共に入部することになる。凛と仲が良く、いつも一緒にいる。白いご飯が大好物。
129
+ :nico:
130
+ :first_name: にこ
131
+ :last_name: 矢澤
132
+ :cv: 徳井青空
133
+ :age: 17
134
+ :birth_month: 7
135
+ :birth_day: 22
136
+ :zodiac_sign: 蟹座
137
+ :blood_type: A
138
+ :height: 154
139
+ :bust: 74
140
+ :waste: 57
141
+ :hip: 79
142
+ :favorite_food: お菓子
143
+ :dislike_food: 辛いもの
144
+ :profile: 17歳。高校3年生。アイドルを目指して日夜励んでいる、正真正銘のアイドルオタク。アイドルを目指している先輩として、穂乃果たちに偉そうに接することもしばしば。その割には失敗も多く意外にドジっ子。「にっこにっこにー」が合い言葉。
@@ -0,0 +1,49 @@
1
+ module Pebbles
2
+ module LoveLive
3
+
4
+ require 'pebbles/lovelive'
5
+ require 'thor'
6
+
7
+ class CLI < Thor
8
+
9
+ desc '<MEMBER> [option]', "show the profile of μ's members"
10
+ long_desc <<-LONGDESC
11
+ μ's member list:
12
+ \x5 * honoka
13
+ \x5 * eli
14
+ \x5 * kotori
15
+ \x5 * umi
16
+ \x5 * rin
17
+ \x5 * maki
18
+ \x5 * nozomi
19
+ \x5 * hanayo
20
+ \x5 * nico
21
+
22
+ Example:
23
+ \x5 $ lovelive eli
24
+ \x5 $ lovelive eli --aa
25
+ LONGDESC
26
+ option :aa, type: :boolean, :desc => "show ASCII-Art"
27
+ def member(name)
28
+ member = LoveLive.send(name)
29
+ if member
30
+ puts member
31
+ puts member.aa if options[:aa]
32
+ else
33
+ puts "Error: unknown member"
34
+ puts ""
35
+ invoke :help, ['member']
36
+ end
37
+ end
38
+
39
+ desc 'help [member]', 'show help'
40
+ def help(command = nil, subcommand = false)
41
+ super(command, subcommand)
42
+ end
43
+
44
+ def method_missing(method, *args)
45
+ invoke :member, [method], args
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,6 @@
1
+ module Pebbles
2
+ module LoveLive
3
+ CONFIG_PATH = File.expand_path("../../../../config", __FILE__)
4
+ end
5
+ end
6
+
@@ -0,0 +1,22 @@
1
+ module Pebbles
2
+ module LoveLive
3
+ require 'singleton'
4
+ require 'yaml'
5
+
6
+ class Core
7
+ include Singleton
8
+
9
+ def initialize
10
+ yaml = YAML.load_file(File.join(CONFIG_PATH, 'members.yml'))
11
+ @@members = {}
12
+ yaml.each do |k, v|
13
+ @@members[k] = Member.new(k, v)
14
+ end
15
+ end
16
+
17
+ def method_missing(method, *args)
18
+ @@members[method]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,42 @@
1
+ module Pebbles
2
+ module LoveLive
3
+ class Member
4
+ def initialize(name, hash)
5
+ hash.each do |k, v|
6
+ self.instance_variable_set("@#{k}", v)
7
+ self.class.send(:define_method, k, proc { self.instance_variable_get("@#{k}") })
8
+ end
9
+ aa_text = File.open(File.join(CONFIG_PATH, "aa_#{name}.txt")).read
10
+ self.instance_variable_set('@aa', aa_text)
11
+ self.class.send(:define_method, 'aa', proc { self.instance_variable_get("@aa") })
12
+ end
13
+
14
+ def name
15
+ last_name + first_name
16
+ end
17
+
18
+ def birth
19
+ "#{birth_month}月#{birth_day}日"
20
+ end
21
+
22
+ def three_size
23
+ "B#{bust}・W#{waste}・H#{hip}"
24
+ end
25
+
26
+ def to_s
27
+ <<-EOS.gsub(/^\s+/, '')
28
+ 名前: #{name}
29
+ CV: #{cv}
30
+ 年齢: #{age}歳
31
+ 誕生日: #{birth}(#{zodiac_sign})
32
+ 血液型: #{blood_type}型
33
+ 身長: #{height}cm
34
+ スリーサイズ: #{three_size}
35
+ 好きな食べ物: #{favorite_food}
36
+ 嫌いな食べ物: #{dislike_food}
37
+ プロフィール: #{profile}
38
+ EOS
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,5 @@
1
+ module Pebbles
2
+ module LoveLive
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ require "pebbles/lovelive/version"
2
+ require "pebbles/lovelive/config"
3
+ require "pebbles/lovelive/core"
4
+ require "pebbles/lovelive/member"
5
+
6
+ module Pebbles
7
+ module LoveLive
8
+ def self.method_missing(method, *args)
9
+ LoveLive::Core.instance.send(method, args)
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pebbles/lovelive/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pebbles-lovelive"
8
+ spec.version = Pebbles::LoveLive::VERSION
9
+ spec.authors = ["Kenji Abe"]
10
+ spec.email = ["kenji.01.star@gmail.com"]
11
+ spec.summary = %q{ Show the profile of LoveLive μ's members }
12
+ spec.description = %q{ Show the profile of LoveLive μ's members }
13
+ spec.homepage = "https://github.com/STAR-ZERO/pebbles-lovelive"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.required_ruby_version = '>= 2.0.0'
22
+
23
+ spec.add_runtime_dependency 'thor'
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.5"
26
+ spec.add_development_dependency "rake"
27
+ spec.add_development_dependency "rspec"
28
+ spec.add_development_dependency "simplecov"
29
+ spec.add_development_dependency "coveralls"
30
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ module Pebbles
4
+ describe LoveLive::Core do
5
+
6
+ before { @core = LoveLive::Core.instance }
7
+
8
+ describe 'method_missing' do
9
+ context 'call member name method' do
10
+ subject { @core.eli }
11
+
12
+ it { should_not be_nil }
13
+ it { should be_an_instance_of LoveLive::Member }
14
+ end
15
+
16
+ context 'call not member name method' do
17
+ subject { @core.alpaca }
18
+
19
+ it { should be_nil }
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ module Pebbles
4
+ describe LoveLive::Member do
5
+
6
+ before do
7
+ @members = {}
8
+ yaml = YAML.load_file(File.expand_path('../../../config/members.yml', __FILE__))
9
+ yaml.each do |k, v|
10
+ @members[k] = LoveLive::Member.new(k, v)
11
+ end
12
+ end
13
+
14
+ it 'members is 9' do
15
+ expect(@members.size).to eq(9)
16
+ end
17
+
18
+ describe 'eli' do
19
+ before { @eli = @members[:eli] }
20
+ subject { @eli }
21
+
22
+ its(:name) { should == @eli.last_name + @eli.first_name }
23
+ its(:birth) { should == "#{@eli.birth_month}月#{@eli.birth_day}日" }
24
+ its(:three_size) { should == "B#{@eli.bust}・W#{@eli.waste}・H#{@eli.hip}" }
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ module Pebbles
4
+ describe LoveLive do
5
+ it 'should have a version number' do
6
+ Pebbles::LoveLive::VERSION.should_not be_nil
7
+ end
8
+
9
+ context 'exists member' do
10
+ before { @member = Pebbles::LoveLive.eli }
11
+ subject { @member }
12
+ it { should_not be_nil }
13
+ end
14
+
15
+ context 'not exists member' do
16
+ before { @member = Pebbles::LoveLive.alpaca }
17
+ subject { @member }
18
+ it { should be_nil }
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,11 @@
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+
5
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
6
+ SimpleCov::Formatter::HTMLFormatter,
7
+ Coveralls::SimpleCov::Formatter
8
+ ]
9
+
10
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
11
+ require 'pebbles/lovelive'
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pebbles-lovelive
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kenji Abe
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: " Show the profile of LoveLive μ's members "
98
+ email:
99
+ - kenji.01.star@gmail.com
100
+ executables:
101
+ - lovelive
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - ".coveralls.yml"
106
+ - ".gitignore"
107
+ - ".rspec"
108
+ - ".travis.yml"
109
+ - Gemfile
110
+ - LICENSE.txt
111
+ - README.md
112
+ - Rakefile
113
+ - bin/lovelive
114
+ - config/aa_eli.txt
115
+ - config/aa_hanayo.txt
116
+ - config/aa_honoka.txt
117
+ - config/aa_kotori.txt
118
+ - config/aa_maki.txt
119
+ - config/aa_nico.txt
120
+ - config/aa_nozomi.txt
121
+ - config/aa_rin.txt
122
+ - config/aa_umi.txt
123
+ - config/members.yml
124
+ - lib/pebbles/lovelive.rb
125
+ - lib/pebbles/lovelive/cli.rb
126
+ - lib/pebbles/lovelive/config.rb
127
+ - lib/pebbles/lovelive/core.rb
128
+ - lib/pebbles/lovelive/member.rb
129
+ - lib/pebbles/lovelive/version.rb
130
+ - pebbles-lovelive.gemspec
131
+ - spec/lovelive/core_spec.rb
132
+ - spec/lovelive/member_spec.rb
133
+ - spec/lovelive_spec.rb
134
+ - spec/spec_helper.rb
135
+ homepage: https://github.com/STAR-ZERO/pebbles-lovelive
136
+ licenses:
137
+ - MIT
138
+ metadata: {}
139
+ post_install_message:
140
+ rdoc_options: []
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: 2.0.0
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ requirements: []
154
+ rubyforge_project:
155
+ rubygems_version: 2.2.2
156
+ signing_key:
157
+ specification_version: 4
158
+ summary: Show the profile of LoveLive μ's members
159
+ test_files:
160
+ - spec/lovelive/core_spec.rb
161
+ - spec/lovelive/member_spec.rb
162
+ - spec/lovelive_spec.rb
163
+ - spec/spec_helper.rb