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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68eb557e31765c4d1a363dfb697dd1e31f0c6db217c745b8c19ed92fbae5832a
4
- data.tar.gz: dd97f72723481953ca9650ea8a1c75e8e1a9ba4d9812360fb543e6ce9f08f942
3
+ metadata.gz: 44657157a5ae2ccc9bdbfb8f9ec1f788c02083dc518110d9e1425a732fcde1d9
4
+ data.tar.gz: 783398f5b8bafbb55b8328a79ff6ef4eeb471651efe9705c6615dfc642c4a459
5
5
  SHA512:
6
- metadata.gz: a2d9cf35d2a5f0de4192e36955a6438b1f6c00b75169a0465145de61b3dd03bd0df29e63a03b58b486ca2c0c3531ca8b06f6e09584d3697b6ac608848ed90c4c
7
- data.tar.gz: fce87f526d295612055a4d0843139f850757d1fe426fb2f11df2f5bc73993a9bf1dd7db7b20071a6fb8edacbc1759e3eb8d6a5982f1a9cafb108917bc0fed3ca
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
@@ -41,7 +41,7 @@ module Cryptomus
41
41
 
42
42
  def connection_options
43
43
  {
44
- url: Cryptomus::CONST::URL,
44
+ url: Cryptomus.config.base_url,
45
45
  headers: {
46
46
  'Content-Type' => MIME_TYPE,
47
47
  merchant: Cryptomus.config.merchant_id,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptomus
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
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.1
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: 2023-07-20 00:00:00.000000000 Z
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.12
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: []