Sha256: dac15ea0a3728480b6efccfb17dc076ad432ab2092122fde7d727a2e2c6d78d2

Contents?: true

Size: 430 Bytes

Versions: 8

Compression:

Stored size: 430 Bytes

Contents

#!/usr/bin/env ruby
# encoding: utf-8

def sh(*args)
  system(*args)
end

extensions = []

spec = "codegen/rabbitmq-codegen/amqp-rabbitmq-0.9.1.json"
unless File.exist?(spec)
  sh "git submodule update --init"
end

path = "lib/amq/protocol/client.rb"
puts "Running ./codegen/codegen.py client #{spec} #{path}"
sh "./codegen/codegen.py client #{spec} #{extensions.join(' ')} #{path}"
if File.file?(path)
  sh "ruby -c #{path}"
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
amq-protocol-2.1.0 generate.rb
amq-protocol-2.0.1 generate.rb
amq-protocol-2.0.0 generate.rb
amq-protocol-1.9.2 generate.rb
amq-protocol-1.9.1 generate.rb
amq-protocol-1.9.0 generate.rb
amq-protocol-1.8.0 generate.rb
amq-protocol-1.7.0 generate.rb