logglier 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -7,10 +7,9 @@ Posts Logger messages to Loggly using the HTTP API.
7
7
  Usage
8
8
  -----
9
9
 
10
- require 'logger'
11
10
  require 'logglier'
12
11
 
13
- log = Logger.new(Logglier.new(<INPUT URL>))
12
+ log = Logglier.new(<INPUT URL>)
14
13
 
15
14
  log.info("hello from logglier")
16
15
 
@@ -1,3 +1,3 @@
1
1
  module Logglier
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/lib/logglier.rb CHANGED
@@ -1,11 +1,13 @@
1
1
  require File.join(File.dirname(__FILE__), 'logglier', 'client')
2
2
 
3
+ require 'logger'
4
+
3
5
  module Logglier
4
6
 
5
7
  class InputURLRequired < ArgumentError; end
6
8
 
7
9
  def self.new(opts={})
8
- Logglier::Client.new(opts)
10
+ Logger.new(Logglier::Client.new(opts))
9
11
  end
10
12
 
11
13
  end
@@ -2,5 +2,5 @@ describe Logglier do
2
2
 
3
3
  subject { Logglier.new('https://localhost') }
4
4
 
5
- it { should be_an_instance_of Logglier::Client }
5
+ it { should be_an_instance_of Logger }
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logglier
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Edward Muller (aka freeformz)