Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ client.toggle

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test-unit` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).

Expand Down
10 changes: 5 additions & 5 deletions lib/sesame_os2/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class Client
7 => :manualLocked,
8 => :manualUnlocked,
9 => :manualElse,
10 => :driveLocked,
11 => :driveUnlocked,
12 => :driveFailed,
13 => :bleAdvParameterUpdated,
10 => :driveLocked,
11 => :driveUnlocked,
12 => :driveFailed,
13 => :bleAdvParameterUpdated,
}

COMMAND = {
Expand Down Expand Up @@ -85,7 +85,7 @@ def secret_key
end

def encoded64_name
Base64.encode64(name)
Base64.strict_encode64(name)
end

def sign
Expand Down
4 changes: 2 additions & 2 deletions lib/sesame_os2/ssm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def secret_key
unpacked_sk[1..16].pack("C*").unpack("H*").first
end

def publick_key
def public_key
unpacked_sk[17..80].pack("C*").unpack("H*").first
end

Expand All @@ -49,7 +49,7 @@ def parsed_ssm
end

def sk
information['sk']
information['sk'].gsub(' ', '+')
end

def unpacked_sk
Expand Down
2 changes: 1 addition & 1 deletion lib/sesame_os2/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SesameOs2
VERSION = "0.1.1"
VERSION = "0.1.2"
end