Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit b2da8d5

Browse files
author
Jesse Claven
authored
v0.4.0 (#72)
1 parent 93c00b7 commit b2da8d5

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [0.4.0] - 2022-02-15
2+
3+
- Use the latest API version, `v1`
4+
- Add airlines' logo URL
5+
16
## [0.3.0] - 2022-02-15
27

38
- Automatically retry rate-limited requests (thanks to @ferrisoxide for the contribution!)

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A Ruby client library for the [Duffel API](https://duffel.com/docs/api).
2020
In most cases, you'll want to add `duffel_api` to your project as a dependency by listing it in your `Gemfile`, and then running `bundle`:
2121

2222
```ruby
23-
gem "duffel_api", "~> 0.3.0"
23+
gem "duffel_api", "~> 0.4.0"
2424
```
2525

2626
You can install `duffel_api` outside of the context of a project by running `gem install duffel_api` - for example if you want to play with the client library in `irb`.
@@ -118,7 +118,7 @@ client.offers.
118118

119119
A call to `#all` returns a Ruby [`Enumerator`](https://ruby-doc.org/core-2.6/Enumerator.html), which behaves a lot like an array - you can get the number of records with `#length`, loop through it with `#each`, etc.
120120

121-
If you prefer, you can also page through records manually using a service's `#list` method (e.g. `client.orders.list`) which returns a `DuffelAPI::ListResponse`.
121+
If you prefer, you can also page through records manually using a service's `#list` method (e.g. `client.orders.list`) which returns a `DuffelAPI::ListResponse`.
122122

123123
The records in the page are returned by `#records` (`client.orders.list.records`) and the cursor for the next page (if there is one) can be found with `#after` (`client.orders.list.after`)
124124

@@ -242,4 +242,3 @@ end
242242

243243
You can find complete documentation on this library's classes and methods in the in-code
244244
documentation on [RubyDoc.info](https://rubydoc.info/github/duffelhq/duffel-api-ruby).
245-

lib/duffel_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module DuffelAPI
4-
VERSION = "0.3.0"
4+
VERSION = "0.4.0"
55
end

0 commit comments

Comments
 (0)