Sha256: e94460544bce59bcb09b666568ef93413d50f31e3756e2c1963f7a6db3c27718
Contents?: true
Size: 424 Bytes
Versions: 9
Compression:
Stored size: 424 Bytes
Contents
#!/usr/bin/env ruby require_relative './../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?(RSpec) commit = GitHub::Commit.from_xml(xml_for('dashed_elements')) puts commit.committed_date, commit.url, commit.id, '' end
Version data entries
9 entries across 9 versions & 1 rubygems