solon 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ require 'cgi'
2
2
  module Solon
3
3
  class SagepayResponse
4
4
  def initialize(response)
5
- RAILS_DEFAULT_LOGGER.debug "Sagepay response: #{response}"
5
+ ::Rails.logger.debug "Sagepay response: #{response}"
6
6
  @response = response
7
7
  if @response.is_a?(String)
8
8
  response.split("\r\n").each do |line|
@@ -298,7 +298,7 @@ private
298
298
  end
299
299
 
300
300
  def commit!(action)
301
- RAILS_DEFAULT_LOGGER.debug "Sending Sagepay post to #{url_for(action)}:\n" +
301
+ ::Rails.logger.debug "Sending Sagepay post to #{url_for(action)}:\n" +
302
302
  "Post: #{@post.inspect}\n" +
303
303
  "Post data: #{@post.to_post_data}"
304
304
  response = Solon::Net::HttpsGateway.new(url_for(action), true, debug?).send({}, @post.to_post_data)
@@ -377,7 +377,7 @@ private
377
377
  end
378
378
 
379
379
  def log(method, options)
380
- RAILS_DEFAULT_LOGGER.debug "Called #{method} with options #{options.inspect}"
380
+ ::Rails.logger.debug "Called #{method} with options #{options.inspect}"
381
381
  end
382
382
 
383
383
  def requires!(hash, *params)
data/solon.gemspec CHANGED
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "solon"
7
- s.version = "0.0.4"
7
+ s.version = "0.0.5"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Alastair Brunton"]
10
10
  s.email = ["info@simplyexcited.co.uk"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solon
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alastair Brunton
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-14 00:00:00 +02:00
18
+ date: 2011-08-19 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21