README.md in gems-0.0.5 vs README.md in gems-0.0.6
- old
+ new
@@ -27,61 +27,65 @@
# Returns an array of gem version details
puts Gems.versions 'coulda'
# Returns the number of downloads by day for a particular gem version
+ # for the past 90 days
puts Gems.downloads 'coulda', '0.6.3'
+ # Returns the number of downloads by day for a particular gem version
+ # for the past year
+ puts Gems.downloads 'coulda', '0.6.3', Date.today - 365, Date.today
+
# Returns an array of gem dependency details for all versions of given gems
puts Gems.dependencies ['rails', 'thor']
- # The following method requires password authentication
+ # Retrieve your API key using HTTP basic authentication
Gems.configure do |config|
- config.format = :xml
config.username = 'nick@gemcutter.org'
config.password = 'schwwwwing'
end
-
- # Retrieve your API key using HTTP basic auth
Gems.api_key
- # The following methods require authentication
+ # You can also find your API key at https://rubygems.org/profile/edit
+ # We will attempt to load your API key from ~/.gem/credentails
+ # You may also specify a custom API key
Gems.configure do |config|
config.key '701243f217cdf23b1370c7b66b65ca97'
end
# List all gems that you own
puts Gems.gems
# View all owners of a gem that you own
- puts Gems.owners 'gemcutter' [TODO]
+ puts Gems.owners 'gemcutter'
# Add an owner to a RubyGem you own, giving that user permission to manage it
- puts Gems.add_owner 'josh@technicalpickles.com', 'gemcutter' [TODO]
+ Gems.add_owner 'josh@technicalpickles.com', 'gemcutter' [TODO]
# Remove a user's permission to manage a RubyGem you own
- puts Gems.remove_owner 'josh@technicalpickles.com', 'gemcutter' [TODO]
+ Gems.remove_owner 'josh@technicalpickles.com', 'gemcutter' [TODO]
# List the webhooks registered under your account
- puts Gems.web_hooks [TODO]
+ puts Gems.web_hooks
# Add a webhook
- puts Gems.add_web_hook 'rails', 'http://example.com' [TODO]
+ Gems.add_web_hook 'rails', 'http://example.com' [TODO]
# Remove a webhook
- puts Gems.remove_web_hook 'rails', 'http://example.com' [TODO]
+ Gems.remove_web_hook 'rails', 'http://example.com' [TODO]
# Test fire a webhook.
- puts Gems.fire_web_hook 'rails', 'http://example.com' [TODO]
+ Gems.fire_web_hook 'rails', 'http://example.com' [TODO]
# Submit a gem to RubyGems.org
- puts Gems.push File.new 'gemcutter-0.2.1.gem' [TODO]
+ Gems.push File.new 'gemcutter-0.2.1.gem' [TODO]
# Remove a gem from RubyGems.org's index
- puts Gems.yank 'bills', '0.0.1', :platform => 'x86-darwin-10' [TODO]
+ Gems.yank 'bills', '0.0.1', :platform => 'x86-darwin-10' [TODO]
# Update a previously yanked gem back into RubyGems.org's index
- puts Gems.unyank 'bills', '0.0.1', :platform => 'x86-darwin-10' [TODO]
+ Gems.unyank 'bills', '0.0.1', :platform => 'x86-darwin-10' [TODO]
Contributing
------------
In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), **everyone** is encouraged to help improve this project.