0

I am pretty new to GitHub, and I want to use some Ruby code soted up there and try it out.

This is the code I want to get: https://github.com/pengwynn/linkedin

And I would like to get it as a Ruby Gem so I can use it to connect to the LinkedIn API.

How would I go about it? I tried clicking around on the page there, but I am just not sure what is the correct-practice way of doing things there.

I forked the master branch and now I have a copy in my account, but not sure if that was the correct action.

Thanks for your suggestions. :)

4

3 に答える 3

2

If you want to fetch newest version of gem directly from git repository, you can just:

gem install git://github.com/pengwynn/linkedin.git

Also you can build gem from source code using the rake task called "gem"

git clone git://github.com/pengwynn/linkedin.git
cd linkedin
rake gem

And then install it

gem install pkg/linkedin-{version}.gem
于 2012-05-11T14:34:40.303 に答える
2

If you want it as a gem, and have ruby installed already, you can use the gem command to install it.

The command is on the documentation page that you linked above:

gem install linkedin
于 2012-05-11T14:35:57.933 に答える
1

You should be using git to pull down a copy. If you're not familiar with the command-line tool, you might want a shell that walks you through the process. It is not necessary to fork a personal copy unless you want to make modifications to it.

Installing gems is done through the gem tool, as in gem install linkedin, though using bundler is recommended as it makes keeping the versions in sync on different machines much easier.

If it's a Ruby gem you can always install it and then inspect the contents with gem contents linkedin or whatever the gem name is.

于 2012-05-11T14:36:35.127 に答える