http_crawler 0.3.1.23 → 0.3.1.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f75d7cf5c15b83168a5a07fa0204b812aa3f57e4bddeefc536ccf929060572e
4
- data.tar.gz: 61f8faf6c2ad2e14dd71c63a3e0ed8b15d981622569792d15fd7293da7432a3d
3
+ metadata.gz: f037c192e7afb485c876694310e484b87527a4b8b5350941ae025b38bf614c39
4
+ data.tar.gz: 78ced5fa918f89cc381e958764e6b0e83c8251ef355a27b4003e68371094f4d1
5
5
  SHA512:
6
- metadata.gz: 0c170aa8c9e38bc783856ee1278a19f99f9e9451a3ba6e23c5a7ed33df58b77b61c7767e68e17f347a61b9e3b779746a25c240115d1b8f50bde1bcb0425637c2
7
- data.tar.gz: 4ea0e3e94a0abbffdd1b3e89859d4e37c01ac1a8645f6a39919e923a59094c7c0e809a11efde45828b2ca230d4c3efc67ba79e1998e9c3b7ed9a850b918ec847
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="7000" />
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="32897000" />
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 active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.16422467" />
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
- Rails.logger.debug "encoding => #{encoding}"
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
 
@@ -1,3 +1,3 @@
1
1
  module HttpCrawler
2
- VERSION = "0.3.1.23"
2
+ VERSION = "0.3.1.24"
3
3
  end
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.23
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-06 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec