bleumi_pay_sdk_ruby 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/README.md +22 -6
- data/bleumi_pay_sdk_ruby.gemspec +2 -1
- data/lib/bleumi_pay_sdk_ruby/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37ecca8caab4b85776edd2cd0d400b69b0583dc6f1fc41fea705c2e7a7e0067b
|
|
4
|
+
data.tar.gz: '0856f4650070a17c7a8a963b7143dd1e16ad4b7fa615461ea3e295b56fe6afcd'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd313f860dfc4a0a9e85e4667e29fea96ff072798f4b16bbca70fa97aea6ca09fb29794ac1e8a9ffd1e98d1071a624eb2f7cda2eb16aff02fdf0464163370cc4
|
|
7
|
+
data.tar.gz: c807179469c410617366ca49ee68c8ab68b4ae7cc9f044368d037f399cf863aad2e27a67cf94077f0b73bfe68ec09e687026c60f616e12097d227abc06dd19ec
|
data/README.md
CHANGED
|
@@ -4,15 +4,31 @@ The Bleumi Pay SDK is a one-stop shop to help you integrate ECR-20 payments into
|
|
|
4
4
|
|
|
5
5
|
bleumi-pay-sdk-ruby is a Ruby library that provides an interface between your Rubu=y application and [Bleumi Pay API](https://pay.bleumi.com/docs/#introduction). This tutorial covers the basics, including examples, needed to use the SDK.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Getting Started
|
|
8
|
+
|
|
9
|
+
### Pre-requisites
|
|
10
|
+
|
|
11
|
+
#### Development Environment
|
|
12
|
+
|
|
13
|
+
Ruby 1.9+
|
|
14
|
+
|
|
15
|
+
#### Obtain An API Key
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
Bleumi Pay SDK uses API keys to authenticate requests. You can obtain an API key through the [Bleumi Pay developer portal](https://pay.bleumi.com/app/).
|
|
10
18
|
|
|
11
|
-
|
|
19
|
+
### Install Package
|
|
20
|
+
|
|
21
|
+
[](http://rubygems.org/gems/bleumi_pay_sdk_ruby)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
To install,
|
|
25
|
+
```bash
|
|
26
|
+
gem 'bleumi_pay_sdk_ruby', '~> 1.0.1'
|
|
27
|
+
```
|
|
12
28
|
|
|
13
29
|
### Install from Git
|
|
14
30
|
|
|
15
|
-
|
|
31
|
+
Add the following in the Gemfile:
|
|
16
32
|
|
|
17
33
|
gem 'bleumi_pay_sdk_ruby', :git => 'https://github.com/bleumi/bleumi_pay_sdk_ruby.git'
|
|
18
34
|
|
|
@@ -24,9 +40,9 @@ Include the Ruby code directly using `-I` as follows:
|
|
|
24
40
|
ruby -Ilib script.rb
|
|
25
41
|
```
|
|
26
42
|
|
|
27
|
-
|
|
43
|
+
### Run Sample Code
|
|
28
44
|
|
|
29
|
-
|
|
45
|
+
The following code creates a wallet to accept payment from the buyer specific for the ECR-20 Token.
|
|
30
46
|
|
|
31
47
|
```ruby
|
|
32
48
|
# Load the gem
|
data/bleumi_pay_sdk_ruby.gemspec
CHANGED
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
|
24
24
|
s.homepage = "https://pay.bleumi.com/"
|
|
25
25
|
s.summary = "Bleumi Pay API Ruby Gem"
|
|
26
26
|
s.description = "A simple and powerful REST API to integrate ERC20 payments into your business or application"
|
|
27
|
-
s.license = "
|
|
27
|
+
s.license = "MIT"
|
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
|
29
29
|
|
|
30
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
@@ -36,4 +36,5 @@ Gem::Specification.new do |s|
|
|
|
36
36
|
s.test_files = `find spec/*`.split("\n")
|
|
37
37
|
s.executables = []
|
|
38
38
|
s.require_paths = ["lib"]
|
|
39
|
+
s.metadata = { "source_code_uri" => "https://github.com/bleumi/bleumi-pay-sdk-ruby" }
|
|
39
40
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bleumi_pay_sdk_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bleumi
|
|
@@ -140,8 +140,9 @@ files:
|
|
|
140
140
|
- spec/spec_helper.rb
|
|
141
141
|
homepage: https://pay.bleumi.com/
|
|
142
142
|
licenses:
|
|
143
|
-
-
|
|
144
|
-
metadata:
|
|
143
|
+
- MIT
|
|
144
|
+
metadata:
|
|
145
|
+
source_code_uri: https://github.com/bleumi/bleumi-pay-sdk-ruby
|
|
145
146
|
post_install_message:
|
|
146
147
|
rdoc_options: []
|
|
147
148
|
require_paths:
|