echoe 2.7.9 → 2.7.11
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.tar.gz.sig +0 -0
- data/CHANGELOG +4 -0
- data/lib/echoe.rb +13 -12
- data/lib/echoe/platform.rb +36 -2
- metadata +17 -6
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
data/lib/echoe.rb
CHANGED
@@ -181,7 +181,13 @@ class Echoe
|
|
181
181
|
self.use_sudo = RUBY_PLATFORM !~ /mswin32|cygwin/
|
182
182
|
self.rcov_options = []
|
183
183
|
self.rdoc_pattern = /^(lib|bin|tasks|ext)|^README|^CHANGELOG|^TODO|^LICENSE|^COPYING$/
|
184
|
-
|
184
|
+
|
185
|
+
title = (name.downcase == name ? name.capitalize : name)
|
186
|
+
self.rdoc_options = ['--line-numbers', '--inline-source', '--title', title]
|
187
|
+
|
188
|
+
readme = Dir['*'].detect { |filename| filename =~ /^readme/i }
|
189
|
+
self.rdoc_options += ['--main', readme] if readme
|
190
|
+
|
185
191
|
self.dependencies = []
|
186
192
|
self.manifest_name = "Manifest"
|
187
193
|
self.extension_pattern = ["ext/**/extconf.rb", "ext/extconf.rb"]
|
@@ -256,7 +262,7 @@ class Echoe
|
|
256
262
|
self.clean_pattern = apply_pattern(clean_pattern)
|
257
263
|
self.extension_pattern = apply_pattern(extension_pattern, files)
|
258
264
|
self.ignore_pattern = apply_pattern(ignore_pattern)
|
259
|
-
self.rdoc_pattern = apply_pattern(rdoc_pattern, files)
|
265
|
+
self.rdoc_pattern = apply_pattern(rdoc_pattern, files) - [manifest_name]
|
260
266
|
self.executable_pattern = apply_pattern(executable_pattern, files)
|
261
267
|
self.test_pattern = apply_pattern(test_pattern)
|
262
268
|
|
@@ -296,6 +302,8 @@ class Echoe
|
|
296
302
|
s.required_ruby_version = ruby_version
|
297
303
|
s.required_rubygems_version = rubygems_version if rubygems_version
|
298
304
|
s.platform = platform
|
305
|
+
s.rdoc_options = rdoc_options
|
306
|
+
s.extra_rdoc_files = rdoc_pattern
|
299
307
|
|
300
308
|
if private_key and File.exist? private_key
|
301
309
|
s.signing_key = private_key
|
@@ -473,24 +481,17 @@ class Echoe
|
|
473
481
|
### Documentation
|
474
482
|
|
475
483
|
Rake::RDocTask.new(:docs) do |rd|
|
476
|
-
rd.main = Dir['*'].detect {|f| f =~ /^readme/i}
|
484
|
+
# rd.main = Dir['*'].detect {|f| f =~ /^readme/i}
|
477
485
|
rd.options += Array(rdoc_options)
|
478
486
|
|
479
|
-
rd.rdoc_dir = 'doc'
|
480
|
-
|
481
|
-
files = rdoc_pattern
|
482
|
-
files -= [manifest_name]
|
483
|
-
|
484
|
-
rd.rdoc_files.push(*files)
|
487
|
+
rd.rdoc_dir = 'doc'
|
488
|
+
rd.rdoc_files.push(*rdoc_pattern)
|
485
489
|
|
486
490
|
if rdoc_template
|
487
491
|
rd.template = rdoc_template
|
488
492
|
elsif ENV['RDOC_TEMPLATE']
|
489
493
|
rd.template = ENV['RDOC_TEMPLATE']
|
490
494
|
end
|
491
|
-
|
492
|
-
title = name.downcase == name ? name.capitalize : name
|
493
|
-
rd.options << "-t #{title}"
|
494
495
|
end
|
495
496
|
|
496
497
|
task :doc => [:redocs]
|
data/lib/echoe/platform.rb
CHANGED
@@ -1,7 +1,39 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
### Platform check regexes
|
3
|
+
|
4
|
+
module Platform
|
5
|
+
def self.windows?
|
6
|
+
@windows ||= RUBY_PLATFORM =~ /djgpp|(cyg|ms|bcc)win|mingw/
|
7
|
+
!@windows.nil?
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.gcc?
|
11
|
+
@gcc ||= RUBY_PLATFORM =~ /mingw/
|
12
|
+
!@gcc.nil?
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.msvc?
|
16
|
+
@msvc ||= RUBY_PLATFORM =~ /mswin/
|
17
|
+
!@msvc.nil?
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.java?
|
21
|
+
@java ||= RUBY_PLATFORM =~ /java/
|
22
|
+
!@java.nil?
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.rake
|
26
|
+
windows? ? 'rake.bat' : 'rake'
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.make
|
30
|
+
msvc? ? 'nmake' : 'make'
|
31
|
+
end
|
32
|
+
end
|
3
33
|
|
4
|
-
|
34
|
+
### Overrides for cross packaging, which Rubygems 0.9.5 doesn't do
|
35
|
+
|
36
|
+
module Gem
|
5
37
|
class Specification
|
6
38
|
|
7
39
|
alias :old_validate :validate
|
@@ -23,6 +55,8 @@ module Gem
|
|
23
55
|
end
|
24
56
|
end
|
25
57
|
|
58
|
+
### Some runtime Echoe hacks
|
59
|
+
|
26
60
|
$platform = "ruby" # or Gem::PLATFORM::RUBY maybe
|
27
61
|
|
28
62
|
def reset_target target #:nodoc:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: echoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Weaver
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
yZ0=
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2008-03-
|
33
|
+
date: 2008-03-31 00:00:00 -04:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -66,8 +66,14 @@ executables: []
|
|
66
66
|
|
67
67
|
extensions: []
|
68
68
|
|
69
|
-
extra_rdoc_files:
|
70
|
-
|
69
|
+
extra_rdoc_files:
|
70
|
+
- CHANGELOG
|
71
|
+
- lib/echoe/extensions.rb
|
72
|
+
- lib/echoe/platform.rb
|
73
|
+
- lib/echoe.rb
|
74
|
+
- LICENSE
|
75
|
+
- README
|
76
|
+
- TODO
|
71
77
|
files:
|
72
78
|
- CHANGELOG
|
73
79
|
- lib/echoe/extensions.rb
|
@@ -82,8 +88,13 @@ files:
|
|
82
88
|
has_rdoc: true
|
83
89
|
homepage: http://blog.evanweaver.com/files/doc/fauna/echoe/
|
84
90
|
post_install_message:
|
85
|
-
rdoc_options:
|
86
|
-
|
91
|
+
rdoc_options:
|
92
|
+
- --line-numbers
|
93
|
+
- --inline-source
|
94
|
+
- --title
|
95
|
+
- Echoe
|
96
|
+
- --main
|
97
|
+
- README
|
87
98
|
require_paths:
|
88
99
|
- lib
|
89
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|