Sha256: 1f803b46210c5152c1b51fcac64ae0a256e66c2206fb4dbb5d4daf06a5a04535

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

# yaml gemspec generator based
# example: "lemon" gem
#
module Baltix::Loader::Yaml
   def yaml file
      spec = Gem::Specification.from_yaml(IO.read(file))

      file = Tempfile.new(spec.name)
      file.puts(spec.to_ruby)
      file.close
      res = app_file(file.path)
      file.unlink
      res
   rescue => e
      nil
   end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
baltix-0.1.1 lib/baltix/loader/yaml.rb