Sha256: 8e099e53eaa2be8c3ca6c7c3b647e0575b42ac49409b0818d63aa355c504b4ed

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 Bytes

Contents

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

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

extensions = ["codegen/rabbitmq-codegen/credit_extension.json"]

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

3 entries across 3 versions & 1 rubygems

Version Path
amq-protocol-1.6.0 generate.rb
amq-protocol-1.5.0 generate.rb
amq-protocol-1.4.0 generate.rb