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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27c31f1462ef7ed1cb02253396803510703b7a3f2d14678dd359bd002ff1f113
4
- data.tar.gz: 2c08d19df9a78f7ceae30a97dbd2be7dba9e6e8d3636779d1cdc3e6db14e75bc
3
+ metadata.gz: 166ef6856134e6ffc3120ae6523fa5a5498c6b428e5b23e9804c83ec3e7894d7
4
+ data.tar.gz: dd041ad21667251d555b69d7be9759acd1f78a12239f06f02f91927e5b1d4f62
5
5
  SHA512:
6
- metadata.gz: b599bc06336d93a1102b5276debb05eb285599f4169dae7fa744070c362e637107221e18a31346af2b6971314f0f1120f095627869a7ac90806023fc129b0922
7
- data.tar.gz: e1c457877d3163e5b19d2570eab8d07190936cce9132c1588e5f4d8447065e45456c801df245fe8bee3d26142a585bf076e209526930fac0133d496b88f7828d
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
- BLM_4_FILE_KEYWORDS = %w[HEADER VERSION EOF EOR DEFINITION DATA END].freeze
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
- BLM_4_FILE_KEYWORDS.each do |keyword|
121
- next if source.index(keyword)
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 #{keyword} marker."
123
+ raise_parser_error "Unable to process document with this structure: could not detect #{section} section."
124
124
  end
125
125
  end
126
126
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RightmoveBLM
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  end
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.6
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-08 00:00:00.000000000 Z
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