dsp_blueprint_parser 0.1.2 → 0.1.3
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 +4 -4
- data/lib/dsp_blueprint_parser.rb +3 -0
- data/lib/dsp_blueprint_parser/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: 2f2f9d5c81972d005d47bc99aa4177ad20175c16594f53174113ee50b281e3a6
|
4
|
+
data.tar.gz: 6e07a6e7e3c3110e7564e27181d34251c98a2ec0befefa668880ec1d30881440
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da3a87540f5c808a3ed5d5fede5e05e8adf5461026dea8a9e392898bf7060cb37ebca40b4b51d285cff2ea26c60a96e4922b100aae9f7fc28bea6f49b83539ad
|
7
|
+
data.tar.gz: e895d5b965b412176a05d269500abca967597793e0c902acaf0e71cd32f33516416ea77d67ba3eb8356fd76200acce40bf5f503c4f28f3b15d163e692a53f175
|
data/lib/dsp_blueprint_parser.rb
CHANGED
@@ -32,6 +32,9 @@ module DspBlueprintParser
|
|
32
32
|
# @param input [String]
|
33
33
|
# @return [Boolean]
|
34
34
|
def self.is_valid?(input)
|
35
|
+
return false if input.size < 28
|
36
|
+
return false unless input.start_with? 'BLUEPRINT:'
|
37
|
+
|
35
38
|
sections = DataSections.new(input)
|
36
39
|
hash = MD5F::compute(sections.hashed_string)
|
37
40
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dsp_blueprint_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Falk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Parse Dyson Sphere Program blueprint string
|
14
14
|
email:
|