yellow-sdk 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/yellow-sdk/client.rb +3 -3
  2. metadata +2 -2
@@ -1,6 +1,6 @@
1
1
  module Yellow
2
2
 
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  YELLOW_SERVER = "https://" + (ENV["YELLOW_SERVER"] || "api.yellowpay.co")
5
5
 
6
6
  class YellowApiError < Exception ; end
@@ -63,7 +63,7 @@ module Yellow
63
63
 
64
64
  url = YELLOW_SERVER + endpoint
65
65
 
66
- nonce = Time.now.to_i * 1000
66
+ nonce = Time.now.to_f * 1000
67
67
  signature = get_signature(url, body, nonce, @api_secret)
68
68
 
69
69
  uri = URI.parse(YELLOW_SERVER)
@@ -82,7 +82,7 @@ module Yellow
82
82
  request.add_field('API-Nonce', nonce)
83
83
  request.add_field('API-Sign', signature)
84
84
  request.add_field('API-Platform', "#{RUBY_PLATFORM} - Ruby #{RUBY_VERSION}")
85
- request.add_field('API-Version', VERSION)
85
+ request.add_field('API-Plugin', VERSION)
86
86
  request.body = body
87
87
  response = http.request(request)
88
88
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yellow-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
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: 2015-04-30 00:00:00.000000000 Z
12
+ date: 2015-05-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Yellow SDK. A ruby module to easily integrate with the Yellow bitcoin
15
15
  payments API.