Sha256: 58f71b8e199a72688d77f04a6c38392e893068b0bce9d93bf0a24f7d6aef1647

Contents?: true

Size: 948 Bytes

Versions: 17

Compression:

Stored size: 948 Bytes

Contents

require "bundler/gem_tasks"
require 'rake/testtask'
require 'fileutils'
require 'pathname'
require 'git'
include FileUtils

desc 'Default: run unit tests.'
task :default => :test

desc "Update misc tables"
task :update do
  Dir.glob("tools/update_*.rb").each do |path|
    ruby path
  end
end

namespace :test do
  desc "Preparation of external modules"
  task :prepare do
    external_repos = [
      "jpmobile-ipaddresses",
      "jpmobile-terminfo"
    ]
    github_prefix = "git://github.com/jpmobile"
    vendor_path = Pathname.new(Dir.pwd).join("vendor")
    FileUtils.mkdir_p(vendor_path)

    FileUtils.cd(vendor_path) do
      external_repos.each do |repos|
        unless File.directory?("#{repos}/.git")
          Git.clone("#{github_prefix}/#{repos}.git", repos, {:path => vendor_path})
        end
      end
    end
  end
end

task :test => ['test:prepare', 'spec:unit', 'spec:rack', 'test:rails']
load 'lib/tasks/jpmobile_tasks.rake'

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
jpmobile-4.2.5 Rakefile
jpmobile-4.2.4 Rakefile
jpmobile-5.0.0 Rakefile
jpmobile-5.0.0.beta3 Rakefile
jpmobile-4.1.5 Rakefile
jpmobile-5.0.0.beta2 Rakefile
jpmobile-4.2.3 Rakefile
jpmobile-4.2.2 Rakefile
jpmobile-4.2.1 Rakefile
jpmobile-5.0.0.beta1 Rakefile
jpmobile-4.2.0 Rakefile
jpmobile-4.1.4 Rakefile
jpmobile-4.0.1 Rakefile
jpmobile-4.1.1 Rakefile
jpmobile-4.1.0 Rakefile
jpmobile-4.1.0.rc1 Rakefile
jpmobile-4.0.0 Rakefile