http_crawler 0.2.1 → 0.2.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
  SHA1:
3
- metadata.gz: 51fa116a088c7a5d065b9dc4ed70185f85102ed6
4
- data.tar.gz: 711b59b48c0c782d24ffed5d76d88c82e011d17b
3
+ metadata.gz: 94c0ec62e4073c5d62a3cb61c42884322e755543
4
+ data.tar.gz: dafa04929d3444f5f92c3d8e77edfdbda43b790a
5
5
  SHA512:
6
- metadata.gz: ff1e9c6f6b7734ffadfd5a0c33a1412b4542445a9d86840847885269b36a764faa69349c313d8ed085493dca8544a77609577f595cad884564bca4164064d991
7
- data.tar.gz: 94dc18a2b253e9a2fda57b51067b191d49ea88df04128c3f7bfb88745c99afe33d9dc64bdde7fb79f7b58a3cab2b2cbf08d6bf2d298b316e488cc439bb6481e3
6
+ metadata.gz: f76f61c0c27ca48d7b3d6f04618e07193e46538c1a064d8319652efd364d8f91c0921e8edda19ace88c89eb78f1d06b2c9903a93936a7d706444c417f027aba6
7
+ data.tar.gz: de229ca429741d894383cb37b3184a5871d388e856250b0c2bfe3b2a197d314d196689e7444355007c1192a9765802bcfc4b62ac28ba619b2edb231d2f77d2b2
data/lib/http_crawler.rb CHANGED
@@ -3,6 +3,10 @@ require 'json'
3
3
  require 'digest/md5'
4
4
  require 'nokogiri'
5
5
 
6
+ require 'http_crawler/client'
7
+ require 'http_crawler/proxy'
8
+ require 'http_crawler/http'
9
+
6
10
 
7
11
  module HttpCrawler
8
12
  # Your code goes here...
@@ -1,6 +1,3 @@
1
- load File.dirname(__FILE__) + '/http.rb'
2
- load File.dirname(__FILE__) + '/object.rb'
3
- load File.dirname(__FILE__) + '/string.rb'
4
1
 
5
2
  module HttpCrawler
6
3
  module Client
@@ -0,0 +1,3 @@
1
+ require File.dirname(__FILE__) + '/http.rb'
2
+ require File.dirname(__FILE__) + '/object.rb'
3
+ require File.dirname(__FILE__) + '/string.rb'
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
- load File.dirname(__FILE__) + '/net/http.rb'
2
- load File.dirname(__FILE__) + '/net/response.rb'
1
+ require File.dirname(__FILE__) + '/net/http.rb'
2
+ require File.dirname(__FILE__) + '/net/response.rb'
3
3
 
4
4
  module HttpCrawler
5
5
  class HTTP < Net::HTTP
@@ -1,3 +1,3 @@
1
1
  module HttpCrawler
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_crawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jagger
@@ -127,10 +127,13 @@ files:
127
127
  - http_crawler.gemspec
128
128
  - lib/http_crawler.rb
129
129
  - lib/http_crawler/client.rb
130
+ - lib/http_crawler/common.rb
131
+ - lib/http_crawler/common/object.rb
132
+ - lib/http_crawler/common/string.rb
133
+ - lib/http_crawler/common/web.rb
130
134
  - lib/http_crawler/http.rb
131
135
  - lib/http_crawler/net/http.rb
132
136
  - lib/http_crawler/net/response.rb
133
- - lib/http_crawler/object.rb
134
137
  - lib/http_crawler/proxy.rb
135
138
  - lib/http_crawler/proxy/README.md
136
139
  - lib/http_crawler/proxy/client.rb
@@ -139,9 +142,7 @@ files:
139
142
  - lib/http_crawler/proxy/test_proxy_api/client.rb
140
143
  - lib/http_crawler/proxy/test_proxy_api/response.rb
141
144
  - lib/http_crawler/proxy/test_proxy_api/response/get_proxy.rb
142
- - lib/http_crawler/string.rb
143
145
  - lib/http_crawler/version.rb
144
- - lib/http_crawler/web.rb
145
146
  - lib/http_crawler/web/README.md
146
147
  - lib/http_crawler/web/baidu/README.md
147
148
  - lib/http_crawler/web/baidu/client.rb