catarse_iugu 0.1.1 → 0.1.2

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: 36dd7248622e5c1ee67f45632cf49c819cb90004
4
- data.tar.gz: 519c7d48888ec43ca967c044e87ee632bbf90f7e
3
+ metadata.gz: 8e2f6e9068fbb86ce2cf0a467effcf15f815de17
4
+ data.tar.gz: 1e338c05a38a86e4da7ad6e7fbaf9b030d37a5d6
5
5
  SHA512:
6
- metadata.gz: a1ce84119e8052ddb9e7912a26ce28570db6468586e1965c0a7fb7103f4cbeba446e07f7d9f2715e52d7aa4cb843e439f5871340f935dbeec3e2cb07c72344cd
7
- data.tar.gz: 68a49262d0ecef283164fd772b77468b38bf6009bb7723d4166776a1d0b16c74f0cc87bee6df5dca896fdcab72948daf1d303cc1c0f05c01a173eaa0ed41b908
6
+ metadata.gz: ca4822fdf35c5431891ac89c7168ed46da35e818d0b14549a1bb9c46030f4d03c9327c35d306ff5b7212c2ca082828ab0a94bf3cd1615df57068e144f6f8c946
7
+ data.tar.gz: 03e8f10619644b90a4c0de61f37c3d3d92585ac53c48116fa187014a99b26b9c31ad471ab9307227854ba53cecdcf7ed025ef5e2721ce57f725efbbd65cfce1a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_iugu (0.1.1)
4
+ catarse_iugu (0.1.2)
5
5
  iugu
6
6
  rails (~> 4.1)
7
7
  slim-rails
@@ -1,5 +1,5 @@
1
1
  $(window).bind("load", function() {
2
- Iugu.setAccountID("671e7c16-950b-4de4-9b29-2f441d66cd2c");
2
+ Iugu.setAccountID(IUGU_ACCOUNT_ID);
3
3
  Iugu.setTestMode(true);
4
4
  Iugu.setup();
5
5
  });
@@ -12,7 +12,6 @@ jQuery(function($) {
12
12
 
13
13
  function tokenResponseHandler(data) {
14
14
  if (data.errors) {
15
- // console.log(data.errors);
16
15
  alert("Erro salvando cartão: " + JSON.stringify(data.errors));
17
16
  } else {
18
17
  $("#token").val( data.id );
@@ -1,4 +1,6 @@
1
1
  = javascript_include_tag 'https://js.iugu.com/v2', id: 'iugu-script'
2
+ javascript:
3
+ var IUGU_ACCOUNT_ID = "#{PaymentEngines.configuration[:iugu_account_id]}";
2
4
  = javascript_include_tag 'catarse_iugu'
3
5
  = stylesheet_link_tag 'catarse_iugu'
4
6
 
@@ -1,3 +1,3 @@
1
1
  module CatarseIugu
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_iugu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mrodrigues