differential 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/Gemfile.lock +1 -1
- data/lib/differential/parser/reader.rb +2 -2
- data/lib/differential/version.rb +1 -1
- data/spec/differential/parser/reader_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34db9a9aa5d5c4a0662d7ca92ad84787ca400da4
|
4
|
+
data.tar.gz: 3d18436809dec81d69a9a48b2bbc944520ac546b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f761ad7abf2776aa1fe8221617cc6d6418b12a01356f4ce14fd302d249b7d1583f2a09e15cb6df5fafbd8f055584c46766f3ca07efb86d5c13ffa13ce65e1da
|
7
|
+
data.tar.gz: a7a0c48e0fd32f14c2ce63e303fa61315f6e853ea2e675e66f2eb653f5d49dc1a5c8ff8dd83025a34d01807669c02593b9a77effe8383bb1f74c867e22c17e8c
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
## 1.0.
|
1
|
+
## 1.0.4 (December 21, 2018)
|
2
|
+
|
3
|
+
- Adjusted reader so it stores multipart ID's properly in the ID's data field.
|
4
|
+
|
5
|
+
## 1.0.3 (December 21, 2018)
|
2
6
|
|
3
7
|
- Added a_size and b_size for totals. This allows you to see how many items contributed to a calculation.
|
4
|
-
- Changed ID to be a first-class object instead of a string. Now groups and items can have their respective ID parts consumed using:
|
8
|
+
- Changed ID to be a first-class object instead of a string. Now groups and items can have their respective ID parts consumed using: `id.data`. The string representation is still accessible via `id.value`.
|
9
|
+
- Ignore null hashes when reading input.
|
data/Gemfile.lock
CHANGED
@@ -56,11 +56,11 @@ module Differential
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def make_record_id(hash)
|
59
|
-
record_id_key_array.map { |k| hash[k] }
|
59
|
+
record_id_key_array.map { |k| hash[k] }
|
60
60
|
end
|
61
61
|
|
62
62
|
def make_group_id(hash)
|
63
|
-
group_id_key_array.map { |k| hash[k] }
|
63
|
+
group_id_key_array.map { |k| hash[k] }
|
64
64
|
end
|
65
65
|
|
66
66
|
def record_id_key_array
|
data/lib/differential/version.rb
CHANGED
@@ -150,6 +150,7 @@ describe ::Differential::Parser::Reader do
|
|
150
150
|
hash = hashes.first
|
151
151
|
|
152
152
|
expect(record.id).to eq("#{hash[:first]}:#{hash[:last]}")
|
153
|
+
expect(record.id.data).to eq([hash[:first], hash[:last]])
|
153
154
|
expect(record.group_id).to eq("#{hash[:transport]}:#{hash[:direction]}")
|
154
155
|
expect(record.value).to eq(hash[:minutes])
|
155
156
|
expect(record.data).to eq(hash)
|