You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+56-52Lines changed: 56 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,28 @@
1
-
Hello! Thank you for choosing to help contribute to the ruby-http-client. There are many ways you can contribute and help is always welcome.
2
-
1
+
Hello! Thank you for choosing to help contribute to one of the SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies.
2
+
3
+
-[CLAs and CCLAs](#cla)
4
+
-[Roadmap & Milestones](#roadmap)
5
+
-[Feature Request](#feature_request)
6
+
-[Submit a Bug Report](#submit_a_bug_report)
7
+
-[Improvements to the Codebase](#improvements_to_the_codebase)
8
+
-[Understanding the Code Base](#understanding_the_codebase)
-[Creating a Pull Request](#creating_a_pull_request)
12
+
13
+
<aname="roadmap"></a>
3
14
We use [Milestones](https://github.com/sendgrid/ruby-http-client/milestones) to help define current roadmaps, please feel free to grab an issue from the current milestone. Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions and additional PRs are welcomed and encouraged.
4
15
5
-
*[Feature Request](#feature_request)
6
-
*[Submit a Bug Report](#submit_a_bug_report)
7
-
*[Improvements to the Codebase](#improvements_to_the_codebase)
8
-
*[Understanding the Code Base](#understanding_the_codebase)
*[Creating a Pull Request](#creating_a_pull_request)
16
+
<aname="cla"></a>
17
+
## CLAs and CCLAs
18
+
19
+
Before you get started, SendGrid requires that a SendGrid Contributor License Agreement (CLA) or a SendGrid Company Contributor Licensing Agreement (CCLA) be filled out by every contributor to a SendGrid open source project.
20
+
21
+
Our goal with the CLA and CCLA is to clarify the rights of our contributors and reduce other risks arising from inappropriate contributions. The CLA also clarifies the rights SendGrid holds in each contribution and helps to avoid misunderstandings over what rights each contributor is required to grant to SendGrid when making a contribution. In this way the CLA and CCLA encourage broad participation by our open source community and help us build strong open source projects, free from any individual contributor withholding or revoking rights to any contribution.
22
+
23
+
SendGrid does not merge a pull request made against a SendGrid open source project until that pull request is associated with a signed CLA (or CCLA). Copies of the CLA and CCLA are available [here](https://drive.google.com/a/sendgrid.com/file/d/0B0PlcM9qA91LN2VEUTJWU2RIVXc/view).
24
+
25
+
You may submit your completed [CLA or CCLA](https://drive.google.com/a/sendgrid.com/file/d/0B0PlcM9qA91LN2VEUTJWU2RIVXc/view) to SendGrid at [dx@sendgrid.com](mailto:dx@sendgrid.com). SendGrid will then confirm you are ready to begin making contributions.
12
26
13
27
There are a few ways to contribute, which we'll enumerate below:
14
28
@@ -37,58 +51,50 @@ Before you decide to create a new issue, please try the following:
37
51
38
52
### Please use our Bug Report Template
39
53
40
-
In order to make the process easier, we've included a sample bug report template (borrowed from [Ghost](https://github.com/TryGhost/Ghost/)). The template uses [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown/) for formatting.
41
-
42
-
```
43
-
Short and descriptive example bug report title
44
-
45
-
#### Issue Summary
46
-
47
-
A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, code examples.
48
-
49
-
50
-
#### Steps to Reproduce
51
-
52
-
1. This is the first step
53
-
2. This is the second step
54
-
3. Further steps, etc.
55
-
56
-
Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? What do you expect to happen instead?
In order to make the process easier, we've included a [sample bug report template](https://github.com/sendgrid/ruby-http-client/.github/ISSUE_TEMPLATE) (borrowed from [Ghost](https://github.com/TryGhost/Ghost/)). The template uses [GitHub flavored markdown](https://help.github.com/articles/github-flavored-markdown/) for formatting.
63
55
64
56
<aname="improvements_to_the_codebase"></a>
65
57
## Improvements to the Codebase
66
58
67
-
We welcome direct contributions to the python-http-client code base. Thank you!
59
+
We welcome direct contributions to the ruby-http-client code base. Thank you!
@@ -109,30 +115,28 @@ This allows for the following mapping from a URL to a method chain:
109
115
110
116
All PRs require passing tests before the PR will be reviewed.
111
117
112
-
All test files are in the `[test](https://github.com/sendgrid/ruby-http-client/tree/master/test)` directory.
118
+
All test files are in the [`test`](https://github.com/sendgrid/ruby-http-client/tree/master/test) directory.
113
119
114
120
For the purposes of contributing to this repo, please update the [`test_ruby_http_client.rb`](https://github.com/sendgrid/ruby-http-client/blob/master/test/test_ruby_http_client.rb) file with unit tests as you modify the code.
115
121
116
122
To run the tests:
117
123
118
-
`rake`
119
-
120
-
All PRs require passing tests before the PR will be reviewed.
Generally, we follow the style guidelines as suggested by the official language. However, we ask that you conform to the styles that already exist in the library. If you wish to deviate, please explain your reasoning.
Generally, we follow the style guidelines as suggested by the official language. However, we ask that you conform to the styles that already exist in the library. If you wish to deviate, please explain your reasoning.
128
134
129
-
Please run your code through [rubocop](https://github.com/bbatsov/rubocop).
Copy file name to clipboardExpand all lines: README.md
+28-84Lines changed: 28 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,21 @@
2
2
3
3
**Quickly and easily access any REST or REST-like API.**
4
4
5
-
Here is a quick example:
5
+
# Announcements
6
+
7
+
All updates to this library is documented in our [CHANGELOG](https://github.com/sendgrid/ruby-http-client/blob/master/CHANGELOG.md).
8
+
9
+
# Installation
10
+
11
+
```bash
12
+
gem install ruby_http_client
13
+
```
14
+
15
+
## Dependencies
16
+
17
+
- Ruby 2.2 or higher
18
+
19
+
# Quick Start
6
20
7
21
`GET /your/api/{param}/call`
8
22
@@ -33,101 +47,31 @@ puts response.response_body
33
47
puts response.response_headers
34
48
```
35
49
36
-
# Installation
37
-
38
-
`gem install ruby_http_client`
39
-
40
-
## Usage ##
41
-
42
-
Following is an example using SendGrid. You can get your free account [here](https://sendgrid.com/free?source=python-http-client).
43
-
44
-
First, update your .env with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys) and HOST. For this example HOST=https://api.sendgrid.com.
45
-
46
-
Following is an abridged example, here is the [full working code](https://github.com/sendgrid/ruby-http-client/tree/master/examples).
If you are interested in the future direction of this project, please take a look at our [milestones](https://github.com/sendgrid/ruby-http-client/milestones). We would love to hear your feedback.
113
57
114
-
# How to Contribute
58
+
##How to Contribute
115
59
116
60
We encourage contribution to our libraries, please see our [CONTRIBUTING](https://github.com/sendgrid/ruby-http-client/blob/master/CONTRIBUTING.md) guide for details.
0 commit comments