rightmove_blm 0.2.6 → 0.2.8

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: 27c31f1462ef7ed1cb02253396803510703b7a3f2d14678dd359bd002ff1f113
4
- data.tar.gz: 2c08d19df9a78f7ceae30a97dbd2be7dba9e6e8d3636779d1cdc3e6db14e75bc
3
+ metadata.gz: 9ec340ad11adaadec9ee744185f62256797740385074cbf5a36d9913e5820bb7
4
+ data.tar.gz: 796260e176480613f01e44120088dc3806e54eea0b45eda665a50dd1c1d984ab
5
5
  SHA512:
6
- metadata.gz: b599bc06336d93a1102b5276debb05eb285599f4169dae7fa744070c362e637107221e18a31346af2b6971314f0f1120f095627869a7ac90806023fc129b0922
7
- data.tar.gz: e1c457877d3163e5b19d2570eab8d07190936cce9132c1588e5f4d8447065e45456c801df245fe8bee3d26142a585bf076e209526930fac0133d496b88f7828d
6
+ metadata.gz: 4b684cc031000728ae2e69674192bb5620c6189917ba157e0be33e59b98c50d9b089ccdba136c05cb5ac3c3a3efe96dc9b56a6428df4caa15cb2e049f87e2315
7
+ data.tar.gz: 715ae92488da5080b281633c0d0d75e6c26162434492569356c10815fc5e51b3917b631da6c4bab28530db20e4385070255d7a988b08d82e3939299bba25d39b
data/Gemfile.lock CHANGED
@@ -67,4 +67,4 @@ DEPENDENCIES
67
67
  strong_versions (~> 0.4.5)
68
68
 
69
69
  BUNDLED WITH
70
- 2.3.7
70
+ 2.4.10
@@ -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
@@ -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
- 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.8'
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.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-01-08 00:00:00.000000000 Z
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