meibo 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/meibo/data_set.rb +2 -4
- data/lib/meibo/role.rb +8 -0
- data/lib/meibo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85e154ac4b2a7d8024aaba771a1ac76a140e10312feff637d619563b8a33359e
|
4
|
+
data.tar.gz: 8b5dc9b930b63cc8070b67922fc4329dddcef38785da4ca1a5d6dcdf8ac3ed09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ac0e760543faf79913f46e8bf84f834b56ab1347f049d437e49f2b8a0c8a962231f0fd91d6b0fc5928906d9c63a4a95fa7a941608deed9e60f7a496c5175fa
|
7
|
+
data.tar.gz: 78ec60730afb5877b9b6cd19a6f0bddf92882c12711b68014ed5c4044606cdcb18781daef7b7017a2ac2c6610a9410a3223e1a7cf63abca6d7c3b7c282cc2444
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
meibo (0.
|
4
|
+
meibo (0.4.0)
|
5
5
|
rubyzip
|
6
6
|
zeitwerk
|
7
7
|
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
tzinfo (2.0.5)
|
68
68
|
concurrent-ruby (~> 1.0)
|
69
69
|
unicode-display_width (2.3.0)
|
70
|
-
zeitwerk (2.6.
|
70
|
+
zeitwerk (2.6.4)
|
71
71
|
|
72
72
|
PLATFORMS
|
73
73
|
x86_64-linux
|
data/lib/meibo/data_set.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
module Meibo
|
2
2
|
class DataSet
|
3
|
+
include Enumerable
|
4
|
+
|
3
5
|
attr_reader :roster
|
4
6
|
|
5
7
|
def initialize(data, roster:)
|
@@ -39,9 +41,5 @@ module Meibo
|
|
39
41
|
rescue KeyError
|
40
42
|
raise DataNotFoundError, "sourcedId: #{sourced_id} が見つかりません"
|
41
43
|
end
|
42
|
-
|
43
|
-
def to_a
|
44
|
-
@data
|
45
|
-
end
|
46
44
|
end
|
47
45
|
end
|
data/lib/meibo/role.rb
CHANGED
@@ -61,5 +61,13 @@ module Meibo
|
|
61
61
|
@user_profile_sourced_id = user_profile_sourced_id
|
62
62
|
@extension_fields = extension_fields
|
63
63
|
end
|
64
|
+
|
65
|
+
def primary?
|
66
|
+
@role_type == TYPES['primary']
|
67
|
+
end
|
68
|
+
|
69
|
+
def secondary?
|
70
|
+
@role_type == TYPES['secondary']
|
71
|
+
end
|
64
72
|
end
|
65
73
|
end
|
data/lib/meibo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meibo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seiei Miyagi
|
@@ -125,7 +125,7 @@ metadata:
|
|
125
125
|
allowed_push_host: https://rubygems.org/
|
126
126
|
homepage_uri: https://github.com/hanachin/meibo
|
127
127
|
source_code_uri: https://github.com/hanachin/meibo
|
128
|
-
changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.
|
128
|
+
changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.4.0/CHANGELOG.md
|
129
129
|
post_install_message:
|
130
130
|
rdoc_options: []
|
131
131
|
require_paths:
|