bougyman-autumn 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/autumn.gemspec +1 -1
- data/lib/autumn/version.rb +1 -1
- data/lib/skel/Rakefile +35 -2
- data/tasks/gem.rake +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
[d099756 | Sun May 03 15:31:30 UTC 2009] TJ Vanderpoel <bougy.man@gmail.com>
|
2
|
+
|
3
|
+
* added more complete release task and added authors generation to gemspec. Pulled Rakefile in from the http://github.com/riscfuture/autumn specs branch
|
4
|
+
|
5
|
+
[908c032 | Sun May 03 14:57:53 UTC 2009] TJ Vanderpoel <bougy.man@gmail.com>
|
6
|
+
|
7
|
+
* fixed usage typos and deprecated info
|
8
|
+
|
1
9
|
[50769ee | Sun May 03 14:47:53 UTC 2009] TJ Vanderpoel <bougy.man@gmail.com>
|
2
10
|
|
3
11
|
* moved main rdoc task to root Rakefile, changed requires in authentication_spec. TODO: how are these spec run?
|
data/autumn.gemspec
CHANGED
data/lib/autumn/version.rb
CHANGED
data/lib/skel/Rakefile
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
require 'rake'
|
2
|
-
require '
|
2
|
+
require 'spec/rake/spectask'
|
3
|
+
|
4
|
+
|
5
|
+
def include_autumn
|
6
|
+
begin
|
7
|
+
require "autumn"
|
8
|
+
require "autumn/genesis"
|
9
|
+
rescue LoadError
|
10
|
+
require "rubygems"
|
11
|
+
require "autumn"
|
12
|
+
require "autumn/genesis"
|
13
|
+
end
|
14
|
+
end
|
3
15
|
|
4
16
|
task :default do
|
5
17
|
puts 'Type "rake --tasks" to see a list of tasks you can perform.'
|
@@ -7,6 +19,7 @@ end
|
|
7
19
|
|
8
20
|
# Load the Autumn environment.
|
9
21
|
task :environment do
|
22
|
+
include_autumn
|
10
23
|
AL_ROOT = File.dirname(__FILE__)
|
11
24
|
@genesis = Autumn::Genesis.new
|
12
25
|
@genesis.load_global_settings
|
@@ -14,6 +27,7 @@ task :environment do
|
|
14
27
|
end
|
15
28
|
|
16
29
|
task :boot do
|
30
|
+
include_autumn
|
17
31
|
AL_ROOT = File.dirname(__FILE__)
|
18
32
|
@genesis = Autumn::Genesis.new
|
19
33
|
@genesis.boot! false
|
@@ -101,7 +115,6 @@ namespace :db do
|
|
101
115
|
end
|
102
116
|
|
103
117
|
namespace :doc do
|
104
|
-
|
105
118
|
desc "Generate documentation for all leaves"
|
106
119
|
task :leaves => :environment do
|
107
120
|
FileUtils.remove_dir 'doc/leaves' if File.directory? 'doc/leaves'
|
@@ -119,6 +132,26 @@ namespace :doc do
|
|
119
132
|
end
|
120
133
|
end
|
121
134
|
|
135
|
+
desc "Verify leaf and API specs"
|
136
|
+
Spec::Rake::SpecTask.new do |t|
|
137
|
+
t.spec_files = FileList['spec/**/*.rb', 'leaves/*/spec/**/*.rb']
|
138
|
+
t.spec_opts = [ '-cfs' ]
|
139
|
+
end
|
140
|
+
|
141
|
+
namespace :spec do
|
142
|
+
desc "Verify API specs"
|
143
|
+
Spec::Rake::SpecTask.new('autumn') do |t|
|
144
|
+
t.spec_files = FileList['spec/**/*.rb']
|
145
|
+
t.spec_opts = [ '-cfs' ]
|
146
|
+
end
|
147
|
+
|
148
|
+
desc "Verify leaf specs"
|
149
|
+
Spec::Rake::SpecTask.new('leaves') do |t|
|
150
|
+
t.spec_files = FileList['leaves/*/spec/**/*.rb']
|
151
|
+
t.spec_opts = [ '-cfs' ]
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
122
155
|
# Load any custom Rake tasks in the bot's tasks directory.
|
123
156
|
Dir["leaves/*"].each do |leaf|
|
124
157
|
leaf_name = File.basename(leaf, ".rb").downcase
|
data/tasks/gem.rake
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rake/gempackagetask'
|
2
2
|
|
3
3
|
desc "make a gemspec"
|
4
|
-
task :gemspec => [:manifest, :changelog] do
|
4
|
+
task :gemspec => [:manifest, :changelog, :authors] do
|
5
5
|
gemspec_file = "#{GEMSPEC.name}.gemspec"
|
6
6
|
File.open(gemspec_file, 'w+'){|gs| gs.puts(GEMSPEC.to_ruby) }
|
7
7
|
end
|