oeh-client 0.1.1 → 0.1.2
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/oehclient/interaction/interaction.rb +2 -2
- data/lib/oehclient/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 517267cc89054910a425ef6c14b44b559e3a8dd9
|
4
|
+
data.tar.gz: b0e58925610bb6eebdd1c43f999e7da818d08189
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258591ab4e2eb1d88ec019b37992aaf51577f7fd5e9ea7f5fe57e15fa1dac13650ee7e653fb1818447e539354b2f981ec2d99bbe427ac9942590c329320e5491
|
7
|
+
data.tar.gz: 64d14f657b6828c56680dc456948f5a9d6576b840ffe9d2972849b4cb3d53465a2af2753860507b87bf71386cd4540ec81926c4957c7d121a0bd45be6e8fc7c1
|
@@ -115,7 +115,7 @@ class OEHClient::Interaction::Interaction
|
|
115
115
|
raise OEHClient::Exception::MissingParameterException.new(missing_minimal_parameters) unless (minimal_parameters?)
|
116
116
|
|
117
117
|
# call the appropriate method based on the existance of the timestamp value
|
118
|
-
((!@timestamp.nil?
|
118
|
+
((!@timestamp.nil?) ? send_offline(@space.token) : send_realtime(@space.token, parameters))
|
119
119
|
|
120
120
|
# return the current instance interacton
|
121
121
|
self
|
@@ -187,7 +187,7 @@ class OEHClient::Interaction::Interaction
|
|
187
187
|
# send_offline posts a historic interaction, using a specified timestamp
|
188
188
|
def send_offline(token)
|
189
189
|
|
190
|
-
response =
|
190
|
+
response = OEHClient::Helper::Response.handle(OEHClient.put(token,
|
191
191
|
OEHClient::Helper::Request.format_url(offline_url, {:sk => @space.site_key}),
|
192
192
|
nil,
|
193
193
|
request_data))
|
data/lib/oehclient/version.rb
CHANGED