objective_command 0.1.5.0 → 0.1.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS CHANGED
@@ -1,3 +1,10 @@
1
+ = New 0.1_p1, 2007-08-15:
2
+
3
+ Bug fix release
4
+ * Update to core_ex 0.6_p3.
5
+ * Use gem instead of require_gem.
6
+ * Fix some minor bugs.
7
+
1
8
  = New 0.1, 2007-01-14:
2
9
 
3
10
  Initial Release.
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 completly extensible way.
2
+ style and in a completely extensible way.
data/Rakefile CHANGED
@@ -4,5 +4,5 @@
4
4
  # Revision:: $Id$
5
5
 
6
6
  require 'rubygems'
7
- require_gem 'core_ex'
7
+ gem 'core_ex'
8
8
  load 'core_ex/rakefile_base.rf'
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{objective_command}
3
- s.version = "0.1.5.0"
4
- s.date = %q{2007-01-14}
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.5"])
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.1
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.5
40
- tarball: http://rubyforge.iasi.roedu.net/files/ttk/core_ex-0.6.tar.gz
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
@@ -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
- inheritable_attributes[:hookers] = []
29
- inheritable_attributes[:hooks] = []
30
- inheritable_attributes[:disabled_hooks] = []
28
+ self.hooks = []
29
+ self.hookers = []
30
+ self.disabled_hooks = []
31
31
  end
32
32
 
33
33
 
@@ -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
- require_gem 'core_ex'
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' ; require_gem 'objective_command' ; require 'objective_command'
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...)
@@ -4,7 +4,7 @@ module ObjectiveCommand
4
4
  module All
5
5
  end
6
6
  end
7
- unless embedded_test_mode?
7
+ if not defined? embedded_test_mode? or not embedded_test_mode?
8
8
  $: << File.dirname(File.dirname(__FILE__))
9
9
  require 'objective_command'
10
10
  require 'hookable'
@@ -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 53907 2007-01-13T18:40:33.521685Z ertai $
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.1")
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.include?(path),
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.5.0
7
- date: 2007-01-14 00:00:00 +01:00
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.5
96
+ version: 0.6.6
97
97
  version: