Sha256: bb833ed9ff73fdeba126b1e5bc3cb1965e3f1044607a3b520489b5676a445674

Contents?: true

Size: 968 Bytes

Versions: 9

Compression:

Stored size: 968 Bytes

Contents

require 'lighthouse-api'

# Monkey Patch - remove when the lighthouse gem gets updated.
# texel's changes got merged, but looks like a new gem didn't get released. ugh!
module Lighthouse

  class << self
    def account=(value)
      @account = value
      resources.each do |resource|
        update_site(resource)
      end
    end
  end

  class Ticket
    protected
      def cleanup_tags(tags)
        tags.tap do |tag|
          tag.collect! do |t|
            unless tag.blank?
              t = Tag.new(t,prefix_options[:project_id])
              t.downcase!
              t.gsub! /(^')|('$)/, ''
              t.gsub! /[^a-z0-9 \-_@\!']/, ''
              t.strip!
              t.prefix_options = prefix_options
              t
            end
          end
          tag.compact!
          tag.uniq!
        end
      end
    
  end
end

%w{ lighthouse ticket project comment }.each do |f|
  require File.dirname(__FILE__) + '/provider/' + f + '.rb';
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
taskmapper-lighthouse-0.10.0 lib/taskmapper-lighthouse.rb
taskmapper-lighthouse-0.9.0 lib/taskmapper-lighthouse.rb
ticketmaster-lighthouse-0.8.0 lib/ticketmaster-lighthouse.rb
ticketmaster-lighthouse-0.7.10 lib/ticketmaster-lighthouse.rb
ticketmaster-lighthouse-0.7.9 lib/ticketmaster-lighthouse.rb
ticketmaster-lighthouse-0.7.8 lib/ticketmaster-lighthouse.rb
ticketmaster-lighthouse-0.6.8 lib/ticketmaster-lighthouse.rb
ticketmaster-lighthouse-0.6.7 lib/ticketmaster-lighthouse.rb
ticketmaster-lighthouse-0.5.7 lib/ticketmaster-lighthouse.rb