Sha256: c4ed44154d4ecb50a8a59ef8c97dd0da449c17bb6b22b1e7592bbdd5bc990e23
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
#!/usr/bin/env ruby require File.join(File.dirname(__FILE__), '../spec/spec_helper') module GitHub class Commit include ROXML xml_convention :dasherize xml_reader :url xml_reader :tree xml_reader :message xml_reader :id xml_reader :committed_date, :as => Date end end unless defined?(Spec) commit = GitHub::Commit.from_xml(xml_for('dashed_elements')) puts commit.committed_date, commit.url, commit.id, '' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Empact-roxml-2.4.2 | examples/dashed_elements.rb |