Sha256: 9a1ca50c1029fd9c816618bdb0df0f2711dd69fa73f872dae67b146e67f496cb

Contents?: true

Size: 278 Bytes

Versions: 6

Compression:

Stored size: 278 Bytes

Contents

class Pivotal < ActiveResource::Base
  def self.inherited(sub)
    info = YAML.load_file File.expand_path("~/.pivotal.yml")
    sub.site = %Q|https://www.pivotaltracker.com/services/v3/projects/#{info['project_id']}|
    sub.headers['X-TrackerToken'] = info["token"]
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pivotal_to_pdf-0.7.1 lib/pivotal_to_pdf/pivotal.rb
pivotal_to_pdf-0.6 lib/pivotal_to_pdf/pivotal.rb
pivotal_to_pdf-0.5.2.1 lib/pivotal_to_pdf/pivotal.rb
pivotal_to_pdf-0.5.2 lib/pivotal_to_pdf/pivotal.rb
pivotal_to_pdf-0.5.1 lib/pivotal_to_pdf/pivotal.rb
pivotal_to_pdf-0.5 lib/pivotal_to_pdf/pivotal.rb