errbit_plugin 0.3.0 → 0.4.0

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: 655e48473cb57aa93e0e696ab609e5b7dcf50b64
4
- data.tar.gz: 6c116e4650e90c7c9b5ce5de5130d551c0345d85
3
+ metadata.gz: eccc791b162fd7dc93f1170175af0ff094838b95
4
+ data.tar.gz: dc0f6986b2d73726ebe6bed09febfeac3bdb9057
5
5
  SHA512:
6
- metadata.gz: e268c0df6d1eb377c1b32193e93a7cd1405d6241521fc6204e4300f153f4510322cd8beb95cf0363daff57d7f14125fc0408cf687b8a72c7a7653b3fae265b80
7
- data.tar.gz: b284cdf0f291140c6d07bd6a1e646fcb64ff83f02478a7e063ab9f8b152eb4e2d699b73e8feafdadfd432751fc48e957123569d62a0de05cc81a711060225564
6
+ metadata.gz: 4acc3fef4ec35e35b69e5d1cfb2dbc08516fc9bb80a0c36239fff9d11c56e27977278f8922f6e64a4e8e908992d358c38d2d55c8762d9e7078ce93ad4d130d8e
7
+ data.tar.gz: 27d7f74a0d6ae77c3cf2d077030938ca11186c264b57c0703b12fcd95362a337ab5a22a36693cc6dfe7547ed12207f0388dadf4efc6e5875f76de5fc437ef203
data/.gitignore CHANGED
@@ -15,6 +15,7 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ .ruby-version
18
19
 
19
20
  # YARD artifacts
20
21
  .yardoc
@@ -6,5 +6,22 @@ module ErrbitPlugin
6
6
  @app = app
7
7
  @params = params
8
8
  end
9
+
10
+ def pretty_hash(hash, nesting = 0)
11
+ tab_size = 2
12
+ nesting += 1
13
+
14
+ pretty = "{"
15
+ sorted_keys = hash.keys.sort
16
+ sorted_keys.each do |key|
17
+ val = hash[key].is_a?(Hash) ? pretty_hash(hash[key], nesting) : hash[key].inspect
18
+ pretty += "\n#{' '*nesting*tab_size}"
19
+ pretty += "#{key.inspect} => #{val}"
20
+ pretty += "," unless key == sorted_keys.last
21
+
22
+ end
23
+ nesting -= 1
24
+ pretty += "\n#{' '*nesting*tab_size}}"
25
+ end
9
26
  end
10
27
  end
@@ -1,3 +1,3 @@
1
1
  module ErrbitPlugin
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errbit_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Crosby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-31 00:00:00.000000000 Z
11
+ date: 2014-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler