moip-assinaturas 0.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.
Files changed (38) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/Guardfile +11 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +180 -0
  6. data/Rakefile +1 -0
  7. data/lib/moip-assinaturas/client.rb +99 -0
  8. data/lib/moip-assinaturas/customer.rb +59 -0
  9. data/lib/moip-assinaturas/invoice.rb +38 -0
  10. data/lib/moip-assinaturas/payment.rb +38 -0
  11. data/lib/moip-assinaturas/plan.rb +59 -0
  12. data/lib/moip-assinaturas/subscription.rb +84 -0
  13. data/lib/moip-assinaturas/version.rb +5 -0
  14. data/lib/moip-assinaturas.rb +33 -0
  15. data/lib/rails/generators/moip_assinaturas/install_generator.rb +14 -0
  16. data/lib/rails/generators/templates/moip_assinaturas.rb +5 -0
  17. data/moip-assinaturas.gemspec +28 -0
  18. data/spec/fixtures/create_customer.json +3 -0
  19. data/spec/fixtures/create_plan.json +12 -0
  20. data/spec/fixtures/create_subscription.json +36 -0
  21. data/spec/fixtures/details_customer.json +34 -0
  22. data/spec/fixtures/details_invoice.json +36 -0
  23. data/spec/fixtures/details_payment.json +34 -0
  24. data/spec/fixtures/details_plan.json +14 -0
  25. data/spec/fixtures/details_subscription.json +32 -0
  26. data/spec/fixtures/list_customers.json +15 -0
  27. data/spec/fixtures/list_invoices.json +23 -0
  28. data/spec/fixtures/list_payments.json +32 -0
  29. data/spec/fixtures/list_plans.json +18 -0
  30. data/spec/fixtures/list_subscriptions.json +35 -0
  31. data/spec/moip-assinaturas/customer_spec.rb +76 -0
  32. data/spec/moip-assinaturas/invoice_spec.rb +35 -0
  33. data/spec/moip-assinaturas/payment_spec.rb +36 -0
  34. data/spec/moip-assinaturas/plan_spec.rb +61 -0
  35. data/spec/moip-assinaturas/subscription_spec.rb +83 -0
  36. data/spec/moip_assinaturas_spec.rb +15 -0
  37. data/spec/spec_helper.rb +18 -0
  38. metadata +230 -0
@@ -0,0 +1,18 @@
1
+ require 'rspec'
2
+ require 'fakeweb'
3
+ require 'pry'
4
+ require 'moip-assinaturas'
5
+
6
+ FakeWeb.allow_net_connect = false
7
+
8
+ RSpec.configure do |config|
9
+ config.color_enabled = true
10
+ config.formatter = 'documentation'
11
+
12
+ config.before(:suite) do
13
+ Moip::Assinaturas.config do |config|
14
+ config.token = "TOKEN"
15
+ config.key = "KEY"
16
+ end
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,230 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: moip-assinaturas
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Warlley
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '2.13'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.13'
30
+ - !ruby/object:Gem::Dependency
31
+ name: guard-rspec
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 2.5.4
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.5.4
46
+ - !ruby/object:Gem::Dependency
47
+ name: growl
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.0.3
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.3
62
+ - !ruby/object:Gem::Dependency
63
+ name: fakeweb
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.3.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.3.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: pry
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '0.9'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '0.9'
94
+ - !ruby/object:Gem::Dependency
95
+ name: httparty
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 0.11.0
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.11.0
110
+ - !ruby/object:Gem::Dependency
111
+ name: activesupport
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: 2.3.2
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 2.3.2
126
+ - !ruby/object:Gem::Dependency
127
+ name: json
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '1.7'
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '1.7'
142
+ description: Ruby Gem para uso do serviço de assinaturas do Moip
143
+ email:
144
+ - warlleyrezende@gmail.com
145
+ executables: []
146
+ extensions: []
147
+ extra_rdoc_files: []
148
+ files:
149
+ - .gitignore
150
+ - Gemfile
151
+ - Guardfile
152
+ - LICENSE.txt
153
+ - README.md
154
+ - Rakefile
155
+ - lib/moip-assinaturas.rb
156
+ - lib/moip-assinaturas/client.rb
157
+ - lib/moip-assinaturas/customer.rb
158
+ - lib/moip-assinaturas/invoice.rb
159
+ - lib/moip-assinaturas/payment.rb
160
+ - lib/moip-assinaturas/plan.rb
161
+ - lib/moip-assinaturas/subscription.rb
162
+ - lib/moip-assinaturas/version.rb
163
+ - lib/rails/generators/moip_assinaturas/install_generator.rb
164
+ - lib/rails/generators/templates/moip_assinaturas.rb
165
+ - moip-assinaturas.gemspec
166
+ - spec/fixtures/create_customer.json
167
+ - spec/fixtures/create_plan.json
168
+ - spec/fixtures/create_subscription.json
169
+ - spec/fixtures/details_customer.json
170
+ - spec/fixtures/details_invoice.json
171
+ - spec/fixtures/details_payment.json
172
+ - spec/fixtures/details_plan.json
173
+ - spec/fixtures/details_subscription.json
174
+ - spec/fixtures/list_customers.json
175
+ - spec/fixtures/list_invoices.json
176
+ - spec/fixtures/list_payments.json
177
+ - spec/fixtures/list_plans.json
178
+ - spec/fixtures/list_subscriptions.json
179
+ - spec/moip-assinaturas/customer_spec.rb
180
+ - spec/moip-assinaturas/invoice_spec.rb
181
+ - spec/moip-assinaturas/payment_spec.rb
182
+ - spec/moip-assinaturas/plan_spec.rb
183
+ - spec/moip-assinaturas/subscription_spec.rb
184
+ - spec/moip_assinaturas_spec.rb
185
+ - spec/spec_helper.rb
186
+ homepage: https://github.com/ibody/moip-assinaturas
187
+ licenses: []
188
+ post_install_message:
189
+ rdoc_options: []
190
+ require_paths:
191
+ - lib
192
+ required_ruby_version: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ required_rubygems_version: !ruby/object:Gem::Requirement
199
+ none: false
200
+ requirements:
201
+ - - ! '>='
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ requirements: []
205
+ rubyforge_project:
206
+ rubygems_version: 1.8.24
207
+ signing_key:
208
+ specification_version: 3
209
+ summary: Ruby Gem para uso do serviço de assinaturas do Moip
210
+ test_files:
211
+ - spec/fixtures/create_customer.json
212
+ - spec/fixtures/create_plan.json
213
+ - spec/fixtures/create_subscription.json
214
+ - spec/fixtures/details_customer.json
215
+ - spec/fixtures/details_invoice.json
216
+ - spec/fixtures/details_payment.json
217
+ - spec/fixtures/details_plan.json
218
+ - spec/fixtures/details_subscription.json
219
+ - spec/fixtures/list_customers.json
220
+ - spec/fixtures/list_invoices.json
221
+ - spec/fixtures/list_payments.json
222
+ - spec/fixtures/list_plans.json
223
+ - spec/fixtures/list_subscriptions.json
224
+ - spec/moip-assinaturas/customer_spec.rb
225
+ - spec/moip-assinaturas/invoice_spec.rb
226
+ - spec/moip-assinaturas/payment_spec.rb
227
+ - spec/moip-assinaturas/plan_spec.rb
228
+ - spec/moip-assinaturas/subscription_spec.rb
229
+ - spec/moip_assinaturas_spec.rb
230
+ - spec/spec_helper.rb