wp2txt 0.7.6 → 0.7.7

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: b4dff862e52128851fb4db35a59a1f4e3e9e473f
4
- data.tar.gz: e38612ada2785a2fed1e975460451b0d0a703e5e
3
+ metadata.gz: d239913dc9fcda87677ec2eeed1ae51542b9ae7b
4
+ data.tar.gz: 6ee520b960dc9bc23a6cf20345cc36a0740d5b96
5
5
  SHA512:
6
- metadata.gz: 19159a3706d0dfb687c239f3200ac3685916e63a4e3ec292d3e47acf4e8787c5ed728837bdf4b5586691adacdc75decddc1b2c7937ad483ca15a3663213d32c9
7
- data.tar.gz: 8d956611e29eb4fa0d058ab6459bd96167352fdb5ee44b1819fe4688983a8ebf146cc2413e609029558d845bf9e93f9e27eaca9a35f34bf4644c234a4809146c
6
+ metadata.gz: 4520570cf6f4c8c9c955a574523a4222ea3a9e308a86a510c407ac095040f73dc9cf393c49711787709129383080da077cc322a8e0aae9a401d24e9015e5baa8
7
+ data.tar.gz: 93f51183f722e6371394350777971f4dc66adf777d4613e547384fe96232071dff1078ff5189841cebebb027a63f072fd09013298a3d6ef042c3f22e25653dc1
data/bin/wp2txt CHANGED
@@ -130,6 +130,7 @@ wpconv.extract_text do |article|
130
130
  result = config[:title] ? title + "\n" << contents : contents
131
131
  end
132
132
  result.gsub!(/\[ref\]\s*\[\/ref\]/m){""}
133
+ result.gsub!(/^[\s\W]+$/)
133
134
  result.gsub!(/\n\n\n+/m){"\n\n"}
134
135
  result << "\n"
135
136
  end
@@ -6,7 +6,7 @@ $: << File.join(File.dirname(__FILE__))
6
6
  # require "rubygems"
7
7
  # require "bundler/setup"
8
8
 
9
- require "Nokogiri"
9
+ require "nokogiri"
10
10
  # require "oga"
11
11
  # require "ox"
12
12
 
@@ -1,3 +1,3 @@
1
1
  module Wp2txt
2
- VERSION = "0.7.6"
2
+ VERSION = "0.7.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wp2txt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichiro Hasebe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-30 00:00:00.000000000 Z
11
+ date: 2014-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project: wp2txt
102
- rubygems_version: 2.4.3
102
+ rubygems_version: 2.4.2
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Wikipedia dump to text converter