slimpay_client 0.1.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d26b75729292b3c0cec4c838dd46dff97f9f70dc139cb8d2a921014ffee5fdaf
4
- data.tar.gz: e2cfbb74b0060bfdc6978cde0ce1ff5180f4b3449332e94e4782b852d16e4858
3
+ metadata.gz: a29900b90a47455f706a973c8e25f0a43ebda81a909255d2e4d1eaced09abc54
4
+ data.tar.gz: 1bb76b4d68a94679ee463beeec99e8b1088b998c99f3043c0afe0e0d42e8b974
5
5
  SHA512:
6
- metadata.gz: 7c9c90006e67917cd3752d56db0d724fe0da7eee57bfe0cc4f84733714601c7520cb9e00130993b8438d00aaa9b27b91d1bedfa04fa1a0621ea21751b4127b46
7
- data.tar.gz: ed1eed9a78fb44c604a968fffc739896dea2618ca081a1d8024131cbcdd2733e6767f40e9af2c16684705b29d554ee07ac2ae105b17afab6c786740f6f1b7b1f
6
+ metadata.gz: 0a24e9b84018c599475c04b530bcf6c983d5924713b5cf32a97932af9589eda874f1f4b65916bc0780ba3f00f32b307df471e65025d5bc0240fda0877476fff3
7
+ data.tar.gz: c5f729be6d7e1169eb630a9478bab386e2af32600e917af9ed0b8243f58686010c557f01f9645b0e3d51a894109f00833fe8b4f9218a01de06908cd4ec2cecdf
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 = Slimpay::Base.new(client_id = '1234', client_secret = '987654321', creditor_reference = 'azerty')
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 ``Slimpay::Base.new`` without arguments, the _Sandbox_ credentials will be used.
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 = Slimpay::Order.new(client_id = '1234', client_secret = '987654321', creditor_reference = 'azerty')
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 = Slimpay::Order.new(client_id = '1234', client_secret = '987654321', creditor_reference = 'azerty')
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/[USERNAME]/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/[USERNAME]/slimpay_client/blob/master/CODE_OF_CONDUCT.md).
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SlimpayClient
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Idrissa Bara
@@ -198,6 +198,7 @@ files:
198
198
  - lib/slimpay_client/resource.rb
199
199
  - lib/slimpay_client/version.rb
200
200
  - sig/slimpay_client.rbs
201
+ - slimpay_client.gemspec
201
202
  homepage: https://github.com/baraidrissa/slimpay_client
202
203
  licenses:
203
204
  - MIT