monopay-ruby 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a4c5b8555a208292b20a2769fbe598cd2efd59c594e039b05d8379e3fd01c39
4
- data.tar.gz: ab1d3be69331294ecc21be5aad1a10656d0f075a0fce3fa11b91484b075f4cf6
3
+ metadata.gz: c7f7b55974b07c60a80ba1251ae477f186566b9589342b8e941a8afaa3cfe41d
4
+ data.tar.gz: 305d7898044358fc96ece83e506daba1f5282146218026352c5cbbda85140c66
5
5
  SHA512:
6
- metadata.gz: 16a9eb6011cc806b5c2f10d076dea0748004a527a1e036208fab3c3e51b43ac1647aaac2700b660dd3bd5db92fdeff94e0177e5b434d6513fc1eba4190248e76
7
- data.tar.gz: 93faa86e2aa40b296e25a6a7806e134800bea8e0e14f892fcd81f0395bb16f6439e97e5a5c3c2ed973b6c6937854f756cf6cf7707594384afa39ef183782063e
6
+ metadata.gz: 3ffbc464d1238fee91fbe8dcfa9177b34536419092c7aa24cea40c583b3f729c9064ae3518c90e61cef6d15d033c45db5678830dcac9411d1644a002f6916ae5
7
+ data.tar.gz: a636899d2837e6213d6014549dff9a62fddba0b4b6cc123ea1b20531a453f96f3729e898fa38a3934f8d0d1bb52c6e6dbad9d8b2094d8b200a399d449fd90cac
data/CHANGELOG.md CHANGED
@@ -1,8 +1,22 @@
1
+ ## [1.0.0] - 2023-06-27
2
+
3
+ ### Changed
4
+
5
+ ### Breaking Change
6
+ Updated method signatures in the gem to use keyword arguments instead of named arguments.
7
+
8
+ ###### Specifically
9
+ `MonopayRuby::Invoices::SimpleInvoice::new` method was affected by this change.
10
+ ###### Previously
11
+ the method was called like `new("redirect/url", "webhook/url")`. Now, it should be called like `new(redirect_url: "redirect/url", webhook_url: "webhook/url")`.
12
+ #### Note
13
+ This is a breaking change and will require updating your code if you are updating to this version of the gem from an earlier version.
14
+
1
15
  ## [0.1.1] - 2023-06-19
2
16
 
3
17
  - Fix typo in a `README.md` file
4
- - add ability to pass reference to an invoice by `reference` parameter in a `MonopayRuby::Invoices::SimpleInvoice::create` method
5
- - Use named parameter of `destionation` for "MonopayRuby::Invoices::SimpleInvoice::create" method
18
+ - Add ability to pass reference to an invoice by `reference` parameter in a `MonopayRuby::Invoices::SimpleInvoice::create` method
19
+ - Use keyword parameter of `destination` for "MonopayRuby::Invoices::SimpleInvoice::create" method
6
20
 
7
21
  ## [0.1.0] - 2023-06-18
8
22
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monopay-ruby (0.1.1)
4
+ monopay-ruby (1.0.0)
5
5
  base64 (~> 0.1.1)
6
6
  json (~> 2.5)
7
7
  money (~> 6.13)
data/README.md CHANGED
@@ -54,8 +54,8 @@ Just get the token and go to earn moneys! 🚀
54
54
  class PaymentsController < ApplicationController
55
55
  def create
56
56
  payment = MonopayRuby::Invoices::SimpleInvoice.new(
57
- redirect_url: "https://example.com",
58
- webhook_url: "https://example.com/payments/webhook"
57
+ "https://example.com",
58
+ "https://example.com/payments/webhook"
59
59
  )
60
60
 
61
61
  if payment.create(amount: 100, destination: "Payment description",)
@@ -17,7 +17,7 @@ module MonopayRuby
17
17
  #
18
18
  # @param [String] redirect_url - url where user will be redirected after payment
19
19
  # @param [String] webhook_url - url where Monobank will send webhook after payment
20
- def initialize(redirect_url = nil, webhook_url = nil)
20
+ def initialize(redirect_url: nil, webhook_url: nil)
21
21
  @redirect_url = redirect_url
22
22
  @webhook_url = webhook_url
23
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MonopayRuby
4
- VERSION = "0.1.1"
4
+ VERSION = "1.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monopay-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - loqimean
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -134,7 +134,6 @@ files:
134
134
  - lib/monopay-ruby/version.rb
135
135
  - lib/monopay-ruby/webhooks/public_key.rb
136
136
  - lib/monopay-ruby/webhooks/validator.rb
137
- - monopay-ruby.gemspec
138
137
  - sig/monopay_ruby.rbs
139
138
  homepage: https://github.com/loqimean/monopay-ruby
140
139
  licenses:
@@ -158,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
157
  - !ruby/object:Gem::Version
159
158
  version: '0'
160
159
  requirements: []
161
- rubygems_version: 3.3.7
160
+ rubygems_version: 3.4.12
162
161
  signing_key:
163
162
  specification_version: 4
164
163
  summary: The "monopay-ruby" gem is a powerful Ruby library designed for seamless integration
data/monopay-ruby.gemspec DELETED
@@ -1,49 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # to load all /lib files
4
- $LOAD_PATH.push File.expand_path("lib", __dir__)
5
-
6
- require_relative "lib/monopay-ruby/version"
7
-
8
- Gem::Specification.new do |spec|
9
- spec.name = "monopay-ruby"
10
- spec.version = MonopayRuby::VERSION
11
- spec.authors = ["loqimean"]
12
- spec.email = ["vanuha277@gmail.com"]
13
-
14
- spec.summary = "The \"monopay-ruby\" gem is a powerful Ruby library designed for seamless integration with Monobank's payment system. It provides a convenient way to handle Monobank payments within Ruby and Rails applications, simplifying the process and saving you valuable development time."
15
- spec.description = "The \"monopay-ruby\" gem simplifies Monobank payment integration in Ruby and Rails applications. It provides an intuitive interface and essential functionalities for generating payment requests, verifying transactions, handling callbacks, and ensuring data integrity. With this gem, you can quickly and securely implement Monobank payments, saving development time and delivering a seamless payment experience to your users."
16
- spec.homepage = "https://github.com/loqimean/monopay-ruby"
17
- spec.license = "MIT"
18
- spec.required_ruby_version = ">= 2.6.0"
19
-
20
- spec.metadata["homepage_uri"] = spec.homepage
21
- spec.metadata["source_code_uri"] = "https://github.com/loqimean/monopay-ruby"
22
- spec.metadata["changelog_uri"] = "https://github.com/loqimean/monopay-ruby/blob/master/CHANGELOG.md"
23
-
24
- # Specify which files should be added to the gem when it is released.
25
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
- spec.files = Dir.chdir(__dir__) do
27
- `git ls-files -z`.split("\x0").reject do |f|
28
- (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
29
- end
30
- end
31
- spec.bindir = "exe"
32
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
33
- spec.require_paths = ["lib"]
34
-
35
- # Uncomment to register a new dependency of your gem
36
- # TODO: Use metal versions of gems where possible to avoid unnecessary extra
37
- spec.add_dependency "rest-client", "~> 2.1"
38
- spec.add_dependency "base64", "~> 0.1.1"
39
- spec.add_dependency "json", "~> 2.5"
40
- # spec.add_dependency "openssl", "~> 2.1"
41
- spec.add_dependency "money", "~> 6.13"
42
-
43
- spec.add_development_dependency "rspec", "~> 3.0"
44
- spec.add_development_dependency "pry", "~> 0.14.2"
45
- spec.add_development_dependency "simplecov", "~> 0.22.0"
46
-
47
- # For more information and examples about making a new gem, check out our
48
- # guide at: https://bundler.io/guides/creating_gem.html
49
- end