nimbleshop_core 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,4 +21,19 @@ class PaymentMethod < ActiveRecord::Base
21
21
  def self.partialize
22
22
  name.gsub("PaymentMethod::","").underscore
23
23
  end
24
+
25
+ # return true if payment method is running in live mode
26
+ def live_mode?
27
+ !test_mode?
28
+ end
29
+
30
+ # return true if payment method is running in test mode
31
+ def test_mode?
32
+ self.mode == 'test'
33
+ end
34
+
35
+ def self.current
36
+ self.first
37
+ end
38
+
24
39
  end
@@ -2,7 +2,7 @@ module Nimbleshop
2
2
  class Version
3
3
  @major = 0
4
4
  @minor = 0
5
- @tiny = 15
5
+ @tiny = 16
6
6
  @build = nil
7
7
 
8
8
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimbleshop_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-06 00:00:00.000000000 Z
13
+ date: 2012-12-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -1124,7 +1124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1124
1124
  version: '0'
1125
1125
  segments:
1126
1126
  - 0
1127
- hash: 3031458218126188821
1127
+ hash: 1375088172897275155
1128
1128
  requirements: []
1129
1129
  rubyforge_project:
1130
1130
  rubygems_version: 1.8.24