payu-latam-rails 1.0.1 → 1.0.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: ab695588f47f805ae9fcfdbe6fe07a89c50825abef846f2b09d63dc9db197a57
4
- data.tar.gz: bcbe0d7845ec27787fb738693b8c8fcddb5700f6e189e1ded84c6880af242c70
3
+ metadata.gz: 0061ea83801b80849fdf12cc6b0a2c9d4a7e2586fe8a8b42a1d2c9557a73c3d5
4
+ data.tar.gz: 2ba2053f4de589d987fe4a4d37c3391713529fc9721e1c1225958c6e49ac7919
5
5
  SHA512:
6
- metadata.gz: 2ebdc92b65ec7c01afd049691bc8a725fa0b2f68ea4b3f064f3a7023c6f1798f4c2e3ce50e863250b8cacc56caa2b3c33c5e334f927b4475b898046c5e26176a
7
- data.tar.gz: 8883e768b586fc78965dc3382a4d56d82a788fdc0210b56ec401169d19f19a54c3d924aea46720724bb2c1e93b21cc3bb4d44e4eb5548b4e2bb4348192d2a479
6
+ metadata.gz: 6dfeea69ee41851817e90d31d7d6cfb5059a621ced63a1304018664f90c6f46eeddca3d043f3be4923990cd79b6f376ae22898c6d41c149359fc0ae41ea77de6
7
+ data.tar.gz: d16ae7bf110c6be116662bcc265586fac83728a2649697462944f21c2462feb78451a9e17d029bbd83fcc192a91aaf59df7cd38c6a1bc1a79fbef557080ad4bc
data/.rubocop.yml CHANGED
@@ -25,9 +25,6 @@ Style/SymbolArray:
25
25
  Style/WordArray:
26
26
  EnforcedStyle: brackets
27
27
 
28
- Style/ClassAndModuleChildren:
29
- EnforcedStyle: compact
30
-
31
28
  Layout/SpaceInsideHashLiteralBraces:
32
29
  Enabled: true
33
30
  EnforcedStyle: no_space
@@ -65,9 +62,6 @@ Style/TrailingCommaInHashLiteral:
65
62
  Style/TrailingCommaInArguments:
66
63
  EnforcedStyleForMultiline: comma
67
64
 
68
- Style/ClassAndModuleChildren:
69
- EnforcedStyle: compact
70
-
71
65
  Metrics/ParameterLists:
72
66
  Max: 5
73
67
 
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # PayU Latam Rails Library
2
2
 
3
+ [![CircleCI](https://circleci.com/gh/lengio/payu-latam-rails.svg?style=svg)](https://circleci.com/gh/lengio/payu-latam-rails)
4
+ [![Maintainability](https://api.codeclimate.com/v1/badges/b497ad8d66bf768501f4/maintainability)](https://codeclimate.com/github/lengio/payu-latam-rails/maintainability)
5
+
3
6
  ## Installation
4
7
 
5
8
  gem "payu-latam-rails", github: "lengio/payu-latam-rails", require: "pay_u_rails"
@@ -7,7 +10,16 @@
7
10
  # Local
8
11
  gem build payu-latam-rails.gemspec
9
12
 
10
- ## Subscribing with blocks
13
+ ## Usage
14
+
15
+ ### Mounting routes
16
+
17
+ ```ruby
18
+ # config/routes.rb
19
+ mount PayURails::Engine, at: "/pay_u", as: "pay_u"
20
+ ```
21
+
22
+ ### Subscribing with blocks
11
23
 
12
24
  ```ruby
13
25
  PayURails.subscribe(PayURails::Confirmation::EVENT) do |confirmation|
@@ -20,7 +32,7 @@ end
20
32
 
21
33
  ```
22
34
 
23
- ## Subscribing with objects
35
+ ### Subscribing with objects
24
36
 
25
37
  ```ruby
26
38
  class Subscriber
@@ -1,3 +1,5 @@
1
- class PayURails::Engine < ::Rails::Engine
2
- isolate_namespace PayURails
1
+ module PayURails
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace PayURails
4
+ end
3
5
  end
@@ -1,2 +1,3 @@
1
- class PayURails::SignatureVerificationError < StandardError
1
+ module PayURails
2
+ class SignatureVerificationError < StandardError; end
2
3
  end
@@ -1,3 +1,3 @@
1
1
  module PayURails
2
- VERSION = "1.0.1".freeze
2
+ VERSION = "1.0.2".freeze
3
3
  end
data/lib/pay_u_rails.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "active_support/notifications"
1
2
  require "pay_u"
2
3
 
3
4
  require "pay_u_rails/errors"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payu-latam-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slang