guh 0.0.6 → 0.0.7

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: 5d7818d85be5cc2c84e9f264cfad1e6dd66b1113
4
- data.tar.gz: ec4126300b995bc6a69587dfdd9a12c8a9a6043e
3
+ metadata.gz: 068cafcdebfd3a9f6001772252d927c8a51bdc60
4
+ data.tar.gz: 5f1b8f7cb9575e656aa2e16e1efb624f0dfeeec1
5
5
  SHA512:
6
- metadata.gz: b1f0d20dff3fc72ac81beea8e42008561b98cb91f8bd0794f1b100945ebdb12e6a8bbcd1eedc91db902d6294e3f08859441482b034a66090146bea408a5c7bbe
7
- data.tar.gz: b175d25c133246a079394d2e62eb5217221bf58ce3afef8e0f2e0eee6a2643c175653b8fd5bfe3c835fc4c7baecc9fd7b0f461adc529399677d313755aa1296f
6
+ metadata.gz: 3b6c5acdf0d427af9d69555f35b45f9bf4f8b50806b1aeb1755ac730754bc7e655a949a56dfd359f76cad3b8f088b92980375868774f94720e275d8f9b1eb247
7
+ data.tar.gz: da8e4508aeb160afdd3466acbb68d5117cb056c0cd36b54dbccff2c1df8b6e7ebb7e9ddc89b9239b7e93f315c88896f515b07e739599b8b84267e62a3b033fed
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ task :console do
14
14
  require 'guh'
15
15
 
16
16
  Guh::Base.configure do |c|
17
- c.guh_ip_address = '192.168.178.31'
17
+ c.guh_ip_address = '192.168.1.30'
18
18
  c.guh_port = 1234
19
19
  end
20
20
 
@@ -23,10 +23,10 @@ module Guh
23
23
  }
24
24
  })
25
25
 
26
- if response['success'] == 'success'
26
+ if response['deviceError'] == 'DeviceErrorNoError'
27
27
  return response
28
28
  else
29
- raise Guh::ArgumentError, response['errorMessage']
29
+ raise Guh::ArgumentError, response['deviceError']
30
30
  end
31
31
  end
32
32
 
@@ -53,7 +53,7 @@ module Guh
53
53
  response = fetch_message(c)
54
54
  end
55
55
 
56
- if response['status']=='success'
56
+ if response['status'] == 'success'
57
57
  return response['params']
58
58
  else
59
59
  raise Guh::ResponseError, "The Request was not successful"
@@ -58,10 +58,10 @@ module Guh
58
58
  }
59
59
  })
60
60
 
61
- if response['success'] == 'success'
61
+ if response['deviceError'] == 'DeviceErrorNoError'
62
62
  return response['deviceDescriptors']
63
63
  else
64
- raise Guh::ResponseError, response['errorMessage']
64
+ raise Guh::ResponseError, response['deviceError']
65
65
  end
66
66
  end
67
67
 
@@ -117,10 +117,10 @@ module Guh
117
117
  }
118
118
  })
119
119
 
120
- if response['success'] == 'success'
120
+ if response['deviceError'] == 'DeviceErrorNoError'
121
121
  return response
122
122
  else
123
- raise Guh::ArgumentError, response['errorMessage']
123
+ raise Guh::ArgumentError, response['deviceError']
124
124
  end
125
125
  end
126
126
 
@@ -142,10 +142,10 @@ module Guh
142
142
  deviceId: device_id
143
143
  }
144
144
  })
145
- if response['success'] == 'success'
145
+ if response['deviceError'] == 'DeviceErrorNoError'
146
146
  return true
147
147
  else
148
- raise Guh::ResponseError, response['errorMessage']
148
+ raise Guh::ResponseError, response['deviceError']
149
149
  end
150
150
  end
151
151
 
@@ -171,10 +171,10 @@ module Guh
171
171
  }
172
172
  })
173
173
 
174
- if response['success'] == 'success'
174
+ if response['deviceError'] == 'DeviceErrorNoError'
175
175
  return response['deviceId']
176
176
  else
177
- raise Guh::ArgumentError, response['errorMessage']
177
+ raise Guh::ArgumentError, response['deviceError']
178
178
  end
179
179
  end
180
180
 
@@ -198,10 +198,10 @@ module Guh
198
198
  }
199
199
  })
200
200
 
201
- if response['success'] == 'success'
201
+ if response['deviceError'] == 'DeviceErrorNoError'
202
202
  return response['deviceId']
203
203
  else
204
- raise Guh::ArgumentError, response['errorMessage']
204
+ raise Guh::ArgumentError, response['deviceError']
205
205
  end
206
206
  end
207
207
 
@@ -215,10 +215,10 @@ module Guh
215
215
  }
216
216
  })
217
217
 
218
- if response['success'] == 'success'
218
+ if response['deviceError'] == 'DeviceErrorNoError'
219
219
  return response
220
220
  else
221
- raise Guh::ArgumentError, response['errorMessage']
221
+ raise Guh::ArgumentError, response['deviceError']
222
222
  end
223
223
  end
224
224
 
@@ -1,3 +1,3 @@
1
1
  module Guh
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -9,19 +9,19 @@ RSpec.configure do |config|
9
9
 
10
10
  config.before(:all) do
11
11
  Guh::Base.configure do |c|
12
- c.guh_ip_address = '192.168.178.31'
12
+ c.guh_ip_address = '192.168.1.30'
13
13
  c.guh_port = 1234
14
14
  end
15
15
 
16
16
  # Remove all devices & rules from Guh Core
17
- purge_configuration()
18
-
19
- start_guh()
20
- sleep(1)
17
+ # purge_configuration()
18
+ #
19
+ # start_guh()
20
+ # sleep(1)
21
21
  end
22
22
 
23
23
  config.after(:all) do
24
- stop_guh()
24
+ # stop_guh()
25
25
  end
26
26
  end
27
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Edthofer