vingd 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/vingd.rb +3 -2
  2. metadata +2 -2
@@ -8,7 +8,7 @@ require 'vingd/response'
8
8
  require 'vingd/exceptions'
9
9
 
10
10
  class Vingd
11
- VERSION = "0.1.3"
11
+ VERSION = "0.1.4"
12
12
 
13
13
  # production urls
14
14
  URL_ENDPOINT = "https://api.vingd.com/broker/v1"
@@ -25,7 +25,8 @@ class Vingd
25
25
  @api_secret = api_secret
26
26
  @api_endpoint = api_endpoint
27
27
  @usr_frontend = usr_frontend
28
- @credentials = Base64.strict_encode64(api_key + ':' + @api_secret)
28
+ # ruby 1.9.2 has Base64.strict_encode6 which removes newlines
29
+ @credentials = Base64.encode64(api_key + ':' + @api_secret).gsub(/\n/, '')
29
30
  end
30
31
 
31
32
  def request(verb, subpath, data=nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vingd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2013-11-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Vingd enables users to pay with money or with time. See https://www.vingd.com
15
15
  for more.