somfy_sdn 2.2.1 → 2.2.2

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: 1e5c2c8156980740a28a35f3709e51175fa7df14206b88e636f1e5a4eecf8630
4
- data.tar.gz: d1fa621ba70dc475755996b6d0c66621953675a4bc9725a840d530facf51a6ef
3
+ metadata.gz: 376921afa9659381b31f588319c02f35f3d539052e8eb6375b311420bcdac60e
4
+ data.tar.gz: 8c8f5644816c615d0f31dec41e615a1d5857c1f1ee94e45d83bc759616c30e04
5
5
  SHA512:
6
- metadata.gz: 3b09021cb98f1b1c7bc88c42d0b93d6e2da5115bd6d36ebdd69d6af36101857ad3844f77915b5ca706245d8feb468f920529642f46186c2b3583d56cea85482e
7
- data.tar.gz: d0cf5c1d5cf0fc2edffdec548ee41122f49e2bab5454296084c2f61e068137f0cccdfe394809d6efafec8e282903046a1174cc47e89867643a86ba9573684727
6
+ metadata.gz: 84de94b508cc42c76bab56b3a02ba61cd389277463583353c67df5798a710016e143b4607367be71db35efa052949c146476a591ef4d8a08f54a99e76833e907
7
+ data.tar.gz: 2319f36c605560ebccc80e64600a26f2fec4abb806d33bb041bb0f667c41de1f6facecf8bd93b0ec557a676b34474393c1b4fa807a3cfcc84adbbae9244e0ccc
data/exe/somfy_sdn CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  require "somfy_sdn"
5
5
  require "thor"
6
+ require "uri"
6
7
 
7
8
  class SomfySDNCLI < Thor
8
9
  class_option :verbose, type: :boolean, default: false, desc: "Log protocol messages"
@@ -59,7 +59,7 @@ module SDN
59
59
  case value
60
60
  when "up", "down"
61
61
  ((motor&.node_type == :st50ilt2) ? ns::SetMotorPosition : Message::MoveTo)
62
- .new(addr, "#{value}_limit".to_sym)
62
+ .new(addr, :"#{value}_limit")
63
63
  when "stop"
64
64
  if motor&.node_type == :st50ilt2
65
65
  ns::SetMotorPosition.new(addr,
@@ -89,7 +89,7 @@ module SDN
89
89
  when /jog-(?:pulses|ms)/
90
90
  value = value.to_i
91
91
  ((motor&.node_type == :st50ilt2) ? ns::SetMotorPosition : Message::MoveOf)
92
- .new(addr, "jog_#{value.negative? ? :up : :down}_#{match[:jog_type]}".to_sym, value.abs)
92
+ .new(addr, :"jog_#{value.negative? ? :up : :down}_#{match[:jog_type]}", value.abs)
93
93
  when "reset"
94
94
  return unless Message::SetFactoryDefault::RESET.key?(value.to_sym)
95
95
 
@@ -130,11 +130,7 @@ module SDN
130
130
  end
131
131
  refresh
132
132
  when "l"
133
- if ilt2?
134
- sdn.ensure(Message::ILT2::SetMotorSettings.new(addr, reversed_int, @pos, @pos))
135
- else
136
- sdn.ensure(Message::SetMotorLimits.new(addr, :current_position, :down))
137
- end
133
+ sdn.ensure(Message::ILT2::SetMotorSettings.new(addr, reversed_int, @pos, @pos))
138
134
  refresh
139
135
  when "r"
140
136
  @reversed = !@reversed
data/lib/sdn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SDN
4
- VERSION = "2.2.1"
4
+ VERSION = "2.2.2"
5
5
  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: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-23 00:00:00.000000000 Z
11
+ date: 2024-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.1'
83
83
  - !ruby/object:Gem::Dependency
84
- name: byebug
84
+ name: debug
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '9.0'
89
+ version: '1.9'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '9.0'
96
+ version: '1.9'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.3.7
190
+ rubygems_version: 3.5.11
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: Library for communication with Somfy SDN RS-485 motorized shades