dmanga 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: a9385bcc5ad2ae0edcec57bda01a37f0bd7fd123cd9f918cd34e6d796f676879
4
- data.tar.gz: c20415469d7e6a002da87db9f5fa1271878506b6b492464171c8bd85150acf20
3
+ metadata.gz: 5a446542e7145f8f7b637dfddae37dc39895776c6ebf8849a4d59fec5bafd0f8
4
+ data.tar.gz: aa28934f5baa37e57779b98df1a0e999fb9de13d8a288812566c0baa5a8ba774
5
5
  SHA512:
6
- metadata.gz: 13377040282af722babe66da70dceadac09d640d7625ecf5653566f20edefc983a2f2eadf41481374aaf14dbff50da51bc9156c54fe10ff31e2515ba3011c193
7
- data.tar.gz: 5c2cec1e3b54e8ccb3e2c1927deb9a418d615f5c43e8f528b8aecac2c9acdbe600737364ed41465bc0fc3ca187c6a4dc09825cc385d04c6d39ff0bc9c8c14090
6
+ metadata.gz: 79211c48431f4c97905e36588af772998502ea6c382179e1bdbf2593036a999b193388fe9463bbfcaa636d1f3cc89261b900cf4d4dde7905d3b7e27d475ac0d9
7
+ data.tar.gz: 0e0ed22a8966085f29fd0006ec88c404f0f658edd076f61b42ebbc8845f71933a2c0c4c71d8c2132fbb8c0348b1a4ad853080a582e8390fdcde50d5d8cca0be7
@@ -6,7 +6,7 @@ require 'addressable/uri'
6
6
 
7
7
  module DManga
8
8
  class SiteParserBase
9
- USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"
9
+ USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0"
10
10
 
11
11
  attr_accessor :manga_name, :manga_url,
12
12
  :chapters, :verbose
@@ -24,7 +24,7 @@ module DManga
24
24
  def parse(url, regex)
25
25
  DManga::display_feedback "\nfetching #{url}" if @options.verbose
26
26
  result = []
27
- open(url, "User-Agent" => USER_AGENT) do |response|
27
+ URI.open(url, "User-Agent" => USER_AGENT) do |response|
28
28
  if response.status[1] == "OK"
29
29
  DManga::display_feedback "parsing #{url}" if @options.verbose
30
30
  page = response.read
@@ -149,7 +149,7 @@ module DManga
149
149
  encoded_url = Addressable::URI.encode(url)
150
150
  DManga::display_feedback "\n#{encoded_url}"
151
151
  pbar = get_progressbar
152
- open(
152
+ URI.open(
153
153
  encoded_url, "User-Agent" => USER_AGENT,
154
154
  :progress_proc => lambda {|s| pbar.increment }
155
155
  ) do |response|
@@ -1,3 +1,3 @@
1
1
  module DManga
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dmanga
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Endrew
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-28 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-progressbar
@@ -169,8 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubyforge_project:
173
- rubygems_version: 2.7.7
172
+ rubygems_version: 3.1.2
174
173
  signing_key:
175
174
  specification_version: 4
176
175
  summary: Downloads any manga from mangahost.net