dalliance 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ module Dalliance
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 5
5
+ TINY = 6
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
data/lib/dalliance.rb CHANGED
@@ -47,9 +47,9 @@ module Dalliance
47
47
  state :processing_error
48
48
  state :completed
49
49
 
50
- event :queue_dalliance do
51
- transition :processing_error => :pending
52
- end
50
+ #event :queue_dalliance do
51
+ # transition :processing_error => :pending
52
+ #end
53
53
 
54
54
  event :start_dalliance do
55
55
  transition :pending => :processing
@@ -101,7 +101,7 @@ module Dalliance
101
101
  finish_dalliance!
102
102
  rescue StandardError => e
103
103
  #Save the error for future analysis...
104
- self.dalliance_error_hash = {:error => e, :message => e.message, :backtrace => e.backtrace}
104
+ self.dalliance_error_hash = {:error => e.class.name, :message => e.message, :backtrace => e.backtrace}
105
105
 
106
106
  error_dalliance!
107
107
 
@@ -65,7 +65,7 @@ describe DallianceModel do
65
65
  subject.reload
66
66
 
67
67
  subject.dalliance_error_hash.should_not be_empty
68
- subject.dalliance_error_hash[:error].should == RuntimeError.new
68
+ subject.dalliance_error_hash[:error].should == RuntimeError.name #We store the class name...
69
69
  subject.dalliance_error_hash[:message].should == 'RuntimeError'
70
70
  subject.dalliance_error_hash[:backtrace].should_not be_blank
71
71
  end
@@ -38,7 +38,7 @@ describe DallianceModel do
38
38
  expect { subject.dalliance_background_process }.to raise_error(RuntimeError)
39
39
 
40
40
  subject.dalliance_error_hash.should_not be_empty
41
- subject.dalliance_error_hash[:error].should == RuntimeError.new
41
+ subject.dalliance_error_hash[:error].should == RuntimeError.name #We store the class name...
42
42
  subject.dalliance_error_hash[:message].should == 'RuntimeError'
43
43
  subject.dalliance_error_hash[:backtrace].should_not be_blank
44
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dalliance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
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-26 00:00:00.000000000 Z
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord