webirr 0.1.5 → 0.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3c0cc887b42d61cbfe75ecb0f01cb1786a9939375ebaa2c3aaf4a2450295219
4
- data.tar.gz: 4f51f4a4ccb1f7017a99b11122861571b5d5f934daf269c281bdf20e23637db4
3
+ metadata.gz: a2128b29b5eb82cb298e6c59ff58dc5288228448a7df28ded0db1ce29c354af4
4
+ data.tar.gz: a88441755275a8b77b9ec628e4ea050a31ef81bc2be21502e074af1c04f1cd5e
5
5
  SHA512:
6
- metadata.gz: 3c44c63531e08b3e8ead77a290fd9b7c955c1344cd0e28b434afca667ec32129c3e1aca551b127e5c219b2be2ef906502c6f379b58c1a8a795506265652e6f38
7
- data.tar.gz: 4a9b4eed7e56fcb3b64c97c35dccbf5c2304f7f44cfa54fe7cd4a42f538f64725fd6fd339e1009f124e2e489b722a4b45d0132c3210efb4afd0fc7dcc14eb03a
6
+ metadata.gz: dd922ce31e737440d084bf7696d468153ee71e70c0055f85b892cb675eef73b93b755aed44d58655df43b5fea8612d8cb501798c982ec0c6c77c746546ddefd0
7
+ data.tar.gz: 443e8c109c0ee43c1c1d72ba6f8107a27e671e16c5dca729e7772e5b39846ba767524cfbbb968598e0f1d8739b36215825c6c4b56e5fb384cd45adf378491ea8
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Webirr
2
+ [![Gem Version](https://badge.fury.io/rb/webirr.svg)](https://badge.fury.io/rb/webirr)
2
3
 
3
4
  Official Ruby gem for WeBirr Payment Gateway APIs
4
5
 
data/lib/webirr/client.rb CHANGED
@@ -58,8 +58,12 @@ module Webirr
58
58
  end
59
59
  end
60
60
 
61
- def get_stat
62
- response = @client.get("merchant/stat")
61
+ def get_stat(date_from: nil, date_to: nil)
62
+ if date_from.nil?
63
+ response = @client.get("merchant/stat")
64
+ else
65
+ response = @client.get("merchant/stat?date_from=#{date_from}&date_to=#{date_to}")
66
+ end
63
67
  if response.success?
64
68
  JSON.parse(response.body)
65
69
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Webirr
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
5
5
  end
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.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yohannes Aregay
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-23 00:00:00.000000000 Z
11
+ date: 2022-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -45,7 +45,6 @@ files:
45
45
  - lib/webirr/client.rb
46
46
  - lib/webirr/version.rb
47
47
  - sig/webirr.rbs
48
- - webirr.gemspec
49
48
  homepage: https://github.com/johnhailu/webirr
50
49
  licenses:
51
50
  - MIT
@@ -69,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
68
  - !ruby/object:Gem::Version
70
69
  version: '0'
71
70
  requirements: []
72
- rubygems_version: 3.3.7
71
+ rubygems_version: 3.3.24
73
72
  signing_key:
74
73
  specification_version: 4
75
74
  summary: Official Ruby Client Library for WeBirr Payment Gateway APIs
data/webirr.gemspec DELETED
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/webirr/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "webirr"
7
- spec.version = Webirr::VERSION
8
- spec.authors = ["Yohannes Aregay"]
9
- spec.email = ["emailtoyohannes@gmail.com"]
10
-
11
- spec.summary = "Official Ruby Client Library for WeBirr Payment Gateway APIs"
12
- spec.description = "Official Ruby Client Library for WeBirr Payment Gateway APIs"
13
- spec.homepage = "https://github.com/johnhailu/webirr"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.6.0"
16
-
17
- spec.metadata["allowed_push_host"] = "https://rubygems.org/"
18
-
19
- spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = "https://github.com/johnhailu/webirr"
21
- spec.metadata["changelog_uri"] = "https://github.com/johnhailu/webirr/CHANGELOG.md"
22
-
23
- # Specify which files should be added to the gem when it is released.
24
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
- `git ls-files -z`.split("\x0").reject do |f|
27
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
- end
29
- end
30
- spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
- spec.require_paths = ["lib"]
33
-
34
- # Uncomment to register a new dependency of your gem
35
- spec.add_dependency "faraday", "~> 2.5"
36
-
37
- # For more information and examples about making a new gem, check out our
38
- # guide at: https://bundler.io/guides/creating_gem.html
39
- end