x2ch 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/x2ch.rb +2 -1
- data/lib/x2ch/version.rb +3 -0
- metadata +2 -1
data/lib/x2ch.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require 'open-uri'
|
4
4
|
require 'kconv'
|
5
5
|
require 'zlib'
|
6
|
+
require 'x2ch/version'
|
6
7
|
|
7
8
|
module X2CH
|
8
9
|
class Bbs
|
@@ -112,7 +113,7 @@ module X2CH
|
|
112
113
|
|
113
114
|
class Agent
|
114
115
|
def self.download(url, if_modified_since = nil, range = nil)
|
115
|
-
header = {"User-Agent" => "Monazilla/1.00 (x2ch
|
116
|
+
header = {"User-Agent" => "Monazilla/1.00 (x2ch/#{X2CH::VERSION})", "Accept-Encoding" => 'gzip'}
|
116
117
|
if if_modified_since
|
117
118
|
header["If-Modified-Since"] = if_modified_since
|
118
119
|
end
|
data/lib/x2ch/version.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: x2ch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -18,6 +18,7 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- lib/x2ch.rb
|
21
|
+
- lib/x2ch/version.rb
|
21
22
|
homepage: https://github.com/xmisao/x2ch
|
22
23
|
licenses:
|
23
24
|
- MIT
|