text_extractor 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
  SHA1:
3
- metadata.gz: 9d014b8016f17ef8f54362a7992b196938ccbeab
4
- data.tar.gz: 5336569aeed786019f4f6dc631d7828a3abecabb
3
+ metadata.gz: e5ad1f1e30ebbdf207ccbe8c978e1bdee81b5314
4
+ data.tar.gz: 9f7e016dc10d6c73e01b911f87663839473f37f4
5
5
  SHA512:
6
- metadata.gz: f69c8ed922dc2c8fa7d6b7da2eb8b252848990d2d7fd205d73f9daebe8288e8980ecb3efbbd5efef33cb5b86c645193297bebdc7a9a623ef140880a248ac2651
7
- data.tar.gz: 6d3f326791048807c3ddb344bd78ae0395e26c1271cd1f1af781b3ed45a3a4c3d956f6a9ef4014f40ba2a374b51a3231baa9a90b3e454c809f5615d5085087d9
6
+ metadata.gz: 3c8dffd2d4eeede251d2070be30e974fd92716daff4829a8a9375152ee25589346e1a1f9b0e371bb2ca79a1fbddc4d4918b9bb6ee930376a29392e69936d9440
7
+ data.tar.gz: baa8dd8967b230fc9397e8eface440064023675d072772fef0a0260de9c325e55ab74022e259cc94294f36c66ec8302f81d0848394b67bef476c634c2184d76f
@@ -1,5 +1,5 @@
1
1
  class TextExtractor
2
2
  def self.version
3
- '0.1.1'
3
+ '0.1.2'
4
4
  end
5
5
  end
@@ -66,10 +66,10 @@ class TextExtractor
66
66
  end
67
67
 
68
68
  def strip_record(regexp, strip: nil)
69
- lines = regexp.source.lines
69
+ lines = regexp.source.split("\n")
70
70
  prefix = lines.last
71
71
  strip_record_by_line(lines, prefix, strip)
72
- Regexp.new(lines.join.strip, regexp.options)
72
+ Regexp.new(lines.join("\n").strip, regexp.options)
73
73
  end
74
74
 
75
75
  def strip_record_by_line(lines, prefix, strip)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_extractor
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
  - Ben Miller