Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 78 lines (64 sloc) 1.894 kB
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
1 require 'rubygems'
2 require 'rake/gempackagetask'
9837f9f added a few Resource specific specs
Ezra Zygmuntowicz authored
3 require "spec/rake/spectask"
78baa0c @raggi Added support for rdoc generation from Rakefile, and use hanna if ava…
raggi authored
4 begin; require 'rubygems'; rescue LoadError; end
5 begin
6 require 'hanna/rdoctask'
7 rescue LoadError
8 require 'rake/rdoctask'
9 end
10 require 'rake/clean'
a80fe31 @roidrage Consistently use one version number all around.
roidrage authored
11 require 'lib/nanite'
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
12
22d8832 updated libraries to do mapping in the mapper
Ezra Zygmuntowicz authored
13 GEM = "nanite"
38f7dd9 @grempe De-Anonymize the generated gem.
grempe authored
14 AUTHOR = "Ezra Zygmuntowicz"
15 EMAIL = "ezra@engineyard.com"
16 HOMEPAGE = "http://github.com/ezmobius/nanite"
6fc32f6 slight changes
Ezra Zygmuntowicz authored
17 SUMMARY = "self assembling fabric of ruby daemons"
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
18
9d5260d @careo experimental rake tasks to control rabbitmq.
careo authored
19 Dir.glob('tasks/*.rake').each { |r| Rake.application.add_import r }
20
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
21 spec = Gem::Specification.new do |s|
a80fe31 @roidrage Consistently use one version number all around.
roidrage authored
22
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
23 s.name = GEM
a80fe31 @roidrage Consistently use one version number all around.
roidrage authored
24 s.version = Nanite::VERSION
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
25 s.platform = Gem::Platform::RUBY
26 s.has_rdoc = true
b7d5e63 @grempe Moving README so we can get some nice rdoc formatting on GitHub. Cur…
grempe authored
27 s.extra_rdoc_files = ["README.rdoc", "LICENSE", 'TODO']
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
28 s.summary = SUMMARY
29 s.description = s.summary
30 s.author = AUTHOR
31 s.email = EMAIL
32 s.homepage = HOMEPAGE
7f5c2f7 @grempe Consolidate some example related code to the examples dir.
grempe authored
33
87e4127 big refactoring for security. Now agents listen on queues with crypto…
Ezra Zygmuntowicz authored
34 s.bindir = "bin"
d94e8ce Distinct seperation of Mapper and Agent in terms of code and usage
Ian Leitch authored
35 s.executables = %w( nanite-agent nanite-mapper nanite-admin )
7f5c2f7 @grempe Consolidate some example related code to the examples dir.
grempe authored
36
3958d0d @grempe Updated instructions for amqp installation. Require version >= 0.6.0.
grempe authored
37 s.add_dependency('amqp', '>= 0.6.0')
26889dd @roidrage Added explicit dependency on json gem. Closes #12
roidrage authored
38 s.add_dependency('json', '>= 1.1.7')
7f5c2f7 @grempe Consolidate some example related code to the examples dir.
grempe authored
39
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
40 s.require_path = 'lib'
b7d5e63 @grempe Moving README so we can get some nice rdoc formatting on GitHub. Cur…
grempe authored
41 s.files = %w(LICENSE README.rdoc Rakefile TODO) + Dir.glob("{lib,bin,specs}/**/*")
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
42 end
43
44 Rake::GemPackageTask.new(spec) do |pkg|
45 pkg.gem_spec = spec
46 end
47
ed771da @roidrage Rake default task is now to run specs.
roidrage authored
48 task :default => :spec
49
f25d586 Adding NEw Nanite Map/Reduce Agent Framework Code
Ezra Zygmuntowicz authored
50 task :install => [:package] do
a80fe31 @roidrage Consistently use one version number all around.
roidrage authored
51 sh %{sudo gem install pkg/#{GEM}-#{Nanite::VERSION}}
9837f9f added a few Resource specific specs
Ezra Zygmuntowicz authored
52 end
53
54 desc "Run unit specs"
55 Spec::Rake::SpecTask.new do |t|
56 t.spec_opts = ["--format", "specdoc", "--colour"]
57 t.spec_files = FileList["spec/**/*_spec.rb"]
7f5c2f7 @grempe Consolidate some example related code to the examples dir.
grempe authored
58 end
78baa0c @raggi Added support for rdoc generation from Rakefile, and use hanna if ava…
raggi authored
59
60 desc 'Generate RDoc documentation'
61 Rake::RDocTask.new do |rd|
62 rd.title = spec.name
63 rd.rdoc_dir = 'rdoc'
64 rd.main = "README.rdoc"
65 rd.rdoc_files.include("lib/**/*.rb", *spec.extra_rdoc_files)
66 end
67 CLOBBER.include(:clobber_rdoc)
68
69 desc 'Generate and open documentation'
70 task :docs => :rdoc do
71 case RUBY_PLATFORM
72 when /darwin/ ; sh 'open rdoc/index.html'
73 when /mswin|mingw/ ; sh 'start rdoc\index.html'
74 else
75 sh 'firefox rdoc/index.html'
76 end
77 end
Something went wrong with that request. Please try again.