unlock_moip 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: cc03ae3313500f874e417d7619bc987909b4bcbb
4
- data.tar.gz: d76184ef2694455bd5f0fadcf76cd36cf4f64447
3
+ metadata.gz: afa68909a87099db0c34020e64ca5a3bc53b3b9f
4
+ data.tar.gz: 6269e37354eb9438ac41326dfb459acecf512942
5
5
  SHA512:
6
- metadata.gz: 75581b94b79d765e89184c0f171931384b0d9c6d6bb1b5a1271cb788b5a5e24003b5dc38ebf67a0b33edd0548a3cd80518c838b8c8ee66b865d60561581938f7
7
- data.tar.gz: bd85f97f2736af5f1ee49cd474c81650e97c4d5289b2e6de00846a8e34379901b9023a30321ec8da0ff7ed3d3ff49e0e71509080235d0dfd5d9d348ea241d5a0
6
+ metadata.gz: e7fece2ca536bf8c8426d7e0f639c94d72791d0b14a7cd3435eef7e19cd75e4cb30c4a4b56d8427e2a11bd7e8ba4ba4d6804db66121bbf2560ae3b5797b5246c
7
+ data.tar.gz: 73128967004a22bda7ab476a1fc58ca63dc7c22f73a91490d73112baed05429e49676c32e49abce22f5ea456a07fbd8679db2c620a1f9c95a3a9bd19a85253a6
@@ -8,7 +8,7 @@
8
8
  = user_fields.label :full_name
9
9
  = user_fields.text_field :full_name
10
10
  .field.document
11
- = user_fields.label :document
11
+ = user_fields.label :document, "CPF"
12
12
  = user_fields.text_field :document
13
13
  .field.birthdate
14
14
  = user_fields.label :birthdate
@@ -1,7 +1,12 @@
1
1
  - content_for :title do
2
2
  = "Dados de pagamento"
3
3
  - content_for :external_js do
4
- script type="text/javascript" src="https://#{( @contribution.gateway.sandbox? ? 'sandbox' : 'api' )}.moip.com.br/moip-assinaturas.min.js"
4
+ / TODO get back to using JS from moip.com.br for production, whenever it's working
5
+ / script type="text/javascript" src="https://#{( @contribution.gateway.sandbox? ? 'sandbox' : 'api' )}.moip.com.br/moip-assinaturas.min.js"
6
+ - if @contribution.gateway.sandbox?
7
+ script type="text/javascript" src="https://sandbox.moip.com.br/moip-assinaturas.min.js"
8
+ - else
9
+ = javascript_include_tag '/moip-assinaturas.min.js'
5
10
  = form_for @contribution, url: activate_moip_contribution_path(@contribution), method: :put, html: { style: 'display: none'} do |form|
6
11
  form#pay_form autocomplete="off" data-token=@contribution.gateway.settings["token"] data-plan=@contribution.plan_code data-customer=@contribution.customer_code data-subscription=@contribution.subscription_code
7
12
  = render partial: 'initiatives/contributions/sandbox_warning', locals: { gateway: @contribution.gateway }
@@ -22,7 +27,7 @@ form#pay_form autocomplete="off" data-token=@contribution.gateway.settings["toke
22
27
  = label_tag :terms, "Eu li e aceito os #{ link_to 'termos de uso', page_path('terms'), target: :_blank }.".html_safe
23
28
  h4.value
24
29
  = "Apoio de "
25
- span= "R$ #{@contribution.display_value},00"
30
+ span= @contribution.display_value
26
31
  = "/mês"
27
32
  .gateway_data
28
33
  .submit= submit_tag "Confirmar pagamento"
@@ -1,3 +1,3 @@
1
1
  module UnlockMoip
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unlock_moip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Weinmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-09 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.0
33
+ version: 0.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.0
40
+ version: 0.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: moip-assinaturas
43
43
  requirement: !ruby/object:Gem::Requirement