erorr 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: bac02e4b1328a39a8ab38697067259c3cb0429e5e7fb9085c343a0aa0ed963aa
4
- data.tar.gz: cfbe5aaed5831f3e19344bd1c636b7947ba3b19dec07d0e52e1cf8a9056882ad
3
+ metadata.gz: c17e038d7ca5d2eee0fa585557d5cc6db9a2d445573ddc9db6ff9fc6926edf92
4
+ data.tar.gz: a42c51528ddd8dd301a27083c61887bb3b1c235b398fb6dd1011ffc38a86c6d1
5
5
  SHA512:
6
- metadata.gz: 416f886c1bcf10eb555d094f592482e920a7a407c899bf91ceafdf9ce9bdbddc9c680811348d116c63e29d4b731cfa08d229309e7bf7697e6883a0273fd41679
7
- data.tar.gz: 4a228f20669340c15ac5f4fe344e105be37095fa229a704f9702e1a68c8a8f2ed5e9301f15055ebde06275f40a9692a9ab65497bdfa5389fa16838136ce8cb2d
6
+ metadata.gz: dd20dbb4d023599c710d7da8468a8562398d0f69caf2d2bd991bb0cbe8921541f9af11217401e74ecf611a2173482f5726886a4cb54922f32fc39d7d32870e90
7
+ data.tar.gz: af33e2e23461565ad976733b6bec3c174311f96803a3db84eb821e94d20a192410c5342063ec3a3ebc5e1968103c185b56b222d5e8dd480a29f8cdff66d7c814
@@ -22,13 +22,16 @@ module Erorr
22
22
  end
23
23
 
24
24
  def deliver(params)
25
+ puts 'Delivering shit...'
25
26
  self.class.thread_pool.post do
27
+ puts 'Sending stuff'
26
28
  uri = URI("#{@api_url}/faults")
27
29
  request = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
28
30
  request.body = {fault: params, api_key: @api_key}.to_json
29
- Net::HTTP.start(uri.hostname, uri.port) do |http|
31
+ response = Net::HTTP.start(uri.hostname, uri.port) do |http|
30
32
  http.request request
31
33
  end
34
+ puts "Response: #{response.inspect}"
32
35
  end
33
36
  end
34
37
  end
data/lib/erorr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Erorr
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erorr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georgi Mitrev