sjunkieex 0.1.4 → 0.1.5

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: b859672bb22dab37d676c3f8efa3ff4941d5a7de
4
- data.tar.gz: 55720669ccf536b97a9db58bd85ec538a010c0ba
3
+ metadata.gz: a6fc1710116904ee2ea35ea9a03fd0081f69e1ef
4
+ data.tar.gz: 3fa6da4a75ef950e43ff8ce041d18294f719cf08
5
5
  SHA512:
6
- metadata.gz: 78e7e024960cf8f1d5cc71624fab7dd90a95d6e633ed565125abb95ea03caedbeb1f84ef8c9a4ab1916feabfbd93982cb3c832c91d484388514495c0cc1b8e60
7
- data.tar.gz: 9b091db9d95cdff14b69502ab8853809562877d5a7c282dcb29ed8990350e54b893a361426fdb458a75b4b71615f26ddd57f2c5d63832b2b567e10fe443c1533
6
+ metadata.gz: 65c8f2b5b2ca561b74ebf565067046a66c035197314cb8edea85c7c11876705bb33c86191adf7d06bfe0d81c9ef3428132bf225ffcba68b2c1e2de802684541c
7
+ data.tar.gz: d616990b8d456c6c6d4fd95b05ff297e54d3250a5731d4678448cac4a515c5cf90bc31bba972639ee60ecdf25416befb3109c62191a9d445bc72f1b51e1ff4ad
@@ -168,7 +168,11 @@ module Sjunkieex
168
168
  end
169
169
  end
170
170
 
171
- return body
171
+ return strip_multiple_doctypes(body)
172
+ end
173
+
174
+ def strip_multiple_doctypes(content)
175
+ return content.split(/(?=\<\!DOCTYPE)/).last
172
176
  end
173
177
 
174
178
  end
@@ -1,3 +1,3 @@
1
1
  module Sjunkieex
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sjunkieex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Böhm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-10 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.0.3
103
+ rubygems_version: 2.0.14.1
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: serienjunkies.org link extractor