https://github.com/juanitofatas/gem_outdated
Find out if a given gem and version is outdated or not.
https://github.com/juanitofatas/gem_outdated
check outdated rubygems
Last synced: 5 months ago
JSON representation
Find out if a given gem and version is outdated or not.
- Host: GitHub
- URL: https://github.com/juanitofatas/gem_outdated
- Owner: JuanitoFatas
- License: mit
- Created: 2017-09-01T15:36:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-10T17:13:06.000Z (over 8 years ago)
- Last Synced: 2025-08-03T08:56:14.511Z (5 months ago)
- Topics: check, outdated, rubygems
- Language: Ruby
- Homepage: https://github.com/JuanitoFatas/gem_outdated
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# GemOutdated
[](https://travis-ci.org/JuanitoFatas/gem_outdated)
Find out if a given gem and version is outdated or not.
## Installation
Add this line to your application's Gemfile then `bundle`:
```ruby
gem "gem_outdated"
```
Or install it yourself as:
```
$ gem install gem_outdated
```
## Usage
Suppose latest Rails is 5.1.4.
```ruby
# Tells latest when asked a outdated version
GemOutdated.outdated?("rails", "5.1.2")
=> "5.1.4"
# Already latest
GemOutdated.outdated?("rails", "5.1.4")
=> false
# Newer than latest
GemOutdated.outdated?("rails", "5.1.5.rc1")
=> false
# Returns false when Version not exists
GemOutdated.outdated?("rails", "1.2.3.4")
=> false
# Gem not exists raises an error
GemOutdated.outdated?("greatest_rails", "1.0.0")
=> GemOutdated::RubygemsAPI::GemNotFound
```
## License, Contributor's Guidelines
- MIT license
- [Moya Contributors Guidelines][moya] which TLDR: means we give out push access easily and often.
[mit]: https://opensource.org/licenses/MIT
[moya]: https://github.com/Moya/contributors