micropayment 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -15,7 +15,7 @@ module Micropayment
15
15
  ensure_api_key!
16
16
  data[:action] = method
17
17
  data[:accessKey] = Config.api_key
18
- data[:testMode] ||= Config.sandbox || 0
18
+ data[:testMode] ||= Config.sandbox_param
19
19
  data.delete_if {|k,v| v.nil? }
20
20
  uri = Addressable::URI.parse(url)
21
21
  uri.query_values = data
@@ -8,6 +8,10 @@ module Micropayment
8
8
 
9
9
  class << self
10
10
  attr_accessor *VALID_OPTION_KEYS
11
+
12
+ def sandbox_param
13
+ sandbox ? 1 : nil
14
+ end
11
15
  end
12
16
 
13
17
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "micropayment"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jan Schwenzien"]
12
- s.date = "2012-05-19"
12
+ s.date = "2012-05-22"
13
13
  s.description = "Implements the NameValuePair API provided by micropayment.de"
14
14
  s.email = "jan@general-scripting.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micropayment
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Schwenzien
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-19 00:00:00 Z
18
+ date: 2012-05-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime