somfy_sdn 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef81905b4b164a5e09d771e07b286f09df6d40cd259b8253c2a0ef1f01f649e4
4
- data.tar.gz: 4d6f3ad72d6b2e8f06c530a8657d684f4f0b12c9d54eb13e998841b18a8e37dd
3
+ metadata.gz: b2c2926c376002fa9632188a5d467c64c2987e48f892975a1a725ec71f38d021
4
+ data.tar.gz: dcafff75ded7c5e5cccc65912179dd6fbf0c33f36655cf29adb6e7e4d796b7a9
5
5
  SHA512:
6
- metadata.gz: 8bf05e27c1e7c50e6893198950d7ab91099807c9d8ad139629e89fe3fc97d6f46c87e93400e1083ecba7c64ec3638a302523804fd921125414aa62f3632e5edb
7
- data.tar.gz: 3300c346eeb666d82c686c0e5dec4fb830fa96adabdd7dbc45f3d4cd8e609c13f2796d1ae0b6cd2b2186bcf1ae3251d180e17dd33d578ccfa29eba3f86870e4a
6
+ metadata.gz: 6fc1a34073e8069bd778575a1e5f8b3531b2bf5a769f3010d2ca93d4c4a2af07af0e26c7e1bb7a7d094d729e41dfb7031a5d569294d285fc82ab5f2b93afeebe
7
+ data.tar.gz: b61b3e69a01b4b0d709fa381ce0113184f6f5d32227ce3f72eee67c74bcf5e83ff8daa813ee69ef36e9fe76ffa9bc50c9d28eb76c403f1c1db370327ad505155
@@ -254,8 +254,6 @@ module SDN
254
254
  @mutex.synchronize do
255
255
  correct_response = @response_pending && message.src == @prior_message&.message&.dest && message.is_a?(@prior_message&.message&.class&.expected_response)
256
256
  signal = correct_response || !follow_ups.empty?
257
- puts "correct response #{correct_response}"
258
- puts "pending: #{@response_pending} #{@broadcast_pending}"
259
257
  @response_pending = @broadcast_pending if correct_response
260
258
  follow_ups.each do |follow_up|
261
259
  @queues[1].push(MessageAndRetries.new(follow_up, 5, 1)) unless @queues[1].any? { |mr| mr.message == follow_up }
@@ -280,7 +278,6 @@ module SDN
280
278
  @mutex.synchronize do
281
279
  # got woken up early by another command getting queued; spin
282
280
  if @response_pending
283
- puts "another message queued, but we're still waiting"
284
281
  while @response_pending
285
282
  remaining_wait = @response_pending - Time.now.to_f
286
283
  if remaining_wait < 0
@@ -293,17 +290,14 @@ module SDN
293
290
  @prior_message = nil
294
291
  end
295
292
  else
296
- puts "waiting #{remaining_wait} more..."
297
293
  @cond.wait(@mutex, remaining_wait)
298
294
  end
299
295
  end
300
296
  else
301
297
  # minimum time between messages
302
- puts "waiting between messages"
303
298
  sleep 0.1
304
299
  end
305
300
 
306
- puts "looking for next message to write"
307
301
  @queues.find { |q| message_and_retries = q.shift }
308
302
  if message_and_retries
309
303
  if message_and_retries.message.ack_requested || message_and_retries.message.class.name =~ /^SDN::Message::Get/
@@ -328,7 +322,6 @@ module SDN
328
322
 
329
323
  message = message_and_retries.message
330
324
  puts "writing #{message.inspect}"
331
- puts "(and waiting for response)" if @response_pending
332
325
  serialized = message.serialize
333
326
  @sdn.write(serialized)
334
327
  @sdn.flush if @sdn.respond_to?(:flush)
@@ -1,3 +1,3 @@
1
1
  module SDN
2
- VERSION = '1.0.11'
2
+ VERSION = '1.0.12'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: somfy_sdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-25 00:00:00.000000000 Z
11
+ date: 2020-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mqtt
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.1.2
123
+ rubygems_version: 3.1.4
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Library for communication with Somfy SDN RS-485 motorized shades