Sha256: 4b6897378f644d3e9f69ecbf7336183b8c58c0e443132e868cfb04872d261c4e

Contents?: true

Size: 1.17 KB

Versions: 29

Compression:

Stored size: 1.17 KB

Contents

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

Dir.glob('lib/tasks/**/*.rake').each { |task| load "#{Dir.pwd}/#{task}" }
Dir.glob('tasks/**/*.rake').each { |task| load "#{Dir.pwd}/#{task}" }
RSpec::Core::RakeTask.new(:spec) do | task |
  task.rspec_opts = "--pattern spec/lib/**/*_spec.rb"
end

RSpec::Core::RakeTask.new('spec:providers') do | task |
  task.rspec_opts = "--pattern spec/service_providers/**/*_spec.rb"
end

# Must be run after spec:providers because it relies on the generated pact
RSpec::Core::RakeTask.new('spec:integration') do | task |
  task.rspec_opts = "--pattern spec/integration/**/*_spec.rb"
end

task :default => [:spec, 'spec:providers', 'spec:integration']

task :generate_changelog do
  require 'pact_broker/client/version'
  ConventionalChangelog::Generator.new.generate! version: "v#{PactBroker::Client::VERSION}"
end

desc 'List provider states'
task 'pact:list_provider_states' do
  require 'json'
  puts Dir.glob("spec/pacts/**.json").collect { | pact_file |
    puts pact_file
    JSON.parse(File.read(pact_file))['interactions'].collect{ | interaction| interaction['providerState'] }
  }.flatten.compact.sort.uniq
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
pact_broker-client-1.27.14 Rakefile
pact_broker-client-1.27.13 Rakefile
pact_broker-client-1.27.12 Rakefile
pact_broker-client-1.27.11 Rakefile
pact_broker-client-1.27.10 Rakefile
pact_broker-client-1.27.9 Rakefile
pact_broker-client-1.27.8 Rakefile
pact_broker-client-1.27.4 Rakefile
pact_broker-client-1.27.2 Rakefile
pact_broker-client-1.27.1 Rakefile
pact_broker-client-1.27.0 Rakefile
pact_broker-client-1.26.0 Rakefile
pact_broker-client-1.25.1 Rakefile
pact_broker-client-1.25.0 Rakefile
pact_broker-client-1.24.0 Rakefile
pact_broker-client-1.23.0 Rakefile
pact_broker-client-1.22.3 Rakefile
pact_broker-client-1.22.2 Rakefile
pact_broker-client-1.22.1 Rakefile
pact_broker-client-1.21.0 Rakefile