oeh-client 0.2.1 → 0.2.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 +5 -3
- data/lib/oehclient/meta/entity.rb +0 -2
- data/lib/oehclient/version.rb +1 -1
- 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: 06e39f3001a36c1994e02be62d2eb89523dbd03f
|
4
|
+
data.tar.gz: 6e3b581b5928a4d110eb75bb3d7c5379ef61d836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f35633fc7ea252dea8e75a9f82cc90bf8c1317dcf722c9befc299826379d0c243c28ffb36f2e48b6f4973d5433070f1188a36131dfdb76894d4934c0e65ecb
|
7
|
+
data.tar.gz: 6ed445491c403421b489bf2e95474641f5172ddbcd83638716cdc6a8e76b02fe100ed024a8fd1dba1a2b74b89cfd955a6ae1c4bc0e95918b7d9e180801fcf8f6
|
@@ -126,8 +126,9 @@ class OEHClient::Interaction::Interaction
|
|
126
126
|
raise OEHClient::Exception::MissingParameterException.new(missing_minimal_parameters) unless (minimal_parameters?)
|
127
127
|
|
128
128
|
# call the appropriate method based on the existance of the timestamp value
|
129
|
-
(
|
130
|
-
|
129
|
+
#(!@timestamp.nil?) ? send_offline(parameters) : send_realtime(parameters))
|
130
|
+
# TEMPORARY UNTIL OFFLINE API Fixed
|
131
|
+
send_realtime(parameters)
|
131
132
|
# return the current instance interacton
|
132
133
|
self
|
133
134
|
end
|
@@ -203,7 +204,8 @@ class OEHClient::Interaction::Interaction
|
|
203
204
|
def send_request(method, url, properties={})
|
204
205
|
# set the URL parameters for the site_key and the tid, of the value exists
|
205
206
|
url_parameters = {:sk => @space.site_key}
|
206
|
-
url_parameters.merge!({:tid => @tid})
|
207
|
+
url_parameters.merge!({:tid => @tid}) unless (@tid.blank?)
|
208
|
+
url_parameters.merge!({:timestamp => @timestamp}) unless (@timestamp.nil?)
|
207
209
|
# send the POST or PUT methond along with the arguments to the OEHClient class
|
208
210
|
OEHClient.send(method.downcase.to_sym,
|
209
211
|
url,
|
data/lib/oehclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oeh-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Balliet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|