-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added class to handle Pebble bundles. #3
Conversation
class AppInfo < BinData::Record | ||
endian :big | ||
|
||
string :header, :length => 8, :asserted_value => "PBLAPP\0\0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Ruby 1.9 Hash syntax.
The code itself looks fine, I just have some style complaints. Nice work otherwise! |
Also, please make mention of this in the readme, in the same place I mention Pebble::Protocol for example. |
I have fixed everything but lazy initialization (see line comment above). Shall I also convert tab indentation to two spaces? |
I see you've already fixed everything—awesome. I'll pull it in later tonight. |
Added class to handle Pebble bundles.
Yay! This was probably my first contribution to a actually useful tool ever! (if you don't count OS X homebrew) |
Created a class to handle the information in Pebble bundles. Might be handy when trying to implement app/firmware upload. This implements the file structure as reported here. The actual implementation is similar to the Python libpebble.
I also added an example file to show case the API.