Class Sprout::GemWrapTask
In: sprout/lib/sprout/tasks/gem_wrap_task.rb
Parent: Rake::Task

Creates a ruby gem from a slightly simpler rake task than what gems provides. Adds support for adding a sprout.spec file to your new gem which is usually useful for tool or library sprout gems.

Methods

Attributes

author  [W]  The author that created the gem
email  [W]  Email address for interested users to send questions to
gem_name  [W]  The full name of the gem to create like:
  t.gem_name = 'sprout-as3-bundle'
homepage  [W]  Homepage where users can learn more about this gem
package  [W]  Folder that the newly-created gem should be placed in
sprout_spec  [W]  A string remote file specification usually something like:
  t.sprout_spec   =<<EOF
  - !ruby/object:Sprout::RemoteFileTarget
    platform: universal
    url: http://as3flickrlib.googlecode.com/files/flickr-.87.zip
    archive_path: flickr-.87/src
  EOF
sprout_type  [W]  The type of sprout to create, defaults to ‘library’ Other possible values are, ‘bundle’ and ‘tool‘
summary  [W]  Summary or short description for the gem
version  [W]  Full string rubygem version for this sprout, usually in three parts like:
 t.version = '0.0.1'

Public Class methods

[Source]

# File sprout/lib/sprout/tasks/gem_wrap_task.rb, line 67
    def self.define_task(args, &block)
      t = super
      yield t if block_given?
      t.define
    end

Public Instance methods

Add a gem dependency either with only the gem name or with a full name and version hash like:

  t.add_dependency('sprout-flashplayer-tool')

or

  t.add_dependency('sprout-flashplayer-tool' => '9.115.0')

[Source]

# File sprout/lib/sprout/tasks/gem_wrap_task.rb, line 145
    def add_dependency(args)
      gem_dependencies << args
    end

Add files to include in the gem/ext folder

[Source]

# File sprout/lib/sprout/tasks/gem_wrap_task.rb, line 154
    def extensions
      return @extensions ||= []
    end

[Source]

# File sprout/lib/sprout/tasks/gem_wrap_task.rb, line 149
    def gem_dependencies
      return @gem_dependencies ||= []
    end

[Validate]