lumberjack_heroku_device 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in lumberjack_heroku_device.gemspec
4
+ gemspec
@@ -0,0 +1,13 @@
1
+ = Lumberjack Heroku Device
2
+
3
+ This gem provides a logging device for the Lumberjack gem that will log to Heroku's logging system. See http://devcenter.heroku.com/articles/logging for more information on Heroku's logging system.
4
+
5
+ == Example Usage
6
+
7
+ require 'lumberjack_heroku_device'
8
+
9
+ device = Lumberjack::HerokuDevice.new
10
+ logger = Lumberjack::Logger.new(device)
11
+ logger.info("Write me to Heroku's logging system!")
12
+
13
+ See HerokuDevice for more details.
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,14 @@
1
+ require "lumberjack_heroku_device/version"
2
+ require 'lumberjack'
3
+
4
+ module Lumberjack
5
+ # This Lumberjack device logs output to Heroku's logging system.
6
+ class HerokuDevice < Device
7
+ def initialize(*args)
8
+ end
9
+
10
+ def write(entry)
11
+ puts entry
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ module LumberjackHerokuDevice
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "lumberjack_heroku_device/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "lumberjack_heroku_device"
7
+ s.version = LumberjackHerokuDevice::VERSION
8
+ s.authors = ["Tony Coconate"]
9
+ s.email = ["me@tonycoconate.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{A logging device for the Lumberjack gem that writes log entries to Heroku's logging system.}
12
+ s.description = %q{A logging device for the Lumberjack gem that writes log entries to Heroku's logging system.}
13
+
14
+ s.rubyforge_project = "lumberjack_heroku_device"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ s.has_rdoc = true
22
+ s.rdoc_options = ["--charset=UTF-8", "--main", "README.rdoc"]
23
+ s.extra_rdoc_files = ["README.rdoc"]
24
+ s.add_dependency "lumberjack", "~>1.0"
25
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lumberjack_heroku_device
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Tony Coconate
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-29 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: lumberjack
16
+ requirement: &70109583412940 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70109583412940
25
+ description: A logging device for the Lumberjack gem that writes log entries to Heroku's
26
+ logging system.
27
+ email:
28
+ - me@tonycoconate.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files:
32
+ - README.rdoc
33
+ files:
34
+ - .gitignore
35
+ - Gemfile
36
+ - README.rdoc
37
+ - Rakefile
38
+ - lib/lumberjack_heroku_device.rb
39
+ - lib/lumberjack_heroku_device/version.rb
40
+ - lumberjack_heroku_device.gemspec
41
+ homepage: ''
42
+ licenses: []
43
+ post_install_message:
44
+ rdoc_options:
45
+ - --charset=UTF-8
46
+ - --main
47
+ - README.rdoc
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubyforge_project: lumberjack_heroku_device
64
+ rubygems_version: 1.8.7
65
+ signing_key:
66
+ specification_version: 3
67
+ summary: A logging device for the Lumberjack gem that writes log entries to Heroku's
68
+ logging system.
69
+ test_files: []