Sha256: 068675d5f0eeee41a5c8d1202c180d8d3e4479f987e5ca8eeea0c5092c4b5cc8

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

# DebControl

[![Gem Version](https://badge.fury.io/rb/deb_control.png)](http://badge.fury.io/rb/deb_control)
[![Build Status](https://travis-ci.org/mswart/deb_control.png?branch=master)](https://travis-ci.org/mswart/deb_control)
[![Coverage Status](https://coveralls.io/repos/mswart/deb_control/badge.png?branch=master)](https://coveralls.io/r/mswart/deb_control)
[![Code Climate](https://codeclimate.com/github/mswart/deb_control.png)](https://codeclimate.com/github/mswart/deb_control)

DebControl contains helper classes to read Debian control files. Write support is planed.

**This gem is under development. Every 0.x release might break backwards compatibility.**

## Installation

Add this line to your application's Gemfile:

    gem 'deb_control', '~> 0.0.1'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install deb_control


## Usage

The Class DebControl::ControlFileBase implements a generic parser for control files:

```ruby
control = DebControl::ControlFileBase.read 'debian/control'
# receive the array from paragraphs:
control.paragraphs.size
# receive fields of paragraph:
control.paragraphs.first['Source']
```

Each paragraph is a Hash containing its fields and values.


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
deb_control-0.0.1 README.md