cmd_line_test 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.rdoc +2 -2
- data/Rakefile +1 -19
- metadata +48 -25
- data/.gitignore +0 -5
- data/VERSION.yml +0 -4
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
= Basic Usage
|
4
4
|
|
5
5
|
== Installation
|
6
|
-
$
|
6
|
+
$ gem install cmd_line_test
|
7
7
|
|
8
8
|
== Example
|
9
9
|
If you are about to start writing new command line utility MyCommandLineApp, you probably want to specify its options and behavior, likely in form of tests. This gem is aimed to simplify creation of such tests:
|
@@ -20,7 +20,7 @@ If you are about to start writing new command line utility MyCommandLineApp, you
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
=
|
23
|
+
= Shortcomings
|
24
24
|
Only tested on the 1.8.7 Ruby implementation and with Shoulda 2.10.1
|
25
25
|
|
26
26
|
= License
|
data/Rakefile
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
3
|
|
5
4
|
Rake::TestTask.new do |t|
|
6
5
|
t.libs << "test"
|
@@ -8,21 +7,4 @@ Rake::TestTask.new do |t|
|
|
8
7
|
t.verbose = true
|
9
8
|
end
|
10
9
|
|
11
|
-
|
12
|
-
require 'jeweler'
|
13
|
-
gemspec = Gem::Specification.new do |s|
|
14
|
-
|
15
|
-
s.name = "cmd_line_test"
|
16
|
-
s.summary = "Extends Shoulda or Test::Unit with macros for testing command line apps."
|
17
|
-
s.email = "fkocherga@gmail.com"
|
18
|
-
s.homepage = "http://github.com/fkocherga/cmd_line_test"
|
19
|
-
s.description = <<END
|
20
|
-
Macros specific to command line Ruby apps testing. Works with Test::Unit or Shoulda.
|
21
|
-
END
|
22
|
-
s.authors = ["Fedor Kocherga"]
|
23
|
-
s.test_files = ['test/shoulda/cli_test.rb', 'test/unit/cli_test.rb']
|
24
|
-
end
|
25
|
-
Jeweler::Tasks.new gemspec
|
26
|
-
rescue LoadError
|
27
|
-
puts "Jeweler not available. Install it with: sudo gem install jeweler"
|
28
|
-
end
|
10
|
+
task :default => "test"
|
metadata
CHANGED
@@ -1,34 +1,50 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmd_line_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
|
-
-
|
13
|
+
- Aleksandr Furmanov
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2010-10-05 00:00:00 -05:00
|
13
19
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: shoulda
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
description: Extends Shoulda or Test::Unit with macros for testing command line apps
|
36
|
+
email:
|
37
|
+
- aleksandr.furmanov@gmail.com
|
20
38
|
executables: []
|
21
39
|
|
22
40
|
extensions: []
|
23
41
|
|
24
|
-
extra_rdoc_files:
|
25
|
-
|
42
|
+
extra_rdoc_files: []
|
43
|
+
|
26
44
|
files:
|
27
|
-
- .gitignore
|
28
45
|
- MIT-LICENSE
|
29
|
-
- README.rdoc
|
30
46
|
- Rakefile
|
31
|
-
-
|
47
|
+
- README.rdoc
|
32
48
|
- lib/cmd_line_test.rb
|
33
49
|
- test/cli_app.rb
|
34
50
|
- test/shoulda/cli_test.rb
|
@@ -36,33 +52,40 @@ files:
|
|
36
52
|
- test/test_helper.rb
|
37
53
|
- test/unit/cli_test.rb
|
38
54
|
has_rdoc: true
|
39
|
-
homepage: http://github.com/
|
55
|
+
homepage: http://github.com/afurmanov/cmd_line_test
|
40
56
|
licenses: []
|
41
57
|
|
42
58
|
post_install_message:
|
43
|
-
rdoc_options:
|
44
|
-
|
59
|
+
rdoc_options: []
|
60
|
+
|
45
61
|
require_paths:
|
46
62
|
- lib
|
47
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
48
65
|
requirements:
|
49
66
|
- - ">="
|
50
67
|
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
51
71
|
version: "0"
|
52
|
-
version:
|
53
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
54
74
|
requirements:
|
55
75
|
- - ">="
|
56
76
|
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
|
77
|
+
hash: 23
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 3
|
81
|
+
- 6
|
82
|
+
version: 1.3.6
|
59
83
|
requirements: []
|
60
84
|
|
61
85
|
rubyforge_project:
|
62
|
-
rubygems_version: 1.3.
|
86
|
+
rubygems_version: 1.3.7
|
63
87
|
signing_key:
|
64
88
|
specification_version: 3
|
65
|
-
summary: Extends Shoulda or Test::Unit with macros for testing command line apps
|
66
|
-
test_files:
|
67
|
-
|
68
|
-
- test/unit/cli_test.rb
|
89
|
+
summary: Extends Shoulda or Test::Unit with macros for testing command line apps
|
90
|
+
test_files: []
|
91
|
+
|
data/VERSION.yml
DELETED