Skip to content

Commit 3fffb8b

Browse files
authored
Merge pull request #284 from bensaunders/patch-1
Tweak spelling and grammar in Readme
2 parents ab234f2 + 9c0733b commit 3fffb8b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ dynamically and automatically manage jobs and other artifacts.
3333

3434
DETAILS:
3535
--------
36-
This projects currently only provides functionality for the
36+
This project currently only provides functionality for the
3737
<tt>jobs, node, view, system, and build queue</tt> interfaces.
3838

3939
USAGE:
4040
------
4141

4242
### Installation
4343

44-
Install jenkins_api_client by <tt>sudo gem install jenkins_api_client</tt>
44+
Install jenkins_api_client by <tt>sudo gem install jenkins_api_client</tt>.
4545
Include this gem in your code as a require statement.
4646

4747
require 'jenkins_api_client'
4848

4949
### Using with IRB
5050

51-
If you want to just play with it and not actually want to write a script, you
51+
If you want to just play with it and not actually write a script, you
5252
can just use the irb launcher script which is available in
5353
<tt>scripts/login_with_irb.rb</tt>. But make sure that you have your credentials
5454
available in the correct location. By default the script assumes that you have
@@ -58,14 +58,14 @@ that script to point to the location where the credentials file exists.
5858

5959
ruby scripts/login_with_irb.rb
6060

61-
You will see the that it entered IRB session and you can play with the API
61+
You will see that it entered IRB session and you can play with the API
6262
client with the <tt>@client</tt> object that it has returned.
6363

6464
### Authentication
6565

6666
Supplying credentials to the client is optional, as not all Jenkins instances
6767
require authentication. This project supports two types of password-based
68-
authentication. You can just you the plain password by using <tt>password</tt>
68+
authentication. You can just use the plain password by using <tt>password</tt>
6969
parameter. If you don't prefer leaving plain passwords in the credentials file,
7070
you can encode your password in base64 format and use <tt>password_base64</tt>
7171
parameter to specify the password either in the arguments or in the credentials
@@ -75,24 +75,24 @@ parameter is only required if <tt>username</tt> is specified.
7575

7676
#### Using with Open ID
7777

78-
It is very simple to authenticate with your Jenkins server that has Open ID
78+
It is very simple to authenticate with a Jenkins server that has Open ID
7979
authentication enabled. You will have to obtain your API token and use the API
80-
token as the password. For obtaining the API token, go to your user configuration
80+
token as the password. To obtain the API token, go to your user configuration
8181
page and click 'Show API Token'. Use this token for the `password` parameter when
8282
initializing the client.
8383

8484
### Cross-site Scripting (XSS) and Crumb Support
8585

86-
Support for Jenkins crumbs has been added. These allow an application to
86+
Support for Jenkins crumbs has been added. These allow an application to
8787
use the Jenkins API POST methods without requiring the 'Prevent Cross Site
88-
Request Forgery exploits' to be disabled. The API will check in with the
88+
Request Forgery exploits' to be disabled. The API will check in with the
8989
Jenkins server to determine whether crumbs are enabled or not, and use them
9090
if appropriate.
9191

9292
### SSL certificate verification
9393

94-
When connecting over HTTPS if the server's certificate is not trusted the
95-
connection will be aborted. To trust a certificate specify the `ca_file`
94+
When connecting over HTTPS, if the server's certificate is not trusted, the
95+
connection will be aborted. To trust a certificate, specify the `ca_file`
9696
parameter when creating the client. The value should be a path to a PEM encoded
9797
file containing the certificates.
9898

@@ -166,7 +166,7 @@ and so forth till it reaches the end of the list.
166166
There is another filter option you can specify for the method to take only
167167
jobs that are in a particular state. In case if we want to build only jobs
168168
that are failed or unstable, we can achieve that by passing in the states in
169-
the third parameter. In the example above, we wanted build all jobs. If we just
169+
the third parameter. In the example above, we wanted to build all jobs. If we just
170170
want to build failed and unstable jobs, just pass
171171
<tt>["failure", "unstable"]</tt>. Also if you pass in an empty array, it will
172172
assume that you want to consider all jobs and no filtering will be performed.
@@ -194,7 +194,7 @@ end
194194
### Configuring plugins
195195

196196
Given the abundance of plugins for Jenkins, we now provide a extensible way to
197-
setup jobs and configure their plugins. Right now, the gem ships with the hipchat
197+
set up jobs and configure their plugins. Right now, the gem ships with the hipchat
198198
plugin, with more plugins to follow in the future.
199199

200200
```ruby
@@ -223,7 +223,7 @@ job = JenkinsApi::Client::Job.new(client, hipchat)
223223

224224
Writing your own plugins is also straightforward. Inherit from the
225225
JenkinsApi::Client::PluginSettings::Base class and override the configure method.
226-
Jenkins jobs are configured using xml so you just nee to figure out where in the
226+
Jenkins jobs are configured using xml so you just need to figure out where in the
227227
configuration to hook in your plugin settings.
228228

229229
Here is an example of a plugin written to configure a job for workspace cleanup.
@@ -384,8 +384,8 @@ fulfilled:
384384
* The ```jenkins_api_client/java_deps/jenkins-cli.jar``` is required as the
385385
client to run the CLI. You can retrieve the available commands via accessing
386386
the URL: ```http://<server>:<port>/cli```
387-
* (Optional) required if you run the Groovy Script through CLI, make sure
388-
the *user* have the privilige to run script
387+
* (Optional) required if you run the Groovy Script through CLI; make sure
388+
the *user* has the privilige to run script
389389

390390
### Using with command line
391391
Command line interface is supported only from version 0.2.0.
@@ -419,7 +419,7 @@ there are two new input arguments used during the initialization of Client.
419419
constants available in the Logger class or using these integers provided
420420
here. The default for this argument is Logger::INFO (1)
421421

422-
If you want customization on the functionality Logger provides such as leave n
422+
If you want customization on the functionality Logger provides, such as leave n
423423
old log files, open the log file in append mode, create your own logger and
424424
then set that in the client.
425425

@@ -454,4 +454,4 @@ FEATURE REQUEST:
454454

455455
If you use this gem for your project and you think it would be nice to have a
456456
particular feature that is presently not implemented, I would love to hear that
457-
and consider working on it. Just open an issue in Github as a feature request.
457+
and consider working on it. Just open an issue in GitHub as a feature request.

0 commit comments

Comments
 (0)