Skip to content

Commit

Permalink
Merge branch 'release/0.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Jul 21, 2024
2 parents 3e1d3c6 + 85b55da commit 8f8dfd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ GEM
rb-inotify (0.11.1)
ffi (~> 1.0)
regexp_parser (2.9.2)
rexml (3.3.1)
rexml (3.3.2)
strscan
rspec (3.13.0)
rspec-core (~> 3.13.0)
Expand Down Expand Up @@ -148,4 +148,4 @@ DEPENDENCIES
webmock

BUNDLED WITH
2.5.15
2.5.16
2 changes: 1 addition & 1 deletion lib/shelly_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def record_hash
def raw_response
@raw_response ||= begin
response = connection.get '/rpc/Shelly.GetStatus'
raise Error, response.status unless response.success?
raise StandardError, response.status unless response.success?

response
end
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/shelly_pull_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

context 'when it fails' do
it 'raises Shelly::Error and does not increment queue length' do
it 'raises an exception and does not increment queue length' do
allow(queue).to receive(:<<).and_raise(StandardError)

expect { shelly_pull.next }.to raise_error(StandardError)
Expand Down

0 comments on commit 8f8dfd9

Please sign in to comment.