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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54084e658360c3951949a193c23952f5dabca96f
4
- data.tar.gz: 2757288cd34409759ca970ba100e810f6e47dac6
3
+ metadata.gz: 06e39f3001a36c1994e02be62d2eb89523dbd03f
4
+ data.tar.gz: 6e3b581b5928a4d110eb75bb3d7c5379ef61d836
5
5
  SHA512:
6
- metadata.gz: 4aa2a59d7dd7137e65dc0acd8db6b789aceffb7d9507ac19f1b25fb7ed0a0df0aabe3b5a10d2b130681b54bc3d082f5c1af0762e12696c3e088504f9138d2f9a
7
- data.tar.gz: 07f540d2b1f742e0d90827723ff1e2422378a1b32dc60fd84a27c2272b21cd7c0cb35904354acc545fe1dd2a173ae346fbc11f73ef57a6684382ced87750ad80
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
- ((!@timestamp.nil?) ? send_offline(parameters) : send_realtime(parameters))
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}) unless (@tid.blank?)
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,
@@ -25,8 +25,6 @@ class OEHClient::Meta::Entity
25
25
 
26
26
  response = OEHClient.get(url, nil, :header => header)
27
27
 
28
- puts "FETCH #{entity_type} response: #{response[:body]}"
29
-
30
28
  end
31
29
 
32
30
  ###
@@ -1,3 +1,3 @@
1
1
  module OEHClient
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-30 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler