http_crawler 0.3.1.23 → 0.3.1.24
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 +4 -4
- data/.idea/workspace.xml +4 -5
- data/lib/http_crawler/http/response.rb +2 -5
- data/lib/http_crawler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f037c192e7afb485c876694310e484b87527a4b8b5350941ae025b38bf614c39
|
|
4
|
+
data.tar.gz: 78ced5fa918f89cc381e958764e6b0e83c8251ef355a27b4003e68371094f4d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3150f60927a74dc6631ee1f20bda1ede4d30c917bf6451e69ed8173e3c836f27344e46d07082ed7705f94bd08db9f69823bf0ac1d90f8dd06bb6df8718905451
|
|
7
|
+
data.tar.gz: ee6f385d4a27b4068f51620d39e75f90326260fbf1f633e394bc0fdbe2ba22ee21f96e26543ebb7b13151dd5b029a98ea2718e1ac4e4894ff0a8662237ab9452
|
data/.idea/workspace.xml
CHANGED
|
@@ -253,18 +253,17 @@
|
|
|
253
253
|
<workItem from="1557136966397" duration="459000" />
|
|
254
254
|
<workItem from="1557137463254" duration="382000" />
|
|
255
255
|
<workItem from="1557156104186" duration="1815000" />
|
|
256
|
-
<workItem from="1557160216202" duration="
|
|
256
|
+
<workItem from="1557160216202" duration="138000" />
|
|
257
257
|
</task>
|
|
258
258
|
<servers />
|
|
259
259
|
</component>
|
|
260
260
|
<component name="TimeTrackingManager">
|
|
261
|
-
<option name="totallyTimeSpent" value="
|
|
261
|
+
<option name="totallyTimeSpent" value="33028000" />
|
|
262
262
|
</component>
|
|
263
263
|
<component name="ToolWindowManager">
|
|
264
264
|
<frame x="0" y="0" width="1680" height="1050" extended-state="0" />
|
|
265
|
-
<editor active="true" />
|
|
266
265
|
<layout>
|
|
267
|
-
<window_info
|
|
266
|
+
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.16422467" />
|
|
268
267
|
<window_info anchor="bottom" id="TODO" order="6" />
|
|
269
268
|
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
|
270
269
|
<window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
|
|
@@ -273,7 +272,7 @@
|
|
|
273
272
|
<window_info anchor="bottom" id="Run" order="2" />
|
|
274
273
|
<window_info anchor="bottom" id="Version Control" order="7" />
|
|
275
274
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
|
276
|
-
<window_info anchor="bottom" id="Terminal" order="7" visible="true" weight="0.22871795" />
|
|
275
|
+
<window_info active="true" anchor="bottom" id="Terminal" order="7" visible="true" weight="0.22871795" />
|
|
277
276
|
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
|
278
277
|
<window_info id="Favorites" order="2" side_tool="true" />
|
|
279
278
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
|
@@ -42,11 +42,8 @@ module HTTP
|
|
|
42
42
|
if (cd && cd != encoding)
|
|
43
43
|
@decoding_body.force_encoding(cd).encode!('utf-8') if encoding != @decoding_body.encoding
|
|
44
44
|
else
|
|
45
|
-
#
|
|
46
|
-
|
|
47
|
-
Rails.logger.debug "cd => #{cd}"
|
|
48
|
-
Rails.logger.debug "@decoding_body[0..200] => #{@decoding_body[0..200]}"
|
|
49
|
-
raise e
|
|
45
|
+
# 还是转码错误则抛出源码转字符串内容
|
|
46
|
+
self.body.to_s
|
|
50
47
|
end
|
|
51
48
|
end
|
|
52
49
|
|
data/lib/http_crawler/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: http_crawler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.1.
|
|
4
|
+
version: 0.3.1.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jagger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|