sakura_gakuin 1.0.1 → 1.0.2

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: 0d98fccec8f9f4c69a67603eb5f400850acb2e0b
4
- data.tar.gz: 60f046e69517ed431cd50291faf7e336bbfbbc83
3
+ metadata.gz: cf304e5fb9fe8d3754ecf950db413e53917ba503
4
+ data.tar.gz: 51d0774245d4c7eed9fb4eb05dd8d354a94dc106
5
5
  SHA512:
6
- metadata.gz: 015f12dab8faf538960b379b64d3a64479029cd0a7459cb3184f5b6dc997e2bf171e465171a0034c131497d6a2c13581cc28042f5a4bcdaa4145a388014dcd48
7
- data.tar.gz: cffb4979fcb852c9c90214d60c22e7b8588da8430c2a0435d57e158807938d780fcced7570c493af4deffb7716b6fdfa14440cc651d83c737a5c43ad47475475
6
+ metadata.gz: 97e1b50ad57968f8f299e646a0f99e7c39e572f9ca4a7aee2f4dc97db260ab9df18474ccd0e995430a76f0c61e5d24de773f8463e4f8e9758dc56655d6775937
7
+ data.tar.gz: 38e35368c5652a95faebf32277ed3d977798cd832c79ec3a28221e0faaadf7d53f3e02027658852c169a32dc0b2146070ca2fce5271585f947f9b14fb7294204
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # SakuraGakuin
2
2
 
3
- All about a limited growth period only Japanese idol Sakura Gakuin.
3
+ All about Japanese idol "Sakura Gakuin", that consists of limited to growth period girls only.
4
4
 
5
5
  ## Installation
6
6
 
@@ -97,7 +97,7 @@ club_id: !ruby/sym
97
97
  member_id: !ruby/sym
98
98
  moa_kikuchi
99
99
  name_ja: MOAMETAL
100
- name_en: YUIMETAL
100
+ name_en: MOAMETAL
101
101
  admission_date: 2010-11-28
102
102
 
103
103
 
data/config/members.yml CHANGED
@@ -11,6 +11,7 @@
11
11
  # 身長の日付は、情報を確認出来た日付なので公開された日付より遅れている可能性が大いにある。
12
12
  # データは主に以下のサイトから収集し、極力正確な日付に近づける。
13
13
  # 2013年11月〜2014年1月頃のWikipediaの身長データが明らかに間違っているのでWikipediaの情報を安易に信じてはいけない。
14
+ # オフィシャルサイト以外のソースについてはコメントで記載する。
14
15
  # http://web.archive.org/web/*/http://www.sakuragakuin.jp/
15
16
  # https://www.google.co.jp/search?q=site:megalodon.jp+inurl:www.sakuragakuin.jp/members
16
17
  # https://www.google.co.jp/search?q=site:www.sakuragakuin.jp+inurl:members
@@ -290,10 +291,10 @@ graduation_date: 2014-03-30
290
291
  diary_theme: 10022595592
291
292
  introductions: !ruby/hash
292
293
  2012: |-
293
- ぽかぽか笑顔を振いて(ニコニコイェイ)
294
+ ぽかぽか笑顔を振りまいて(ニコニコイェイ)
294
295
  いつでもイタズラ発明中(あ、ばれちゃいました!?)
295
296
  2013: |-
296
- ぽかぽか笑顔を振いて(ムーディー佐藤です)
297
+ ぽかぽか笑顔を振りまいて(ムーディー佐藤です)
297
298
  いつでもイタズラ発明中(ヘヘヘッ!)
298
299
  attendances: !ruby/hash
299
300
  2012: おっす!
@@ -319,6 +320,7 @@ heights: !ruby/hash:SakuraGakuin::DateHash
319
320
  2012-09-05: 138
320
321
  2013-07-01: 144
321
322
  2013-11-09: 149
323
+ 2014-02-19: 152 # 西川貴教のちょこっとナイトニッポン 2014-02-19放送分にて
322
324
  admission_date: 2010-08-02
323
325
  graduation_date: 2015-03-31
324
326
  diary_theme: 10025556095
@@ -355,7 +357,8 @@ heights: !ruby/hash:SakuraGakuin::DateHash
355
357
  2011-12-27: 136
356
358
  2012-09-05: 139
357
359
  2013-03-29: 145
358
- 2014-02-20: 148
360
+ 2014-02-14: 148
361
+ 2014-02-15: 150.7 # http://ameblo.jp/sakuragakuin/theme-10025604354.html
359
362
  admission_date: 2010-08-02
360
363
  graduation_date: 2015-03-31
361
364
  diary_theme: 10025604354
@@ -1,3 +1,7 @@
1
+ #
2
+ # クラブ活動の一覧と、それに所属している(していた)メンバーの一覧を出力する。
3
+ #
4
+
1
5
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
2
6
 
3
7
  require 'sakura_gakuin'
@@ -1,3 +1,7 @@
1
+ #
2
+ # クラブ活動のインスタンスを全てダンプする。
3
+ #
4
+
1
5
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
2
6
 
3
7
  require 'sakura_gakuin'
@@ -1,3 +1,7 @@
1
+ #
2
+ # メンバーのインスタンスを全てダンプする。
3
+ #
4
+
1
5
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
2
6
 
3
7
  require 'sakura_gakuin'
@@ -1,3 +1,7 @@
1
+ #
2
+ # メンバーの身長推移をTSVで出力する。
3
+ #
4
+
1
5
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
2
6
 
3
7
  require 'sakura_gakuin'
@@ -1,3 +1,7 @@
1
+ #
2
+ # メンバーの身長推移をHTMLで出力する。
3
+ #
4
+
1
5
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
2
6
 
3
7
  require 'sakura_gakuin'
@@ -1,3 +1,7 @@
1
+ #
2
+ # メンバー毎の彩未ちゃんの身長を抜かした月を出力する。
3
+ #
4
+
1
5
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
2
6
 
3
7
  require 'sakura_gakuin'
@@ -1,3 +1,7 @@
1
+ #
2
+ # 由結ちゃんのプロフィールを出力する。
3
+ #
4
+
1
5
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
2
6
 
3
7
  require 'sakura_gakuin'
@@ -5,11 +9,13 @@ require 'pp'
5
9
 
6
10
  yui = SakuraGakuin::Member[:yui_mizuno]
7
11
 
12
+ puts "ID: #{yui.id}"
8
13
  puts "Name(ja): #{yui.name_ja}"
9
14
  puts "Name(en): #{yui.name_en}"
10
15
  puts "Nicknames: #{yui.nicknames.join(" ")}"
11
16
  puts "Birthday: #{yui.birthday}"
12
17
  puts "Age: #{yui.age}"
18
+ puts "Grade: #{yui.grade}"
13
19
  puts "Birthplace: #{yui.birthplace}"
14
20
  puts "DiaryURL: #{yui.diary_url}"
15
21
  puts
@@ -71,7 +71,7 @@ module SakuraGakuin
71
71
  end
72
72
 
73
73
 
74
- # sakrua data
74
+ # sakura data
75
75
 
76
76
  attr_reader :admission_date
77
77
  attr_reader :graduation_date
@@ -97,6 +97,24 @@ module SakuraGakuin
97
97
  attr_reader :introductions
98
98
  attr_reader :attendances
99
99
 
100
+ def grade(date=Date.today)
101
+ if active?
102
+ birth_adjust = birthday < Date.new(birthday.year, 4, 2) ? 1 : 0
103
+ birth_year = birthday.year - birth_adjust
104
+
105
+ date_adjust = date < Date.new(date.year, 4, 1) ? 1 : 0
106
+ date_year = date.year - date_adjust
107
+
108
+ grade_age = date_year - birth_year
109
+ case grade_age
110
+ when 7..12
111
+ "小等部#{grade_age-6}年"
112
+ when 13..15
113
+ "中等部#{grade_age-12}年"
114
+ end
115
+ end
116
+ end
117
+
100
118
 
101
119
  # relations
102
120
 
@@ -1,3 +1,3 @@
1
1
  module SakuraGakuin
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = SakuraGakuin::VERSION
9
9
  spec.authors = ["Yoshida Tetsuya"]
10
10
  spec.email = ["yoshida.eth0@gmail.com"]
11
- spec.description = %q{All about a limited growth period only Japanese idol Sakura Gakuin.}
12
- spec.summary = %q{All about a limited growth period only Japanese idol Sakura Gakuin.}
11
+ spec.description = %q{All about Japanese idol "Sakura Gakuin", that consists of limited to growth period girls only.}
12
+ spec.summary = %q{All about Japanese idol "Sakura Gakuin", that consists of limited to growth period girls only.}
13
13
  spec.homepage = "https://github.com/yoshida-eth0/ruby-sakura_gakuin"
14
14
  spec.license = "MIT"
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sakura_gakuin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2014-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,7 +52,8 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: All about a limited growth period only Japanese idol Sakura Gakuin.
55
+ description: All about Japanese idol "Sakura Gakuin", that consists of limited to
56
+ growth period girls only.
56
57
  email:
57
58
  - yoshida.eth0@gmail.com
58
59
  executables: []
@@ -105,5 +106,6 @@ rubyforge_project:
105
106
  rubygems_version: 2.0.0
106
107
  signing_key:
107
108
  specification_version: 4
108
- summary: All about a limited growth period only Japanese idol Sakura Gakuin.
109
+ summary: All about Japanese idol "Sakura Gakuin", that consists of limited to growth
110
+ period girls only.
109
111
  test_files: []