Firefox Zip
This gem library is Firefox os application package file (.zip) analyzer. you can read any information of zip files.
Install
$ gem install firefox_zip
# or
gem 'firefox_zip'
$ bundle install
How to use
require 'firefox_zip'
app = FirefoxZip.analyze('/path/to/firefox_app.zip', valid: true) # valid default false
app.name # [String] app name
app.description # [String] app description
app.launch_path # [String] app launch path
app.icon # [File] app default icon
app.icons # [Array] app icons
app.developer # [Hash] app developer info
app.default_locale # [String] app default locale
app.locales # [Hash] app locales
app.type # [String] app type
app.permissions # [Array] app permissions
app.version # [String] app version
app.size # [Fixnum] app zip file size
app.to_hash # [Hash] app info to hash
Validation
Use app-validator tool.
License
MIT