meibo 0.19.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +1 -1
- data/Gemfile.lock +1 -1
- data/lib/meibo/converter.rb +1 -1
- data/lib/meibo/data_set.rb +5 -1
- data/lib/meibo/roster.rb +1 -1
- data/lib/meibo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 852a09550606d271393ae8f9c890ef91eb98774d6ac9bf553effe0d2e8ecc01b
|
4
|
+
data.tar.gz: 05f7ad5625fcb46d379910b5f08550e80f7450b4b4d748a3140cef0a20432f6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73ec694bf7f9e8cfacdb92927648c7ff0d7f4e39e814b48bee7b86d95172db1963852cf166de32b2521985916a6ace3da2f75f1b44b0dfcd2e7281148c77cded
|
7
|
+
data.tar.gz: 00b97246517eb8e1b8100898de519070f3f67d90ff7cc3ba08aba07a16ee189139e09e0d812cd9cb551c33189d1f75e79595758f82e38792f7af2199a2f9d2c1
|
data/.rubocop_todo.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/meibo/converter.rb
CHANGED
@@ -52,7 +52,7 @@ module Meibo
|
|
52
52
|
end
|
53
53
|
lambda do |field, field_info|
|
54
54
|
# NOTE: convert blank sourcedId to nil
|
55
|
-
field = nil if
|
55
|
+
field = nil if field.respond_to?(:empty?) && field.empty?
|
56
56
|
converter_list.each { |converter| field = converter[field, field_info] }
|
57
57
|
field
|
58
58
|
end
|
data/lib/meibo/data_set.rb
CHANGED
@@ -53,7 +53,7 @@ module Meibo
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def where(**conditions)
|
56
|
-
group_cache[conditions.keys.sort][conditions.values]
|
56
|
+
group_cache[conditions.keys.sort][conditions.values] || empty_set
|
57
57
|
end
|
58
58
|
|
59
59
|
private
|
@@ -77,5 +77,9 @@ module Meibo
|
|
77
77
|
def new(data)
|
78
78
|
self.class.new(data, roster: roster)
|
79
79
|
end
|
80
|
+
|
81
|
+
def empty_set
|
82
|
+
@empty_set ||= new([])
|
83
|
+
end
|
80
84
|
end
|
81
85
|
end
|
data/lib/meibo/roster.rb
CHANGED
data/lib/meibo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meibo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seiei Miyagi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: csv
|
@@ -140,7 +140,7 @@ metadata:
|
|
140
140
|
allowed_push_host: https://rubygems.org/
|
141
141
|
homepage_uri: https://github.com/hanachin/meibo
|
142
142
|
source_code_uri: https://github.com/hanachin/meibo
|
143
|
-
changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.
|
143
|
+
changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.21.0/CHANGELOG.md
|
144
144
|
rubygems_mfa_required: 'true'
|
145
145
|
post_install_message:
|
146
146
|
rdoc_options: []
|