mono_ruby 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +10 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +21 -0
- data/README.md +201 -0
- data/Rakefile +12 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/mono_ruby.rb +77 -0
- data/lib/mono_ruby/version.rb +5 -0
- data/mono_ruby.gemspec +38 -0
- metadata +87 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 86d604bb5ce9aefc3f63806b537888a2b01f9361eb1d9b31692606b87df3fd8b
|
4
|
+
data.tar.gz: 747b8619555bfc97734b5a3e73aa96e81a8302d5042332fa696b84cef778455e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0367f4b40b3198af5e00b035d3c920ca962cf4d836439959d21d4dc12f9be6c553f5b3add557063581d97b1200f1773c2c28ad30553b83fb225e46b89bddb78f
|
7
|
+
data.tar.gz: 39a1a900891c4101544169b4ce108bcaf5e6a38ee8812cfe88677a672eb0cbae27dd45c5ff244d589d3204dca5751d48d5cf30564b290b351fdf04f08f6240aa
|
data/.DS_Store
ADDED
Binary file
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at king@mono.co. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 kkenway
|
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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
# MonoRuby
|
2
|
+
|
3
|
+
Mono-Node is a Ruby wrapper for <a href="https://mono.co"> Mono </a>
|
4
|
+
For complete information about the API, head to the <a href="https://docs.mono.co/reference">docs</a>.
|
5
|
+
<br /><br />
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'mono_ruby'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install mono_ruby
|
22
|
+
|
23
|
+
## Getting Started
|
24
|
+
|
25
|
+
- Register on <a href="https://app.withmono.com/dashboard"> Mono </a> website and get your Authorization key.
|
26
|
+
- Setup your mono connect with your mono public key.
|
27
|
+
|
28
|
+
<br/>
|
29
|
+
|
30
|
+
|
31
|
+
## Set Secret Key
|
32
|
+
```ruby
|
33
|
+
monoClient = MonoRuby::Mono.new({
|
34
|
+
"secretKey" => "live_sk_xxxxx"
|
35
|
+
})
|
36
|
+
```
|
37
|
+
|
38
|
+
|
39
|
+
## Features
|
40
|
+
|
41
|
+
- Wallet Balance
|
42
|
+
- Get Account ID. from Auth Code.
|
43
|
+
- Account Information
|
44
|
+
- Account Statement
|
45
|
+
- Poll Account Statement PDF
|
46
|
+
- Transactions
|
47
|
+
- Income Information
|
48
|
+
- Identity
|
49
|
+
- Sync Data
|
50
|
+
- Re-auth Code
|
51
|
+
- Institutions
|
52
|
+
- Account Unlink
|
53
|
+
<br /><br />
|
54
|
+
# Implementation
|
55
|
+
|
56
|
+
### - Get Wallet Balance
|
57
|
+
This resource allows you to check the available balance in your Mono wallet
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
walletBalance = monoClient.getWalletBalance
|
61
|
+
```
|
62
|
+
|
63
|
+
<br />
|
64
|
+
|
65
|
+
### - Get Account Id from token
|
66
|
+
This resource returns the account id (that identifies the authenticated account) after successful enrolment on the Mono connect widget.
|
67
|
+
```ruby
|
68
|
+
accountIdGet = monoClient.getAccountId({"code" => "code_ir9FIYb5HvNcb1tVe9Dp"})
|
69
|
+
```
|
70
|
+
|
71
|
+
<br />
|
72
|
+
|
73
|
+
### - Get Account Information
|
74
|
+
This resource returns the account details with the financial institution.
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
accountInfo = monoClient.getAccountInformation({"accountId" => accountId})
|
78
|
+
```
|
79
|
+
|
80
|
+
<br />
|
81
|
+
|
82
|
+
### - Get Account Statement in JSON
|
83
|
+
This resource returns the bank statement of the connected financial account in JSON.
|
84
|
+
You can query 1-12 months bank statement in one single call.
|
85
|
+
```ruby
|
86
|
+
accountStatement = monoClient.getAccountStatement({
|
87
|
+
"accountId" => "6094b18f7f87041b24cb8bc1",
|
88
|
+
"period" => "last2months",
|
89
|
+
"output" => "json"
|
90
|
+
})
|
91
|
+
```
|
92
|
+
|
93
|
+
<br />
|
94
|
+
|
95
|
+
|
96
|
+
### - Get Account Statement in PDF
|
97
|
+
This resource returns the bank statement of the connected financial account in PDF.
|
98
|
+
You can query 1-12 months bank statement in one single call.
|
99
|
+
```ruby
|
100
|
+
accountStatement = monoClient.getAccountStatement({
|
101
|
+
"accountId" => "6094b18f7f87041b24cb8bc1",
|
102
|
+
"period" => "last2months",
|
103
|
+
"output" => "pdf"
|
104
|
+
})
|
105
|
+
```
|
106
|
+
|
107
|
+
<br />
|
108
|
+
|
109
|
+
|
110
|
+
### - Poll Account Statement in PDF
|
111
|
+
With this resource, you set the output as PDF, and you can use this endpoint to poll the status
|
112
|
+
```ruby
|
113
|
+
pollAccountStatement = monoClient.pollPdfAccountStatementStatus({
|
114
|
+
"accountId" => "6094b18f7f87041b24cb8bc1",
|
115
|
+
"jobId" => "EqCjlqWoxWu2AgRsMSxX"
|
116
|
+
})
|
117
|
+
```
|
118
|
+
|
119
|
+
<br />
|
120
|
+
|
121
|
+
### - Get Account Transactions
|
122
|
+
This resource returns the known transactions on the account.
|
123
|
+
|
124
|
+
```ruby
|
125
|
+
accountTransactions = monoClient.getAccountTransactions({
|
126
|
+
"accountId" => "6094b18f7f87041b24cb8bc1",
|
127
|
+
"paginate" => true,
|
128
|
+
"limit" => 10
|
129
|
+
})
|
130
|
+
```
|
131
|
+
|
132
|
+
<br />
|
133
|
+
|
134
|
+
|
135
|
+
### - Get Income Information
|
136
|
+
This resource will return income information on the account.
|
137
|
+
```ruby
|
138
|
+
accountIncome = monoClient.getIncome({"accountId" => "6094b18f7f87041b24cb8bc1"})
|
139
|
+
```
|
140
|
+
|
141
|
+
<br />
|
142
|
+
|
143
|
+
|
144
|
+
### - Get Account Identity
|
145
|
+
This resource returns a high level overview of an account identity data.
|
146
|
+
```ruby
|
147
|
+
identity = monoClient.getIdentity({"accountId" => "6094b18f7f87041b24cb8bc1"})
|
148
|
+
```
|
149
|
+
|
150
|
+
<br />
|
151
|
+
|
152
|
+
|
153
|
+
### - Synchronise Data
|
154
|
+
This resource attempts to Sync data manually.
|
155
|
+
```ruby
|
156
|
+
dataSync = monoClient.syncDataManually({"accountId" => "6094b18f7f87041b24cb8bc1"})
|
157
|
+
```
|
158
|
+
|
159
|
+
<br />
|
160
|
+
|
161
|
+
|
162
|
+
### - Get Re-auth Code.
|
163
|
+
This resource returns a Re-auth code which is a mono generated code for the account you want to re-authenticate,
|
164
|
+
```ruby
|
165
|
+
reCode = monoClient.reauthCode({"accountId" => "6094b18f7f87041b24cb8bc1"})
|
166
|
+
```
|
167
|
+
|
168
|
+
<br />
|
169
|
+
|
170
|
+
|
171
|
+
### - Get Financial Institutions
|
172
|
+
This resource returns the available institutions on Mono
|
173
|
+
```ruby
|
174
|
+
institutions = monoClient.getInstitutions
|
175
|
+
```
|
176
|
+
|
177
|
+
<br />
|
178
|
+
|
179
|
+
### - Unlink Account
|
180
|
+
This resource provides your customers with the option to unlink their financial account(s)
|
181
|
+
```ruby
|
182
|
+
unlink = monoClient.unlinkAccount({"accountId" => "6094b18f7f87041b24cb8bc1"})
|
183
|
+
```
|
184
|
+
|
185
|
+
## Development
|
186
|
+
|
187
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
188
|
+
|
189
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
190
|
+
|
191
|
+
## Contributing
|
192
|
+
|
193
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mono_ruby. 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]/mono_ruby/blob/master/CODE_OF_CONDUCT.md).
|
194
|
+
|
195
|
+
## License
|
196
|
+
|
197
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
198
|
+
|
199
|
+
## Code of Conduct
|
200
|
+
|
201
|
+
Everyone interacting in the MonoRuby project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/mono_ruby/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "bundler/setup"
|
5
|
+
require "mono_ruby"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/mono_ruby.rb
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require_relative "mono_ruby/version"
|
3
|
+
require 'httparty'
|
4
|
+
|
5
|
+
module MonoRuby
|
6
|
+
|
7
|
+
class Mono
|
8
|
+
include HTTParty
|
9
|
+
base_uri 'https://api.withmono.com'
|
10
|
+
|
11
|
+
def initialize(data)
|
12
|
+
@options = { headers: { "Content-Type": "application/json", "mono-sec-key": data["secretKey"] } }
|
13
|
+
end
|
14
|
+
|
15
|
+
def getWalletBalance
|
16
|
+
self.class.get("/users/stats/wallet", @options)
|
17
|
+
end
|
18
|
+
|
19
|
+
def getAccountId(data)
|
20
|
+
self.class.post("/account/auth", @options.merge!( body: {code: data["code"]}.to_json ))
|
21
|
+
end
|
22
|
+
|
23
|
+
def getAccountInformation(data)
|
24
|
+
self.class.get("/accounts/#{data["accountId"]}", @options)
|
25
|
+
end
|
26
|
+
|
27
|
+
def getAccountStatement(data)
|
28
|
+
query = "?"
|
29
|
+
query += data["period"] ? "period=#{data["period"]}&" : ''
|
30
|
+
query += data["output"] ? "output=#{data["output"]}&" : ''
|
31
|
+
|
32
|
+
self.class.get("/accounts/#{data["accountId"]}/statement#{query}", @options)
|
33
|
+
end
|
34
|
+
|
35
|
+
def pollPdfAccountStatementStatus(data)
|
36
|
+
self.class.get("/accounts/#{data["accountId"]}/statement/jobs/#{data["jobId"]}", @options)
|
37
|
+
end
|
38
|
+
|
39
|
+
def getAccountTransactions(data)
|
40
|
+
query = "?"
|
41
|
+
query += data["start"] ? "start=#{data["start"]}&" : ''
|
42
|
+
query += data["end"] ? "end=#{data["end"]}&" : ''
|
43
|
+
query += data["narration"] ? "narration=#{data["narration"]}&" : ''
|
44
|
+
query += data["type"] ? "type=#{data["type"]}&" : '';
|
45
|
+
query += (!data["paginate"] && data["paginate"] === false) ? "paginate=false&" : "paginate=true&"
|
46
|
+
query += data["limit"] ? "limit=#{data["limit"]}&" : ''
|
47
|
+
|
48
|
+
self.class.get("/accounts/#{data["accountId"]}/transactions#{query}", @options)
|
49
|
+
end
|
50
|
+
|
51
|
+
def getIncome(data)
|
52
|
+
self.class.get("/accounts/#{data["accountId"]}/income", @options)
|
53
|
+
end
|
54
|
+
|
55
|
+
def getIdentity(data)
|
56
|
+
self.class.get("/accounts/#{data["accountId"]}/identity", @options)
|
57
|
+
end
|
58
|
+
|
59
|
+
def syncDataManually(data)
|
60
|
+
self.class.post("/accounts/#{data["accountId"]}/sync", @options)
|
61
|
+
end
|
62
|
+
|
63
|
+
def reauthCode(data)
|
64
|
+
self.class.post("/accounts/#{data["accountId"]}/reauthorise", @options)
|
65
|
+
end
|
66
|
+
|
67
|
+
def getInstitutions
|
68
|
+
self.class.get("/coverage", @options)
|
69
|
+
end
|
70
|
+
|
71
|
+
def unlinkAccount(data)
|
72
|
+
self.class.post("/accounts/#{data["accountId"]}/unlink", @options)
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
data/mono_ruby.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/mono_ruby/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "mono_ruby"
|
7
|
+
spec.version = MonoRuby::VERSION
|
8
|
+
spec.authors = ["kkenway"]
|
9
|
+
spec.email = ["king@mono.co"]
|
10
|
+
|
11
|
+
spec.summary = "Ruby API for Mono"
|
12
|
+
spec.description = "Ruby gem wrapper for the Mono API. Read more here at https://docs.mono.co/docs"
|
13
|
+
spec.homepage = "https://mono.co/"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
16
|
+
|
17
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
18
|
+
|
19
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
20
|
+
spec.metadata["source_code_uri"] = "https://github.com/withmono/mono-ruby"
|
21
|
+
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
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 { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
# Uncomment to register a new dependency of your gem
|
33
|
+
spec.add_development_dependency "rspec", "~> 3.2"
|
34
|
+
spec.add_dependency "httparty", "~> 0.18.1"
|
35
|
+
|
36
|
+
# For more information and examples about making a new gem, checkout our
|
37
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mono_ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kkenway
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: httparty
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.18.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.18.1
|
41
|
+
description: Ruby gem wrapper for the Mono API. Read more here at https://docs.mono.co/docs
|
42
|
+
email:
|
43
|
+
- king@mono.co
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".DS_Store"
|
49
|
+
- ".gitignore"
|
50
|
+
- ".rspec"
|
51
|
+
- ".rubocop.yml"
|
52
|
+
- CODE_OF_CONDUCT.md
|
53
|
+
- Gemfile
|
54
|
+
- LICENSE.txt
|
55
|
+
- README.md
|
56
|
+
- Rakefile
|
57
|
+
- bin/console
|
58
|
+
- bin/setup
|
59
|
+
- lib/mono_ruby.rb
|
60
|
+
- lib/mono_ruby/version.rb
|
61
|
+
- mono_ruby.gemspec
|
62
|
+
homepage: https://mono.co/
|
63
|
+
licenses:
|
64
|
+
- MIT
|
65
|
+
metadata:
|
66
|
+
homepage_uri: https://mono.co/
|
67
|
+
source_code_uri: https://github.com/withmono/mono-ruby
|
68
|
+
post_install_message:
|
69
|
+
rdoc_options: []
|
70
|
+
require_paths:
|
71
|
+
- lib
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.3.0
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubygems_version: 3.2.3
|
84
|
+
signing_key:
|
85
|
+
specification_version: 4
|
86
|
+
summary: Ruby API for Mono
|
87
|
+
test_files: []
|