ruby-gpwebpay 0.0.2 → 0.0.3

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: 8c66ec822c799ec910c28ee98ba43fb4a106e1458ac9c4e12c419d3989e495c5
4
- data.tar.gz: 986bcd67283921d0c3c8122cf61d9b728ba0c7f3243e0ecc8cdcdd7f8f13416d
3
+ metadata.gz: 5f6c2c9d8a6a86478203414e6e6a5da3c0cb740518cabd80fa1899e8af99bc20
4
+ data.tar.gz: beed7d948bfa831b7ec7b3f9450c92f83001678b9f0a15c51905ec1d4437f6ef
5
5
  SHA512:
6
- metadata.gz: 6b73eb3b3191b1b2e25b536931fdbdc0eac14d4bc6783cb3460280a75a6173b6b7d0981bc9b9cf42f96f52a8ebdcd9caf6d0ae5cb9db2ed092a4dc248bc65b0d
7
- data.tar.gz: 7dd9b34112990ea1c058fa5818b6c5ad6df43241ec4780bf0f2a4cadbc46c020ef730b277c9a84c9fa7d8b7ad9e9d15b0cb0917a78c8c8e1cd5b848f37e6f6d9
6
+ metadata.gz: 8054c50b03e60d8e659793a9e2e6b3de8f796679f595265620561ebc076fa5e9e4752d696aca919c40810fff74eab8bd2e0267b5f201b4f1f28a33e176fba0bc
7
+ data.tar.gz: bfd11dc8894f4e5934c9a0caa3849b4c8e2eb2954e16ed2d19031003540d3221222a87125de193573e9e087946af9e7013b2f123b3f98d5d70c63b49df83e47e
data/lib/gp_webpay.rb CHANGED
@@ -6,4 +6,13 @@ require "gp_webpay/verification"
6
6
  require "gp_webpay/web_services"
7
7
 
8
8
  module GpWebpay
9
+ class << self
10
+ attr_writer :logger
11
+
12
+ def logger
13
+ @logger ||= Logger.new($stdout).tap do |log|
14
+ log.progname = self.name
15
+ end
16
+ end
17
+ end
9
18
  end
@@ -29,7 +29,10 @@ module GpWebpay
29
29
  def pay_url(options = {})
30
30
  self.redirect_url ||= options[:redirect_url]
31
31
 
32
- "#{config.pay_url}?#{pay_verification.payment_attributes_with_digest.to_param}"
32
+ generated_url = "#{config.pay_url}?#{pay_verification.payment_attributes_with_digest.to_param}"
33
+ GpWebpay.logger.info "Attributes user for URL generation: #{pay_verification.payment_attributes_with_digest}"
34
+ GpWebpay.logger.info "Produced URL: #{generated_url}"
35
+ generated_url
33
36
  end
34
37
 
35
38
  def success?(params)
@@ -1,3 +1,3 @@
1
1
  module GpWebpay
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-gpwebpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrej Antas