papertrail 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 359b1f7ba488f1336a5b1cd0852db34ef1035d5e
4
+ data.tar.gz: 4dbe878508c443ac2f388460077eacf20a2ff333
5
+ SHA512:
6
+ metadata.gz: e5a3119406c02b20d8e1f9f8ef214ed426a55e2c4586eee94fe2c852c12760eddb8d7f95061a1876980013a7da163554789cf49f99c9ebb9523d291661b8ee6e
7
+ data.tar.gz: 5959953cd70c99729ee1e496019a587d8956440eedd009e291bb07176c25b70c99fbc4c39a949b1af103dd14bfb598d717cf0201d2ddf9ff7c1e3a6b26798c52
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rake', '0.8.7'
4
-
5
3
  gemspec
data/README.md CHANGED
@@ -154,6 +154,20 @@ example, to search for `-whatever`, run:
154
154
 
155
155
  papertrail -- -whatever
156
156
 
157
+ ### Time zones
158
+
159
+ Times are interpreted in the client itself, which means it uses the time
160
+ zone that your local PC is set to. Log timestamps are also output in the
161
+ same local PC time zone.
162
+
163
+ When providing absolute times, append `UTC` to provide the input time in
164
+ UTC. For example, regardless of the local PC time zone, this will show
165
+ messages beginning from 1 PM UTC:
166
+
167
+ papertrail --min-time "2014-04-27 13:00:00 UTC"
168
+
169
+ Output timestamps will still be in the local PC time zone.
170
+
157
171
  ### Quoted phrases
158
172
 
159
173
  Because the Unix shell parses and strips one set of quotes around a
data/lib/papertrail.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Papertrail
2
- VERSION = "0.9.10"
2
+ VERSION = "0.9.11"
3
3
  end
4
4
 
5
5
  require 'papertrail/connection'
@@ -4,6 +4,7 @@ require 'chronic'
4
4
 
5
5
  require 'papertrail/connection'
6
6
  require 'papertrail/cli_helpers'
7
+ require 'papertrail/okjson'
7
8
 
8
9
  module Papertrail
9
10
  class Cli
@@ -137,7 +138,7 @@ module Papertrail
137
138
  end
138
139
 
139
140
  if options[:json]
140
- $stdout.puts event.data.to_json
141
+ $stdout.puts Papertrail::OkJson.encode(event.data)
141
142
  else
142
143
  $stdout.puts event
143
144
  end
@@ -159,7 +160,7 @@ module Papertrail
159
160
 
160
161
  def display_results(results)
161
162
  if options[:json]
162
- $stdout.puts results.data.to_json
163
+ $stdout.puts Papertrail::OkJson.encode(results.data)
163
164
  else
164
165
  results.events.each do |event|
165
166
  $stdout.puts event
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.10'
17
- s.date = '2014-06-05'
16
+ s.version = '0.9.11'
17
+ s.date = '2014-11-12'
18
18
  s.rubyforge_project = 'papertrail'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -53,7 +53,7 @@ Gem::Specification.new do |s|
53
53
 
54
54
  ## List your development dependencies here. Development dependencies are
55
55
  ## those that are only needed during development
56
- # s.add_development_dependency('DEVDEPNAME', [">= 1.1.0", "< 2.0.0"])
56
+ s.add_development_dependency('rake')
57
57
 
58
58
  ## Leave this section as-is. It will be automatically generated from the
59
59
  ## contents of your Git repository via the gemspec task. DO NOT REMOVE
metadata CHANGED
@@ -1,30 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papertrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
5
- prerelease:
4
+ version: 0.9.11
6
5
  platform: ruby
7
6
  authors:
8
7
  - Papertrail
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-06-05 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: chronic
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
28
39
  - !ruby/object:Gem::Version
29
40
  version: '0'
30
41
  description: Command-line client for Papertrail hosted log management service. Tails
@@ -66,28 +77,26 @@ files:
66
77
  - papertrail.gemspec
67
78
  homepage: http://github.com/papertrail/papertrail-cli
68
79
  licenses: []
80
+ metadata: {}
69
81
  post_install_message:
70
82
  rdoc_options:
71
- - --charset=UTF-8
83
+ - "--charset=UTF-8"
72
84
  require_paths:
73
85
  - lib
74
86
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
87
  requirements:
77
- - - ! '>='
88
+ - - ">="
78
89
  - !ruby/object:Gem::Version
79
90
  version: '0'
80
91
  required_rubygems_version: !ruby/object:Gem::Requirement
81
- none: false
82
92
  requirements:
83
- - - ! '>='
93
+ - - ">="
84
94
  - !ruby/object:Gem::Version
85
95
  version: '0'
86
96
  requirements: []
87
97
  rubyforge_project: papertrail
88
- rubygems_version: 1.8.29
98
+ rubygems_version: 2.2.2
89
99
  signing_key:
90
100
  specification_version: 2
91
101
  summary: Command-line client for Papertrail hosted log management service.
92
102
  test_files: []
93
- has_rdoc: