thorero 0.9.4.2 → 0.9.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +18 -11
- metadata +1 -1
data/Rakefile
CHANGED
@@ -10,22 +10,25 @@ require Pathname('lib/extlib/version')
|
|
10
10
|
|
11
11
|
ROOT = Pathname(__FILE__).dirname.expand_path
|
12
12
|
|
13
|
+
##############################################################################
|
14
|
+
# Package && release
|
15
|
+
##############################################################################
|
16
|
+
RUBY_FORGE_PROJECT = "thorero"
|
17
|
+
PROJECT_URL = "http://thorero.rubyforge.org"
|
18
|
+
PROJECT_SUMMARY = "test releases task"
|
19
|
+
PROJECT_DESCRIPTION = PROJECT_SUMMARY
|
20
|
+
|
13
21
|
AUTHOR = "Test test"
|
14
22
|
EMAIL = "test test@gmail.com"
|
15
23
|
|
16
24
|
GEM_NAME = "thorero"
|
17
25
|
GEM_VERSION = Extlib::VERSION
|
18
26
|
|
19
|
-
RUBY_FORGE_PROJECT = "thorero"
|
20
|
-
PROJECT_URL = "http://thorero.rubyforge.org"
|
21
|
-
PROJECT_DESCRIPTION = PROJECT_SUMMARY = "test releases task"
|
22
|
-
|
23
27
|
PKG_NAME = GEM_NAME
|
24
28
|
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
25
29
|
PKG_VERSION = Extlib::VERSION + PKG_BUILD
|
26
30
|
|
27
|
-
RELEASE_NAME
|
28
|
-
RUBY_FORGE_USER = "webster132"
|
31
|
+
RELEASE_NAME = "REL #{PKG_VERSION}"
|
29
32
|
|
30
33
|
require "lib/extlib/tasks/release"
|
31
34
|
|
@@ -53,16 +56,15 @@ Rake::GemPackageTask.new(spec) do |package|
|
|
53
56
|
package.gem_spec = spec
|
54
57
|
end
|
55
58
|
|
59
|
+
desc 'Remove all package, docs and spec products'
|
60
|
+
task :clobber_all => %w[ clobber_package clobber_doc extlib:clobber_spec ]
|
61
|
+
|
56
62
|
##############################################################################
|
57
|
-
#
|
63
|
+
# Specs and continous integration
|
58
64
|
##############################################################################
|
59
|
-
|
60
65
|
task :default => 'extlib:spec'
|
61
66
|
task :spec => 'extlib:spec'
|
62
67
|
|
63
|
-
desc 'Remove all package, docs and spec products'
|
64
|
-
task :clobber_all => %w[ clobber_package clobber_doc extlib:clobber_spec ]
|
65
|
-
|
66
68
|
namespace :extlib do
|
67
69
|
Spec::Rake::SpecTask.new(:spec) do |t|
|
68
70
|
t.spec_opts << '--format' << 'specdoc' << '--colour'
|
@@ -80,6 +82,10 @@ namespace :extlib do
|
|
80
82
|
end
|
81
83
|
end
|
82
84
|
|
85
|
+
|
86
|
+
##############################################################################
|
87
|
+
# Documentation
|
88
|
+
##############################################################################
|
83
89
|
desc "Generate documentation"
|
84
90
|
task :doc do
|
85
91
|
begin
|
@@ -94,6 +100,7 @@ end
|
|
94
100
|
WINDOWS = (RUBY_PLATFORM =~ /win32|mingw|bccwin|cygwin/) rescue nil
|
95
101
|
SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
|
96
102
|
|
103
|
+
|
97
104
|
desc "Install #{GEM_NAME}"
|
98
105
|
task :install => :package do
|
99
106
|
sh %{#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}
|