stekker_zaptec 1.1.0 → 1.1.1

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: 5426f9c98b9c016ff4da28c90681007c8f7f546771e6864bde37ca9d21d9c711
4
- data.tar.gz: 2d58826df23e7efbf77d8b733b712522a1f662bd4edf527ad7535fe8f51a950a
3
+ metadata.gz: b93472771162eced218695ad47612b8d001d0b562669077af092de5ac5733d81
4
+ data.tar.gz: 78d184fb7979d966be2944c575a70444372555ea78101163f78c8565b5a90cec
5
5
  SHA512:
6
- metadata.gz: 8dfddc5e97ce40fcf5536992b11d5a960ed86f73e5653c2d9566d9c07c4b8f58f40ba0cb155c0853d5a7c603a40a4b14876675e3903dc685d2bbef792e99e954
7
- data.tar.gz: 32c6e69f3538f71e78425482e54adbc8bba87d3d661dce43bb56bc591a30c707723137c9929da56883b95d6ef7544fa1221aeeb6c5a395b93f9eef05214b8437
6
+ metadata.gz: d9930219d2b59aea5968498626b3289e40762a83afdfbd177605e4909ec9424cf588ca62f29b6162bce63803f4a4dd4a1ee06631451251cc547fb8678712bfc4
7
+ data.tar.gz: 5674b39478d6d644036f4ea5e85794e5331ef0440775d83ee21c46e36fd98e0f77e5b09d5e112f9c0238a7269fbf784a52449f08a55a05c9e8738bf870af2b07
data/.rspec CHANGED
@@ -1 +1,3 @@
1
+ --format documentation
2
+ --color
1
3
  --require spec_helper
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stekker_zaptec (1.1.0)
4
+ stekker_zaptec (1.1.1)
5
5
  activemodel
6
6
  activesupport
7
7
  faraday
data/README.md CHANGED
@@ -45,8 +45,6 @@ $ bin/console
45
45
  ```
46
46
 
47
47
  ```ruby
48
- require "stekker_zaptec"
49
-
50
48
  client = Zaptec::Client.new
51
49
  client.authorize(username: "username@example.com", password: "password")
52
50
  # #<Zaptec::Credentials:0x000000011c35d708
@@ -4,6 +4,8 @@ module Zaptec
4
4
  def observation_state_id_to_name(state_id:, device_type:)
5
5
  device_type_observation_ids(device_type)
6
6
  .fetch(state_id)
7
+ rescue KeyError
8
+ "Unknown state id '#{state_id}' (device type '#{device_type}')"
7
9
  end
8
10
 
9
11
  def charger_operation_mode_to_name(operation_mode)
@@ -1,3 +1,3 @@
1
1
  module Zaptec
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stekker_zaptec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Stekker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-07 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -82,10 +82,6 @@ files:
82
82
  - Gemfile.lock
83
83
  - README.md
84
84
  - Rakefile
85
- - StekkerWeb/gems/zaptec/.gitignore
86
- - StekkerWeb/gems/zaptec/.rspec
87
- - StekkerWeb/gems/zaptec/.rubocop.yml
88
- - StekkerWeb/gems/zaptec/.ruby-version
89
85
  - bin/console
90
86
  - bin/setup
91
87
  - data/constants.json
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
@@ -1 +0,0 @@
1
- ../../.rubocop.yml
@@ -1 +0,0 @@
1
- ../../.ruby-version