holepicker 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.markdown +4 -0
- data/README.markdown +2 -0
- data/lib/holepicker/online_database.rb +3 -9
- data/lib/holepicker/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4af41b40003f82df2606fc870a190cd1673a204f
|
4
|
+
data.tar.gz: d28757a6cb868abc315bae706ca8ea812a1d6bb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3774293dec04c58cd89feed93b184821ce08aa52f8dcb88c24e5a159179856ab3805687dd9374cd22c68c7392097193797d952c7d97e6000fd78a6c082af981b
|
7
|
+
data.tar.gz: c79f6b2fc973265e48ef4a78e113bd40006ddba51027b0e0ec929586d213eb940f23c9482dfa7140848a950d5c6206ba4b8480335274c54d6f41f060abce82ad
|
data/Changelog.markdown
CHANGED
data/README.markdown
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
require 'holepicker/database'
|
2
2
|
require 'holepicker/logger'
|
3
3
|
require 'holepicker/utils'
|
4
|
-
require '
|
5
|
-
require 'net/https'
|
4
|
+
require 'open-uri'
|
6
5
|
|
7
6
|
module HolePicker
|
8
7
|
class OnlineDatabase < Database
|
9
8
|
include HasLogger
|
10
9
|
|
11
|
-
URL = 'https://raw.
|
10
|
+
URL = 'https://raw.githubusercontent.com/jsuder/holepicker/master/lib/holepicker/data/data.json'
|
12
11
|
|
13
12
|
def self.load
|
14
13
|
logger.info "Fetching list of vulnerabilities..."
|
@@ -32,12 +31,7 @@ module HolePicker
|
|
32
31
|
private
|
33
32
|
|
34
33
|
def self.http_get(url)
|
35
|
-
|
36
|
-
http = Net::HTTP.new(uri.host, uri.port)
|
37
|
-
http.use_ssl = url.start_with?('https')
|
38
|
-
|
39
|
-
response = http.get(uri.request_uri)
|
40
|
-
response.body
|
34
|
+
open(url).read
|
41
35
|
end
|
42
36
|
|
43
37
|
def check_compatibility
|
data/lib/holepicker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: holepicker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Suder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -69,7 +69,8 @@ files:
|
|
69
69
|
- lib/holepicker/version.rb
|
70
70
|
- lib/holepicker/vulnerability.rb
|
71
71
|
homepage: http://github.com/jsuder/holepicker
|
72
|
-
licenses:
|
72
|
+
licenses:
|
73
|
+
- MIT
|
73
74
|
metadata: {}
|
74
75
|
post_install_message:
|
75
76
|
rdoc_options: []
|
@@ -87,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
88
|
version: '0'
|
88
89
|
requirements: []
|
89
90
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.2.
|
91
|
+
rubygems_version: 2.2.2
|
91
92
|
signing_key:
|
92
93
|
specification_version: 4
|
93
94
|
summary: A tool for checking gem versions in Gemfile.lock files for known vulnerabilities
|