rightmove_blm 0.2.0 → 0.2.2

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: a4ec5f3eee9950c331f0a1dd23129b47d6917c332fae762df37346f67c3ae15b
4
- data.tar.gz: e803eb23307b33115103e2cd99c94398d272576db5206670eff24c64f13f72af
3
+ metadata.gz: c3397a4adccadcad8a3879a3590cd6b18ac9c563534a2b70804731402e71a3a5
4
+ data.tar.gz: 78b3e9830e9b4959b73016b8f792389c9d04a3aac90a784da349341577c8f214
5
5
  SHA512:
6
- metadata.gz: 784c8aad75336281c6e7bc59a0a16866929f62268542d0ebf93c5bccb5a21b1e651a91b1edeca885d571ab18bdd35289afd27937316ff8a5c473d44ad612c760
7
- data.tar.gz: 9f8dc40c0e294360d4ca3b7b713da7922b4c9a90795517f98fcd71d13b9ba22e21435aa5f984618d3d30aabb91a6ffa0fad7640d248339a2b59c1c20453e4f96
6
+ metadata.gz: 813c20806d366937146dd7e208284a1c2551963f126fe826172c172b483d0927b8c9c8cd954e9e7c9eaae670cb9218c8380b9034dccf6a39b25efbc184d1eb28
7
+ data.tar.gz: 4a525eaf7a4d0d64f432bacb44138a5ce1f68108c03fd57c9133a7dda7f3aea4ac9423109986894ed92ce46685df8601b47da0280285608bff99d5068a5a5a5e
@@ -86,7 +86,7 @@ module RightmoveBLM
86
86
  def contents(section = :data)
87
87
  marker = "##{section.to_s.upcase}#"
88
88
  start = verify(:start, @source.index(marker)) + marker.size
89
- finish = verify(:end, @source.index('#', start)) - 1
89
+ finish = verify(:end, @source.index('#END#', start)) - 1
90
90
  @source[start..finish].strip
91
91
  end
92
92
 
@@ -49,7 +49,7 @@ module RightmoveBLM
49
49
  attr_reader :data, :separator, :definition
50
50
 
51
51
  def field_size_mismatch_message
52
- "Field size mismatch in row #{index}. Expected: #{definition.size} fields, found: #{fields.size}"
52
+ "Field size mismatch in row #{index + 1}. Expected: #{definition.size} fields, found: #{fields.size}"
53
53
  end
54
54
 
55
55
  def fields
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RightmoveBLM
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.2'
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.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-06 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Parse and generate Rightmove BLM files
14
14
  email: git@bob.frl