webirr 0.1.9 → 1.0.0
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/lib/webirr/client.rb +2 -2
- data/lib/webirr/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2e033aec539177a0897e42cd7529b228b8170b78799359f1e62ea1882cf9510
|
4
|
+
data.tar.gz: 3e7793d938334814f2a8af030a2f61e9efac1a3ece8c854e56b49c4cc4d18c66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 817d4f43ab1745b9531b4f15c5cd39a64ed7a86a04e71cdef7abdb509d9731304aa8c9d430a5a972c3b53d56b2f760e24d6a1fb917c9f39bd71b13c4de531017
|
7
|
+
data.tar.gz: 2e50541a6ab8b79b86656aba61348a62af7d2195e4b5a974bf03ef99b43397c9e1bb67b0cb5579386fee9c52a5ff6996b51a03f877ed2c616f82f5b46a3f236e
|
data/lib/webirr/client.rb
CHANGED
@@ -4,12 +4,12 @@ require "faraday"
|
|
4
4
|
|
5
5
|
module Webirr
|
6
6
|
class Client
|
7
|
-
def initialize(api_key, is_test_env)
|
7
|
+
def initialize(domain = "api.webirr.com", api_key, is_test_env)
|
8
8
|
@api_key = api_key
|
9
9
|
@client =
|
10
10
|
Faraday.new(
|
11
11
|
url:
|
12
|
-
(is_test_env ? "https
|
12
|
+
(is_test_env ? "https://#{domain}/" : "https://#{domain}:8080/").to_s,
|
13
13
|
params: {
|
14
14
|
"api_key" => @api_key
|
15
15
|
},
|
data/lib/webirr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webirr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yohannes Aregay
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
rubygems_version: 3.
|
71
|
+
rubygems_version: 3.4.12
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Official Ruby Client Library for WeBirr Payment Gateway APIs
|