x2ch 0.9.3 → 0.9.4

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.
Files changed (3) hide show
  1. data/lib/x2ch.rb +2 -1
  2. data/lib/x2ch/version.rb +3 -0
  3. metadata +2 -1
@@ -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/0.9.1)", "Accept-Encoding" => 'gzip'}
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
@@ -0,0 +1,3 @@
1
+ module X2CH
2
+ VERSION = "0.9.4"
3
+ end
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.3
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