airbrake_tools 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc3d7af0e6a7b6fc87ca968b446c774e970acd57
4
- data.tar.gz: 69733ce8c83cc4a147ec7c3c9655e4a9cb00a737
3
+ metadata.gz: 6d04eb9676bbfcaa051ee9b154ec39caf5567453
4
+ data.tar.gz: 7dfb5260d945e1bc62eacff44a7eb26856b41965
5
5
  SHA512:
6
- metadata.gz: c2988f6f938cee2117380a1f52c8307440899e8e4f389aefd3227719b9a85b0f2c00af4408ab86041bdfe8763b85e47d59bf358904b62291ff11d7003b30eca4
7
- data.tar.gz: 9e899108980cdbff2044dd0d30d686f38ed8a5583a03ee85b7d131b4f7da4ffd5f89920dbfafb66bae036bde61ea04999b16ab04dc3985ba36eb38cbee1b9c24
6
+ metadata.gz: 587f4ee559f71458b8865790447a4c58f778687c22b9277eb4162619cca54204e9693030eacc6d80b53676b963ed85b203b0d6a9bb6d4f1449e4f994e5f9d1e9
7
+ data.tar.gz: 2a8b719e4723531c19a6e9ba2d22ddb92c02c3946b9c5554fe02489ac9ef12a1e380e530453dba810f2add86b1df2f71e9267c75626e9f28ba286f59a4a84abd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- airbrake_tools (1.1.4)
4
+ airbrake_tools (1.1.5)
5
5
  airbrake-api (>= 4.5.1)
6
6
 
7
7
  GEM
@@ -21,16 +21,16 @@ GEM
21
21
  columnize (0.8.9)
22
22
  debugger-linecache (1.2.0)
23
23
  diff-lcs (1.1.3)
24
- faraday (0.9.0)
24
+ faraday (0.9.1)
25
25
  multipart-post (>= 1.2, < 3)
26
26
  faraday_middleware (0.9.1)
27
27
  faraday (>= 0.7.4, < 0.10)
28
- hashie (3.3.1)
28
+ hashie (3.4.0)
29
29
  launchy (2.4.2)
30
30
  addressable (~> 2.3)
31
31
  multi_xml (0.5.5)
32
32
  multipart-post (2.0.0)
33
- parallel (0.9.2)
33
+ parallel (1.4.1)
34
34
  rake (0.9.2.2)
35
35
  rspec (2.11.0)
36
36
  rspec-core (~> 2.11.0)
@@ -91,6 +91,15 @@ module AirbrakeTools
91
91
  puts backtrace.map{|line| present_line(line) }
92
92
  puts ""
93
93
  end
94
+
95
+ if options[:params]
96
+ puts "Parameters:"
97
+ notices.each do |notice|
98
+ # Print each set of parameters with a stable output order.
99
+ h = notice.request.params.to_hash
100
+ puts "#{notice.uuid.inspect}=>{" + h.sort.map{|k,v| "#{k.inspect}=>#{v.inspect}"}.join(", ") + "}" unless h.nil?
101
+ end
102
+ end
94
103
  end
95
104
 
96
105
  def open(error_id, notice_id=nil)
@@ -242,6 +251,7 @@ module AirbrakeTools
242
251
  opts.on("--project NAME_OR_ID", String, "Name of project to fetch errors for") {|p| options[:project_name] = p }
243
252
  opts.on("-h", "--help", "Show this.") { puts opts; exit }
244
253
  opts.on("-v", "--version", "Show Version"){ puts "airbrake-tools #{VERSION}"; exit }
254
+ opts.on("--params", "Show params for summary.") { options[:params] = true }
245
255
  end.parse!(argv)
246
256
  options
247
257
  end
@@ -1,3 +1,3 @@
1
1
  module AirbrakeTools
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Cheatham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-25 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-api