objective_command 0.1.5.0 → 0.1.6.1
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.
- data/NEWS +7 -0
- data/README +1 -1
- data/Rakefile +1 -1
- data/SPEC.gemspec +3 -3
- data/SPEC.yml +3 -3
- data/lib/hookable.rb +3 -3
- data/lib/objective_command.rb +4 -4
- data/lib/objective_command/all.rb +1 -1
- data/lib/objective_command/version_id.rb +2 -2
- data/test/sanity/multiple-requires.yml +1 -1
- metadata +3 -3
data/NEWS
CHANGED
data/README
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
Objective command is a ruby library dedicated at running commands in a OO
|
2
|
-
style and in a
|
2
|
+
style and in a completely extensible way.
|
data/Rakefile
CHANGED
data/SPEC.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{objective_command}
|
3
|
-
s.version = "0.1.
|
4
|
-
s.date = %q{2007-
|
3
|
+
s.version = "0.1.6.1"
|
4
|
+
s.date = %q{2007-08-15}
|
5
5
|
s.summary = %q{ObjectiveCommand}
|
6
6
|
s.email = ["ertai@feydakins.org"]
|
7
7
|
s.homepage = %q{http://api.feydakins.org/objective_command}
|
@@ -11,5 +11,5 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.authors = ["Nicolas Pouillard"]
|
12
12
|
s.files = ["lib/hookable.rb", "lib/hooker.rb", "lib/objective_command.rb", "lib/objective_command/all.rb", "lib/objective_command/datas.rb", "lib/objective_command/helpers.rb", "lib/objective_command/runners.rb", "lib/objective_command/shell.rb", "lib/objective_command/version_id.rb", "lib/objective_command/commands/command.rb", "lib/objective_command/commands/factory.rb", "lib/objective_command/commands/pipe.rb", "lib/objective_command/commands/seq.rb", "lib/objective_command/datas/composite.rb", "lib/objective_command/datas/data.rb", "lib/objective_command/datas/factory.rb", "lib/objective_command/datas/pipe.rb", "lib/objective_command/datas/temp.rb", "lib/objective_command/runners/exec.rb", "lib/objective_command/runners/fork.rb", "lib/objective_command/runners/mockable.rb", "lib/objective_command/runners/no_run.rb", "lib/objective_command/runners/popen.rb", "lib/objective_command/runners/runner.rb", "lib/objective_command/runners/system.rb", "test/check-objective_command.yml", "test/check-pkg-objective_command.yml", "test/fixtures", "test/functional", "test/sanity", "test/sanity-suite.yml", "test/unit", "test/unit-suite.yml", "test/sanity/multiple-requires.yml", "test/sanity/single-requires.yml", "bin/ocmd", "AUTHORS", "ChangeLog", "NEWS", "Rakefile", "README", "SPEC.gemspec", "SPEC.yml"]
|
13
13
|
s.executables = ["ocmd"]
|
14
|
-
s.add_dependency(%q<core_ex>, ["~> 0.6.
|
14
|
+
s.add_dependency(%q<core_ex>, ["~> 0.6.6"])
|
15
15
|
end
|
data/SPEC.yml
CHANGED
@@ -3,7 +3,7 @@ Author: The Uttk Team
|
|
3
3
|
License: Ruby License
|
4
4
|
Revision: '$Id$'
|
5
5
|
|
6
|
-
version: !feydakins.org,2006/version dev-ruby/objective_command-0.
|
6
|
+
version: !feydakins.org,2006/version dev-ruby/objective_command-0.1_p1
|
7
7
|
|
8
8
|
# XXX also check lib/objective_command/version_id.rb
|
9
9
|
|
@@ -36,8 +36,8 @@ pkg_files: !filelist
|
|
36
36
|
|
37
37
|
dependencies:
|
38
38
|
core_ex:
|
39
|
-
gem : ~> 0.6.
|
40
|
-
tarball: http://rubyforge.iasi.roedu.net/files/ttk/core_ex-0.
|
39
|
+
gem : ~> 0.6.6
|
40
|
+
tarball: http://rubyforge.iasi.roedu.net/files/ttk/core_ex-0.6_p3.tar.gz
|
41
41
|
vcs : svn://svn.feydakins.org/ruby_ex/trunk/core_ex
|
42
42
|
|
43
43
|
uttk_version: >= 0.3.6.1
|
data/lib/hookable.rb
CHANGED
@@ -25,9 +25,9 @@ module Hookable
|
|
25
25
|
class_inheritable_array :hooks
|
26
26
|
class_inheritable_array :hookers
|
27
27
|
class_inheritable_array :disabled_hooks
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
self.hooks = []
|
29
|
+
self.hookers = []
|
30
|
+
self.disabled_hooks = []
|
31
31
|
end
|
32
32
|
|
33
33
|
|
data/lib/objective_command.rb
CHANGED
@@ -7,15 +7,15 @@ require 'pathname'
|
|
7
7
|
|
8
8
|
lib = Pathname.new(__FILE__).dirname
|
9
9
|
vendor = lib.parent + 'vendor'
|
10
|
+
$CORE_EX_VENDORS ||= []
|
11
|
+
$CORE_EX_VENDORS << vendor
|
10
12
|
unless defined? CoreEx
|
11
|
-
$CORE_EX_VENDORS ||= []
|
12
|
-
$CORE_EX_VENDORS << vendor
|
13
13
|
file = vendor + 'core_ex' + 'lib' + 'core_ex'
|
14
14
|
if file.exist?
|
15
15
|
require file.to_s
|
16
16
|
else
|
17
17
|
require 'rubygems' unless ENV['NO_GEM']
|
18
|
-
|
18
|
+
gem 'core_ex'
|
19
19
|
require 'core_ex'
|
20
20
|
end
|
21
21
|
end
|
@@ -31,7 +31,7 @@ end
|
|
31
31
|
# Provides an object oriented way to manage, combine and run your commands.
|
32
32
|
#
|
33
33
|
# Example:
|
34
|
-
# require 'rubygems' ;
|
34
|
+
# require 'rubygems' ; gem 'objective_command' ; require 'objective_command'
|
35
35
|
# ls, wc, out = 'ls'.to_ocmd, 'wc'.to_ocmd, 'out'.to_path
|
36
36
|
#
|
37
37
|
# data = ls.system # other runners exist (exec, fork, sh...)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Copyright:: Copyright (c) 2006 Nicolas Pouillard. All rights reserved.
|
2
2
|
# Author:: Nicolas Pouillard <nicolas.pouillard@gmail.com>.
|
3
3
|
# License:: Gnu General Public License.
|
4
|
-
# Revision:: $Id: /w/fey/cmd/trunk/lib/objective_command/version_id.rb
|
4
|
+
# Revision:: $Id: /w/fey/cmd/trunk/lib/objective_command/version_id.rb 53955 2007-01-14T14:30:07.109676Z ertai $
|
5
5
|
|
6
6
|
module ObjectiveCommand
|
7
7
|
|
8
|
-
VersionId = Version.parse("dev-ruby/objective_command-0.
|
8
|
+
VersionId = Version.parse("dev-ruby/objective_command-0.1_p1")
|
9
9
|
|
10
10
|
end # module ObjectiveCommand
|
@@ -38,7 +38,7 @@ ObjectiveCommand Sanity Multiple Requires Test Suite: !S::Suite
|
|
38
38
|
path_list = PathList[lib_dir/'(**/*).rb']
|
39
39
|
path_list.each do |_, path|
|
40
40
|
require_dependency path
|
41
|
-
assert(Dependencies.loaded.
|
41
|
+
assert(Dependencies.loaded.to_a.grep(/(^|\/)#{Regexp.quote(path)}$/).size >= 1,
|
42
42
|
"#{path} not in Dependencies.loaded #{Dependencies.loaded.inspect}")
|
43
43
|
end
|
44
44
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: objective_command
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.1.6.1
|
7
|
+
date: 2007-08-15 00:00:00 +02:00
|
8
8
|
summary: ObjectiveCommand
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -93,5 +93,5 @@ dependencies:
|
|
93
93
|
requirements:
|
94
94
|
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.6.
|
96
|
+
version: 0.6.6
|
97
97
|
version:
|