rubygems-tasks 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog.md +10 -0
- data/gemspec.yml +1 -1
- data/lib/rubygems/tasks/build/task.rb +3 -1
- data/lib/rubygems/tasks/task.rb +14 -0
- metadata +1 -1
data/ChangeLog.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### 0.2.2 / 2012-04-29
|
2
|
+
|
3
|
+
* Added {Gem::Tasks::Task#invoke}.
|
4
|
+
|
5
|
+
#### build:*
|
6
|
+
|
7
|
+
* Explicitly invoke the `validate` task from within package file tasks.
|
8
|
+
This prevents package file tasks from always being triggered, due to the
|
9
|
+
dependency on `validate`.
|
10
|
+
|
1
11
|
### 0.2.1 / 2012-04-29
|
2
12
|
|
3
13
|
* Overrode the `FileUtils.fu_output_message` to call
|
data/gemspec.yml
CHANGED
@@ -42,7 +42,9 @@ module Gem
|
|
42
42
|
path = packages[extname]
|
43
43
|
|
44
44
|
# define file tasks, so the packages are not needless re-built
|
45
|
-
file(path => [
|
45
|
+
file(path => [Project::PKG_DIR, *gemspec.files]) do
|
46
|
+
invoke :validate
|
47
|
+
|
46
48
|
status "Building #{File.basename(path)} ..."
|
47
49
|
|
48
50
|
build(path,gemspec)
|
data/lib/rubygems/tasks/task.rb
CHANGED
@@ -103,6 +103,20 @@ module Gem
|
|
103
103
|
Rake::Task.task_defined?(name)
|
104
104
|
end
|
105
105
|
|
106
|
+
#
|
107
|
+
# Explicitly invokes a task.
|
108
|
+
#
|
109
|
+
# @param [Symbol, String] name
|
110
|
+
# The name of the task.
|
111
|
+
#
|
112
|
+
# @api semipublic
|
113
|
+
#
|
114
|
+
# @since 0.2.2
|
115
|
+
#
|
116
|
+
def invoke(name)
|
117
|
+
Rake.application[name].invoke
|
118
|
+
end
|
119
|
+
|
106
120
|
#
|
107
121
|
# Defines a task that will invoke one or all of the specifies tasks
|
108
122
|
# within the namespace.
|