konbikol 0.1.1 → 0.1.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: 8a97ce970519977318814eb7f2534781025a41959d3c3d40fda185a1117344b5
4
- data.tar.gz: 81a9d5f0b0da7ad398038a44b005b84e100a56c8ace60050c28925689f78906f
3
+ metadata.gz: b5ed75d13302e0d7ddbb004b96d6bab125678a66c8805efa54be38b0329256e8
4
+ data.tar.gz: 74a11c53db7857d5902d15878db3ad8217ee83071a1cedaa3673582317d52e81
5
5
  SHA512:
6
- metadata.gz: 5f79b29563d9b82c8038f21cf8105e242bb9a9bc7885834a1f228a50dc16814f9c8b6879e95a8fd706f868b3d2af3e8bc613d5cfb34bccf07cba13ae484d8a20
7
- data.tar.gz: cdcee30ed86946f2f7bb04bde087587f0f3aa6854e70a1d5fecd004611ecb7c42b7b9477c576ae94e1f23b2856e5a509e7192e2a6a29fcc037cd65d94419db77
6
+ metadata.gz: cd93360d6c44d1d4072ccf5e426f820bd5fcccbfb8f5d45a386cb55085f1a6a58b46c0ba260a66824fcd9c873cecd5787a2b0a643dd2ea7041e6f336630a3c34
7
+ data.tar.gz: e8aa7728b585b3c03bb9634cd38120e67a2d0cbd232d44c90b52b591311b951260122407077b8282e63bf54284a496d4cb21516976efafcda6e4b061125a82a0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- konbikol (0.1.1)
4
+ konbikol (0.1.2)
5
5
  icalendar (~> 2.5.1)
6
6
  pdf-reader (~> 2.1.0)
7
7
  tzinfo (~> 1.2.5)
@@ -170,7 +170,7 @@ module Konbikol
170
170
  return @departure_line_index if @departure_line_index
171
171
 
172
172
  lines_with_index = ticket_text.lines.each_with_index
173
- header_line_index = lines_with_index.find { |line, _| line.start_with?('Stacja Data Godzina') }.last
173
+ header_line_index = lines_with_index.find { |line, _| line =~ /Stacja\s+Data Godzina/ }.last
174
174
 
175
175
  # Find the next line after the header line that's not empty.
176
176
  @departure_line_index = lines_with_index.to_a
@@ -1,3 +1,3 @@
1
1
  module Konbikol
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: konbikol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Cieślak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-09 00:00:00.000000000 Z
11
+ date: 2018-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler