Sha256: 7683c87fe3004506794fa51e2d3edeb6034c416c26a862b8dd92b5fd51b872e0

Contents?: true

Size: 389 Bytes

Versions: 5

Compression:

Stored size: 389 Bytes

Contents

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

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

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} #{path}"
if File.file?(path)
  sh "ruby -c #{path}"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
amq-protocol-1.3.0 generate.rb
amq-protocol-1.2.0 generate.rb
amq-protocol-1.1.0 generate.rb
amq-protocol-1.0.1 generate.rb
amq-protocol-1.0.0 generate.rb