New ruby gem: natives - lookups and installs native packages required by gems

28 views
Skip to first unread message

Teo Hui Ming

unread,
Nov 4, 2013, 10:24:52 AM11/4/13
to gzr...@googlegroups.com
Hi all,

I just released a new ruby gem: natives [1].

Summary:
Installs native library packages required by Ruby gems on your machine.
It lookups the multi-platform catalog maintained by natives-catalog [2] project.

Usage:
$ gem install natives
$ natives install curb capybara-webkit nokogiri sqlite3

In the example, it will lookup and auto-install native
library/packages (e.g. curl, sqlite, qt etc.) required by these gems:
curb, capybara-webkit, nokogiri, sqlite3.

---
It is still in early alpha, but so far it's working.

Looking forward for your feedbacks and PRs, especially contributions
needed to help keeping the rubygems catalog [3] up-to-date :)


[1] https://github.com/teohm/natives
[2] https://github.com/teohm/natives-catalog
[3] https://github.com/teohm/natives-catalog/blob/master/catalogs/rubygems.yaml

--
Huiming

Adeh Desandies

unread,
Nov 4, 2013, 9:49:33 PM11/4/13
to gzr...@googlegroups.com
This is really cool!

Nice work.
> --
> You received this message because you are subscribed to the Google Groups "gzruby" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gzruby+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Teo Hui Ming

unread,
Nov 4, 2013, 10:18:19 PM11/4/13
to gzr...@googlegroups.com
Adeh, we need lots of helps to populate the rubygem.yaml catalog file
[3], hope it can become a crowdsource effort. :)

[3] https://github.com/teohm/natives-catalog/blob/master/catalogs/rubygems.yaml
--
Huiming

ping

unread,
Nov 5, 2013, 9:03:43 PM11/5/13
to gzr...@googlegroups.com
Huiming, that's cool, maybe I can use it for installing zeromq


2013/11/5 Teo Hui Ming <teohu...@gmail.com>

Teo Hui Ming

unread,
Nov 5, 2013, 9:10:22 PM11/5/13
to gzr...@googlegroups.com
Kevin, you can submit a patch to the rubygem.yaml catalog file for zeromq :)

ping

unread,
Nov 5, 2013, 9:17:32 PM11/5/13
to gzr...@googlegroups.com
ya, will try it :D


2013/11/6 Teo Hui Ming <teohu...@gmail.com>

Teo Hui Ming

unread,
Nov 5, 2013, 9:30:50 PM11/5/13
to gzr...@googlegroups.com
Forgot to mention, I just released a new version with a new feature [1].

Now if you run `natives install` on a Rails/Ruby app project dir, it
will lookup gems listed in your Gemfile, and auto-install any matching
native packages based on the rubygems.yaml catalog.

So now you just need to run:

cd your_rails_app
natives install

https://github.com/teohm/natives#have-a-gemfile

Teo Hui Ming

unread,
Nov 25, 2013, 12:41:25 AM11/25/13
to gzr...@googlegroups.com
Hi, just fyi, I updated natives gem with new features, here the slides
when I talked at Ruby Singapore meetup.

https://speakerdeck.com/teohm/rubysg-meetup-gem-install-natives
--
Huiming
Reply all
Reply to author
Forward
0 new messages