acme-smileage 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +17 -17
  3. data/.travis.yml +3 -3
  4. data/Gemfile +4 -4
  5. data/LICENSE.txt +22 -22
  6. data/README.md +215 -215
  7. data/Rakefile +9 -9
  8. data/acme-smileage.gemspec +29 -29
  9. data/bin/smileage +3 -3
  10. data/lib/acme/smileage.rb +55 -55
  11. data/lib/acme/smileage/blog/ameblo.rb +49 -49
  12. data/lib/acme/smileage/blog/ameblo_downloader.rb +171 -171
  13. data/lib/acme/smileage/blog/entry.rb +51 -51
  14. data/lib/acme/smileage/commands.rb +16 -16
  15. data/lib/acme/smileage/commands/base.rb +10 -10
  16. data/lib/acme/smileage/commands/oricon.rb +47 -47
  17. data/lib/acme/smileage/commands/soundscan.rb +18 -18
  18. data/lib/acme/smileage/discography.rb +101 -101
  19. data/lib/acme/smileage/discography/albums.rb +28 -28
  20. data/lib/acme/smileage/discography/albums/2009/I001_amanojaku.rb +35 -35
  21. data/lib/acme/smileage/discography/albums/2009/I002_asuha_date_nanoni_imasugu_koe_ga_kikitai.rb +35 -35
  22. data/lib/acme/smileage/discography/albums/2009/I003_sukichan.rb +35 -35
  23. data/lib/acme/smileage/discography/albums/2010/A001_waru_gaki_(1).rb +50 -50
  24. data/lib/acme/smileage/discography/albums/2010/D001_yumemiru_15sai_(pax_japonica_groove_remix).rb +35 -35
  25. data/lib/acme/smileage/discography/albums/2010/D002_gambaranakutemo_eenende_(topnude_remix_version_01).rb +35 -35
  26. data/lib/acme/smileage/discography/albums/2010/D003_onaji_jikyuu_de_hataraku_tomodachi_no_bijin_mama_(remix_type1).rb +35 -35
  27. data/lib/acme/smileage/discography/albums/2010/I004_otona_ni_narutte_muzukashii.rb +35 -35
  28. data/lib/acme/smileage/discography/albums/2010/S001_yumemiru_15sai.rb +42 -42
  29. data/lib/acme/smileage/discography/albums/2010/S002_gambaranakutemo_eenende.rb +47 -47
  30. data/lib/acme/smileage/discography/albums/2010/S003_onaji_jikyuu_de_hataraku_tomodachi_no_bijin_mama.rb +46 -46
  31. data/lib/acme/smileage/discography/albums/2011/D004_shortcut_(remixver).rb +35 -35
  32. data/lib/acme/smileage/discography/albums/2011/D005_uchouten_love_rocketman_mix.rb +35 -35
  33. data/lib/acme/smileage/discography/albums/2011/S004_shortcut.rb +51 -51
  34. data/lib/acme/smileage/discography/albums/2011/S005_koi_ni_booing_boo.rb +51 -51
  35. data/lib/acme/smileage/discography/albums/2011/S006_uchouten_love.rb +51 -51
  36. data/lib/acme/smileage/discography/albums/2011/S007_tachiagirl.rb +56 -56
  37. data/lib/acme/smileage/discography/albums/2011/S008_please_minisuka_post_woman.rb +52 -52
  38. data/lib/acme/smileage/discography/albums/2012/A002_smleage_best_album_complete_(1).rb +54 -54
  39. data/lib/acme/smileage/discography/albums/2012/S009_choto_mate_kudasai.rb +52 -52
  40. data/lib/acme/smileage/discography/albums/2012/S010_dotbikini.rb +51 -51
  41. data/lib/acme/smileage/discography/albums/2012/S011_sukiyo_junjou_hankouki.rb +50 -50
  42. data/lib/acme/smileage/discography/albums/2012/S012_samuine.rb +50 -50
  43. data/lib/acme/smileage/discography/albums/2013/A003_(2)_smile_sensation.rb +48 -48
  44. data/lib/acme/smileage/discography/albums/2013/S013_tabidachi_no_haru_ga_kita.rb +50 -50
  45. data/lib/acme/smileage/discography/albums/2013/S014_atarashii_watashini_nare_yattaruchan.rb +50 -50
  46. data/lib/acme/smileage/discography/albums/2013/S015_eeka_iiyatsu.rb +50 -50
  47. data/lib/acme/smileage/discography/albums/2014/S016_mystery_night_eighteen_emotion.rb +56 -54
  48. data/lib/acme/smileage/discography/albums/base.rb +37 -37
  49. data/lib/acme/smileage/discography/hello_project_music_award.rb +22 -22
  50. data/lib/acme/smileage/discography/lyrics_downloader.rb +48 -48
  51. data/lib/acme/smileage/discography/sales.rb +43 -43
  52. data/lib/acme/smileage/discography/tracks.rb +65 -65
  53. data/lib/acme/smileage/discography/tracks/2009/001_amanojaku.rb +57 -57
  54. data/lib/acme/smileage/discography/tracks/2009/002_asuha_date_nanoni_imasugu_koe_ga_kikitai.rb +57 -57
  55. data/lib/acme/smileage/discography/tracks/2009/003_sukichan.rb +57 -57
  56. data/lib/acme/smileage/discography/tracks/2010/004_otona_ni_narutte_muzukashii.rb +57 -57
  57. data/lib/acme/smileage/discography/tracks/2010/005_yumemiru_15sai.rb +77 -77
  58. data/lib/acme/smileage/discography/tracks/2010/006_thank_you_creme_brulee_no_yuujou.rb +37 -37
  59. data/lib/acme/smileage/discography/tracks/2010/007_yumemiru_15sai_(pax_japonica_groove_remix).rb +38 -38
  60. data/lib/acme/smileage/discography/tracks/2010/008_gambaranakutemo_eenende.rb +85 -85
  61. data/lib/acme/smileage/discography/tracks/2010/009_gambaranakutemo_iindayo.rb +44 -44
  62. data/lib/acme/smileage/discography/tracks/2010/010_smile_bijin.rb +36 -36
  63. data/lib/acme/smileage/discography/tracks/2010/011_gambaranakutemo_eenende_(topnude_remix_version_01).rb +38 -38
  64. data/lib/acme/smileage/discography/tracks/2010/012_onaji_jikyuu_de_hataraku_tomodachi_no_bijin_mama.rb +85 -85
  65. data/lib/acme/smileage/discography/tracks/2010/013_chokotto_love.rb +38 -38
  66. data/lib/acme/smileage/discography/tracks/2010/014_onaji_jikyuu_de_hataraku_tomodachi_no_bijin_mama_(remix_type1).rb +38 -38
  67. data/lib/acme/smileage/discography/tracks/2010/015_odorouyo.rb +36 -36
  68. data/lib/acme/smileage/discography/tracks/2010/016_onna_bakari_no_nichiyoubi.rb +36 -36
  69. data/lib/acme/smileage/discography/tracks/2010/017_shooting_star.rb +36 -36
  70. data/lib/acme/smileage/discography/tracks/2010/018_gakkyuu_iinchou.rb +36 -36
  71. data/lib/acme/smileage/discography/tracks/2010/019_shikkari_shiteyo_mou.rb +36 -36
  72. data/lib/acme/smileage/discography/tracks/2011/020_shortcut.rb +69 -69
  73. data/lib/acme/smileage/discography/tracks/2011/021_panyasan_no_arbeit.rb +36 -36
  74. data/lib/acme/smileage/discography/tracks/2011/022_otome_pasta_ni_kandou.rb +38 -38
  75. data/lib/acme/smileage/discography/tracks/2011/023_koi_ni_booing_boo.rb +69 -69
  76. data/lib/acme/smileage/discography/tracks/2011/024_hatukoi_no_anatahe.rb +36 -36
  77. data/lib/acme/smileage/discography/tracks/2011/025_koi_wo_shichaimashita.rb +38 -38
  78. data/lib/acme/smileage/discography/tracks/2011/026_uchouten_love.rb +77 -77
  79. data/lib/acme/smileage/discography/tracks/2011/027_jitensha_chiririn.rb +36 -36
  80. data/lib/acme/smileage/discography/tracks/2011/028_chu_natsu_party.rb +38 -38
  81. data/lib/acme/smileage/discography/tracks/2011/029_shortcut_(remixver).rb +37 -37
  82. data/lib/acme/smileage/discography/tracks/2011/030_uchouten_love_rocketman_mix.rb +38 -38
  83. data/lib/acme/smileage/discography/tracks/2011/031_tachiagirl.rb +73 -73
  84. data/lib/acme/smileage/discography/tracks/2011/032_smile_ondon.rb +35 -35
  85. data/lib/acme/smileage/discography/tracks/2011/033_boogie_train11.rb +38 -38
  86. data/lib/acme/smileage/discography/tracks/2011/034_smileage_singles_gekimoe_remix.rb +35 -35
  87. data/lib/acme/smileage/discography/tracks/2011/035_please_minisuka_post_woman.rb +45 -45
  88. data/lib/acme/smileage/discography/tracks/2011/036_konnichiwa_konbanwa.rb +36 -36
  89. data/lib/acme/smileage/discography/tracks/2011/037_smileage_singles_gekiyaba_remix.rb +35 -35
  90. data/lib/acme/smileage/discography/tracks/2011/038_tewo_nigitte_arukitai.rb +38 -38
  91. data/lib/acme/smileage/discography/tracks/2012/039_choto_mate_kudasai.rb +45 -45
  92. data/lib/acme/smileage/discography/tracks/2012/040_chance_tourai.rb +36 -36
  93. data/lib/acme/smileage/discography/tracks/2012/041_smileage_singles_gekiatsu_remix.rb +35 -35
  94. data/lib/acme/smileage/discography/tracks/2012/042_namida_girl.rb +38 -38
  95. data/lib/acme/smileage/discography/tracks/2012/043_dotbikini.rb +45 -45
  96. data/lib/acme/smileage/discography/tracks/2012/044_smile_blues.rb +36 -36
  97. data/lib/acme/smileage/discography/tracks/2012/045_koibito_ha_kokoro_no_ouendan.rb +38 -38
  98. data/lib/acme/smileage/discography/tracks/2012/046_kiiroi_jitensha_to_sandwich.rb +36 -36
  99. data/lib/acme/smileage/discography/tracks/2012/047_sukiyo_junjou_hankouki.rb +45 -45
  100. data/lib/acme/smileage/discography/tracks/2012/048_kimi_ha_jitensha_watasi_ha_densya_de_kitaku.rb +38 -38
  101. data/lib/acme/smileage/discography/tracks/2012/049_samuine.rb +49 -49
  102. data/lib/acme/smileage/discography/tracks/2012/050_watashi_choito_kawaii_urabancho.rb +36 -36
  103. data/lib/acme/smileage/discography/tracks/2013/051_tabidachi_no_haru_ga_kita.rb +45 -45
  104. data/lib/acme/smileage/discography/tracks/2013/052_doushiyou.rb +36 -36
  105. data/lib/acme/smileage/discography/tracks/2013/053_shin_nihon_no_susume.rb +36 -36
  106. data/lib/acme/smileage/discography/tracks/2013/054_otona_no_tochuu.rb +36 -36
  107. data/lib/acme/smileage/discography/tracks/2013/055_tenshin_ramman.rb +36 -36
  108. data/lib/acme/smileage/discography/tracks/2013/056_watashi_no_kokoro.rb +36 -36
  109. data/lib/acme/smileage/discography/tracks/2013/057_yuugure_koi_no_jikan.rb +36 -36
  110. data/lib/acme/smileage/discography/tracks/2013/058_nee_sempai.rb +36 -36
  111. data/lib/acme/smileage/discography/tracks/2013/059_sayonara_sayonara_sayonara.rb +36 -36
  112. data/lib/acme/smileage/discography/tracks/2013/060_atarashii_watashini_nare.rb +45 -45
  113. data/lib/acme/smileage/discography/tracks/2013/061_yattaruchan.rb +45 -45
  114. data/lib/acme/smileage/discography/tracks/2013/062_eeka.rb +44 -44
  115. data/lib/acme/smileage/discography/tracks/2013/063_iiyatsu.rb +44 -44
  116. data/lib/acme/smileage/discography/tracks/2014/064_mystery_night.rb +44 -44
  117. data/lib/acme/smileage/discography/tracks/2014/065_eighteen_emotion.rb +44 -44
  118. data/lib/acme/smileage/discography/tracks/base.rb +39 -39
  119. data/lib/acme/smileage/members.rb +40 -40
  120. data/lib/acme/smileage/members/base.rb +56 -56
  121. data/lib/acme/smileage/members/fukuda_kanon.rb +29 -29
  122. data/lib/acme/smileage/members/katsuta_rina.rb +29 -29
  123. data/lib/acme/smileage/members/kosuga_fuyuka.rb +29 -29
  124. data/lib/acme/smileage/members/maeda_yuuka.rb +29 -29
  125. data/lib/acme/smileage/members/nakanishi_kana.rb +29 -29
  126. data/lib/acme/smileage/members/ogawa_saki.rb +29 -29
  127. data/lib/acme/smileage/members/takeuchi_akari.rb +29 -29
  128. data/lib/acme/smileage/members/tamura_meimi.rb +29 -29
  129. data/lib/acme/smileage/members/wada_ayaka.rb +29 -29
  130. data/lib/acme/smileage/utils/base_downloader.rb +38 -38
  131. data/lib/acme/smileage/utils/matcher.rb +64 -64
  132. data/lib/acme/smileage/version.rb +5 -5
  133. data/lib/acme/smileage/version.rb~ +5 -5
  134. data/test/acme/test_album.rb +204 -204
  135. data/test/acme/test_member.rb +45 -45
  136. data/test/acme/test_smileage.rb +144 -144
  137. data/test/acme/test_track.rb +57 -57
  138. data/test/minitest_helper.rb +5 -5
  139. metadata +20 -20
@@ -1,44 +1,44 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- require "acme/smileage/discography/tracks/base"
4
-
5
- module Acme
6
- class Smileage
7
- class Discography
8
- module Tracks
9
- class Iiyatsu < Base
10
- include Singleton
11
-
12
- def initialize
13
- super
14
- @name = "「良い奴」"
15
- @name_romaji = "iiyatsu"
16
- @nicknames = []
17
- @play_time = 279 # 04:39
18
- @arrangers = ["大久保薫"]
19
- @lyric_links = {
20
- :utamap => "http://www.utamap.com/showkasi.php?surl=k-131218-070",
21
- :utanet => "http://www.uta-net.com/song/157050/",
22
- }
23
- @youtube_links = [
24
- {
25
- :title => "スマイレージ 『「良い奴」』(S/mileage[Nice Guy]) (MV)",
26
- :link => "https://www.youtube.com/watch?v=o3yVG8y6oIc",
27
- },
28
- {
29
- :title => "スマイレージ 『「良い奴」』(S/mileage[Nice Guy]) (Dance Shot Ver.)",
30
- :link => "https://www.youtube.com/watch?v=xlD51e__7Pw",
31
- },
32
- ]
33
- @itunes_links = [
34
- {
35
- :title => "ええか!?/「良い奴」",
36
- :link => "https://itunes.apple.com/jp/album/id772780890",
37
- },
38
- ]
39
- end
40
- end
41
- end
42
- end
43
- end
44
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require "acme/smileage/discography/tracks/base"
4
+
5
+ module Acme
6
+ class Smileage
7
+ class Discography
8
+ module Tracks
9
+ class Iiyatsu < Base
10
+ include Singleton
11
+
12
+ def initialize
13
+ super
14
+ @name = "「良い奴」"
15
+ @name_romaji = "iiyatsu"
16
+ @nicknames = []
17
+ @play_time = 279 # 04:39
18
+ @arrangers = ["大久保薫"]
19
+ @lyric_links = {
20
+ :utamap => "http://www.utamap.com/showkasi.php?surl=k-131218-070",
21
+ :utanet => "http://www.uta-net.com/song/157050/",
22
+ }
23
+ @youtube_links = [
24
+ {
25
+ :title => "スマイレージ 『「良い奴」』(S/mileage[Nice Guy]) (MV)",
26
+ :link => "https://www.youtube.com/watch?v=o3yVG8y6oIc",
27
+ },
28
+ {
29
+ :title => "スマイレージ 『「良い奴」』(S/mileage[Nice Guy]) (Dance Shot Ver.)",
30
+ :link => "https://www.youtube.com/watch?v=xlD51e__7Pw",
31
+ },
32
+ ]
33
+ @itunes_links = [
34
+ {
35
+ :title => "ええか!?/「良い奴」",
36
+ :link => "https://itunes.apple.com/jp/album/id772780890",
37
+ },
38
+ ]
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -1,44 +1,44 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- require "acme/smileage/discography/tracks/base"
4
-
5
- module Acme
6
- class Smileage
7
- class Discography
8
- module Tracks
9
- class MysteryNight < Base
10
- include Singleton
11
-
12
- def initialize
13
- super
14
- @name = "ミステリーナイト!"
15
- @name_romaji = "mystery night!"
16
- @nicknames = ["ミスナイ"]
17
- @play_time = 264 # 4:24
18
- @arrangers = ["平田祥一郎"]
19
- @lyric_links = {
20
- :utamap => "http://www.utamap.com/showkasi.php?surl=k-140430-015",
21
- :utanet => "http://www.uta-net.com/song/163165/",
22
- }
23
- @youtube_links = [
24
- {
25
- :title => "スマイレージ 『ミステリーナイト!』 (S/mileage[A Mistery Night!]) (Promotion edit)",
26
- :link => "https://www.youtube.com/watch?v=gh6-f1EV_14",
27
- },
28
- {
29
- :title => "スマイレージ 『ミステリーナイト!』 (S/mileage[A Mistery Night!]) (Dance Shot Ver.)",
30
- :link => "https://www.youtube.com/watch?v=bpykoK1eWsg",
31
- },
32
- ]
33
- @itunes_links = [
34
- {
35
- :title => "ミステリーナイト!/エイティーン エモーション",
36
- :link => "https://itunes.apple.com/jp/album/id859045562",
37
- },
38
- ]
39
- end
40
- end
41
- end
42
- end
43
- end
44
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require "acme/smileage/discography/tracks/base"
4
+
5
+ module Acme
6
+ class Smileage
7
+ class Discography
8
+ module Tracks
9
+ class MysteryNight < Base
10
+ include Singleton
11
+
12
+ def initialize
13
+ super
14
+ @name = "ミステリーナイト!"
15
+ @name_romaji = "mystery night!"
16
+ @nicknames = ["ミスナイ"]
17
+ @play_time = 264 # 4:24
18
+ @arrangers = ["平田祥一郎"]
19
+ @lyric_links = {
20
+ :utamap => "http://www.utamap.com/showkasi.php?surl=k-140430-015",
21
+ :utanet => "http://www.uta-net.com/song/163165/",
22
+ }
23
+ @youtube_links = [
24
+ {
25
+ :title => "スマイレージ 『ミステリーナイト!』 (S/mileage[A Mistery Night!]) (Promotion edit)",
26
+ :link => "https://www.youtube.com/watch?v=gh6-f1EV_14",
27
+ },
28
+ {
29
+ :title => "スマイレージ 『ミステリーナイト!』 (S/mileage[A Mistery Night!]) (Dance Shot Ver.)",
30
+ :link => "https://www.youtube.com/watch?v=bpykoK1eWsg",
31
+ },
32
+ ]
33
+ @itunes_links = [
34
+ {
35
+ :title => "ミステリーナイト!/エイティーン エモーション",
36
+ :link => "https://itunes.apple.com/jp/album/id859045562",
37
+ },
38
+ ]
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -1,44 +1,44 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- require "acme/smileage/discography/tracks/base"
4
-
5
- module Acme
6
- class Smileage
7
- class Discography
8
- module Tracks
9
- class EighteenEmotion < Base
10
- include Singleton
11
-
12
- def initialize
13
- super
14
- @name = "エイティーン エモーション"
15
- @name_romaji = "eighteen emotion"
16
- @nicknames = ["エイエモ", "18エモ"]
17
- @play_time = 217 # 3:37
18
- @arrangers = ["板垣祐介"]
19
- @lyric_links = {
20
- :utamap => "http://www.utamap.com/showkasi.php?surl=k-140430-016",
21
- :utanet => "http://www.uta-net.com/song/163164/",
22
- }
23
- @youtube_links = [
24
- {
25
- :title => "スマイレージ『エイティーン エモーション』 (S/mileage[Eighteen Emotion]) (Promotion edit)",
26
- :link => "https://www.youtube.com/watch?v=fAPI8PW2q-A",
27
- },
28
- {
29
- :title => "スマイレージ 『エイティーン エモーション』 (S/mileage[Eighteen Emotion]) (Dance Shot Ver.)",
30
- :link => "https://www.youtube.com/watch?v=nwZe4wpgc_U",
31
- },
32
- ]
33
- @itunes_links = [
34
- {
35
- :title => "ミステリーナイト!/エイティーン エモーション",
36
- :link => "https://itunes.apple.com/jp/album/id859045562",
37
- },
38
- ]
39
- end
40
- end
41
- end
42
- end
43
- end
44
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require "acme/smileage/discography/tracks/base"
4
+
5
+ module Acme
6
+ class Smileage
7
+ class Discography
8
+ module Tracks
9
+ class EighteenEmotion < Base
10
+ include Singleton
11
+
12
+ def initialize
13
+ super
14
+ @name = "エイティーン エモーション"
15
+ @name_romaji = "eighteen emotion"
16
+ @nicknames = ["エイエモ", "18エモ"]
17
+ @play_time = 217 # 3:37
18
+ @arrangers = ["板垣祐介"]
19
+ @lyric_links = {
20
+ :utamap => "http://www.utamap.com/showkasi.php?surl=k-140430-016",
21
+ :utanet => "http://www.uta-net.com/song/163164/",
22
+ }
23
+ @youtube_links = [
24
+ {
25
+ :title => "スマイレージ『エイティーン エモーション』 (S/mileage[Eighteen Emotion]) (Promotion edit)",
26
+ :link => "https://www.youtube.com/watch?v=fAPI8PW2q-A",
27
+ },
28
+ {
29
+ :title => "スマイレージ 『エイティーン エモーション』 (S/mileage[Eighteen Emotion]) (Dance Shot Ver.)",
30
+ :link => "https://www.youtube.com/watch?v=nwZe4wpgc_U",
31
+ },
32
+ ]
33
+ @itunes_links = [
34
+ {
35
+ :title => "ミステリーナイト!/エイティーン エモーション",
36
+ :link => "https://itunes.apple.com/jp/album/id859045562",
37
+ },
38
+ ]
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -1,39 +1,39 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- require "date"
4
- require "open-uri"
5
- require "singleton"
6
- require "uri"
7
-
8
- require "acme/smileage/discography/hello_project_music_award"
9
- require "acme/smileage/discography/lyrics_downloader"
10
-
11
- module Acme
12
- class Smileage
13
- class Discography
14
- module Tracks
15
- class Base
16
- DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)"
17
-
18
- attr_reader :name, :name_romaji, :nicknames, :play_time
19
- attr_reader :lyricists, :composers, :arrangers
20
- attr_reader :hpma
21
- attr_reader :lyric_links, :youtube_links, :itunes_links
22
-
23
- def initialize
24
- @lyricists = ["つんく♂"]
25
- @composers = ["つんく♂"]
26
- end
27
-
28
- def cover?; false; end
29
- def remix?; false; end
30
-
31
- def get_lyrics(site=nil)
32
- return nil unless self.lyric_links
33
- Acme::Smileage::Discography::LyricsDownloader.new.get(self.lyric_links, site)
34
- end
35
- end
36
- end
37
- end
38
- end
39
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require "date"
4
+ require "open-uri"
5
+ require "singleton"
6
+ require "uri"
7
+
8
+ require "acme/smileage/discography/hello_project_music_award"
9
+ require "acme/smileage/discography/lyrics_downloader"
10
+
11
+ module Acme
12
+ class Smileage
13
+ class Discography
14
+ module Tracks
15
+ class Base
16
+ DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)"
17
+
18
+ attr_reader :name, :name_romaji, :nicknames, :play_time
19
+ attr_reader :lyricists, :composers, :arrangers
20
+ attr_reader :hpma
21
+ attr_reader :lyric_links, :youtube_links, :itunes_links
22
+
23
+ def initialize
24
+ @lyricists = ["つんく♂"]
25
+ @composers = ["つんく♂"]
26
+ end
27
+
28
+ def cover?; false; end
29
+ def remix?; false; end
30
+
31
+ def get_lyrics(site=nil)
32
+ return nil unless self.lyric_links
33
+ Acme::Smileage::Discography::LyricsDownloader.new.get(self.lyric_links, site)
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -1,40 +1,40 @@
1
- require "acme/smileage/members/wada_ayaka"
2
- require "acme/smileage/members/fukuda_kanon"
3
- require "acme/smileage/members/nakanishi_kana"
4
- require "acme/smileage/members/takeuchi_akari"
5
- require "acme/smileage/members/katsuta_rina"
6
- require "acme/smileage/members/tamura_meimi"
7
-
8
- require "acme/smileage/members/maeda_yuuka"
9
- require "acme/smileage/members/ogawa_saki"
10
- require "acme/smileage/members/kosuga_fuyuka"
11
-
12
- module Acme
13
- class Smileage
14
- class Members
15
- include Enumerable
16
-
17
- attr_reader :members
18
-
19
- def initialize
20
- @members = []
21
- @members << Acme::Smileage::Members::WadaAyaka.new
22
- @members << Acme::Smileage::Members::FukudaKanon.new
23
- @members << Acme::Smileage::Members::NakanishiKana.new
24
- @members << Acme::Smileage::Members::TakeuchiAkari.new
25
- @members << Acme::Smileage::Members::KatsutaRina.new
26
- @members << Acme::Smileage::Members::TamuraMeimi.new
27
-
28
- @members << Acme::Smileage::Members::MaedaYuuka.new
29
- @members << Acme::Smileage::Members::OgawaSaki.new
30
- @members << Acme::Smileage::Members::KosugaFuyuka.new
31
-
32
- @members.sort_by! {|e| [e.generation, e.birthday] }
33
- end
34
-
35
- def each(&block)
36
- @members.each(&block)
37
- end
38
- end
39
- end
40
- end
1
+ require "acme/smileage/members/wada_ayaka"
2
+ require "acme/smileage/members/fukuda_kanon"
3
+ require "acme/smileage/members/nakanishi_kana"
4
+ require "acme/smileage/members/takeuchi_akari"
5
+ require "acme/smileage/members/katsuta_rina"
6
+ require "acme/smileage/members/tamura_meimi"
7
+
8
+ require "acme/smileage/members/maeda_yuuka"
9
+ require "acme/smileage/members/ogawa_saki"
10
+ require "acme/smileage/members/kosuga_fuyuka"
11
+
12
+ module Acme
13
+ class Smileage
14
+ class Members
15
+ include Enumerable
16
+
17
+ attr_reader :members
18
+
19
+ def initialize
20
+ @members = []
21
+ @members << Acme::Smileage::Members::WadaAyaka.new
22
+ @members << Acme::Smileage::Members::FukudaKanon.new
23
+ @members << Acme::Smileage::Members::NakanishiKana.new
24
+ @members << Acme::Smileage::Members::TakeuchiAkari.new
25
+ @members << Acme::Smileage::Members::KatsutaRina.new
26
+ @members << Acme::Smileage::Members::TamuraMeimi.new
27
+
28
+ @members << Acme::Smileage::Members::MaedaYuuka.new
29
+ @members << Acme::Smileage::Members::OgawaSaki.new
30
+ @members << Acme::Smileage::Members::KosugaFuyuka.new
31
+
32
+ @members.sort_by! {|e| [e.generation, e.birthday] }
33
+ end
34
+
35
+ def each(&block)
36
+ @members.each(&block)
37
+ end
38
+ end
39
+ end
40
+ end
@@ -1,56 +1,56 @@
1
- require "date"
2
-
3
- require "acme/smileage/blog/ameblo"
4
-
5
- module Acme
6
- class Smileage
7
- class Members
8
- class Base
9
- attr_reader :family_name_ja, :first_name_ja
10
- attr_reader :family_name_en, :first_name_en
11
- attr_reader :birthday, :blood_type, :hometown
12
- attr_reader :emoticon, :nicknames, :member_color, :blog_link, :twitter_accounts
13
- attr_reader :generation, :join_date, :graduate_date
14
-
15
- alias :nick :nicknames # compat for Acme::MomoiroClover
16
- alias :color :member_color # ditto
17
-
18
- def name_ja
19
- self.family_name_ja + self.first_name_ja
20
- end
21
-
22
- def name_en
23
- self.first_name_en + " " + self.family_name_en
24
- end
25
- alias :name :name_en
26
-
27
- def age(date=nil)
28
- date ||= Date.today
29
- a = date.strftime("%Y%m%d").to_i
30
- b = self.birthday.strftime("%Y%m%d").to_i
31
- (a - b) / 10000
32
- end
33
-
34
- def active?(date=nil)
35
- date ||= Date.today
36
- if self.graduate_date
37
- self.join_date <= date and date <= self.graduate_date
38
- else
39
- self.join_date <= date
40
- end
41
- end
42
-
43
- def graduated?(date=nil)
44
- return false unless self.graduate_date
45
-
46
- date ||= Date.today
47
- self.graduate_date < date
48
- end
49
-
50
- def blog
51
- @blog ||= Acme::Smileage::Blog::Ameblo.new(self.blog_link, self.family_name_en)
52
- end
53
- end
54
- end
55
- end
56
- end
1
+ require "date"
2
+
3
+ require "acme/smileage/blog/ameblo"
4
+
5
+ module Acme
6
+ class Smileage
7
+ class Members
8
+ class Base
9
+ attr_reader :family_name_ja, :first_name_ja
10
+ attr_reader :family_name_en, :first_name_en
11
+ attr_reader :birthday, :blood_type, :hometown
12
+ attr_reader :emoticon, :nicknames, :member_color, :blog_link, :twitter_accounts
13
+ attr_reader :generation, :join_date, :graduate_date
14
+
15
+ alias :nick :nicknames # compat for Acme::MomoiroClover
16
+ alias :color :member_color # ditto
17
+
18
+ def name_ja
19
+ self.family_name_ja + self.first_name_ja
20
+ end
21
+
22
+ def name_en
23
+ self.first_name_en + " " + self.family_name_en
24
+ end
25
+ alias :name :name_en
26
+
27
+ def age(date=nil)
28
+ date ||= Date.today
29
+ a = date.strftime("%Y%m%d").to_i
30
+ b = self.birthday.strftime("%Y%m%d").to_i
31
+ (a - b) / 10000
32
+ end
33
+
34
+ def active?(date=nil)
35
+ date ||= Date.today
36
+ if self.graduate_date
37
+ self.join_date <= date and date <= self.graduate_date
38
+ else
39
+ self.join_date <= date
40
+ end
41
+ end
42
+
43
+ def graduated?(date=nil)
44
+ return false unless self.graduate_date
45
+
46
+ date ||= Date.today
47
+ self.graduate_date < date
48
+ end
49
+
50
+ def blog
51
+ @blog ||= Acme::Smileage::Blog::Ameblo.new(self.blog_link, self.family_name_en)
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end