amazon-ec2 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -1
- data/License.txt +66 -67
- data/Manifest.txt +18 -9
- data/Rakefile +4 -142
- data/bin/ec2-gem-example.rb +1 -1
- data/bin/ec2sh +1 -1
- data/bin/setup.rb +1 -1
- data/config/hoe.rb +76 -0
- data/config/requirements.rb +17 -0
- data/lib/EC2.rb +1 -1
- data/lib/EC2/console.rb +1 -1
- data/lib/EC2/exceptions.rb +1 -1
- data/lib/EC2/image_attributes.rb +1 -1
- data/lib/EC2/images.rb +1 -1
- data/lib/EC2/instances.rb +1 -1
- data/lib/EC2/keypairs.rb +1 -1
- data/lib/EC2/products.rb +1 -1
- data/lib/EC2/responses.rb +1 -1
- data/lib/EC2/security_groups.rb +1 -1
- data/lib/EC2/version.rb +2 -2
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/{scripts → script}/txt2html +10 -3
- data/tasks/deployment.rake +27 -0
- data/tasks/environment.rake +7 -0
- data/tasks/website.rake +17 -0
- data/test/test_EC2.rb +1 -1
- data/test/test_EC2_console.rb +1 -1
- data/test/test_EC2_image_attributes.rb +1 -1
- data/test/test_EC2_images.rb +1 -1
- data/test/test_EC2_instances.rb +1 -1
- data/test/test_EC2_keypairs.rb +1 -1
- data/test/test_EC2_products.rb +1 -1
- data/test/test_EC2_responses.rb +1 -1
- data/test/test_EC2_security_groups.rb +1 -1
- data/test/test_EC2_version.rb +2 -2
- data/test/test_helper.rb +1 -1
- data/website/announce.html +109 -0
- data/website/announce.txt +36 -0
- data/website/index.html +155 -145
- data/website/stylesheets/screen.css +16 -7
- data/website/template.rhtml +1 -1
- metadata +23 -14
data/History.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== 0.2.5 2007-09-26
|
2
|
+
* Updated using Dr. Nic's newgem v. 0.13.5
|
3
|
+
* Updated email address.
|
4
|
+
* No functional changes in the gem.
|
5
|
+
|
1
6
|
=== 0.2.4 2007-07-09
|
2
7
|
* Changed how require statement for xmlsimple is called so we don't get warnings when running in rails.
|
3
8
|
Now it looks like: require 'xmlsimple' unless defined? XmlSimple
|
@@ -201,4 +206,3 @@
|
|
201
206
|
Amazon Web Services as example code. No changes or enhancements to that code were made other than
|
202
207
|
packaging it as a Ruby Gem.
|
203
208
|
* RubyForge project created. http://amazon-ec2.rubyforge.org
|
204
|
-
|
data/License.txt
CHANGED
@@ -1,67 +1,66 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
1
|
+
Copyright (c) 2007 Glenn Rempe
|
2
|
+
|
3
|
+
This software is distributed under the Ruby License. A copy of which is
|
4
|
+
provided below.
|
5
|
+
|
6
|
+
RUBY LICENSE
|
7
|
+
|
8
|
+
http://www.ruby-lang.org/en/LICENSE.txt
|
9
|
+
|
10
|
+
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.co.jp>.
|
11
|
+
You can redistribute it and/or modify it under either the terms of the GPL
|
12
|
+
(see COPYING.txt file), or the conditions below:
|
13
|
+
|
14
|
+
1. You may make and give away verbatim copies of the source form of the
|
15
|
+
software without restriction, provided that you duplicate all of the
|
16
|
+
original copyright notices and associated disclaimers.
|
17
|
+
|
18
|
+
2. You may modify your copy of the software in any way, provided that
|
19
|
+
you do at least ONE of the following:
|
20
|
+
|
21
|
+
a) place your modifications in the Public Domain or otherwise
|
22
|
+
make them Freely Available, such as by posting said
|
23
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
24
|
+
the author to include your modifications in the software.
|
25
|
+
|
26
|
+
b) use the modified software only within your corporation or
|
27
|
+
organization.
|
28
|
+
|
29
|
+
c) rename any non-standard executables so the names do not conflict
|
30
|
+
with standard executables, which must also be provided.
|
31
|
+
|
32
|
+
d) make other distribution arrangements with the author.
|
33
|
+
|
34
|
+
3. You may distribute the software in object code or executable
|
35
|
+
form, provided that you do at least ONE of the following:
|
36
|
+
|
37
|
+
a) distribute the executables and library files of the software,
|
38
|
+
together with instructions (in the manual page or equivalent)
|
39
|
+
on where to get the original distribution.
|
40
|
+
|
41
|
+
b) accompany the distribution with the machine-readable source of
|
42
|
+
the software.
|
43
|
+
|
44
|
+
c) give non-standard executables non-standard names, with
|
45
|
+
instructions on where to get the original software distribution.
|
46
|
+
|
47
|
+
d) make other distribution arrangements with the author.
|
48
|
+
|
49
|
+
4. You may modify and include the part of the software into any other
|
50
|
+
software (possibly commercial). But some files in the distribution
|
51
|
+
are not written by the author, so that they are not under this terms.
|
52
|
+
|
53
|
+
They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
|
54
|
+
files under the ./missing directory. See each file for the copying
|
55
|
+
condition.
|
56
|
+
|
57
|
+
5. The scripts and library files supplied as input to or produced as
|
58
|
+
output from the software do not automatically fall under the
|
59
|
+
copyright of the software, but belong to whomever generated them,
|
60
|
+
and may be sold commercially, and may be aggregated with this
|
61
|
+
software.
|
62
|
+
|
63
|
+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
64
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
65
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
66
|
+
PURPOSE.
|
data/Manifest.txt
CHANGED
@@ -1,24 +1,31 @@
|
|
1
1
|
History.txt
|
2
|
-
|
2
|
+
License.txt
|
3
|
+
Manifest.txt
|
4
|
+
README.txt
|
5
|
+
Rakefile
|
3
6
|
bin/ec2-gem-example.rb
|
7
|
+
bin/ec2sh
|
4
8
|
bin/setup.rb
|
9
|
+
config/hoe.rb
|
10
|
+
config/requirements.rb
|
5
11
|
lib/EC2.rb
|
6
12
|
lib/EC2/console.rb
|
7
13
|
lib/EC2/exceptions.rb
|
8
|
-
lib/EC2/
|
9
|
-
lib/EC2/responses.rb
|
14
|
+
lib/EC2/image_attributes.rb
|
10
15
|
lib/EC2/images.rb
|
11
16
|
lib/EC2/instances.rb
|
12
17
|
lib/EC2/keypairs.rb
|
13
18
|
lib/EC2/products.rb
|
14
|
-
lib/EC2/
|
19
|
+
lib/EC2/responses.rb
|
15
20
|
lib/EC2/security_groups.rb
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
scripts/txt2html
|
21
|
+
lib/EC2/version.rb
|
22
|
+
script/destroy
|
23
|
+
script/generate
|
24
|
+
script/txt2html
|
21
25
|
setup.rb
|
26
|
+
tasks/deployment.rake
|
27
|
+
tasks/environment.rake
|
28
|
+
tasks/website.rake
|
22
29
|
test/test_EC2.rb
|
23
30
|
test/test_EC2_console.rb
|
24
31
|
test/test_EC2_image_attributes.rb
|
@@ -30,6 +37,8 @@ test/test_EC2_responses.rb
|
|
30
37
|
test/test_EC2_security_groups.rb
|
31
38
|
test/test_EC2_version.rb
|
32
39
|
test/test_helper.rb
|
40
|
+
website/announce.html
|
41
|
+
website/announce.txt
|
33
42
|
website/index.html
|
34
43
|
website/index.txt
|
35
44
|
website/javascripts/rounded_corners_lite.inc.js
|
data/Rakefile
CHANGED
@@ -1,142 +1,4 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
3
|
-
|
4
|
-
|
5
|
-
require 'rake/packagetask'
|
6
|
-
require 'rake/gempackagetask'
|
7
|
-
require 'rake/rdoctask'
|
8
|
-
require 'rake/contrib/rubyforgepublisher'
|
9
|
-
require 'fileutils'
|
10
|
-
require 'hoe'
|
11
|
-
|
12
|
-
include FileUtils
|
13
|
-
require File.join(File.dirname(__FILE__), 'lib', 'EC2', 'version')
|
14
|
-
|
15
|
-
AUTHOR = ["Glenn Rempe"] # can also be an array of Authors
|
16
|
-
EMAIL = "glenn@elasticworkbench.com"
|
17
|
-
DESCRIPTION = "An interface library that allows Ruby or Ruby on Rails applications to easily connect to the HTTP 'Query API' for the Amazon Web Services Elastic Compute Cloud (EC2) and manipulate server instances."
|
18
|
-
GEM_NAME = "amazon-ec2" # what ppl will type to install your gem
|
19
|
-
|
20
|
-
@config_file = "~/.rubyforge/user-config.yml"
|
21
|
-
@config = nil
|
22
|
-
def rubyforge_username
|
23
|
-
unless @config
|
24
|
-
begin
|
25
|
-
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
26
|
-
rescue
|
27
|
-
puts <<-EOS
|
28
|
-
ERROR: No rubyforge config file found: #{@config_file}"
|
29
|
-
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
30
|
-
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
31
|
-
EOS
|
32
|
-
exit
|
33
|
-
end
|
34
|
-
end
|
35
|
-
@rubyforge_username ||= @config["username"]
|
36
|
-
end
|
37
|
-
|
38
|
-
RUBYFORGE_PROJECT = 'amazon-ec2' # The unix name for your project
|
39
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
40
|
-
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
41
|
-
RELEASE_TYPES = %w( gem ) # can use: gem, tar, zip
|
42
|
-
|
43
|
-
NAME = "amazon-ec2"
|
44
|
-
REV = nil
|
45
|
-
# UNCOMMENT IF REQUIRED:
|
46
|
-
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
|
47
|
-
VERS = EC2::VERSION::STRING + (REV ? ".#{REV}" : "")
|
48
|
-
CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
|
49
|
-
RDOC_OPTS = ['--quiet', '--title', 'Amazon EC2 documentation',
|
50
|
-
"--opname", "index.html",
|
51
|
-
"--line-numbers",
|
52
|
-
"--main", "README.txt",
|
53
|
-
"--inline-source"]
|
54
|
-
|
55
|
-
class Hoe
|
56
|
-
def extra_deps
|
57
|
-
@extra_deps.reject { |x| Array(x).first == 'hoe' }
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
# Generate all the Rake tasks
|
62
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
63
|
-
hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
64
|
-
p.name = NAME
|
65
|
-
p.version = VERS
|
66
|
-
p.author = AUTHOR
|
67
|
-
p.description = DESCRIPTION
|
68
|
-
p.email = EMAIL
|
69
|
-
p.summary = DESCRIPTION
|
70
|
-
p.url = HOMEPATH
|
71
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
72
|
-
p.test_globs = ["test/**/test_*.rb"]
|
73
|
-
p.clean_globs = CLEAN #An array of file patterns to delete on clean.
|
74
|
-
|
75
|
-
# == Optional
|
76
|
-
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
77
|
-
|
78
|
-
# An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
|
79
|
-
p.extra_deps = [['xml-simple', '>= 1.0.11'], ['mocha', '>= 0.4.0'], ['test-spec', '>= 0.3.0'], ['rcov', '>= 0.8.0.2'], ['syntax', '>= 1.0.0'], ['RedCloth', '>= 3.0.4']]
|
80
|
-
|
81
|
-
# A hash of extra values to set in the gemspec.
|
82
|
-
p.spec_extras = {
|
83
|
-
:extra_rdoc_files => ["README.txt", "History.txt", "License.txt"],
|
84
|
-
:rdoc_options => RDOC_OPTS,
|
85
|
-
:autorequire => "EC2"
|
86
|
-
}
|
87
|
-
|
88
|
-
end
|
89
|
-
|
90
|
-
CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\n\n")
|
91
|
-
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
92
|
-
hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
93
|
-
|
94
|
-
desc 'Generate website files'
|
95
|
-
task :website_generate do
|
96
|
-
Dir['website/**/*.txt'].each do |txt|
|
97
|
-
sh %{ ruby scripts/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
desc 'Upload website files to rubyforge'
|
102
|
-
task :website_upload do
|
103
|
-
host = "#{rubyforge_username}@rubyforge.org"
|
104
|
-
remote_dir = "/var/www/gforge-projects/#{PATH}/"
|
105
|
-
local_dir = 'website'
|
106
|
-
sh %{rsync -av #{local_dir}/ #{host}:#{remote_dir}}
|
107
|
-
end
|
108
|
-
|
109
|
-
desc 'Generate and upload website files'
|
110
|
-
task :website => [:website_generate, :website_upload]
|
111
|
-
|
112
|
-
desc 'Run all types of tests that we have defined'
|
113
|
-
task :test_all => [:test, :test_deps, :test_coverage]
|
114
|
-
|
115
|
-
desc 'Release the website and new gem version'
|
116
|
-
task :deploy => [:check_version, :website, :release] do
|
117
|
-
puts "Remember to create SVN tag:"
|
118
|
-
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
119
|
-
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
120
|
-
puts "Suggested comment:"
|
121
|
-
puts "Tagging release #{CHANGES}"
|
122
|
-
end
|
123
|
-
|
124
|
-
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
|
125
|
-
task :local_deploy => [:website_generate, :install_gem]
|
126
|
-
|
127
|
-
task :check_version do
|
128
|
-
unless ENV['VERSION']
|
129
|
-
puts 'Must pass a VERSION=x.y.z release version'
|
130
|
-
exit
|
131
|
-
end
|
132
|
-
unless ENV['VERSION'] == VERS
|
133
|
-
puts "Please update your version.rb to match the release version, currently #{VERS}"
|
134
|
-
exit
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
desc 'Runs RCOV and generates test coverage reports which are stored in coverage/ dir'
|
139
|
-
task :test_coverage do
|
140
|
-
sh %{rcov -T test/*.rb}
|
141
|
-
end
|
142
|
-
|
1
|
+
require 'config/requirements'
|
2
|
+
require 'config/hoe' # setup Hoe + all gem configuration
|
3
|
+
|
4
|
+
Dir['tasks/**/*.rake'].each { |rake| load rake }
|
data/bin/ec2-gem-example.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Amazon Web Services EC2 Query API Ruby library
|
4
4
|
#
|
5
5
|
# Ruby Gem Name:: amazon-ec2
|
6
|
-
# Author:: Glenn Rempe (mailto:
|
6
|
+
# Author:: Glenn Rempe (mailto:grempe@rubyforge.org)
|
7
7
|
# Copyright:: Copyright (c) 2007 Glenn Rempe
|
8
8
|
# License:: Distributes under the same terms as Ruby
|
9
9
|
# Home:: http://amazon-ec2.rubyforge.org
|
data/bin/ec2sh
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Amazon Web Services EC2 Query API Ruby library
|
4
4
|
#
|
5
5
|
# Ruby Gem Name:: amazon-ec2
|
6
|
-
# Author:: Glenn Rempe (mailto:
|
6
|
+
# Author:: Glenn Rempe (mailto:grempe@rubyforge.org)
|
7
7
|
# Copyright:: Copyright (c) 2007 Glenn Rempe
|
8
8
|
# License:: Distributes under the same terms as Ruby
|
9
9
|
# Home:: http://amazon-ec2.rubyforge.org
|
data/bin/setup.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Amazon Web Services EC2 Query API Ruby library
|
4
4
|
#
|
5
5
|
# Ruby Gem Name:: amazon-ec2
|
6
|
-
# Author:: Glenn Rempe (mailto:
|
6
|
+
# Author:: Glenn Rempe (mailto:grempe@rubyforge.org)
|
7
7
|
# Copyright:: Copyright (c) 2007 Glenn Rempe
|
8
8
|
# License:: Distributes under the same terms as Ruby
|
9
9
|
# Home:: http://amazon-ec2.rubyforge.org
|
data/config/hoe.rb
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'EC2/version'
|
2
|
+
|
3
|
+
AUTHOR = 'Glenn Rempe' # can also be an array of Authors
|
4
|
+
EMAIL = "grempe@rubyforge.org"
|
5
|
+
DESCRIPTION = "An interface library that allows Ruby or Ruby on Rails applications to easily connect to the HTTP 'Query API' for the Amazon Web Services Elastic Compute Cloud (EC2) and manipulate server instances."
|
6
|
+
GEM_NAME = 'amazon-ec2' # what ppl will type to install your gem
|
7
|
+
RUBYFORGE_PROJECT = 'amazon-ec2' # The unix name for your project
|
8
|
+
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
9
|
+
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
10
|
+
|
11
|
+
@config_file = "~/.rubyforge/user-config.yml"
|
12
|
+
@config = nil
|
13
|
+
RUBYFORGE_USERNAME = "grempe"
|
14
|
+
def rubyforge_username
|
15
|
+
unless @config
|
16
|
+
begin
|
17
|
+
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
18
|
+
rescue
|
19
|
+
puts <<-EOS
|
20
|
+
ERROR: No rubyforge config file found: #{@config_file}
|
21
|
+
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
22
|
+
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
23
|
+
EOS
|
24
|
+
exit
|
25
|
+
end
|
26
|
+
end
|
27
|
+
RUBYFORGE_USERNAME.replace @config["username"]
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
REV = nil
|
32
|
+
# UNCOMMENT IF REQUIRED:
|
33
|
+
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
|
34
|
+
VERS = EC2::VERSION::STRING + (REV ? ".#{REV}" : "")
|
35
|
+
RDOC_OPTS = ['--quiet', '--title', 'amazon-ec2 documentation',
|
36
|
+
"--opname", "index.html",
|
37
|
+
"--line-numbers",
|
38
|
+
"--main", "README.txt",
|
39
|
+
"--inline-source"]
|
40
|
+
|
41
|
+
class Hoe
|
42
|
+
def extra_deps
|
43
|
+
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
|
44
|
+
@extra_deps
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Generate all the Rake tasks
|
49
|
+
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
50
|
+
hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
51
|
+
p.author = AUTHOR
|
52
|
+
p.description = DESCRIPTION
|
53
|
+
p.email = EMAIL
|
54
|
+
p.summary = DESCRIPTION
|
55
|
+
p.url = HOMEPATH
|
56
|
+
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
57
|
+
p.test_globs = ["test/**/test_*.rb"]
|
58
|
+
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
|
59
|
+
|
60
|
+
# == Optional
|
61
|
+
p.changes = p.paragraphs_of("History.txt", 0..1).join("\\n\\n")
|
62
|
+
#p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
|
63
|
+
p.extra_deps = [['xml-simple', '>= 1.0.11'], ['mocha', '>= 0.4.0'], ['test-spec', '>= 0.3.0'], ['rcov', '>= 0.8.0.2'], ['syntax', '>= 1.0.0'], ['RedCloth', '>= 3.0.4']]
|
64
|
+
|
65
|
+
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
66
|
+
p.spec_extras = {
|
67
|
+
:extra_rdoc_files => ["README.txt", "History.txt", "License.txt"],
|
68
|
+
:rdoc_options => RDOC_OPTS,
|
69
|
+
:autorequire => "EC2"
|
70
|
+
}
|
71
|
+
|
72
|
+
end
|
73
|
+
|
74
|
+
CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
75
|
+
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
76
|
+
hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|