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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d809b8bae61f471fdaf8452d62055e7fd12b8456c85c00228fa142366aaa61bf
4
- data.tar.gz: 4639e344cf4951a77730140f90776e06b992c2d9670e07dc38a5c9a8d1202701
3
+ metadata.gz: ab1345a3c978f3b37d56fdd44f48f4a6ad030a09371efb830b1e73a1a2dfd835
4
+ data.tar.gz: 0eed9cc525bb3cd05f7f69ed67f2e919727be43c9bc3c1115e97904466344e1e
5
5
  SHA512:
6
- metadata.gz: 761d6f2f5fbe1fa335bfb00d743119dbb2d91c3ca69450314249b542da1146891ce3accfff22b3689abedbad9566e068220c466aa4142f83f9016ccb77f04556
7
- data.tar.gz: 8db1410512a170c4ebeac345a7fa137e2ccadaf85434802da134996c3e6bc9e83d6feb88fc1df3e1c764efc0a66d43792c241b57b59d036e6756d2c7a3eac971
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
@@ -1,3 +1,3 @@
1
1
  module PagSeguro
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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
- class << self
27
- attr_accessor :token
28
- attr_accessor :email
29
- attr_accessor :app_id
30
- attr_accessor :app_key
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagseguro_next
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rainer Borene