All Projects → rubygems → Gems

rubygems / Gems

Licence: mit
Ruby wrapper for the RubyGems.org API

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Gems

Leaky Gems
A list of Ruby gems that have known memory leaks (and issues)
Stars: ✭ 895 (+768.93%)
Mutual labels:  rubygems
Webmention Client Ruby
A Ruby gem for sending Webmention notifications.
Stars: ✭ 60 (-41.75%)
Mutual labels:  rubygems
Enseada
A Cloud native multi-package registry
Stars: ✭ 80 (-22.33%)
Mutual labels:  rubygems
Api schema
DSL for describing APIs and generate swagger json
Stars: ✭ 18 (-82.52%)
Mutual labels:  rubygems
Hanami Webpack
A RubyGem to allow you to use the Webpack as your asset pipeline in Hanami.
Stars: ✭ 50 (-51.46%)
Mutual labels:  rubygems
Ruby Statistics
Ruby gem for some statistical operations without any statistical language dependency
Stars: ✭ 67 (-34.95%)
Mutual labels:  rubygems
Materialize Sass
Materializecss rubygem for Rails Asset Pipeline / Sprockets
Stars: ✭ 785 (+662.14%)
Mutual labels:  rubygems
Rails or
Cleaner syntax for writing OR Query in Rails 5, 6. And also add #or support to Rails 3 and 4.
Stars: ✭ 86 (-16.5%)
Mutual labels:  rubygems
Appraisal
A Ruby library for testing your library against different versions of dependencies.
Stars: ✭ 1,075 (+943.69%)
Mutual labels:  rubygems
Karafka
Framework for Apache Kafka based Ruby and Rails applications development.
Stars: ✭ 1,223 (+1087.38%)
Mutual labels:  rubygems
Kitchen Terraform
Test Kitchen plugins for testing Terraform configurations
Stars: ✭ 963 (+834.95%)
Mutual labels:  rubygems
Drafting
Ruby gem for saving drafts of ActiveRecord models
Stars: ✭ 41 (-60.19%)
Mutual labels:  rubygems
Svgeez
A Ruby gem for automatically generating an SVG sprite from a folder of SVG icons.
Stars: ✭ 69 (-33.01%)
Mutual labels:  rubygems
Rack Throttle
Rack middleware for rate-limiting incoming HTTP requests.
Stars: ✭ 898 (+771.84%)
Mutual labels:  rubygems
Pluck all
A more efficient way to get data from database. Like #pluck method but return array of hashes instead.
Stars: ✭ 83 (-19.42%)
Mutual labels:  rubygems
Rails Settings
Manage settings with Ruby on Rails
Stars: ✭ 807 (+683.5%)
Mutual labels:  rubygems
Whatthegem
Ruby gem information, stats and usage for your terminal
Stars: ✭ 63 (-38.83%)
Mutual labels:  rubygems
Dependency spy
Find known vulnerabilities in your dependencies
Stars: ✭ 87 (-15.53%)
Mutual labels:  rubygems
Bestgems.org
Gem ranking and downloads trends providing service.
Stars: ✭ 84 (-18.45%)
Mutual labels:  rubygems
Tabler Rubygem
Rubygem for https://tabler.github.io
Stars: ✭ 77 (-25.24%)
Mutual labels:  rubygems

Gems

Gem Version Build Status Code Climate Coverage Status

Ruby wrapper for the RubyGems.org API.

Installation

gem install gems

Documentation

https://rdoc.info/gems/gems

Usage Examples

require 'rubygems'
require 'gems'

# Return some basic information about rails.
Gems.info 'rails'

# Return an array of active gems that match the query.
Gems.search 'cucumber'

# Return all gems that you own.
Gems.gems

# Return all gems owned by Erik Michaels-Ober.
Gems.gems("sferik")

# Submit a gem to RubyGems.org.
Gems.push File.new 'gemcutter-0.2.1.gem'

# Remove a gem from RubyGems.org's index.
# Defaults to the latest version if no version is specified.
Gems.yank 'bills', '0.0.1'

# Update a previously yanked gem back into RubyGems.org's index.
# Defaults to the latest version if no version is specified.
Gems.unyank 'bills', '0.0.1'

# Return an array of version details for coulda.
Gems.versions 'coulda'

# Return an hash of latest version for coulda.
Gems.latest_version 'coulda'

# Return the total number of downloads for rails_admin 0.0.1.
# (Defaults to the latest version if no version is specified.)
Gems.total_downloads 'rails_admin', '0.0.1'

# Returns an array containing the top 50 downloaded gem versions of all time.
Gems.most_downloaded

# Return the total number of downloads by day for rails_admin 0.0.1.
# (Defaults to the latest version if no version is specified.)
Gems.downloads 'rails_admin', '0.0.1'

# Return the number of downloads by day for coulda 0.6.3 for the past 90 days.
# (Defaults to the latest version if no version is specified.)
Gems.downloads 'coulda', '0.6.3', Date.today - 90, Date.today

# Return the number of downloads by day for coulda 0.6.3 for the past year.
Gems.downloads 'coulda', '0.6.3', Date.today - 365, Date.today

# View all owners of a gem that you own.
Gems.owners 'gemcutter'

# Add an owner to a RubyGem you own, giving that user permission to manage it.
Gems.add_owner '[email protected]', 'gemcutter'

# Remove a user's permission to manage a RubyGem you own.
Gems.remove_owner '[email protected]', 'gemcutter'

# Return all the webhooks registered under your account.
Gems.web_hooks

# Add a webhook.
Gems.add_web_hook 'rails', 'http://example.com'

# Remove a webhook.
Gems.remove_web_hook 'rails', 'http://example.com'

# Test fire a webhook.
Gems.fire_web_hook 'rails', 'http://example.com'

# Returns the 50 gems most recently added to RubyGems.org
Gems.latest

# Returns the 50 most recently updated gems
Gems.just_updated

# Retrieve your API key using HTTP basic authentication.
Gems.configure do |config|
  config.username = '[email protected]'
  config.password = 'schwwwwing'
end
Gems.api_key

# Return an array of gem dependency details for all versions of all the given gems.
Gems.dependencies ['rails', 'thor']

# The following methods require authentication.
# By default, we load your API key from ~/.gem/credentials
# You can override this default by specifying a custom API key.
Gems.configure do |config|
  config.key = '701243f217cdf23b1370c7b66b65ca97'
end

Supported Ruby Versions

This library aims to support and is tested against the following Ruby implementations:

  • Ruby 2.3
  • Ruby 2.4
  • Ruby 2.5
  • Ruby 2.6
  • Ruby 2.7
  • JRuby

If something doesn't work on one of these interpreters, it's a bug.

This library may inadvertently work (or seem to work) on other Ruby implementations, however support will only be provided for the versions listed above.

If you would like this library to support another Ruby version, you may volunteer to be a maintainer. Being a maintainer entails making sure all tests run and pass on that implementation. When something breaks on your implementation, you will be responsible for providing patches in a timely fashion. If critical issues for a particular implementation exist at the time of a major release, support for that Ruby version may be dropped.

Copyright

Copyright (c) 2011-2013 Erik Michaels-Ober. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].