api-moip-assinaturas 0.1.2 → 0.1.3

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmU0OTczMDllZjYwMmQwZDE4NGZlMmVjZmU2ZTIwMjAzNDYwOTJkNA==
4
+ ZDkzMDZhZTQ4ZDY4MDkzNGFjOGQ4Nzc3MjQxMjZjMTVkNjljYjkyOA==
5
5
  data.tar.gz: !binary |-
6
- YTk0N2E4ZDc0M2E2YjYzZDk4ZDVkNjdhMzhkYzZhMGQ4MDMwMDQ2Zg==
6
+ YWI0ODk0NTc3MThhOTI0MmQxNzYwMDRlZTZiNGRhMmY1MjY5ZTJlNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTUzYjUyMDAzMTEzYTQ0MzFjYzc4ZjI3NmEyNzk2NGIxNmYzYjQ2ZGE0YWM4
10
- ZGVmNWIwOTg2YzI5NzFmMzNkZjVmY2YwYmNiZjNhZTkxODRjMWM1MzRkZTU4
11
- ZGEyYTA1MjFjNzU2NTJiNDU3NjkwODUyMzc0NGIxMjc1NTNjODE=
9
+ OGQ3MGQyN2NjZDFlZWIyZDdjMTMyMWE5NDkwNTA5ZjQwMzM0NjJmNzNlNjFj
10
+ MzkwZDA4MDFlOWFkODk2N2Y5OTI3OGVlMmZjN2Q0YTE4MjdkY2RlNmY0MzRk
11
+ OGJhMmRhNDdjOGU4OTQyNzIxMDE4ZTBmMmVhM2NlYzRiN2EyOTE=
12
12
  data.tar.gz: !binary |-
13
- ZmU4Nzg3MjE2YWJlYWViNWZjNmNlNzU0ZWM0NzBhOGY2YWNlNGUzMTE3NTBh
14
- NGRmMDkzZjk1NTYzN2ZhNGU4NzliN2Q0MmJlMWM0YmUzMjdkYmRhMzBjMzM5
15
- ZjQxYmY0OTcyZGJiYWZhZThjYjNmMzM0YmNmYzE5Nzg5MTRjOTI=
13
+ MzUwYzgwYjM0YzUzMGI0OWU3Y2U1MDlmYWU3ZWI4YmYxMjYzNTY5ODcwZmZk
14
+ N2E2ZDU3NTA5ZDIyZjA5NDU1YjAxYTk2ZWI1MWI4YWFkYjJkNTVhMzgzMzgw
15
+ ZDcyNzJjYjEwNDMyZGQyYmUyYzIyNDMxNWQxMWE3NDljMGRjNGE=
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'api-moip-assinaturas'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.date = '2013-06-10'
5
5
  s.summary = "Moip Assinaturas by Pixxel"
6
6
  s.description = "Gem desenvolvida para atender aos requisitos do moip api de assinaturas"
7
7
  s.authors = ["Douglas Rossignolli"]
8
8
  s.email = 'douglas@pixxel.net.br'
9
9
  s.homepage = 'http://pixxel.net.br'
10
- s.license = 'Apache Licence 2.0'
10
+ s.license = 'Apache Licence 2.0'
11
11
  s.files = Dir["{lib/**/*.rb,README.rdoc,test/**/*.rb,Rakefile,*.gemspec}"]
12
12
 
13
13
  s.required_ruby_version = '>= 1.9.3'
data/lib/moip.rb CHANGED
@@ -1,12 +1,17 @@
1
- require "httparty"
2
- require "json"
3
- require "active_model"
4
-
5
1
  module Moip
6
2
  end
7
3
 
8
4
  # imports para o statup
9
- Dir["#{Dir.pwd}/lib/moip/**.rb"].each { |file| require file }
10
-
11
- # require all models
12
- Dir["#{Dir.pwd}/lib/moip/models/**"].each { |file| require file }
5
+ require 'httparty'
6
+ require 'json'
7
+ require 'active_model'
8
+ require 'moip/header'
9
+ require 'moip/model'
10
+ require 'moip/webhooks'
11
+ require 'moip/models/address'
12
+ require 'moip/models/billing_info'
13
+ require 'moip/models/custumer'
14
+ require 'moip/models/invoice'
15
+ require 'moip/models/payment'
16
+ require 'moip/models/plan'
17
+ require 'moip/models/subscription'
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- class Moip::Costumer < Moip::Model
2
+ class Moip::Custumer < Moip::Model
3
3
  include HTTParty
4
4
  include Moip::Header
5
5
 
@@ -72,14 +72,14 @@ class Moip::Costumer < Moip::Model
72
72
  end
73
73
  end
74
74
 
75
- def costumers= hash
76
- @costumers = []
75
+ def custumers= hash
76
+ @custumers = []
77
77
  hash.each do |e|
78
78
  costumer = self.class.new
79
79
  costumer.set_parameters e
80
- @costumers << costumer
80
+ @custumers << costumer
81
81
  end
82
- @costumers
82
+ @custumers
83
83
  end
84
84
 
85
85
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-moip-assinaturas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Rossignolli
@@ -81,7 +81,7 @@ files:
81
81
  - lib/moip/model.rb
82
82
  - lib/moip/models/address.rb
83
83
  - lib/moip/models/billing_info.rb
84
- - lib/moip/models/costumer.rb
84
+ - lib/moip/models/custumer.rb
85
85
  - lib/moip/models/invoice.rb
86
86
  - lib/moip/models/payment.rb
87
87
  - lib/moip/models/plan.rb