exceptional_synchrony 1.0.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.dependabot/config.yml +10 -0
- data/.gitignore +2 -0
- data/.jenkins/Jenkinsfile +58 -0
- data/.jenkins/ruby_build_pod.yml +19 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +11 -1
- data/Gemfile.lock +116 -104
- data/Rakefile +11 -0
- data/exceptional_synchrony.gemspec +20 -22
- data/lib/exceptional_synchrony.rb +0 -1
- data/lib/exceptional_synchrony/callback_exceptions.rb +36 -4
- data/lib/exceptional_synchrony/event_machine_proxy.rb +71 -7
- data/lib/exceptional_synchrony/limited_work_queue.rb +29 -5
- data/lib/exceptional_synchrony/parallel_sync.rb +1 -0
- data/lib/exceptional_synchrony/version.rb +1 -1
- data/test/test_helper.rb +12 -0
- data/test/unit/callback_exceptions_test.rb +67 -15
- data/test/unit/event_machine_proxy_test.rb +132 -19
- data/test/unit/limited_work_queue_test.rb +221 -23
- data/test/unit/parallel_sync_test.rb +6 -6
- metadata +39 -90
- data/Thorfile +0 -42
data/Thorfile
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
require 'thor'
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift('lib')
|
4
|
-
|
5
|
-
class Dev < Thor
|
6
|
-
package_name 'dev'
|
7
|
-
|
8
|
-
desc 'test' , 'Run the entire test suite or a single file.'
|
9
|
-
method_options :file => :string, :n => :string
|
10
|
-
def test
|
11
|
-
|
12
|
-
ENV['RACK_ENV'] = 'test'
|
13
|
-
|
14
|
-
require 'bundler'
|
15
|
-
Bundler.setup(:default, :development)
|
16
|
-
|
17
|
-
require './test/test_helper.rb'
|
18
|
-
|
19
|
-
# Minitest is very bad and piggy backs on the Global arguments just like everyone else.
|
20
|
-
# Let's stop it from trying to parse Thor's arguments.
|
21
|
-
clear_args
|
22
|
-
|
23
|
-
add_args('-n', options[:n]) if options[:n]
|
24
|
-
|
25
|
-
# If we have a single file run it, otherwise run them all.
|
26
|
-
if single_file = options[:file]
|
27
|
-
require single_file
|
28
|
-
else
|
29
|
-
Dir.glob('./test/**/*_test.rb') { |f| require f }
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
private
|
34
|
-
def clear_args
|
35
|
-
ARGV.shift(ARGV.length)
|
36
|
-
end
|
37
|
-
|
38
|
-
def add_args(*args)
|
39
|
-
args.each { |arg| ARGV << arg }
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|