papertrail 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/papertrail.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Papertrail
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
4
4
 
5
5
  require 'papertrail/search_client'
@@ -3,6 +3,7 @@ require 'faraday'
3
3
  require 'openssl'
4
4
  require 'faraday_middleware'
5
5
  require 'yajl/json_gem'
6
+ require 'zlib'
6
7
 
7
8
  require 'papertrail/search_query'
8
9
 
@@ -19,6 +20,10 @@ module Papertrail
19
20
  :verify => options.fetch(:verify_ssl) { OpenSSL::SSL::VERIFY_PEER }
20
21
  }
21
22
 
23
+ unless (options[:username] && options[:password]) || options[:token]
24
+ raise ArgumentError, "Must provide a username and password or a token"
25
+ end
26
+
22
27
  # Make Ubuntu OpenSSL work
23
28
  #
24
29
  # From: https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/396818
data/papertrail.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'papertrail'
16
- s.version = '0.9.3'
17
- s.date = '2012-07-12'
16
+ s.version = '0.9.4'
17
+ s.date = '2012-08-13'
18
18
  s.rubyforge_project = 'papertrail'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 3
9
- version: 0.9.3
8
+ - 4
9
+ version: 0.9.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Papertrail
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-07-12 00:00:00 -07:00
17
+ date: 2012-08-13 00:00:00 -07:00
18
18
  default_executable: papertrail
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency