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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea96a27ab7a6ff6a0d8f471171bf00d895598405e3540a39e1eef500c5845441
4
- data.tar.gz: 667b222e2fc364e6bbb3453d4593f7c024523a58655d699a8f569efa87a7cfdc
3
+ metadata.gz: 2f2f9d5c81972d005d47bc99aa4177ad20175c16594f53174113ee50b281e3a6
4
+ data.tar.gz: 6e07a6e7e3c3110e7564e27181d34251c98a2ec0befefa668880ec1d30881440
5
5
  SHA512:
6
- metadata.gz: 7d2b7fee9d4fd08748608c5a6d9920f754d7ca7ee62e57bd792a54409534ca1c880c3231c9e271f1a5a73dc4b8a3cbf47446dd9c307bc9297734ada96d9774eb
7
- data.tar.gz: 9fe1c4414ee671bc6a296a8b872b3c583131d6531a7717a687993a3e1a21421f83c748c4c1282de9d4425722181465acfd2a41d51f74c88ec84c56a715e4812f
6
+ metadata.gz: da3a87540f5c808a3ed5d5fede5e05e8adf5461026dea8a9e392898bf7060cb37ebca40b4b51d285cff2ea26c60a96e4922b100aae9f7fc28bea6f49b83539ad
7
+ data.tar.gz: e895d5b965b412176a05d269500abca967597793e0c902acaf0e71cd32f33516416ea77d67ba3eb8356fd76200acce40bf5f503c4f28f3b15d163e692a53f175
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DspBlueprintParser
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
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.2
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-07 00:00:00.000000000 Z
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: