Sha256: 1cfa9fcec85b6f8312e6728e84e627a96afd9d0eed1ce8bcedb5242c7d070201

Contents?: true

Size: 579 Bytes

Versions: 4

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task default: :spec

get_gem_file = -> { Dir["pkg/*"].first }

desc "test"
task :test do
  sh "gem uninstall stats_lite -a -x"
  sh "rm #{get_gem_file.call} -f"
  sh "rake build"
  sh "gem install #{get_gem_file.call}"
end

desc "integration"
task "integration" do
  sh "rake test"
  sh "cd integration_test && stats-lite"
end


desc "deploy"
task "deploy" do
  sh "rm #{get_gem_file.call} -f"
  sh "rake build"
  sh "gem push #{get_gem_file.call}"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stats_lite-0.5.4 Rakefile
stats_lite-0.5.3 Rakefile
stats_lite-0.5.2 Rakefile
stats_lite-0.5.1 Rakefile