Sha256: f36cabce3f63a1afd655ba894d08a0de5fac13b660a269203f9364ab1a16fe60

Contents?: true

Size: 872 Bytes

Versions: 30

Compression:

Stored size: 872 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake'
require 'rspec/core/rake_task'

desc 'Build Gem'
task :build do
  system 'gem build mailgun.gemspec'
end

desc 'Run unit specs'
RSpec::Core::RakeTask.new('spec:unit') do |t|
  t.rspec_opts = %w(--colour --format documentation)
  t.pattern = 'spec/unit/*_spec.rb', 'spec/unit/*/*_spec.rb'
end

desc 'Run integration specs'
# Before running integration tests, you need to specify
# a valid API KEY in the spec/spec_helper.rb file.
RSpec::Core::RakeTask.new('spec:integration') do |t|
  t.rspec_opts = %w(--colour --format documentation)
  t.pattern = 'spec/integration/*_spec.rb'
end

desc 'Run all tests'
RSpec::Core::RakeTask.new('spec:all') do |t|
  t.rspec_opts = %w(--colour --format documentation)
  t.pattern = 'spec/**/*_spec.rb'
end

task default: 'spec:unit'
task spec: 'spec:unit'

task :console do
  sh 'pry --gem'
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
mailgun-ruby-1.3.2 Rakefile
mailgun-ruby-1.3.1 Rakefile
mailgun-ruby-1.3.0 Rakefile
mailgun-ruby-1.2.16 Rakefile
mailgun-ruby-1.2.15 Rakefile
mailgun-ruby-1.2.14 Rakefile
mailgun-ruby-1.2.13 Rakefile
mailgun-ruby-1.2.12 Rakefile
mailgun-ruby-1.2.11 Rakefile
mailgun-ruby-1.2.10 Rakefile
mailgun-ruby-1.2.9 Rakefile
mailgun-ruby-1.2.8 Rakefile
mailgun-ruby-1.2.7 Rakefile
mailgun-ruby-1.2.6 Rakefile
mailgun-ruby-1.2.5 Rakefile
mailgun-ruby-1.2.4 Rakefile
mailgun-ruby-1.2.3 Rakefile
mailgun-ruby-1.2.0 Rakefile
mailgun-ruby-1.1.11 Rakefile
mailgun-ruby-1.1.10 Rakefile