hydna 0.1.7 → 0.1.8
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 +4 -4
- data/lib/hydna.rb +3 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fd5b9baf185ed902a292883001ab9c8979db5fe
|
4
|
+
data.tar.gz: 23867388b42ba136e09e13df9c8d407b2c190e9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bd1fcbc7378dce63bc4b310daca48845dae27eaeea4d9d1f98f14e2033bdd1eef6c1225b2f51663a2e890b0a17dace9c23743e01321980e97e65bee22e62b74
|
7
|
+
data.tar.gz: 8915797092aefaf19133795819fa0b297fcf07da2db6b643e20a059ca816425534fc59b622bbecd84c9346fcc93390ed23047fb755f2641927039fd7978ffb87
|
data/lib/hydna.rb
CHANGED
@@ -16,13 +16,7 @@ module Hydna
|
|
16
16
|
'User-Agent' => agent,
|
17
17
|
'X-Emit' => 'yes'
|
18
18
|
}
|
19
|
-
|
20
|
-
token = clean_token(ctoken)
|
21
|
-
|
22
|
-
if token != nil
|
23
|
-
headers['X-Token'] = token
|
24
|
-
end
|
25
|
-
|
19
|
+
|
26
20
|
send(domain, headers, data)
|
27
21
|
|
28
22
|
end
|
@@ -33,13 +27,7 @@ module Hydna
|
|
33
27
|
'Content-Type' => 'text/plain',
|
34
28
|
'User-Agent' => agent
|
35
29
|
}
|
36
|
-
|
37
|
-
token = clean_token(ctoken)
|
38
|
-
|
39
|
-
if token != nil
|
40
|
-
headers['X-Token'] = token
|
41
|
-
end
|
42
|
-
|
30
|
+
|
43
31
|
prio = clean_prio(prio)
|
44
32
|
|
45
33
|
headers['X-Priority'] = prio.to_s()
|
@@ -146,7 +134,7 @@ module Hydna
|
|
146
134
|
raise "Invalid channel"
|
147
135
|
end
|
148
136
|
|
149
|
-
channel = Integer(parts[1])
|
137
|
+
channel = Integer(parts[1])
|
150
138
|
|
151
139
|
if channel > MAX_CHANNEL_VALUE or channel <= 0
|
152
140
|
raise "Invalid channel"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isak Wiström
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Hydna exposes a straightforward API over HTTP. It uses a single resource;
|
14
14
|
sending messages is done by making POST requests to the same URI you'd use to connect
|