Module: Buildgem

Defined in:
lib/buildgem.rb

Defined Under Namespace

Classes: Gem

Constant Summary collapse

VERSION_FILE =

The VERSION file must be in the root directory of the library.

File.expand_path('../../VERSION', __FILE__)
VERSION =
File.exist?(VERSION_FILE) ?
File.read(VERSION_FILE).chomp : '(could not find VERSION file)'

Class Method Summary collapse

Class Method Details

.build_gem(name) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/buildgem.rb', line 12

def self.build_gem(name)
  if name
    Gem.new(name)
  else
    puts 'Provide an argument, the gem name. Example: buildgem my_gem'
  end
end