@@ -8,12 +8,14 @@ As most programming languages, Ruby leverages a wide set of third-party
8
8
libraries.
9
9
{: .summary}
10
10
11
- Most of them are released in the form of a ** gem** . [ ** RubyGems** ] [ 1 ] is
12
- a Ruby packaging system designed to facilitate the creation, sharing and
11
+ Nearly all of these libraries are released in the form of a ** gem** , a packaged
12
+ library or application that can be installed with a tool called [ ** RubyGems** ] [ 1 ] .
13
+
14
+ RubyGems is a Ruby packaging system designed to facilitate the creation, sharing and
13
15
installation of libraries (in some ways, it is a distribution packaging
14
16
system similar to, say, ` apt-get ` , but targeted at Ruby software).
15
- Since version 1.9 Ruby comes with RubyGems by default, while previous
16
- Ruby versions require to [ install it by hand] [ 2 ] .
17
+ Ruby comes with RubyGems by default since version 1.9, previous
18
+ Ruby versions require RubyGems to be [ installed by hand] [ 2 ] .
17
19
18
20
Some other libraries are released as archived (.zip or .tar.gz)
19
21
directories of ** source code** . Installation processes may vary,
24
26
25
27
### Finding libraries
26
28
27
- The main place where libraries are hosted is [ ** RubyGems.org** ] [ 1 ] ,
28
- providing Ruby libs as gems. You may browse the website directly, or use
29
+ The main place where libraries are hosted is [ ** RubyGems.org** ] [ 1 ] , a public
30
+ repository of gems that can be searched and installed onto your machine.
31
+ You may browse and search for gems using [ RubyGems.org] [ 1 ] , or use
29
32
the ` gem ` command.
30
33
31
- Using ` gem search -r ` , you can inspect RubyGems' repository. For
34
+ Using ` gem search -r ` , you can search RubyGems' repository. For
32
35
instance, ` gem search -r rails ` will return a list of Rails-related
33
36
gems. With the ` --local ` (` -l ` ) option, you would perform a local search
34
37
through your installed gems. To install a gem, use ` gem install [gem] ` .
@@ -45,9 +48,10 @@ published as a fully-fledged gem to RubyGems.org.
45
48
[ ** The Ruby Toolbox** ] [ 6 ] is a project that makes it easy to explore open
46
49
source Ruby projects. It has categories for various common development tasks,
47
50
collects a lot of information about the projects like release and commit
48
- activity or dependencies, and rates projects based on their popularity on
49
- RubyGems.org and GitHub. The search makes it easy to find what you are
50
- looking for.
51
+ activity or dependencies and rates projects based on their popularity on
52
+ RubyGems.org and GitHub. This makes it easy to find a gem which solves
53
+ a particular problem such as web frameworks, documentation tools and
54
+ code quality libraries.
51
55
52
56
### A few more words about RubyGems
53
57
@@ -77,13 +81,13 @@ among your installed gems.
77
81
#### Installing a gem
78
82
79
83
Once you know which gem you would like to ** install** , for instance the
80
- popular Rails:
84
+ popular Ruby on Rails framework :
81
85
82
86
{% highlight sh %}
83
87
$ gem install rails
84
88
{% endhighlight %}
85
89
86
- You can even install just a certain version of the library, using the
90
+ You can even install just a specific version of the library, using the
87
91
` --version ` / ` -v ` flag:
88
92
89
93
{% highlight sh %}
0 commit comments