README.md in parse_gemspec-0.4.0 vs README.md in parse_gemspec-0.5.0
- old
+ new
@@ -1,22 +1,30 @@
# ParseGemspec
[![Gem version][gem-image]][gem-url] [![Travis-CI Status][travis-image]][travis-url]
-> Parse *.gemspec file. Convert to Hash object.
+> Parse *.gemspec file. Convert to Ruby Hash object.
+See [parse_gemspec-cli](https://rubygems.org/gems/parse_gemspec-cli) ([repo](https://github.com/packsaddle/ruby-parse_gemspec-cli)) for the command-line version.
+
## Usage
```ruby
require 'parse_gemspec'
gemspec_path = 'path/to/you_want_to_parse.gemspec'
ParseGemspec::Specification.load(gemspec_path).to_hash_object
=> {:name=>"you_want_to_parse",
:version=>"1.3.0",
- :homepage=>"https://github.com/example/you_want_to_parse"}
+ :authors=>["sanemat"],
+ :description=>"Description you want to parse.",
+ :email=>["you_want_to_parse@example.com"],
+ :homepage=>"https://example.com/you_want_to_parse",
+ :licenses=>["MIT"],
+ :metadata=>{},
+ :summary=>"Summary you want to parse."}
```
## API
@@ -33,11 +41,17 @@
#### Hash's keys
* name
* version
+* authors
+* description
+* email
* homepage
+* licences
+* metadata
+* summary
## Changelog
[changelog.md](./changelog.md).
@@ -78,7 +92,7 @@
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
[travis-url]: https://travis-ci.org/packsaddle/ruby-parse_gemspec
[travis-image]: https://img.shields.io/travis/packsaddle/ruby-parse_gemspec/master.svg?style=flat-square&label=build%20%28linux%29
-[gem-url]: http://badge.fury.io/rb/parse_gemspec
+[gem-url]: https://rubygems.org/gems/parse_gemspec
[gem-image]: http://img.shields.io/gem/v/parse_gemspec.svg?style=flat-square