sequoia-pay 0.1.0.alpha
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 +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +8 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +72 -0
- data/Rakefile +12 -0
- data/lib/sequoia/pay/version.rb +7 -0
- data/lib/sequoia/pay.rb +23 -0
- data/sig/sequoia/pay.rbs +6 -0
- metadata +53 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9e4733c74057007bf44759982c2f6b7d824402f8dc17fae413f80503a7a7d724
|
|
4
|
+
data.tar.gz: ed994002a9a3434c53dfb0a3bbdf79b75d1f85a25b7f7cc8b9e2b672205f826d
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 85b5eb93ce93bdb510dafe025743fd1ac6de84970c377e3b8c8264fe9fc3ac3297ce3d4f20941b4c132a44fb6e81708434eb7e91349f98aa90f9976b726c77ed
|
|
7
|
+
data.tar.gz: 8392100874fd12c824d388e362fe5b7796a8bdfd145795a427f48ff805b82220d21a5518d4a9e131af87cc2e1b10aa2a5795e85337e0c32c45a10437bbb6d26a
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 SequoiaPay
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
data/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# SequoiaPay Ruby SDK (Alpha)
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
A lightweight Ruby SDK for interacting with the [SequoiaPay](https://sequoiapay.org) API using API keys.
|
|
6
|
+
🚧 This is an early **alpha version** intended as a placeholder for future development.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
Add this line to your application's Gemfile:
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
gem 'sequoia-pay'
|
|
16
|
+
````
|
|
17
|
+
|
|
18
|
+
And then execute:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
bundle install
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or install it yourself as:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
gem install sequoia-pay
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```ruby
|
|
35
|
+
require 'sequoia/pay'
|
|
36
|
+
|
|
37
|
+
client = Sequoia::Pay::Client.new(api_key: 'your_api_key_here')
|
|
38
|
+
|
|
39
|
+
puts client.info
|
|
40
|
+
# => "SequoiaPay Ruby SDK (Alpha Version). API key: your_api_key_here"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Versioning
|
|
46
|
+
|
|
47
|
+
This gem follows [Semantic Versioning](https://semver.org), with `.alpha` suffix for early preview builds.
|
|
48
|
+
|
|
49
|
+
Current version: `0.0.1.alpha`
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Roadmap
|
|
54
|
+
|
|
55
|
+
* [ ] Authentication layer
|
|
56
|
+
* [ ] API endpoints support
|
|
57
|
+
* [ ] Error handling
|
|
58
|
+
* [ ] Test coverage
|
|
59
|
+
* [ ] Ruby on Rails integration
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Contributing
|
|
64
|
+
|
|
65
|
+
Bug reports and pull requests are welcome at [GitHub](https://github.com/sequoia-pay/sequoia-pay-ruby-sdk).
|
|
66
|
+
By contributing, you agree to abide by the [code of conduct](CODE_OF_CONDUCT.md).
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
The gem is available as open source under the terms of the [MIT License](LICENSE.txt).
|
data/Rakefile
ADDED
data/lib/sequoia/pay.rb
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "pay/version"
|
|
4
|
+
|
|
5
|
+
module Sequoia
|
|
6
|
+
# SequoiaPay Ruby SDK (Alpha Version)
|
|
7
|
+
module Pay
|
|
8
|
+
class Error < StandardError; end
|
|
9
|
+
|
|
10
|
+
# Client for SequoiaPay API
|
|
11
|
+
class Client
|
|
12
|
+
attr_reader :api_key
|
|
13
|
+
|
|
14
|
+
def initialize(api_key:)
|
|
15
|
+
@api_key = api_key
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def info
|
|
19
|
+
"SequoiaPay Ruby SDK (Alpha Version). API key: #{@api_key}"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
data/sig/sequoia/pay.rbs
ADDED
metadata
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: sequoia-pay
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0.alpha
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Eugene Leontev
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: SequoiaPay Ruby SDK (Alpha) for working with sequoiapay.org API keys
|
|
13
|
+
email:
|
|
14
|
+
- potehin@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- ".rspec"
|
|
20
|
+
- ".rubocop.yml"
|
|
21
|
+
- CHANGELOG.md
|
|
22
|
+
- LICENSE.txt
|
|
23
|
+
- README.md
|
|
24
|
+
- Rakefile
|
|
25
|
+
- lib/sequoia/pay.rb
|
|
26
|
+
- lib/sequoia/pay/version.rb
|
|
27
|
+
- sig/sequoia/pay.rbs
|
|
28
|
+
homepage: https://sequoiapay.org
|
|
29
|
+
licenses:
|
|
30
|
+
- MIT
|
|
31
|
+
metadata:
|
|
32
|
+
allowed_push_host: https://rubygems.org
|
|
33
|
+
homepage_uri: https://sequoiapay.org
|
|
34
|
+
source_code_uri: https://github.com/sequoia-pay/sequoia-pay-ruby-sdk
|
|
35
|
+
changelog_uri: https://github.com/sequoia-pay/sequoia-pay-ruby-sdk/blob/main/CHANGELOG.md
|
|
36
|
+
rdoc_options: []
|
|
37
|
+
require_paths:
|
|
38
|
+
- lib
|
|
39
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: 3.1.0
|
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - ">="
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0'
|
|
49
|
+
requirements: []
|
|
50
|
+
rubygems_version: 3.6.9
|
|
51
|
+
specification_version: 4
|
|
52
|
+
summary: SDK for SequoiaPay API
|
|
53
|
+
test_files: []
|