applix 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class Applix
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.8'
3
3
  end
data/spec/applix_spec.rb CHANGED
@@ -116,22 +116,20 @@ describe Applix do
116
116
  end
117
117
 
118
118
  it 'runs epilog callback after handle' do
119
- t_handle = Applix.main([:func]) do
119
+ last_action = nil
120
+ Applix.main([:func]) do
120
121
  epilog { |rc, *_|
121
- sleep 0.1
122
- $t_post_handle = Time.now
123
- rc
122
+ # handle was already executed
123
+ last_action.should == :handle
124
+ last_action = :epilog
124
125
  }
125
126
  handle(:func) {
126
127
  # epilog block should not have been executed yet
127
- $t_post_handle.should == nil
128
- Time.now
128
+ last_action.should == nil
129
+ last_action = :handle
129
130
  }
130
131
  end
131
- t_handle.should_not == nil
132
- $t_post_handle.should_not == nil
133
- #(t_handle < $t_post_handle).should == true
134
- t_handle.should be < $t_post_handle
132
+ last_action.should == :epilog
135
133
  end
136
134
 
137
135
  it 'supports :any as fallback on command lines without matching task' do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: applix
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.7
5
+ version: 0.4.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - art+com/dirk luesebrink