rightmove_blm 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rightmove_blm/document.rb +4 -4
- data/lib/rightmove_blm/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: 166ef6856134e6ffc3120ae6523fa5a5498c6b428e5b23e9804c83ec3e7894d7
|
4
|
+
data.tar.gz: dd041ad21667251d555b69d7be9759acd1f78a12239f06f02f91927e5b1d4f62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0f349072827d6804c7c84736886989bdaa15511dc53001095d7e31f7d596f1a8b196fdd9c6349100d6ba9002265971a2f897bb7e07402d94debde352d599fc1
|
7
|
+
data.tar.gz: b89b53b4db44f2f2552aa00e2d4b664fbedc595543967d4a8475007ebccae4e4c05846b353b2e5e451ec41e6fc59f6be7524a41dc1585848125dc59ed4a93b8a
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module RightmoveBLM
|
4
4
|
# A BLM document including its header, definition, and data content.
|
5
5
|
class Document # rubocop:disable Metrics/ClassLength
|
6
|
-
|
6
|
+
BLM_FILE_SECTIONS = %w[HEADER DEFINITION DATA END].freeze
|
7
7
|
|
8
8
|
def self.from_array_of_hashes(array)
|
9
9
|
date = Time.now.utc.strftime('%d-%b-%Y %H:%M').upcase
|
@@ -117,10 +117,10 @@ module RightmoveBLM
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def verify_source_file_structure(source)
|
120
|
-
|
121
|
-
next if source.index(
|
120
|
+
BLM_FILE_SECTIONS.each do |section|
|
121
|
+
next if source.index(section)
|
122
122
|
|
123
|
-
raise_parser_error "Unable to process document with this structure: could not detect #{
|
123
|
+
raise_parser_error "Unable to process document with this structure: could not detect #{section} section."
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rightmove_blm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Parse and generate Rightmove BLM files
|
14
14
|
email: git@bob.frl
|