plugins/slack_plugin.rb in ladder_drive-0.6.4 vs plugins/slack_plugin.rb in ladder_drive-0.6.5

- old
+ new

@@ -95,13 +95,13 @@ if triggered interval_triggered = true t += event[:trigger][:interval] || 300 @times[event.object_id] = t end - v = device.send event[:value_type], event[:trigger][:text_length] || 8 + v = device.send event[:value_type] || :device, event[:trigger][:text_length] || 8 else - v = device.send event[:value_type], event[:text_length] || 8 + v = device.send event[:value_type] || :value, event[:text_length] || 8 unless @values[device.name] == v @values[device.name] = v case event[:trigger][:type] when "raise" triggered = !!v @@ -120,9 +120,11 @@ value:v, time: now end rescue => e p e +puts $! +puts $@ end end end private