shinycolors 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 732b86736b5c9617121cd495b45135ad0708b915ff3b4dc114c15ea66732e52f
4
+ data.tar.gz: f1740c69ed0339480e143cef0739b2c1a12fbfacded3a03e23018517763e6744
5
+ SHA512:
6
+ metadata.gz: f84ea516d1765cb6de90365be4e998adbd006b4fa5bb4eb86451059b7e2c3ca33b369cae654566b61d640afebea6d4d9d7a3e95e5ee8abfad4c4acc5f481786c
7
+ data.tar.gz: 7ed6a5330ed91f2cd1bc1d9ac5562f3e46b21fcb41a76f50dc03b4c97ee59678c8e42f355fc80da0829ab1d49174a33d3392afa45450a83ba092b6e12646e898
@@ -0,0 +1,3 @@
1
+ module ShinyColors
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,26 @@
1
+ require 'shinycolors/version'
2
+ require 'yaml'
3
+
4
+ module ShinyColors
5
+ class Idol
6
+ class << self
7
+ def all
8
+ YAML.load_file('./data/idol.yml').values.inject { |all, unit| all.merge(unit) }
9
+ end
10
+
11
+ def names
12
+ all.keys
13
+ end
14
+
15
+ def find(name)
16
+ idol = all[name.to_s]
17
+ end
18
+
19
+ Idol.names.each do |name|
20
+ define_method(name) do
21
+ Idol.find(name)
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shinycolors
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - iavivai
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-05-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'shinycolorsは「アイドルマスター シャイニーカラーズ」の情報をRubyで扱えるようにするためのgemです。
14
+
15
+ '
16
+ email:
17
+ - 18yukitaka@gmail.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - lib/shinycolors.rb
23
+ - lib/shinycolors/version.rb
24
+ homepage: https://github.com/iavivai/shinycolors
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ homepage_uri: https://github.com/iavivai/shinycolors
29
+ source_code_uri: https://github.com/iavivai/shinycolors
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: 2.3.0
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubygems_version: 3.1.2
46
+ signing_key:
47
+ specification_version: 4
48
+ summary: Rubyでシャニマスを扱えるようにするgem
49
+ test_files: []