Project

pkgwat

0.01
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
pkgwat checks your Gemfile.lock to make sure all your gems are packaged in Fedora/EPEL. Eventually we hope to support Gemfiles and bundle list as well.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 4.4
~> 2.4.0
~> 1.9.0

Runtime

>= 1.7
~> 1.4
>= 0
 Project Readme

pkgwat Build Status

Pkgwat is a ruby gem for querying gem versions from RPM repos. It's based off of pkgwat.cli and it uses apps.fedoraproject.org/packages.

Installing pkgwat

gem install pkgwat

Alternatively, if you're using a Gemfile, just add this:

gem 'pkgwat'

Using pkgwat

Inside your code, simply require rubygems and pkgwat. Then you use it like so:

Pkgwat.get_versions("rails")

# this will return true or false if the package exists
Pkgwat.check_gem("pry", "0.9.10", ["Fedora EPEL 6", "Fedora 19", "Rawhide"])

Rake Tasks

To check your gems in bundler against Fedora repos, run:

rake pkgwat:check

Developing pkgwat

Requirements

  • ruby 2.0 (or greater)
  • rvm (optional but recommended)
  • rubygems
  • bundler (gem install bundler)

Getting started

To develop pkgwat, check out the git repo and bundle:

git clone git@github.com:daviddavis/pkgwat.git pkgwat
cd pkgwat # accept the rvmrc file
bundle install # run bundler

Then just fire up irb:

irb -Ilib -rpkgwat
>> Pkgwat.get_versions("runcible")
=> [{"release"=>"Rawhide", ...

Testing

To run the pkgwat test suite execute via rake:

rake test

Also you can run an individual test:

ruby -Itest test/pkgwat_test.rb

To record your interactions via VCR and use the actual web APIs:

rake test mode=all