yellow-sdk 0.0.4 → 0.0.5

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.
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
- Yellow Python SDK
1
+ Yellow Ruby SDK
2
2
  =====================
3
+
3
4
  This is the Yellow Ruby SDK. This simple SDK contains couple of Ruby methods that makes it easy to integrate with the Yellow API. To get started just:
4
5
  ```
5
6
  gem install yellow-sdk
@@ -35,7 +36,6 @@ You should see something similar to the following in your terminal:
35
36
  "invoice_ccy": "BTC",
36
37
  "invoice_price": "0.00017070",
37
38
  "received": "0",
38
- "redirect": null,
39
39
  "remaining": "0.00017070",
40
40
  "server_time": "2015-03-10T18:07:51.454Z",
41
41
  "status": "new", # Status of the invoice. Other values are "authorizing" for unconfirmed transactions, and "paid" for confirmed transactions
data/lib/yellow-sdk.rb CHANGED
@@ -2,5 +2,4 @@ require 'yellow-sdk/client'
2
2
  require 'json'
3
3
  require 'uri'
4
4
  require 'net/http'
5
- require "openssl"
6
- #require "always_verify_ssl_certificates"
5
+ require "openssl"
@@ -1,6 +1,6 @@
1
1
  module Yellow
2
2
 
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.5"
4
4
  YELLOW_SERVER = "https://" + (ENV["YELLOW_SERVER"] || "api.yellowpay.co")
5
5
 
6
6
  class YellowApiError < Exception ; end
@@ -69,6 +69,7 @@ module Yellow
69
69
  uri = URI.parse(YELLOW_SERVER)
70
70
  http = Net::HTTP.new(uri.host, uri.port)
71
71
  http.use_ssl = true
72
+ http.verify_mode = OpenSSL::SSL::VERIFY_PEER
72
73
 
73
74
  if method == 'GET'
74
75
  request = Net::HTTP::Get.new(endpoint)
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.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-29 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: always_verify_ssl_certificates
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
12
+ date: 2015-04-30 00:00:00.000000000 Z
13
+ dependencies: []
30
14
  description: Yellow SDK. A ruby module to easily integrate with the Yellow bitcoin
31
15
  payments API.
32
16
  email: eslam@yellowpay.co