slimpay_client 0.1.1 → 0.1.3

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: c8316eb60c9f69b7f933f1049f5c5940e1203b6186ebe7a9157e7e52b889dc9b
4
+ data.tar.gz: 93622bc255b1d4f4ee6a572008696bdb788c2ca11d9ec0b63846d606e59acf49
5
5
  SHA512:
6
- metadata.gz: 7c9c90006e67917cd3752d56db0d724fe0da7eee57bfe0cc4f84733714601c7520cb9e00130993b8438d00aaa9b27b91d1bedfa04fa1a0621ea21751b4127b46
7
- data.tar.gz: ed1eed9a78fb44c604a968fffc739896dea2618ca081a1d8024131cbcdd2733e6767f40e9af2c16684705b29d554ee07ac2ae105b17afab6c786740f6f1b7b1f
6
+ metadata.gz: a09cefcb2415c1d2fc8a1aed8287e8b5d552b4bbd99be68372138021b03b9c2d8ad2640806f98c29ce579880e5a83f1dcaa8602ebbe1057637c298ac74a0c917
7
+ data.tar.gz: 8034ec448decfb9c1fdbb0febe158d8de3c6785aa927b413bc685283bb80a8c6246afacfb19c27d37ff99a7cc815f5c1704ed55bb03d2f4f0cf0af84f27d2dd0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [unrelease]
2
+
3
+ * Specs
4
+
5
+ ## [0.1.3] - 2024-08-07
6
+
7
+ * README
8
+
9
+ ## [0.1.2] - 2024-08-07
10
+
11
+ * README
12
+
1
13
  ## [0.1.1] - 2024-08-07
2
14
 
3
15
  * Changelog file
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.3"
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/blob/main/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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Idrissa Bara
@@ -198,13 +198,14 @@ 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
204
205
  metadata:
205
206
  homepage_uri: https://github.com/baraidrissa/slimpay_client
206
207
  source_code_uri: https://github.com/baraidrissa/slimpay_client
207
- changelog_uri: https://github.com/baraidrissa/slimpay_client/CHANGELOG.md
208
+ changelog_uri: https://github.com/baraidrissa/slimpay_client/blob/main/CHANGELOG.md
208
209
  post_install_message: Please refer to Slimpay's API https://dev.slimpay.com for more
209
210
  informations.
210
211
  rdoc_options: []