rubygems-tasks 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,5 +1,5 @@
1
1
  name: rubygems-tasks
2
- version: 0.2.1
2
+ version: 0.2.2
3
3
  summary: Rake tasks for managing and releasing Ruby Gems.
4
4
  description:
5
5
  Agnostic and unobtrusive Rake tasks for managing and releasing Ruby Gems.
@@ -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 => [:validate, Project::PKG_DIR, *gemspec.files]) do
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)
@@ -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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: