eotb 0.5.14 → 0.5.15
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.
- data/VERSION +1 -1
- data/eotb.gemspec +2 -2
- data/lib/eotb.rb +3 -0
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.15
|
data/eotb.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{eotb}
|
|
8
|
-
s.version = "0.5.
|
|
8
|
+
s.version = "0.5.15"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Ragnarson"]
|
|
12
|
-
s.date = %q{2010-10-
|
|
12
|
+
s.date = %q{2010-10-27}
|
|
13
13
|
s.default_executable = %q{eotb}
|
|
14
14
|
s.description = %q{Rails plugin which allow you easily track and observe your apps}
|
|
15
15
|
s.email = %q{bartlomiej.kozal@ragnarson.com}
|
data/lib/eotb.rb
CHANGED
|
@@ -18,6 +18,8 @@ class Eotb
|
|
|
18
18
|
if params.size == 1 # DEPRECATED - remove on Eotb 0.5.17
|
|
19
19
|
puts 'DEPRECATION WARNING'
|
|
20
20
|
puts 'Eotb.configure(api_key) -- method will be removed in eotb 0.5.17'
|
|
21
|
+
@@uri = URI.parse('http://' + @@host + ':' + @@port + '/events/' + @@api_key)
|
|
22
|
+
@@post = Net::HTTP::Post.new(@@uri.path)
|
|
21
23
|
elsif params.size == 4 # DEPRECATED - remove on Eotb 0.5.17
|
|
22
24
|
puts 'DEPRECATION WARNING'
|
|
23
25
|
puts 'Eotb.configure(api_key, events, host, port) -- method will be removed in eotb 0.5.17'
|
|
@@ -86,6 +88,7 @@ class Eotb
|
|
|
86
88
|
def self.send
|
|
87
89
|
@@post.set_form_data(@@events)
|
|
88
90
|
@@counter = 1
|
|
91
|
+
@@events = {}
|
|
89
92
|
begin
|
|
90
93
|
Timeout::timeout(2) {
|
|
91
94
|
Net::HTTP.new(@@uri.host, @@uri.port).start.request(@@post)
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eotb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 15
|
|
10
|
+
version: 0.5.15
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ragnarson
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-10-
|
|
18
|
+
date: 2010-10-27 00:00:00 +02:00
|
|
19
19
|
default_executable: eotb
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|