Ana knows a lot of things about RubyGems.
A command-line tool for RubyGems.org.
$ gem install ana
and init
Ana:
$ ana init
It will create a folder under your $HOME
directory.
This is for caching the json files that returned by RubyGems.org.
If unfortunately you want to uninstall Ana, please remove this directory:
$ rm -rf ~/.gemjsons
$ ana command args
Command | Alias | Purpose |
---|---|---|
version |
-v |
Returns the version of Ana. |
version |
--version |
Returns the version of Ana. |
gem_infos |
info |
Get information of a RubyGem. |
gem_dependencies |
deps |
List Runtime/Development Dependencies of a RubyGem. |
latest_version |
lv |
Return latest version of a RubyGem. |
versions |
vs |
Return (default last 10) versions of a RubyGem. |
find_version |
fv |
Find if a RubyGem has given version. |
search |
s |
Exact Search a RubyGem with given name. |
fuzzy_search |
fs |
Fuzzy search a gem via gem search -r . |
open |
o |
Open a RubyGem's URI: homepage, doc, wiki...etc. |
download |
dl |
Download a RubyGem in browser. |
Type ana
to get some help:
$ ana
Type ana help COMMANDS
to get help for specific command:
$ ana help version
$ ana info rails
Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.
Has been downloaded for 29911559 times!
The Latest version is 4.0.1.
Respectful Author(s): David Heinemeier Hansson.
LICENSE under MIT
$ ana deps rails runtime
actionmailer = 4.0.1
actionpack = 4.0.1
activerecord = 4.0.1
activesupport = 4.0.1
bundler < 2.0, >= 1.3.0
railties = 4.0.1
sprockets-rails ~> 2.0.0
$ ana lv rails
Latest version is 4.0.1.
ana vs rails
Last 10 versions of rails are...
2013-11-01 : 4.0.1
2013-10-30 : 4.0.1.rc4
2013-10-23 : 4.0.1.rc3
2013-10-21 : 4.0.1.rc2
2013-10-17 : 4.0.1.rc1
2013-10-16 : 3.2.15
2013-10-11 : 3.2.15.rc3
2013-10-04 : 3.2.15.rc2
2013-10-03 : 3.2.15.rc1
2013-07-22 : 3.2.14
$ ana fv rails 4.1
This version could not be found.
$ ana s rails
Latest version is 4.0.1.
$ ana fs rails
*** REMOTE GEMS ***
...
zurui-sass-rails (0.0.4)
Via gem search -r
.
Available URI: Project Page, Homepage, Wiki, Documentation, Mailing List, Source Code, Bug Tracker.
$ ana o rails doc
will open the documentation of rails in your default browser.
via launchy gem.
$ ana dl rails
will open the browser and download rails gem.
Ruby >= 2.0
- Add tests.
- Download via wget/curl.
- Download gem and its runtime dependencies in a zip/tar or in files.
- Fork it ( https://github.com/juanitofatas/ana/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request