cryptomus 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/cryptomus/configuration.rb +2 -0
- data/lib/cryptomus/connection.rb +1 -1
- data/lib/cryptomus/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44657157a5ae2ccc9bdbfb8f9ec1f788c02083dc518110d9e1425a732fcde1d9
|
4
|
+
data.tar.gz: 783398f5b8bafbb55b8328a79ff6ef4eeb471651efe9705c6615dfc642c4a459
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c34b3af1310e2b8c7ce434e1080420f83e8a72ed417649b0840a1983d781c83d9a007cfc5cef4ebb544974ce49f5ff427933bbdfbc50cffad74dc683ddfd6ca
|
7
|
+
data.tar.gz: bba690da42be0d6628f84decff288032b53f27dddfafbf47916fdf9e0b22210d967aca7986de4c49d263aed44b14add9c75e6c59efc74eeaef4832a1227a0a6c
|
data/README.md
CHANGED
@@ -24,6 +24,7 @@ require 'cryptomus'
|
|
24
24
|
Cryptomus.configure do |config|
|
25
25
|
config.merchant_id = 'your_merchant_id'
|
26
26
|
config.api_key = 'your_api_key'
|
27
|
+
# config.base_url = '...' # optional, default is https://api.cryptomus.com
|
27
28
|
end
|
28
29
|
|
29
30
|
crypto_payment = Cryptomus::Client.create_payment(
|
@@ -4,6 +4,7 @@ module Cryptomus
|
|
4
4
|
class Configuration
|
5
5
|
attr_accessor :api_key,
|
6
6
|
:merchant_id,
|
7
|
+
:base_url,
|
7
8
|
:user_agent,
|
8
9
|
:connection_config,
|
9
10
|
:handle_response,
|
@@ -12,6 +13,7 @@ module Cryptomus
|
|
12
13
|
|
13
14
|
def initialize
|
14
15
|
self.user_agent = "Cryptomus Ruby SDK #{Cryptomus::VERSION} (Ruby #{RUBY_VERSION})"
|
16
|
+
self.base_url = Cryptomus::CONST::URL
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
data/lib/cryptomus/connection.rb
CHANGED
data/lib/cryptomus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptomus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Talakevich
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -53,7 +53,7 @@ metadata:
|
|
53
53
|
source_code_uri: https://github.com/senid231/cryptomus-ruby-sdk
|
54
54
|
changelog_uri: https://github.com/senid231/cryptomus-ruby-sdk/blob/master/CHANGELOG.md
|
55
55
|
rubygems_mfa_required: 'true'
|
56
|
-
post_install_message:
|
56
|
+
post_install_message:
|
57
57
|
rdoc_options: []
|
58
58
|
require_paths:
|
59
59
|
- lib
|
@@ -68,8 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
rubygems_version: 3.4.
|
72
|
-
signing_key:
|
71
|
+
rubygems_version: 3.4.19
|
72
|
+
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Ruby SDK for Cryptomus Crypto Payment Gateway.
|
75
75
|
test_files: []
|