public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
Added gem related rake tasks [#55]

 * Rolling a manual gemspec for now
 * Upped VERSION to 1.99.0 pending a published gem
rmm5t (author)
Sun Sep 14 08:12:39 -0700 2008
commit  864a35fe81cb02b0c9fa9de6aeffa1411cad2748
tree    9790affb96097087174c1968c4e3fa626cca8a1f
parent  d6277da24639ee0a10ecf6686226193fbf640317
...
2
3
4
 
...
2
3
4
5
0
@@ -2,3 +2,4 @@ test/rails_root/log/*.log
0
 doc
0
 coverage
0
 .svn/
0
+pkg
...
1
2
3
 
 
 
4
5
6
...
33
34
35
36
 
 
 
 
 
 
 
 
 
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
...
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
68
69
70
71
72
0
@@ -1,6 +1,9 @@
0
 require 'rake'
0
 require 'rake/testtask'
0
 require 'rake/rdoctask'
0
+require 'rake/gempackagetask'
0
+require 'lib/shoulda/context'
0
+require 'lib/shoulda/tasks'
0
 
0
 # Test::Unit::UI::VERBOSE
0
 test_files_pattern = 'test/{unit,functional,other}/**/*_test.rb'
0
@@ -33,5 +36,37 @@ end
0
 desc 'Default: run tests.'
0
 task :default => ['test']
0
 
0
-require 'lib/shoulda/tasks'
0
+spec = Gem::Specification.new do |s|
0
+ s.name = "shoulda"
0
+ s.version = Thoughtbot::Shoulda::VERSION
0
+ s.summary = "Making tests easy on the fingers and eyes"
0
+ s.homepage = "http://thoughtbot.com/projects/shoulda"
0
+ s.rubyforge_project = "shoulda"
0
+
0
+ s.files = FileList["[A-Z]*", "{bin,lib,test}/**/*"]
0
+ s.executables = s.files.grep(/^bin/) { |f| File.basename(f) }
0
 
0
+ s.has_rdoc = true
0
+ s.extra_rdoc_files = ["README.rdoc", "CONTRIBUTION_GUIDELINES.rdoc"]
0
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--main", "README.rdoc"]
0
+
0
+ s.authors = ["Tammer Saleh"]
0
+ s.email = "tsaleh@thoughtbot.com"
0
+
0
+ s.add_dependency "activesupport", ">= 2.0"
0
+end
0
+
0
+Rake::GemPackageTask.new spec do |pkg|
0
+ pkg.need_tar = true
0
+ pkg.need_zip = true
0
+end
0
+
0
+desc "Clean files generated by rake tasks"
0
+task :clobber => [:clobber_rdoc, :clobber_package]
0
+
0
+desc "Generate a gemspec file for GitHub"
0
+task :gemspec do
0
+ File.open("#{spec.name}.gemspec", 'w') do |f|
0
+ f.write spec.to_ruby
0
+ end
0
+end
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 module Thoughtbot # :nodoc:
0
   module Shoulda
0
- VERSION = '1.1.1'
0
+ VERSION = '1.99.0'
0
 
0
     class << self
0
       attr_accessor :contexts

Comments

    No one has commented yet.