saucy 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/lib/saucy/account.rb CHANGED
@@ -180,7 +180,6 @@ module Saucy
180
180
  self.customer_token = result.customer.id
181
181
  flush_cache :customer
182
182
  else
183
- p result.credit_card_verification
184
183
  verification = result.credit_card_verification
185
184
  if verification && verification.status == "processor_declined"
186
185
  errors[:card_number] << "was denied by the payment processor with the message: #{verification.processor_response_text}"
data/lib/saucy/engine.rb CHANGED
@@ -5,7 +5,10 @@ require "braintree"
5
5
  module Saucy
6
6
  class Engine < Rails::Engine
7
7
  config.saucy = Configuration.new
8
- Braintree::Configuration.logger = Rails.logger
8
+
9
+ initializer :braintree_logger, :after => :initialize_logger do
10
+ Braintree::Configuration.logger = Rails.logger
11
+ end
9
12
 
10
13
  {:short_date => "%x"}.each do |k, v|
11
14
  Time::DATE_FORMATS[k] = v
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 9
10
- version: 0.2.9
9
+ - 10
10
+ version: 0.2.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot, inc.