rightmove_blm 0.2.6 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rightmove_blm/document.rb +5 -5
- 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: 9ec340ad11adaadec9ee744185f62256797740385074cbf5a36d9913e5820bb7
|
4
|
+
data.tar.gz: 796260e176480613f01e44120088dc3806e54eea0b45eda665a50dd1c1d984ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b684cc031000728ae2e69674192bb5620c6189917ba157e0be33e59b98c50d9b089ccdba136c05cb5ac3c3a3efe96dc9b56a6428df4caa15cb2e049f87e2315
|
7
|
+
data.tar.gz: 715ae92488da5080b281633c0d0d75e6c26162434492569356c10815fc5e51b3917b631da6c4bab28530db20e4385070255d7a988b08d82e3939299bba25d39b
|
data/Gemfile.lock
CHANGED
@@ -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
|
@@ -78,7 +78,7 @@ module RightmoveBLM
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def international?
|
81
|
-
%w[H1 3I].include?(version)
|
81
|
+
%w[H1 3I 3i].include?(version)
|
82
82
|
end
|
83
83
|
|
84
84
|
private
|
@@ -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.8
|
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-
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Parse and generate Rightmove BLM files
|
14
14
|
email: git@bob.frl
|