Sha256: 107a8aefe43f04992079268a97ff6a06e1223cbb5e25d13341cf1bfccc442c7d

Contents?: true

Size: 824 Bytes

Versions: 27

Compression:

Stored size: 824 Bytes

Contents

#!/usr/bin/env ruby -w -I..

if $0 == __FILE__ then

  class File
    def File.sjoin(*args)
      File.join(args.select{ | o | o })
    end
  end

  require 'xamplr-generator'

  include XamplGenerator
  include Xampl

  Xampl.transaction("setup", :in_memory) do
    directory = File.sjoin(".", "xampl_generated_code")

    options = Xampl.make(Options) do |options|
      options.new_index_attribute("pid").persisted = true
      options.new_index_attribute("id")

      options.resolve("http://xampl.com/stuff", "TestingStuff", "s")
    end

    filenames = Dir.glob("./xml/**/*.xml")

    generator = Generator.new
    generator.go(:options => options,
                 :filenames => filenames,
                 :directory => directory)

    #puts generator.print_elements("./generated-elements.xml")
    exit!
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
hutch-xamplr-1.3.10 regression/tightly-nested-mutual-mentions/xampl-gen.rb
hutch-xamplr-1.3.11 regression/tightly-nested-mutual-mentions/xampl-gen.rb
hutch-xamplr-1.3.12 regression/tightly-nested-mutual-mentions/xampl-gen.rb
hutch-xamplr-1.3.13 regression/tightly-nested-mutual-mentions/xampl-gen.rb
hutch-xamplr-1.3.14 regression/tightly-nested-mutual-mentions/xampl-gen.rb
hutch-xamplr-1.3.8 regression/tightly-nested-mutual-mentions/xampl-gen.rb
hutch-xamplr-1.3.9 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.20 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.18 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.16 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.15 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.14 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.13 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.12 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.11 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.10 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.9 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.8 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.7 regression/tightly-nested-mutual-mentions/xampl-gen.rb
xamplr-1.9.6 regression/tightly-nested-mutual-mentions/xampl-gen.rb