slimpay_client 0.1.0 → 0.1.2
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 +8 -0
- data/README.md +7 -5
- data/lib/slimpay_client/version.rb +1 -1
- data/slimpay_client.gemspec +47 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a29900b90a47455f706a973c8e25f0a43ebda81a909255d2e4d1eaced09abc54
|
4
|
+
data.tar.gz: 1bb76b4d68a94679ee463beeec99e8b1088b998c99f3043c0afe0e0d42e8b974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a24e9b84018c599475c04b530bcf6c983d5924713b5cf32a97932af9589eda874f1f4b65916bc0780ba3f00f32b307df471e65025d5bc0240fda0877476fff3
|
7
|
+
data.tar.gz: c5f729be6d7e1169eb630a9478bab386e2af32600e917af9ed0b8243f58686010c557f01f9645b0e3d51a894109f00833fe8b4f9218a01de06908cd4ec2cecdf
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -70,11 +70,11 @@ The more you do requests, the more methods will appear.
|
|
70
70
|
When you emplement any class, it will inherits from the root-endpoint and thus already have available methods.
|
71
71
|
|
72
72
|
```ruby
|
73
|
-
slimpay =
|
73
|
+
slimpay = SlimpayClient::Base.new(client_id = '1234', client_secret = '987654321', creditor_reference = 'azerty')
|
74
74
|
slimpay.api_methods
|
75
75
|
```
|
76
76
|
|
77
|
-
⚠️ If you call ``
|
77
|
+
⚠️ If you call ``SlimpayClient::Base.new`` without arguments, the _Sandbox_ credentials will be used.
|
78
78
|
|
79
79
|
Result will be a Hash:
|
80
80
|
|
@@ -163,14 +163,14 @@ _Base_ defines root methods according to the Slimpay API.
|
|
163
163
|
The official API method:
|
164
164
|
|
165
165
|
```ruby
|
166
|
-
orders =
|
166
|
+
orders = SlimpayClient::Order.new(client_id = '1234', client_secret = '987654321', creditor_reference = 'azerty')
|
167
167
|
orders.get_orders({creditorReference: 'mysellername', reference: 1234})
|
168
168
|
```
|
169
169
|
|
170
170
|
The shortcut:
|
171
171
|
|
172
172
|
```ruby
|
173
|
-
orders =
|
173
|
+
orders = SlimpayClient::Order.new(client_id = '1234', client_secret = '987654321', creditor_reference = 'azerty')
|
174
174
|
orders.get_one(1234)
|
175
175
|
```
|
176
176
|
|
@@ -219,9 +219,11 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
219
219
|
|
220
220
|
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).
|
221
221
|
|
222
|
+
## Release
|
223
|
+
|
222
224
|
## Contributing
|
223
225
|
|
224
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
226
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/baraidrissa/slimpay_client. 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/baraidrissa/slimpay_client/blob/master/CODE_OF_CONDUCT.md).
|
225
227
|
|
226
228
|
## License
|
227
229
|
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/slimpay_client/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "slimpay_client"
|
7
|
+
spec.version = SlimpayClient::VERSION
|
8
|
+
spec.authors = ["Idrissa Bara"]
|
9
|
+
spec.email = ["bara.idris@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Slimpay Client for Ruby."
|
12
|
+
spec.description = "Ruby library for Slimpay's API."
|
13
|
+
spec.homepage = "https://github.com/baraidrissa/slimpay_client"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 2.6.0"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/baraidrissa/slimpay_client"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/baraidrissa/slimpay_client/CHANGELOG.md"
|
20
|
+
|
21
|
+
spec.post_install_message = %(Please refer to Slimpay's API https://dev.slimpay.com for more informations.)
|
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(__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
|
+
spec.add_dependency 'activesupport'
|
35
|
+
spec.add_dependency 'httparty', '~> 0.22.0'
|
36
|
+
spec.add_dependency 'oauth2', '~> 2.0', '>= 2.0.9'
|
37
|
+
|
38
|
+
spec.add_development_dependency 'bundler', '~> 2.5', '>= 2.5.17'
|
39
|
+
spec.add_development_dependency 'rake', '~> 13.2', '>= 13.2.1'
|
40
|
+
spec.add_development_dependency 'rspec', '~> 3.13'
|
41
|
+
spec.add_development_dependency 'rubocop', '~> 1.65', '>= 1.65.1'
|
42
|
+
spec.add_development_dependency 'vcr', '~> 6.2'
|
43
|
+
spec.add_development_dependency 'webmock', '~> 3.23', '>= 3.23.1'
|
44
|
+
|
45
|
+
# For more information and examples about making a new gem, check out our
|
46
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
47
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slimpay_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Idrissa Bara
|
@@ -175,6 +175,7 @@ extra_rdoc_files: []
|
|
175
175
|
files:
|
176
176
|
- ".rspec"
|
177
177
|
- ".rubocop.yml"
|
178
|
+
- CHANGELOG.md
|
178
179
|
- CODE_OF_CONDUCT.md
|
179
180
|
- Gemfile
|
180
181
|
- LICENSE.txt
|
@@ -197,6 +198,7 @@ files:
|
|
197
198
|
- lib/slimpay_client/resource.rb
|
198
199
|
- lib/slimpay_client/version.rb
|
199
200
|
- sig/slimpay_client.rbs
|
201
|
+
- slimpay_client.gemspec
|
200
202
|
homepage: https://github.com/baraidrissa/slimpay_client
|
201
203
|
licenses:
|
202
204
|
- MIT
|