pagseguro_next 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pagseguro/api.rb +2 -2
- data/lib/pagseguro/version.rb +1 -1
- data/lib/pagseguro.rb +6 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab1345a3c978f3b37d56fdd44f48f4a6ad030a09371efb830b1e73a1a2dfd835
|
4
|
+
data.tar.gz: 0eed9cc525bb3cd05f7f69ed67f2e919727be43c9bc3c1115e97904466344e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3dfebaa61f0800f471beff71fc27bda71e8bde80f0265c1e16af9ef3714289300fbd1c3c17c8ccd8dcedb80f23f653d457e53f75d96ff1f0df9ff84d3ff8c8d
|
7
|
+
data.tar.gz: a4b605dfacb055602641d238dc4ac6b9b2351f3dfbaf47e2f9c4a80f46df03ea263b21983516b7f4aaf211ce2d9be07d4b65130110a62b0bf20d7d62aae5e526
|
data/lib/pagseguro/api.rb
CHANGED
@@ -59,11 +59,11 @@ module PagSeguro
|
|
59
59
|
private
|
60
60
|
|
61
61
|
def site_url
|
62
|
-
PagSeguro.uris[environment][:site]
|
62
|
+
PagSeguro.uris[environment.to_sym][:site]
|
63
63
|
end
|
64
64
|
|
65
65
|
def api_url
|
66
|
-
PagSeguro.uris[environment][:api]
|
66
|
+
PagSeguro.uris[environment.to_sym][:api]
|
67
67
|
end
|
68
68
|
|
69
69
|
def environment
|
data/lib/pagseguro/version.rb
CHANGED
data/lib/pagseguro.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require "pagseguro/version"
|
2
1
|
require "hashie"
|
3
2
|
require "active_support/core_ext/string/inflections"
|
4
3
|
require "active_support/core_ext/module/delegation"
|
5
4
|
require "active_support/core_ext/hash/reverse_merge"
|
6
5
|
require "active_support/core_ext/string/conversions"
|
7
6
|
require "active_support/core_ext/object/json"
|
7
|
+
require "active_support/core_ext/module/attribute_accessors"
|
8
8
|
|
9
9
|
module PagSeguro
|
10
10
|
autoload :API, "pagseguro/api"
|
@@ -23,13 +23,11 @@ module PagSeguro
|
|
23
23
|
xml: "application/xml;charset=ISO-8859-1"
|
24
24
|
}
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
attr_accessor :environment
|
32
|
-
end
|
26
|
+
mattr_accessor :token
|
27
|
+
mattr_accessor :email
|
28
|
+
mattr_accessor :app_id
|
29
|
+
mattr_accessor :app_key
|
30
|
+
mattr_accessor :environment
|
33
31
|
|
34
32
|
def self.configure(&block)
|
35
33
|
instance_eval(&block)
|