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: CHANGELOG.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [1.5.0] - 2021-03-01
9
+
10
+
### Changed
11
+
12
+
- Changed base URL from https://api.usepatch.com to https://api.patch.io
13
+
8
14
## [1.4.0] - 2021-02-15
9
15
10
16
### Added
@@ -20,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
20
26
21
27
### Added
22
28
23
-
- Adds support for creating carbon emission estimates for flights, shipping, and vehicles. See the [docs](https://docs.usepatch.com/#/?id=estimates) for more information.
29
+
- Adds support for creating carbon emission estimates for flights, shipping, and vehicles. See the [docs](https://docs.patch.io/#/?id=estimates) for more information.
The official Ruby gem for the [Patch API](https://www.usepatch.com)
7
+
The official Ruby gem for the [Patch API](https://www.patch.io)
7
8
8
9
## Documentation
9
-
For a complete API reference, check out [Patch's API Reference.](https://docs.usepatch.com/)
10
+
11
+
For a complete API reference, check out [Patch's API Reference.](https://docs.patch.io/)
10
12
11
13
## Installation
12
14
13
15
Add the gem to your Gemfile:
16
+
14
17
```ruby
15
18
gem 'patch_ruby'
16
19
```
17
20
18
21
Then run:
22
+
19
23
```shell
20
24
bundle
21
25
```
22
26
23
27
Or install it directly with
28
+
24
29
```shell
25
30
gem install patch_ruby
26
31
```
27
32
28
33
### Requirements
34
+
29
35
- Ruby 1.9+
30
36
31
37
## Usage
32
38
33
39
### Configuration
34
40
35
41
After installing the gem, you'll have to configure it with your API key which is available from the API key page in the Patch dashboard:
42
+
36
43
```ruby
37
44
require'patch_ruby'
38
45
@@ -43,6 +50,7 @@ end
43
50
```
44
51
45
52
### Orders
53
+
46
54
In Patch, orders represent a purchase of carbon offsets or negative emissions by mass. Place orders directly if you know the amount of carbon dioxide you would like to sequester. If you do not know how much to purchase, use an estimate.
47
55
48
56
In Patch, orders represent a purchase of carbon offsets or negative emissions by mass.
@@ -51,9 +59,10 @@ If you do not know how much to purchase, use an estimate.
51
59
You can also create an order with a maximum desired price, and we'll allocate enough mass to
Estimates allow API users to get a quote for the cost of compensating a certain amount of CO2. When creating an estimate, an order in the `draft` state will also be created, reserving the allocation of a project for 5 minutes. If you don't place your draft order within those 5 minutes, the order will automatically be cancelled.
Projects are the ways Patch takes CO2 out of the air. They can represent reforestation, enhanced weathering, direct air carbon capture, etc. When you place an order via Patch, it is allocated to a project.
146
158
147
159
When fetching Projects, you can add filters to the query to narrow the result. Currently supported filters are:
@@ -150,9 +162,10 @@ When fetching Projects, you can add filters to the query to narrow the result. C
Preferences are how you route your orders in Patch. If you don't have a preference, Patch will allocate your order to the least expensive option. If you do have a preference, all of your orders will be sent to that project. You can set your preferences via API, or through the [Patch Dashboard](https://dashboard.usepatch.com/projects).
Preferences are how you route your orders in Patch. If you don't have a preference, Patch will allocate your order to the least expensive option. If you do have a preference, all of your orders will be sent to that project. You can set your preferences via API, or through the [Patch Dashboard](https://dashboard.patch.io/projects).
0 commit comments