Sha256: 49f0910be9f0caca88242cc3137b7d0a93de8983022393f8d6d983477dd46661
Contents?: true
Size: 839 Bytes
Versions: 1
Compression:
Stored size: 839 Bytes
Contents
require 'uri' require 'yajl' require 'rest_client' if !defined?(Logger) require 'logger' end # Restful Metrics specific libs require 'restful_metrics/log_tools' require 'restful_metrics/connection' require 'restful_metrics/endpoint' require 'restful_metrics/client' # Rails integration require 'restful_metrics/railtie/cookie_integration' module RestfulMetrics REALM = "http://analytico.heroku.com" VERSION = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')) class RestfulMetricsError < StandardError; end class InsufficentArguments < RestfulMetricsError; end class InvalidAPIKey < RestfulMetricsError; end class NoConnectionEstablished < RestfulMetricsError; end end # DelayedJob integration begin require 'delayed_job' rescue LoadError RestfulMetrics.logger 'Running in synchronous mode.' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restful_metrics-0.5.1 | lib/restful_metrics.rb |