sisow 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sisow (0.9.3)
4
+ sisow (0.9.4)
5
5
  hashie
6
6
  httparty
7
7
 
@@ -18,6 +18,7 @@ module Sisow
18
18
  end
19
19
 
20
20
  def validate!
21
+ return true if valid_callback == true
21
22
  raise Sisow::Exception, "This callback is forged" and return if valid_callback == false
22
23
  end
23
24
 
data/lib/sisow/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sisow
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
@@ -34,6 +34,7 @@ describe Sisow::Api::Callback do
34
34
 
35
35
  @callback.valid?.should == true
36
36
  lambda { @callback.validate! }.should_not raise_error
37
+ @callback.validate!.should == true
37
38
  end
38
39
 
39
40
  it "should raise an error when invalid" do
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: 0.9.4
4
+ version: 0.9.5
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-06-04 00:00:00.000000000 Z
12
+ date: 2012-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty