telemetry 1.5.1 → 1.5.2

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: 33fb86c7efe32a88085d057ac541614925fbd799
4
- data.tar.gz: b493294a5fc8a632d7da4c8aac698268bd7d8973
3
+ metadata.gz: 5760c9b3fb75b331d5e240103f1644401d3718b7
4
+ data.tar.gz: 4f912c0d58b5ef70324866a70a7c7898ea27a2f6
5
5
  SHA512:
6
- metadata.gz: a946ddaa4b493636c144d884b6886bb5d64c0e337df9cab8641e4c27c0f0c53645d512aac14eeaf7bcc835e26e15a01864a0542b298b22f84edc51945d370b01
7
- data.tar.gz: ade9f4a4d318c8d4f35b84ee3f3c8fe746eeb1cfcaf8ed56f3927fee820881153ced541ca40ad0748a74cb0be4543068fe33b0676ff261b3c5f3babbc57224ea
6
+ metadata.gz: 4990701726c127fba9f52728531f494b9c198e79cba471a9383e516ab44f831ee9f4049bca8891d78040e7e1278cf1c082dc9829457a2c6706623b5619b65650
7
+ data.tar.gz: ca743918a59a0fa3c4b7f2fc8b1a935ded6d9c5689763125c906d14fa800d0d3ea207e91b1b0f4643c1891670800a50076f1d53695a76c1dd90c39143368f74b
data/README.md CHANGED
@@ -85,26 +85,6 @@ You may send data to more than one flow in a single API call. To do this constr
85
85
  flows << Telemetry::Gauge.new({tag: "test-flow-gauge", value: 33})
86
86
  Telemetry::Api.flow_update_batch(flows)
87
87
 
88
- ## Data Encryption
89
-
90
- While Telemetry is SSL based and we protect our customers data with utmost caution, some corporate policies will not approve of any third party having the possibility of access to their data. Therefore we support optional encryption of the data with AES-256-CBC before sending it to the Telemetry API. The Telemetry Javascript application that runs in your browser to view the data can be configured with the same key in order to decrypt the data and display it for you while making it invisible to any prying eyes in the middle.
91
-
92
- require 'telemetry'
93
-
94
- Telemetry.token = "test-api-token"
95
- ENCRYPTIONKEY = "Unique Random Password"
96
- flow = Telemetry::Value.new(tag: "test-flow-value", value: 3434)
97
- flow.encrypt(ENCRYPTIONKEY)
98
- flow.emit
99
-
100
- Please be careful that your data isn't able to be validated by the Telemetry API since it cannot see it. Therefore we suggest testing with dummy uncrypted data first. Additionally there will be performance implications for large amounts of changing data for some browsers.
101
-
102
- In order to view encrypted data in your browser you will need to append the key to the end of the URL by adding it like the following:
103
-
104
- https://boards.telemetryapp.com/board.html?channel_id=467177c0126e4d8d4809c2414b995e01#encryption_key=ENCRYPTIONKEY
105
-
106
- Note that the # part will not be sent to the server, it's a local argument only visible to the local javascript running in the browser. Certain attributes like tags and priority will not be encrypted as they're needed by the system.
107
-
108
88
  ## Virtual Channels
109
89
 
110
90
  This gem supports virtual channel sending. You must have a pro or higher account to use virtual channels. In order to use this you must call:
@@ -1,23 +1,12 @@
1
1
  #/usr/bin/env ruby
2
2
 
3
3
  require 'hashie'
4
- require 'gibberish'
5
4
  require 'multi_json'
6
5
 
7
6
  module TelemetryFlows
8
7
  def emit
9
8
  Telemetry::Api.flow_update(self)
10
9
  end
11
- def encrypt(encrytion_key)
12
- cipher = Gibberish::AES.new(encrytion_key)
13
- skipped_keys = ["tag", "expires_at", "priority", "icon"]
14
- self.keys.each do |key|
15
- unless skipped_keys.include?(key)
16
- self[key] = {enc_json: cipher.enc(MultiJson.dump(self[key]))}
17
- end
18
- end
19
- puts self.to_hash
20
- end
21
10
  end
22
11
 
23
12
  module Telemetry
@@ -1,3 +1,3 @@
1
1
  module Telemetry
2
- TELEMETRY_VERSION = "1.5.1"
2
+ TELEMETRY_VERSION = "1.5.2"
3
3
  end
data/telemetry.gemspec CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency "dante", "~> 0.2"
22
22
  gem.add_dependency "hashie", "~> 2.0"
23
23
  gem.add_dependency "net-http-persistent", "~> 2.9"
24
- gem.add_dependency "gibberish", "~> 1.4"
25
24
  gem.add_development_dependency "rspec", "~> 2.14"
26
25
  gem.add_development_dependency "rake", "~> 10.1"
27
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - W. Gersham Meharg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-25 00:00:00.000000000 Z
11
+ date: 2014-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.9'
69
- - !ruby/object:Gem::Dependency
70
- name: gibberish
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.4'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.4'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rspec
85
71
  requirement: !ruby/object:Gem::Requirement