telemetry 1.0.2 → 1.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.
data/bin/telemetryd CHANGED
@@ -6,7 +6,7 @@ require_relative "../lib/telemetry.rb"
6
6
  include Telemetry
7
7
 
8
8
  runner = Dante::Runner.new('telemetryd', :port => 9990)
9
- runner.description = "telemetryd, a daemon for sending data to www.telemetryboard.com"
9
+ runner.description = "telemetryd, a daemon for sending data to www.telemetryapp.com"
10
10
  runner.with_options do |opts|
11
11
  opts.on("-c", "--config PATH", String, "Config file location") do |config|
12
12
  options[:config] = config
@@ -10,8 +10,6 @@ module Telemetry
10
10
  return unless Telemetry.token
11
11
  return unless data.size > 0
12
12
 
13
- RestClient.proxy = ENV['http_proxy'] if ENV['http_proxy']
14
-
15
13
  body = MultiJson.dump({:data => data})
16
14
 
17
15
  uri = URI("https://data.telemetryapp.com/v1/data.json")
@@ -21,7 +19,7 @@ module Telemetry
21
19
  request.body = body
22
20
 
23
21
  begin
24
- result = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => true) do |http|
22
+ result = Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
25
23
  response = http.request(request)
26
24
  case response.code
27
25
  when "200"
@@ -1,3 +1,3 @@
1
1
  module Telemetry
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-28 00:00:00.000000000 Z
12
+ date: 2013-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oj