ruby-daraja 0.1.0.pre.alpha → 0.1.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/CHANGELOG.md +14 -3
- data/README.md +2 -0
- data/lib/ruby/daraja/version.rb +1 -1
- data/ruby-daraja.gemspec +41 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 455f6a62aa1132725934112c2f8a26d9271b272efdae48248a901e6398fb1dfe
|
4
|
+
data.tar.gz: e1e0c389fddd8a3dac62b1375b1656b5083d606b2fc947b7ade6fc94b1723940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dc4387fdc509c232169b38565debc358d5d0c48cbcc45f26ea58c00b00a079ee98d7c3bf6c4bfcabd7aa012c89c792b00fb299b7e9757b1fbc5fcc4ed264d25
|
7
|
+
data.tar.gz: 043f3e285d7171ffc60f2263b0bbbe5b046e2cb52cc98f3a84045efb7af4be1be0b25d2078e1f56189ee44bde0a3a145e7714ba2f138fea4b25a7822f56e8de3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
|
-
|
1
|
+
# Development
|
2
2
|
|
3
|
-
##
|
3
|
+
## 0.1.0-pre-alpha / 2023-04-18
|
4
|
+
### Initial release
|
4
5
|
|
5
|
-
-
|
6
|
+
This release is a pre-alpha release and is not intended for production use. It is intended to allow early adopters to try out the new features and provide feedback. Some features are not yet implemented or are not fully functional. Please see the [Known Issues](#known-issues) section for more details.
|
7
|
+
### Added
|
8
|
+
- Added initial support for initiate STK push requests for both _**C2B**_ and **_B2C_** transactions on `PayBill` and `BuyGoods` shortcodes.
|
9
|
+
- Added sample documentation for the new features in GitHub Readme.
|
10
|
+
- Add support for authorization using `Consumer Secret` and `Consumer Key` for both _**C2B**_ and **_B2C_** transactions.
|
11
|
+
|
12
|
+
|
13
|
+
## Known Issues
|
14
|
+
- Full support for status query requests is not yet implemented.
|
15
|
+
- B2C requests are flaky and may fail due to `OpenSSL` errors.
|
16
|
+
- The library is not yet fully tested and may contain bugs.
|
data/README.md
CHANGED
@@ -157,6 +157,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
157
157
|
|
158
158
|
Bug reports and pull requests are welcome on GitHub at https://github.com/otsembo/ruby-daraja. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/ruby-daraja/blob/master/CODE_OF_CONDUCT.md).
|
159
159
|
|
160
|
+
You can also join the conversation at our [discussions page](https://github.com/otsembo/ruby-daraja/discussions).
|
161
|
+
|
160
162
|
## License
|
161
163
|
|
162
164
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/ruby/daraja/version.rb
CHANGED
data/ruby-daraja.gemspec
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/ruby/daraja/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'ruby-daraja'
|
7
|
+
spec.version = Ruby::Daraja::VERSION
|
8
|
+
spec.authors = ['otsembo']
|
9
|
+
spec.email = ['okumu.otsembo@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = 'A simple gem that allows implements smooth'
|
12
|
+
spec.description = "The gem abstracts away the low-level details of the API, providing a simple and intuitive
|
13
|
+
interface for sending payment requests, checking payment status, and managing payment callbacks"
|
14
|
+
spec.homepage = 'https://github.com/otsembo/ruby-daraja'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
spec.required_ruby_version = '>= 2.7.0'
|
17
|
+
|
18
|
+
# spec.metadata['allowed_push_host'] = 'https://github.com'
|
19
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
20
|
+
spec.metadata['homepage_uri'] = 'https://github.com/otsembo/ruby-daraja'
|
21
|
+
spec.metadata['source_code_uri'] = 'https://github.com/otsembo/ruby-daraja'
|
22
|
+
spec.metadata['changelog_uri'] = 'https://github.com/otsembo/ruby-daraja/blob/main/CHANGELOG.md'
|
23
|
+
|
24
|
+
# Specify which files should be added to the gem when it is released.
|
25
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
26
|
+
spec.files = Dir.chdir(__dir__) do
|
27
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
28
|
+
(File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
|
29
|
+
end
|
30
|
+
end
|
31
|
+
spec.bindir = 'exe'
|
32
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
33
|
+
spec.require_paths = ['lib']
|
34
|
+
|
35
|
+
# Uncomment to register a new dependency of your gem
|
36
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
37
|
+
|
38
|
+
# For more information and examples about making a new gem, check out our
|
39
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
40
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
41
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-daraja
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- otsembo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
The gem abstracts away the low-level details of the API, providing a simple and intuitive
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- lib/ruby/daraja_auth_provider.rb
|
34
34
|
- lib/ruby/pay.rb
|
35
35
|
- lib/ruby/payment.rb
|
36
|
+
- ruby-daraja.gemspec
|
36
37
|
- sig/app_utils.rbs
|
37
38
|
- sig/app_utils/base_config.rbs
|
38
39
|
- sig/daraja_auth_provider.rbs
|
@@ -58,9 +59,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
59
|
version: 2.7.0
|
59
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
61
|
requirements:
|
61
|
-
- - "
|
62
|
+
- - ">="
|
62
63
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
64
|
+
version: '0'
|
64
65
|
requirements: []
|
65
66
|
rubygems_version: 3.3.5
|
66
67
|
signing_key:
|