sisow 1.1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sisow (1.1.0)
4
+ sisow (1.1.1)
5
5
  crack
6
6
  hashie
7
7
  httpi
@@ -1,10 +1,6 @@
1
1
  = Sisow
2
2
  {<img src="https://secure.travis-ci.org/marceldegraaf/sisow.png" />}[http://travis-ci.org/marceldegraaf/sisow]
3
3
 
4
- *WARNING* There is an issue in the <tt>httparty</tt> gem that breaks the <tt>debug_mode</tt> of this Sisow gem. The only work-around at this time is to not enable <tt>debug_mode</tt>. I'll keep an eye on the <tt>httparty</tt> issue and update the Readme if anything changes. Sorry for the inconvenience.
5
-
6
- -------
7
-
8
4
  This gem provides an interface to interact with the Sisow payment provider. Sisow offers payments through the iDeal (Dutch),
9
5
  Bancontact/Mister Cash (Belgian) and Sofort (German) online payment systems.
10
6
 
@@ -38,6 +38,14 @@ module Sisow
38
38
  @status == 'Failure'
39
39
  end
40
40
 
41
+ def pending?
42
+ @status == 'Pending'
43
+ end
44
+
45
+ def reversed?
46
+ @status == 'Reversed'
47
+ end
48
+
41
49
  private
42
50
 
43
51
  def valid_callback
@@ -1,3 +1,3 @@
1
1
  module Sisow
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2"
3
3
  end
@@ -68,6 +68,16 @@ describe Sisow::Api::Callback do
68
68
  @callback.status = 'Failure'
69
69
  @callback.failure?.should == true
70
70
  end
71
+
72
+ it "should be pending" do
73
+ @callback.status = 'Pending'
74
+ @callback.pending?.should == true
75
+ end
76
+
77
+ it "should be reversed" do
78
+ @callback.status = 'Reversed'
79
+ @callback.reversed?.should == true
80
+ end
71
81
  end
72
82
 
73
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sisow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: '1.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-08 00:00:00.000000000 Z
12
+ date: 2012-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpi
@@ -235,3 +235,4 @@ test_files:
235
235
  - spec/sisow.yml.example
236
236
  - spec/spec_helper.rb
237
237
  - spec/vcr_setup.rb
238
+ has_rdoc: