From 5662899773458a11b993db5bf3f1498ffd542133 Mon Sep 17 00:00:00 2001 From: thepriefy Date: Fri, 27 Oct 2017 09:31:08 +0700 Subject: [PATCH 1/4] create .env_sample --- .env_sample | 1 + 1 file changed, 1 insertion(+) create mode 100644 .env_sample diff --git a/.env_sample b/.env_sample new file mode 100644 index 0000000..30857f4 --- /dev/null +++ b/.env_sample @@ -0,0 +1 @@ +export SENDGRID_API_KEY='' \ No newline at end of file From d3665729b168be3bd7de27aa3ffdbaf2ed32877f Mon Sep 17 00:00:00 2001 From: thepriefy Date: Fri, 27 Oct 2017 09:33:17 +0700 Subject: [PATCH 2/4] update README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 18ba291..fe78d0f 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,28 @@ All updates to this library is documented in our [CHANGELOG](https://github.com/ - Ruby version 2.2+ +## Setup Environment Variables + +### Initial Setup + +Copy ```.env_sample``` and change its name to ```.env.``` + +```bash +git clone https://github.com/sendgrid/ruby_http_client.git +cd ruby_http_client +cp .env_sample .env +``` + +### Environment Variable + +Update the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example: + +```bash +echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env +echo "sendgrid.env" >> .gitignore +source ./sendgrid.env +``` + ## Install Package ```bash From 36ff91a3a61e3c9baabdaffead03b0ab026f3210 Mon Sep 17 00:00:00 2001 From: thepriefy Date: Fri, 27 Oct 2017 09:37:04 +0700 Subject: [PATCH 3/4] edit copy .env_sample instruction --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index fe78d0f..355eb4a 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,6 @@ All updates to this library is documented in our [CHANGELOG](https://github.com/ Copy ```.env_sample``` and change its name to ```.env.``` ```bash -git clone https://github.com/sendgrid/ruby_http_client.git -cd ruby_http_client cp .env_sample .env ``` @@ -120,4 +118,4 @@ ruby-http-client is guided and supported by the SendGrid [Developer Experience T ruby-http-client is maintained and funded by SendGrid, Inc. The names and logos for ruby-http-client are trademarks of SendGrid, Inc. # License -[The MIT License (MIT)](LICENSE.txt) \ No newline at end of file +[The MIT License (MIT)](LICENSE.txt) From 2d67edb2840652a7504e4cae330edc0e10a62973 Mon Sep 17 00:00:00 2001 From: thepriefy Date: Mon, 30 Oct 2017 23:09:45 +0700 Subject: [PATCH 4/4] remove copy command --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index 355eb4a..d356deb 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,6 @@ All updates to this library is documented in our [CHANGELOG](https://github.com/ ## Setup Environment Variables -### Initial Setup - -Copy ```.env_sample``` and change its name to ```.env.``` - -```bash -cp .env_sample .env -``` - ### Environment Variable Update the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example: