thirteen_f 0.2.7 → 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: b0aff58ecaa4554c0b6f31db2fe9122303407b2673405b5352083bf3a110348d
4
- data.tar.gz: ca603aaa800f2ca32c731cde1689a6c1e29c690586c2066ead541eb1e52df0d1
3
+ metadata.gz: ecb853efcae733fbe7f2619506d9a71f503e3d632f3d5d04be465db646cce1db
4
+ data.tar.gz: 3709b525566d7c93f92ca4e4cc138937147be53c8b6cc3b45e437f6fba2f7888
5
5
  SHA512:
6
- metadata.gz: f3149f3063465dd32d32c5f54d375af276efe9c6e06d60b9f4457270f7cafbae16ff6bfa1f70aff3b792a98501ba48c2c523331dec88192d16dd9f6e7fa917f8
7
- data.tar.gz: ca1a1f6b215a837b1c4aabec2b65990e1fc4055bc7facc9f1083807f5a63bd974f5ef87d66df4e142a3b73207f13b5821e97e148a7069f953b37f29ae985d210
6
+ metadata.gz: a986e41fd4d06785fb0ef1a21a63ee7f99af547f6b8ad8db65128e27813261ceb426763fe80cb6f93682ef4acb017b0352915bbc4b0243fd63e43b2c02b0db0d
7
+ data.tar.gz: 1eaf85763d0b142ed78c5ced336dfa8dd135a98fc22e4750871f32c25b17c7d203c4b824f3ea2c1c679297ff823c2b3583651c265eca89f4b5c6e5978972af22
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- thirteen_f (0.2.6)
4
+ thirteen_f (0.2.8)
5
5
  http (>= 4.4)
6
6
  nokogiri
7
7
  pdf-reader
@@ -48,10 +48,11 @@ class ThirteenF
48
48
  reader.pages[2..-1].each do |page|
49
49
  lines = page.text.split("\n").reject(&:empty?)[3..-1]
50
50
  line_arrs = lines.map do |line|
51
- next nil if line.include?('Total Count')
52
- line.split(' ').reject(&:empty?).map(&:strip).reject { |text| text == '*' }
51
+ next nil if line.include?('Total Coun')
52
+ line.split(/\s{3}|( \* )/).reject(&:empty?).map(&:strip).reject { |text| text == '*' }
53
53
  end
54
54
  line_arrs.compact.each do |line_arr|
55
+ next unless line_arr.count > 1
55
56
  valid_entries.push ListEntry.new(line_arr)
56
57
  end
57
58
  end
@@ -1,3 +1,3 @@
1
1
  class ThirteenF
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thirteen_f
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - fordfischer