echoe 2.7.2 → 2.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +3 -1
- data/Manifest +1 -0
- data/README +1 -0
- data/TODO +0 -1
- data/lib/echoe.rb +13 -30
- data/lib/echoe/extensions.rb +51 -0
- metadata +53 -52
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
|
2
2
|
vSVN. support compiling without extension registration for win32 and java targets.
|
3
3
|
|
4
|
-
v2.7.
|
4
|
+
v2.7.3. Put some handy things in lib/echoe/extensions.rb; use Rake::TestTask instead of screwing around in the shell. Automatically run test/setup.rb before the test task, if it exists.
|
5
|
+
|
6
|
+
v2.7.2. Don't try to verify the existence of the RDoc template. Fixes for the RCov task.
|
5
7
|
|
6
8
|
v2.7.1. Rcov changed to a weak dependency for JRuby.
|
7
9
|
|
data/Manifest
CHANGED
data/README
CHANGED
data/TODO
CHANGED
data/lib/echoe.rb
CHANGED
@@ -20,6 +20,7 @@ require 'rubyforge'
|
|
20
20
|
|
21
21
|
$LOAD_PATH << File.dirname(__FILE__)
|
22
22
|
require 'echoe/platform'
|
23
|
+
require 'echoe/extensions'
|
23
24
|
|
24
25
|
=begin rdoc
|
25
26
|
|
@@ -134,20 +135,6 @@ Documentation options:
|
|
134
135
|
|
135
136
|
class Echoe
|
136
137
|
|
137
|
-
rubyprefix = Config::CONFIG['prefix']
|
138
|
-
sitelibdir = Config::CONFIG['sitelibdir']
|
139
|
-
|
140
|
-
PREFIX = ENV['PREFIX'] || rubyprefix
|
141
|
-
RUBYLIB = if PREFIX == rubyprefix then
|
142
|
-
sitelibdir
|
143
|
-
else
|
144
|
-
File.join(PREFIX, sitelibdir[rubyprefix.size..-1])
|
145
|
-
end
|
146
|
-
RUBY_DEBUG = ENV['RUBY_DEBUG']
|
147
|
-
RUBY_FLAGS = ENV['RUBY_FLAGS'] ||
|
148
|
-
"-w -I#{%w(lib ext bin test).join(File::PATH_SEPARATOR)}" +
|
149
|
-
(RUBY_DEBUG ? " #{RUBY_DEBUG}" : '')
|
150
|
-
|
151
138
|
# user-configurable
|
152
139
|
attr_accessor :author, :changes, :clean_pattern, :description, :email, :dependencies, :need_tgz, :need_tar_gz, :need_gem, :need_zip, :rdoc_pattern, :project, :summary, :test_pattern, :url, :version, :docs_host, :rdoc_template, :manifest_name, :install_message, :extension_pattern, :private_key, :certificate_chain, :require_signed, :ruby_version, :platform, :ignore_pattern, :executable_pattern, :changelog, :rcov_options
|
153
140
|
|
@@ -625,15 +612,21 @@ class Echoe
|
|
625
612
|
|
626
613
|
### Testing
|
627
614
|
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
end
|
633
|
-
ruby "#{RUBY_FLAGS} -e '#{tests}'"
|
615
|
+
Rake::TestTask.new do |t|
|
616
|
+
t.libs += ['lib', 'ext', 'bin', 'test']
|
617
|
+
t.test_files = test_pattern
|
618
|
+
t.verbose = true
|
634
619
|
end
|
635
620
|
|
636
621
|
task :default => :test
|
622
|
+
|
623
|
+
if File.exist? 'test/setup.rb'
|
624
|
+
task :setup_test_environment do
|
625
|
+
Echoe.silence { system("ruby test/setup.rb") }
|
626
|
+
end
|
627
|
+
task :test => :setup_test_environment
|
628
|
+
end
|
629
|
+
|
637
630
|
|
638
631
|
if defined? Rcov
|
639
632
|
Rcov::RcovTask.new(:coverage) do |t|
|
@@ -647,13 +640,3 @@ class Echoe
|
|
647
640
|
end
|
648
641
|
end
|
649
642
|
|
650
|
-
class ::Rake::SshDirPublisher # :nodoc:
|
651
|
-
attr_reader :host, :remote_dir, :local_dir
|
652
|
-
end
|
653
|
-
|
654
|
-
class String #:nodoc:
|
655
|
-
def uncapitalize #:nodoc:
|
656
|
-
"#{self[0..0].downcase}#{self[1..-1]}"
|
657
|
-
end
|
658
|
-
end
|
659
|
-
|
@@ -0,0 +1,51 @@
|
|
1
|
+
|
2
|
+
class String #:nodoc:
|
3
|
+
def uncapitalize #:nodoc:
|
4
|
+
"#{self[0..0].downcase}#{self[1..-1]}"
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
class ::Rake::SshDirPublisher # :nodoc:
|
9
|
+
attr_reader :host, :remote_dir, :local_dir
|
10
|
+
end
|
11
|
+
|
12
|
+
class Echoe
|
13
|
+
|
14
|
+
# http://pastie.caboo.se/127840
|
15
|
+
|
16
|
+
def self.silence
|
17
|
+
stdout, stderr = $stdout.clone, $stderr.clone
|
18
|
+
$stdout.reopen(File.new('/tmp/stdout.echoe', 'w'))
|
19
|
+
$stderr.reopen(File.new('/tmp/stderr.echoe', 'w'))
|
20
|
+
yield
|
21
|
+
$stdout.reopen(stdout)
|
22
|
+
$stderr.reopen(stderr)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# Redefine instead of chain a Rake task
|
27
|
+
# http://www.bigbold.com/snippets/posts/show/2032
|
28
|
+
|
29
|
+
module Rake
|
30
|
+
module TaskManager
|
31
|
+
def redefine_task(task_class, args, &block)
|
32
|
+
task_name, deps = resolve_args(args)
|
33
|
+
task_name = task_class.scope_name(@scope, task_name)
|
34
|
+
deps = [deps] unless deps.respond_to?(:to_ary)
|
35
|
+
deps = deps.collect {|d| d.to_s }
|
36
|
+
task = @tasks[task_name.to_s] = task_class.new(task_name, self)
|
37
|
+
task.application = self
|
38
|
+
task.add_comment(@last_comment)
|
39
|
+
@last_comment = nil
|
40
|
+
task.enhance(deps, &block)
|
41
|
+
task
|
42
|
+
end
|
43
|
+
end
|
44
|
+
class Task
|
45
|
+
class << self
|
46
|
+
def redefine_task(args, &block)
|
47
|
+
Rake.application.redefine_task(self, args, &block)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
metadata
CHANGED
@@ -1,35 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4.5
|
3
|
-
specification_version: 2
|
4
2
|
name: echoe
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 2.7.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
- lib
|
11
|
-
email: ""
|
12
|
-
homepage: http://blog.evanweaver.com/files/doc/fauna/echoe/
|
13
|
-
rubyforge_project: fauna
|
14
|
-
description: A tool for packaging Ruby gems.
|
4
|
+
version: 2.7.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Evan Weaver
|
15
8
|
autorequire:
|
16
|
-
default_executable:
|
17
9
|
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
24
|
-
version:
|
25
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.4.5
|
30
|
-
version:
|
31
|
-
platform: ruby
|
32
|
-
signing_key:
|
33
10
|
cert_chain:
|
34
11
|
- |
|
35
12
|
-----BEGIN CERTIFICATE-----
|
@@ -53,31 +30,8 @@ cert_chain:
|
|
53
30
|
yZ0=
|
54
31
|
-----END CERTIFICATE-----
|
55
32
|
|
56
|
-
|
57
|
-
|
58
|
-
- Evan Weaver
|
59
|
-
files:
|
60
|
-
- CHANGELOG
|
61
|
-
- lib/echoe/platform.rb
|
62
|
-
- lib/echoe.rb
|
63
|
-
- LICENSE
|
64
|
-
- Manifest
|
65
|
-
- MIT-LICENSE
|
66
|
-
- Rakefile
|
67
|
-
- README
|
68
|
-
- TODO
|
69
|
-
test_files: []
|
70
|
-
|
71
|
-
rdoc_options: []
|
72
|
-
|
73
|
-
extra_rdoc_files: []
|
74
|
-
|
75
|
-
executables: []
|
76
|
-
|
77
|
-
extensions: []
|
78
|
-
|
79
|
-
requirements: []
|
80
|
-
|
33
|
+
date: 2007-12-12 00:00:00 -05:00
|
34
|
+
default_executable:
|
81
35
|
dependencies:
|
82
36
|
- !ruby/object:Gem::Dependency
|
83
37
|
name: rake
|
@@ -106,3 +60,50 @@ dependencies:
|
|
106
60
|
- !ruby/object:Gem::Version
|
107
61
|
version: "0"
|
108
62
|
version:
|
63
|
+
description: A tool for packaging Ruby gems.
|
64
|
+
email: ""
|
65
|
+
executables: []
|
66
|
+
|
67
|
+
extensions: []
|
68
|
+
|
69
|
+
extra_rdoc_files: []
|
70
|
+
|
71
|
+
files:
|
72
|
+
- CHANGELOG
|
73
|
+
- lib/echoe/extensions.rb
|
74
|
+
- lib/echoe/platform.rb
|
75
|
+
- lib/echoe.rb
|
76
|
+
- LICENSE
|
77
|
+
- Manifest
|
78
|
+
- MIT-LICENSE
|
79
|
+
- Rakefile
|
80
|
+
- README
|
81
|
+
- TODO
|
82
|
+
has_rdoc: true
|
83
|
+
homepage: http://blog.evanweaver.com/files/doc/fauna/echoe/
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
|
87
|
+
require_paths:
|
88
|
+
- lib
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: "0"
|
94
|
+
version:
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 0.9.4.5
|
100
|
+
version:
|
101
|
+
requirements: []
|
102
|
+
|
103
|
+
rubyforge_project: fauna
|
104
|
+
rubygems_version: 0.9.5
|
105
|
+
signing_key:
|
106
|
+
specification_version: 2
|
107
|
+
summary: A tool for packaging Ruby gems.
|
108
|
+
test_files: []
|
109
|
+
|
metadata.gz.sig
CHANGED
Binary file
|