Sha256: d30fc9e029c134e70a728f06238d6c1545ec437ad03098e120122c7e32b7d806

Contents?: true

Size: 859 Bytes

Versions: 1

Compression:

Stored size: 859 Bytes

Contents

# webloc

*webloc* is a Ruby library that can read from and write to <tt>.webloc</tt> files as used on macOS. These are a variant of 'plist' format files, specifically used for storing links to URLs.

It works on Ruby 2.7 and up, including Ruby 3.x, and supports URLs of up to 255 characters in length.

## Installation

    gem install webloc
    
## Usage

Reading a .webloc file:

    Webloc.load(ARGV.first).url

Writing to a .webloc file:

    Webloc.new('https://rubyweekly.com/').save('rubyweekly.webloc')

## Thanks

Thanks is due to Christos Karaiskos for [this article](https://medium.com/@karaiskc/understanding-apples-binary-property-list-format-281e6da00dbd
) which helped me understand the plist format a bit more when fixing a bug in 2024.

## License

Copyright (C) 2011-2024 Peter Cooper

webloc is licensed under the terms of the MIT License

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webloc-0.2.0 README.md