duck_test 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/duck_test/config.rb +7 -7
- data/lib/duck_test/frame_work/file_manager.rb +1 -1
- data/lib/duck_test/frame_work/map.rb +2 -2
- data/lib/duck_test/platforms/listener.rb +1 -1
- data/lib/duck_test/version.rb +1 -1
- metadata +37 -38
- data/lib/tasks/duck_tests.rake +0 -37
- data/lib/tasks/gem_tasks.rake +0 -18
data/lib/duck_test/config.rb
CHANGED
@@ -431,13 +431,13 @@ module DuckTest
|
|
431
431
|
# watch ["models**/*", "controllers**/*"]
|
432
432
|
#
|
433
433
|
# @overload watch(pattern, included, options = {}, &block)
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
440
|
-
#
|
434
|
+
# @param [String] pattern Pattern is compliant with {http://ruby-doc.org/core-1.9.3/Dir.html#method-c-glob}
|
435
|
+
# @param [String] included
|
436
|
+
# @param [Hash] options Options hash for watch list configurations.
|
437
|
+
# - :included See {FrameWork::FilterSet#included}
|
438
|
+
# - :included_dirs See {FrameWork::FilterSet#included_dirs}
|
439
|
+
# - :excluded See {FrameWork::FilterSet#excluded}
|
440
|
+
# - :excluded_dirs See {FrameWork::FilterSet#excluded_dirs}
|
441
441
|
# @return [NilClass]
|
442
442
|
def watch(*args, &block)
|
443
443
|
|
@@ -160,7 +160,7 @@ module DuckTest
|
|
160
160
|
# Searches for runnable files mapped to a single non-runnable file.
|
161
161
|
# See {file:MAPS.md} for details and examples.
|
162
162
|
# @param [String] file_spec A full file specification including path that also adheres to {http://ruby-doc.org/core-1.9.3/File.html#method-c-basename File.basename}.
|
163
|
-
# @param [WatchConfig] The watch configuration object that is associated with the file spec within {#white_list}.
|
163
|
+
# @param [WatchConfig] watch_config The watch configuration object that is associated with the file spec within {#white_list}.
|
164
164
|
# @return [Array] A list of runnable files.
|
165
165
|
def find_runnable_files(file_spec, watch_config)
|
166
166
|
list = []
|
@@ -55,7 +55,7 @@ module DuckTest
|
|
55
55
|
# @option options [String] :runnable_basedir See {DuckTest::ConfigHelper#runnable_basedir}
|
56
56
|
# @option options [String] :sub_directory See {#sub_directory}
|
57
57
|
# @option options [String] :watch_basedir See {DuckTest::ConfigHelper#watch_basedir}
|
58
|
-
# @param [Block]
|
58
|
+
# @param [Block] block A standard Ruby code block.
|
59
59
|
# @return [Map]
|
60
60
|
def initialize(sub_directory = nil, file_name = nil, options = {}, &block)
|
61
61
|
super()
|
@@ -94,7 +94,7 @@ module DuckTest
|
|
94
94
|
# watch_basedir and runnable_basedir at the top of a config file and have those values be used for all mappings.
|
95
95
|
#
|
96
96
|
# @param [Hash] options See {#initialize}
|
97
|
-
# @param [Block]
|
97
|
+
# @param [Block] block A standard Ruby code block.
|
98
98
|
# @return [Map] The recently created Map object.
|
99
99
|
def target(sub_directory = nil, file_name = nil, options = {}, &block)
|
100
100
|
options = sub_directory.kind_of?(Hash) ? sub_directory : options
|
@@ -64,7 +64,7 @@ module DuckTest
|
|
64
64
|
|
65
65
|
##################################################################################
|
66
66
|
# Executes the block assigned via {Listener#listener_event}
|
67
|
-
# @param [WatchEvent] A {WatchEvent} object that will be passed to the block when executed.
|
67
|
+
# @param [WatchEvent] event A {WatchEvent} object that will be passed to the block when executed.
|
68
68
|
# @return [Object] The value returned by the block.
|
69
69
|
def call_listener_event(event)
|
70
70
|
value = nil
|
data/lib/duck_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: duck_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
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:
|
12
|
+
date: 2013-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: DuckTest is a gem that facilitates automated running of TestUnit and
|
15
15
|
RSpec tests directly in the IRB console. Tests run within a second of being changed.
|
@@ -20,51 +20,49 @@ executables:
|
|
20
20
|
extensions: []
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
|
-
- lib/
|
24
|
-
- lib/
|
25
|
-
- lib/
|
26
|
-
- lib/duck_test.rb
|
23
|
+
- lib/duck_test/platforms/os_helper.rb
|
24
|
+
- lib/duck_test/platforms/listener.rb
|
25
|
+
- lib/duck_test/platforms/mac/listener.rb
|
26
|
+
- lib/duck_test/platforms/mac/base.rb
|
27
|
+
- lib/duck_test/platforms/mac/listener.rb.orig
|
28
|
+
- lib/duck_test/platforms/linux/listener.rb
|
29
|
+
- lib/duck_test/platforms/linux/base.rb
|
30
|
+
- lib/duck_test/platforms/base.rb
|
31
|
+
- lib/duck_test/platforms/dependencies.rb
|
32
|
+
- lib/duck_test/platforms/windows/listener.rb
|
33
|
+
- lib/duck_test/platforms/windows/base.rb
|
34
|
+
- lib/duck_test/platforms/generic/listener.rb
|
35
|
+
- lib/duck_test/platforms/generic/base.rb
|
36
|
+
- lib/duck_test/platforms/watch_event.rb
|
27
37
|
- lib/duck_test/logger.rb
|
28
38
|
- lib/duck_test/base.rb
|
29
|
-
- lib/duck_test/
|
30
|
-
- lib/duck_test/
|
31
|
-
- lib/duck_test/
|
39
|
+
- lib/duck_test/version.rb
|
40
|
+
- lib/duck_test/console.rb
|
41
|
+
- lib/duck_test/usage.rb
|
32
42
|
- lib/duck_test/autorun.rb
|
33
|
-
- lib/duck_test/
|
43
|
+
- lib/duck_test/usage.yml
|
44
|
+
- lib/duck_test/default_config.rb
|
34
45
|
- lib/duck_test/frame_work/watch_config.rb
|
46
|
+
- lib/duck_test/frame_work/test_unit/frame_work.rb
|
47
|
+
- lib/duck_test/frame_work/test_unit/base.rb
|
35
48
|
- lib/duck_test/frame_work/base.rb
|
36
|
-
- lib/duck_test/frame_work/
|
37
|
-
- lib/duck_test/frame_work/
|
49
|
+
- lib/duck_test/frame_work/filter_set.rb
|
50
|
+
- lib/duck_test/frame_work/map.rb
|
38
51
|
- lib/duck_test/frame_work/file_manager.rb
|
39
|
-
- lib/duck_test/frame_work/rspec/base.rb
|
40
52
|
- lib/duck_test/frame_work/rspec/frame_work.rb
|
41
|
-
- lib/duck_test/frame_work/
|
42
|
-
- lib/duck_test/frame_work/
|
43
|
-
- lib/duck_test/frame_work/
|
44
|
-
- lib/duck_test/usage.rb
|
45
|
-
- lib/duck_test/usage.yml
|
46
|
-
- lib/duck_test/config.rb
|
47
|
-
- lib/duck_test/console.rb
|
48
|
-
- lib/duck_test/option_parser.rb
|
49
|
-
- lib/duck_test/default_config.rb
|
53
|
+
- lib/duck_test/frame_work/rspec/base.rb
|
54
|
+
- lib/duck_test/frame_work/queue_event.rb
|
55
|
+
- lib/duck_test/frame_work/queue.rb
|
50
56
|
- lib/duck_test/config_helper.rb
|
51
|
-
- lib/duck_test/run_commands.rb
|
52
57
|
- lib/duck_test/gem/helper.rb
|
53
|
-
- lib/duck_test/
|
54
|
-
- lib/duck_test/
|
55
|
-
- lib/duck_test/
|
56
|
-
- lib/duck_test/
|
57
|
-
- lib/duck_test/
|
58
|
-
- lib/duck_test/
|
59
|
-
- lib/duck_test
|
60
|
-
- lib/
|
61
|
-
- lib/duck_test/platforms/windows/listener.rb
|
62
|
-
- lib/duck_test/platforms/os_helper.rb
|
63
|
-
- lib/duck_test/platforms/mac/base.rb
|
64
|
-
- lib/duck_test/platforms/mac/listener.rb.orig
|
65
|
-
- lib/duck_test/platforms/mac/listener.rb
|
66
|
-
- lib/duck_test/platforms/linux/base.rb
|
67
|
-
- lib/duck_test/platforms/linux/listener.rb
|
58
|
+
- lib/duck_test/config.rb
|
59
|
+
- lib/duck_test/run_commands.rb
|
60
|
+
- lib/duck_test/option_parser.rb
|
61
|
+
- lib/duck_test/railtie.rb
|
62
|
+
- lib/duck_test/commands.rb
|
63
|
+
- lib/duck_test/autoload_config.rb
|
64
|
+
- lib/duck_test.rb
|
65
|
+
- lib/notes.txt
|
68
66
|
- bin/ducktest
|
69
67
|
homepage: http://www.jeffduckett.com/
|
70
68
|
licenses: []
|
@@ -91,3 +89,4 @@ signing_key:
|
|
91
89
|
specification_version: 3
|
92
90
|
summary: DuckTest runs TestUnit and RSpec tests directly in the IRB console.
|
93
91
|
test_files: []
|
92
|
+
has_rdoc:
|
data/lib/tasks/duck_tests.rake
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
require 'logger'
|
2
|
-
|
3
|
-
namespace :test do
|
4
|
-
|
5
|
-
desc "Removes all of the test files using rake test:prepare"
|
6
|
-
task :clean do
|
7
|
-
$:.unshift File.expand_path("spec")
|
8
|
-
require "test_files"
|
9
|
-
TestFiles.clean
|
10
|
-
end
|
11
|
-
|
12
|
-
desc "Runs all of the necessary tasks prior to running the tests"
|
13
|
-
task :prepare do
|
14
|
-
$:.unshift File.expand_path("spec")
|
15
|
-
require "test_files"
|
16
|
-
TestFiles.prepare
|
17
|
-
end
|
18
|
-
|
19
|
-
desc "Runs all of the tests"
|
20
|
-
task :all do
|
21
|
-
$:.unshift File.expand_path("spec")
|
22
|
-
load "all_specs.rb"
|
23
|
-
end
|
24
|
-
|
25
|
-
desc "Tests I used to develop small pieces of code or ideas"
|
26
|
-
task :dev do
|
27
|
-
$:.unshift File.expand_path("spec")
|
28
|
-
load "dev_specs.rb"
|
29
|
-
end
|
30
|
-
|
31
|
-
desc "Run the file watch queue. Not designed to run with normal tests"
|
32
|
-
task :queue do
|
33
|
-
$:.unshift File.expand_path("spec")
|
34
|
-
load "run_queue.rb"
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
data/lib/tasks/gem_tasks.rake
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# once upon a time, I had a series of tasks and gemspecs to build different versions for different platforms.
|
2
|
-
# this file was huge. I made a decision to adandon all of those different gems and simply notify the developer
|
3
|
-
# to edit their Gemfile
|
4
|
-
require "duck_test/gem/helper"
|
5
|
-
|
6
|
-
namespace :local do
|
7
|
-
|
8
|
-
desc "Locally build and release the default gem without dependencies"
|
9
|
-
task :default do
|
10
|
-
DuckTest::Gem::Helper.new.local("duck_test", "duck_test")
|
11
|
-
end
|
12
|
-
|
13
|
-
desc "Locally build and release all of the gems"
|
14
|
-
task :all => [:default]
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
task :local => "local:default"
|