zoomeye 0.0.5 → 0.0.6

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: 3a901c6af79969d29f7df211c5100d9ba76f334b
4
- data.tar.gz: 8d6cc06021e3c2aa743fc8c4adfa2e8652c7f4bf
3
+ metadata.gz: bf3d96ab993d0c8181a80beec8a4483f1165e4a5
4
+ data.tar.gz: 93507395b7744a1337e9811ac8b8d32b782343e3
5
5
  SHA512:
6
- metadata.gz: 4a910fa85a6b93e90596943aa7702f423fbe151462f8ef5d2dfa7be5b733c014d036704fd720040ff5163311a0a2f5566540ef3a259e6261e9a8d858ddbbef9d
7
- data.tar.gz: adf10f6052b8cc7dc83feee26f4cd7d6dea90136a9b08ab6eee257f2349d40cdaf4d0bcb0cf4ed225fe1d625ad066fbd9f5743f33ee7966253d508f7b2b8b714
6
+ metadata.gz: 598fcf2cb9477c3b2ec2515c2997e1736eca91715bb4e4661298fe682841336d0debdb4d30b405e3f239af87b4b6a35619f58eaed4a380fa15479b8585d3b704
7
+ data.tar.gz: 5dda041189879beb0aa40bfab09535a5952900b59d1e27bab3c1198baaa5dccecf23fcbc6283a1d96e093dbf9fd0c4718259cd9e8f87d64b01983e2ae5c6b427
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # rb_zoomeye
1
+ # zoomeye
2
2
 
3
3
  zoomeye api for ruby.
4
4
 
@@ -16,7 +16,7 @@ As the official website, the interfaces provided encapsulation are below:
16
16
  login with username and password, get an access token. for the details, please read the official api doc:
17
17
  [https://www.zoomeye.org/api/doc#user](https://www.zoomeye.org/api/doc#user)
18
18
 
19
- + resouces_info
19
+ + resources_info
20
20
 
21
21
  get resources info for account. for the details, please read the official api doc:
22
22
 
@@ -38,7 +38,7 @@ search the web technologies. for the details, please read the official api doc:
38
38
  **normally, a dict type is returned when call all above apis, except the 'login' api.**
39
39
 
40
40
 
41
- ## 异常捕获
41
+ ## Exception
42
42
 
43
43
  ``` ruby
44
44
  class ZoomEyeError < StandardError
@@ -67,7 +67,7 @@ if __FILE__ == $0
67
67
  begin
68
68
  ze = ZoomEye.new(("foo@bar.com", "foopass")
69
69
  ze.login
70
- puts ze.resources
70
+ puts ze.resources_info
71
71
  puts ze.host_search("port:80", 7, "app,device")
72
72
  puts ze.web_search("port:21", 1, "webapp,os")
73
73
  rescue => e
@@ -58,7 +58,7 @@ module Zoomeye
58
58
  end
59
59
  end
60
60
 
61
- def resources
61
+ def resources_info
62
62
  res = get(@@home_url + @@resource_sub_url, {})
63
63
  body = JSON.parse res.body
64
64
  if '200' == res.code
@@ -1,3 +1,3 @@
1
1
  module Zoomeye
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zoomeye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - CharellKing
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-25 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler