module Rookie

Utilities to create and work with Ruby gems.

@author Matheus Afonso Martins Moreira

Public Class Methods

gem() click to toggle source

The gem directory, relative to the root.

@return [String] the absolute path to the gem directory @since 0.4.0

# File lib/rookie.rb, line 21
def gem
  File.join root, 'gem'
end
licenses() click to toggle source

The licenses directory, relative to the gem directory.

@return [String] the absolute path to the licenses directory @since 0.4.0

# File lib/rookie.rb, line 29
def licenses
  File.join gem, 'licenses'
end
root() click to toggle source

Location of the Rookie gem.

@return [String] the absolute path to the Rookie gem @since 0.4.0

# File lib/rookie.rb, line 13
def root
  File.expand_path '..', File.dirname(__FILE__)
end
template() click to toggle source

The template directory, relative to the gem directory.

@return [String] the absolute path to the template directory @since 0.4.0

# File lib/rookie.rb, line 37
def template
  File.join gem, 'template'
end