Sha256: 49be09bde2cb3c2a3c6378febe7e751511340d6e6d07b309afa0c99aac4c4f8d

Contents?: true

Size: 1.4 KB

Versions: 2

Compression:

Stored size: 1.4 KB

Contents

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)
require 'rake'

DcmgrGui::Application.load_tasks

$LOAD_PATH.unshift File.expand_path('../../../dcmgr/lib', __FILE__)

desc "build gem packages"
task :gem do
  require 'rubygems'
  require 'rake/gempackagetask'
  require 'dcmgr'
  
  spec = Gem::Specification.new do |s|
    s.platform = Gem::Platform::RUBY
    s.version = Dcmgr::VERSION
    s.authors = ['axsh Ltd.']
    s.email = ['dev@axsh.net']
    s.name = 'wakame-vdc-webui'
    s.summary = "Datacenter management toolkit for IaaS Cloud: UI frontend"
    s.required_ruby_version = '>= 1.8.7'

    s.files = Dir['app/**/*.{rb,erb}','lib/**/*.rb',
                  'config/**/*.{rb,yml}', 'db/**/*.rb',
                  'extras/**/*.rb', 'public/**/*.*',
                  'lib/**/*.{rb,rake}', 'test/**/*.rb',
                  'vendor/plugins/**/*.*', 'tmp/',
                  'script/*', 'test/**/*.rb', 'doc/**/*.*'] +
      %w(Rakefile config.ru README LICENSE NOTICE INSTALL.txt tmp)

    s.add_dependency "rails", '3.0.0'
    s.add_dependency 'mysql','2.8.1'
    s.add_dependency 'sequel','3.15.0'
    s.add_dependency 'json','1.4.6'
  end
  
  File.open("#{spec.name}.gemspec", 'w'){|f| f.write(spec.to_ruby) }
  sh "gem build #{spec.name}.gemspec"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wakame-vdc-webui-10.12.0 Rakefile
wakame-vdc-webui-10.11.0 Rakefile