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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2826b6b1de9806c9805c0ce7252e814d84633f1b
4
- data.tar.gz: c3077c33caf6d2db8b8023c73348e6ad22b505b8
3
+ metadata.gz: 4af41b40003f82df2606fc870a190cd1673a204f
4
+ data.tar.gz: d28757a6cb868abc315bae706ca8ea812a1d6bb0
5
5
  SHA512:
6
- metadata.gz: 636fb3f588c1800e73d01c54e67d220a68335b02630c1c0aca19cd23acb9d986e8ca51445c648f095d3edc6759adc2e10494f8a5aa8eb2c836c15a085e44f371
7
- data.tar.gz: 05a7864e92533a5cffb6b366e89b531510aa20618c88b55cbb952b3076b0b93c4d3dbc3bd8b6421b957ce6402f5f272f79520d32e5c5e5e442fbe0a9e3a34647
6
+ metadata.gz: 3774293dec04c58cd89feed93b184821ce08aa52f8dcb88c24e5a159179856ab3805687dd9374cd22c68c7392097193797d952c7d97e6000fd78a6c082af981b
7
+ data.tar.gz: c79f6b2fc973265e48ef4a78e113bd40006ddba51027b0e0ec929586d213eb940f23c9482dfa7140848a950d5c6206ba4b8480335274c54d6f41f060abce82ad
@@ -1,3 +1,7 @@
1
+ #### Version 0.3.3 (28.04.2014)
2
+
3
+ * fixed a problem with new GitHub raw URL hostname (@elhu)
4
+
1
5
  #### Version 0.3.2 (24.03.2014)
2
6
 
3
7
  * fixed a problem with the new version of rainbow gem
@@ -28,6 +28,8 @@ Of course the whole system still relies on me manually adding entries to the JSO
28
28
 
29
29
  ## Running the tool
30
30
 
31
+ HolePicker should run on any fairly recent Ruby (1.9.x, 2.0) or JRuby.
32
+
31
33
  To install the tool, just run:
32
34
 
33
35
  gem install holepicker
@@ -1,14 +1,13 @@
1
1
  require 'holepicker/database'
2
2
  require 'holepicker/logger'
3
3
  require 'holepicker/utils'
4
- require 'net/http'
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.github.com/jsuder/holepicker/master/lib/holepicker/data/data.json'
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
- uri = URI(url)
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
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
 
3
3
  module HolePicker
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
 
6
6
  def self.version
7
7
  ::Gem::Version.new(VERSION)
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.2
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-03-24 00:00:00.000000000 Z
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.0
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