public
Rubygem
Description: Ruby helpers for avatar display
Clone URL: git://github.com/gcnovus/avatar.git
added gemspec tasks; added gemspec
gcnovus (author)
Thu Jul 17 18:47:22 -0700 2008
commit  201c097de9cf2b51d1d8ea76d687f91606e7f8c3
tree    896c69aa8c416b0b54b27b554421637435cdc92a
parent  fe1b4b939e6147164d36c59e8ec7432c4c24ee69
...
 
 
1
 
2
3
4
...
9
10
11
 
 
12
13
14
...
40
41
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
44
...
1
2
3
4
5
6
7
...
12
13
14
15
16
17
18
19
...
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
0
@@ -1,4 +1,7 @@
0
+require 'date'
0
+require 'rake/rdoctask'
0
 require 'rake/testtask'
0
+require 'rake/gempackagetask'
0
 
0
 task :default => ['test']
0
 
0
@@ -9,6 +12,8 @@ Rake::TaskManager.class_eval do
0
 end
0
 
0
 PROJECT_ROOT = File.expand_path(File.dirname(__FILE__))
0
+$: << File.join(PROJECT_ROOT, 'lib')
0
+require 'avatar/version'
0
 
0
 LIB_DIRECTORIES = FileList.new do |fl|
0
   fl.include "#{PROJECT_ROOT}/lib"
0
@@ -40,4 +45,43 @@ namespace :coverage do
0
   task :clean do
0
     rm_r 'coverage' if File.directory?('coverage')
0
   end
0
+end
0
+
0
+namespace :gem do
0
+
0
+ spec = Gem::Specification.new do |s|
0
+ s.name = 'avatar'
0
+ s.version = Avatar::VERSION::STRING
0
+ s.summary = 'Multi-source avatar support'
0
+ s.description = "Adds support for rendering avatars from a variety of sources."
0
+
0
+ s.specification_version = 2 if s.respond_to? :specification_version=
0
+ s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
0
+
0
+ s.authors = ['James Rosen']
0
+ s.email = 'james.a.rosen@gmail.com'
0
+
0
+ s.files = [ 'History.txt', 'License.txt', 'README.txt', 'init.rb', 'rails/init.rb' ] + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?('.git') }
0
+
0
+ s.has_rdoc = true
0
+ s.homepage = 'http://github.com/gcnovus/avatar'
0
+ s.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'Grammar RDoc', '--charset', 'utf-8']
0
+ s.require_paths = ['lib']
0
+ s.rubygems_version = '1.1.1'
0
+ end
0
+
0
+ namespace :spec do
0
+ desc 'writes the spec file to avatar.gemspec'
0
+ task :write do
0
+ File.open(File.join(PROJECT_ROOT, 'avatar.gemspec'), 'w') do |f|
0
+ f << spec.to_ruby
0
+ end
0
+ end
0
+ end
0
+
0
+ Rake::GemPackageTask.new(spec) do |p|
0
+ p.gem_spec = spec
0
+ p.need_tar = true
0
+ p.need_zip = true
0
+ end
0
 end
0
\ No newline at end of file

Comments

    No one has commented yet.