vbulletin_scraper 0.2.0 → 0.2.1

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: 7344fc7034d44ab726ddec0bc4b0c03347b41cb9
4
- data.tar.gz: 54198a41d615aad2b292e58620730958d1cb4898
3
+ metadata.gz: 805e07a163e98ce38cebf5e49964b7da1235da41
4
+ data.tar.gz: 5a096f68ecb271d41651246c70788c581207629c
5
5
  SHA512:
6
- metadata.gz: c2ce9aac9de1f71cc702331c8063fde78f7688e6704f69db1c45cc18a56eb8f2d23f99ba10b7f45ceabc9fd22b212a6df539b5fd80e020d8ef874fe0ef6cf486
7
- data.tar.gz: bf676a00199f5d3ce30c40ee127447bb899791f7bd4f438f1fa0452d8d4cda293cf4a255b756c5744c82322512458d4e81cac1583a07576a8f7ecb046ad28894
6
+ metadata.gz: 711a42763aeb4fe45682b91214f24928abf35ded07f489c5a807bc6fc76e71d1ae5b681745cb25255013cffb8a9dd9f0a861ddf7b110f75c5893ebbf82d67188
7
+ data.tar.gz: 31425f9eda2c10843b4e7762883f5b0dcf20a15d18a496e8a11bdc454f56e539f11b844f25cb31537ad8cb74233f7bbcacaa66c5634cef3454ded474c6301a16
@@ -41,9 +41,11 @@ module VbulletinScraper
41
41
  end
42
42
 
43
43
  def get_post_content
44
- postContent = get_items_by_selector('.content blockquote > text()')
44
+ postContent = get_items_by_selector('.content blockquote')
45
45
  if postContent != nil
46
- return get_raw_text(postContent.to_s)
46
+ postContentNoQuotes = Nokogiri::HTML.fragment(postContent.inner_html)
47
+ postContentNoQuotes.search('div').remove
48
+ return postContentNoQuotes.to_s
47
49
  end
48
50
  return ''
49
51
  end
@@ -1,3 +1,3 @@
1
1
  module VbulletinScraper
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vbulletin_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Walters
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-01 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri