Skip to content

Commit e876c3a

Browse files
Crankshaft RobotJacob Pargin
authored andcommitted
[BU000003VY6VDA] Bump to v2.0.0
1 parent 445572a commit e876c3a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Ruby client for the GoCardless API. For full details of the GoCardless API, se
66
[![Build Status](https://travis-ci.org/gocardless/gocardless-pro-ruby.svg?branch=master)](https://travis-ci.org/gocardless/gocardless-pro-ruby)
77

88
- ["Getting started" guide](https://developer.gocardless.com/getting-started/api/introduction/?lang=ruby) with copy and paste Ruby code samples
9-
- [API Reference](https://developer.gocardless.com/api-reference/2015-07-06)
9+
- [API Reference](https://developer.gocardless.com/api-reference)
1010

1111
## Usage Examples
1212

lib/gocardless_pro/client.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,17 @@ def default_options
116116
default_headers: {
117117
'GoCardless-Version' => '2015-07-06',
118118
'User-Agent' => "#{user_agent}",
119-
'Content-Type' => 'application/json'
119+
'Content-Type' => 'application/json',
120+
'GoCardless-Client-Library' => 'gocardless-pro-ruby',
121+
'GoCardless-Client-Version' => '2.0.0'
120122
}
121123
}
122124
end
123125

124126
def user_agent
125127
@user_agent ||=
126128
begin
127-
gem_name = 'gocardless_pro'
128-
gem_info = "#{gem_name}"
129+
gem_info = 'gocardless-pro-ruby'
129130
gem_info += "/v#{GoCardlessPro::VERSION}" if defined?(GoCardlessPro::VERSION)
130131

131132
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'

lib/gocardless_pro/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module GoCardlessPro
44

55
module GoCardlessPro
66
# Current version of the GC gem
7-
VERSION = '1.1.0'
7+
VERSION = '2.0.0'
88
end

0 commit comments

Comments
 (0)