wikibot 0.2.4.1 → 0.2.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,8 +19,10 @@ module WikiBot
19
19
  @api_hits = 0
20
20
  @page_writes = 0
21
21
 
22
- api = options[:api] || "http://en.wikipedia.org/w/api.php"
22
+ api = options[:api] || "https://en.wikipedia.org/w/api.php"
23
23
  auto_login = options[:auto_login] || false
24
+
25
+ @follow_redirects = options[:nofollow] ? false : true
24
26
  @readonly = options[:readonly] || false
25
27
  @debug = options[:debug] || false
26
28
 
@@ -35,6 +37,7 @@ module WikiBot
35
37
  @curl = Curl::Easy.new do |c|
36
38
  c.headers["User-Agent"] = self.user_agent
37
39
  c.headers["Accept-Encoding"] = "gzip" # Request gzip-encoded content from MediaWiki
40
+ c.follow_location = true if @follow_redirects
38
41
  end
39
42
 
40
43
  login if auto_login
@@ -1,3 +1,3 @@
1
1
  module WikiBot
2
- VERSION = "0.2.4.1"
2
+ VERSION = "0.2.4.2"
3
3
  end
data/wikibot.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{wikibot}
5
- s.version = "0.2.4.1"
5
+ s.version = "0.2.4.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Daniel Vandersluis"]
9
- s.date = %q{2012-02-07}
9
+ s.date = %q{2015-06-17}
10
10
  s.description = %q{Mediawiki Bot framework}
11
11
  s.email = %q{daniel@codexed.com}
12
12
  s.extra_rdoc_files = ["README.textile", "lib/wikibot.rb", "lib/wikibot/core/bot.rb", "lib/wikibot/core/category.rb", "lib/wikibot/core/page.rb", "lib/wikibot/ext/hash.rb", "lib/wikibot/vendor/openhash.rb", "lib/wikibot/version.rb"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikibot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 77
5
- prerelease: false
4
+ hash: 75
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 4
10
- - 1
11
- version: 0.2.4.1
10
+ - 2
11
+ version: 0.2.4.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Daniel Vandersluis
@@ -16,8 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-02-07 00:00:00 -07:00
20
- default_executable:
19
+ date: 2015-06-17 00:00:00 Z
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
22
  name: curb
@@ -111,7 +110,6 @@ files:
111
110
  - lib/wikibot/version.rb
112
111
  - wikibot.gemspec
113
112
  - Manifest
114
- has_rdoc: true
115
113
  homepage: http://github.com/dvandersluis/wikibot
116
114
  licenses: []
117
115
 
@@ -147,9 +145,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
145
  requirements: []
148
146
 
149
147
  rubyforge_project: wikibot
150
- rubygems_version: 1.3.7
148
+ rubygems_version: 1.8.24
151
149
  signing_key:
152
150
  specification_version: 3
153
151
  summary: Mediawiki Bot framework
154
152
  test_files: []
155
153
 
154
+ has_rdoc: