Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shikhalev/current_spec

Get gemspec object for current file
https://github.com/shikhalev/current_spec

Last synced: about 1 month ago
JSON representation

Get gemspec object for current file

Awesome Lists containing this project

README

        

# current_spec

Get gemspec object for current file.

[![Gem Version](https://badge.fury.io/rb/current_spec.svg)](http://badge.fury.io/rb/current_spec)
[![GitHub license](https://img.shields.io/badge/license-LGPLv3-orange.svg?style=flat)](https://raw.githubusercontent.com/shikhalev/current_spec/master/LICENSE)
[![Code Climate](https://codeclimate.com/github/shikhalev/current_spec/badges/gpa.svg)](https://codeclimate.com/github/shikhalev/current_spec)

* `Gem::current_spec` — return a `Gem::Specification` object which contains
current source file. `nil` if not found.
* `Gem::current_spec_version` - return a version string of this specification
or `nil` if not found.

## License

* [GNU Lesser General Public License v3](LICENSE)