table_importer 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: cd84285c3a82fbc6de03c8f3f8e4891ac9587e63
4
- data.tar.gz: 9ad7d89998a2f9e98f1501968275ca28c5c8b6c7
3
+ metadata.gz: 6e799e30d96317d525f447d02f5a954722cf7f54
4
+ data.tar.gz: 17ab8437bc1d39168b8d68d87916c65763f409ba
5
5
  SHA512:
6
- metadata.gz: 814a258443231c3b4329cadc44da9d5f1d1c3cdbe365b9c97db0d5bf867d47612ff8e2bc750a445be982f3066d29bba6b7eb6a89201bae03cc318041c883f884
7
- data.tar.gz: b53895f0aa9946ba7510fffa33ad356f46dbf5774db0ef134deba95cbdce9b6b407b19ee1476c6f53146a0292c1b33045a89bd37e3d3df2da63562e4705b9c77
6
+ metadata.gz: 91fdf351b6eee84605483b72ba9cc1e04cea0dfcaf64587f61aaa6caff5e9788abffd79aee10f855f5baa0a8d45ed8730e37df656c6203700b49be1e90510972
7
+ data.tar.gz: b1a4060475d2b9e65855ea49eebd0748f69ff642a22c0ecc5ee1c95eb0a6e27ff94f67236d40392ca494a24425371d8ac0ce70430749527edd9f03cdff25bf26
@@ -26,8 +26,8 @@ module TableImporter
26
26
  # Check to see if data is of bcc style
27
27
  first_item = @data.split("\n")[1]
28
28
  if first_item.present? && first_item.match(/\S@\S/) && !first_item.match(/;|,|\s/)
29
- rec_sep = "\n"
30
- col_sep = " "
29
+ rec_sep ||= "\n"
30
+ col_sep ||= " "
31
31
  end
32
32
  first_item = @data.split(",").first
33
33
  if first_item.present? && first_item.match(/\S@\S/)
@@ -1,3 +1,3 @@
1
1
  module TableImporter
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Dowse