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 +4 -4
- data/.gitignore +1 -0
- data/lib/errbit_plugin/issue_tracker.rb +17 -0
- data/lib/errbit_plugin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eccc791b162fd7dc93f1170175af0ff094838b95
|
4
|
+
data.tar.gz: dc0f6986b2d73726ebe6bed09febfeac3bdb9057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4acc3fef4ec35e35b69e5d1cfb2dbc08516fc9bb80a0c36239fff9d11c56e27977278f8922f6e64a4e8e908992d358c38d2d55c8762d9e7078ce93ad4d130d8e
|
7
|
+
data.tar.gz: 27d7f74a0d6ae77c3cf2d077030938ca11186c264b57c0703b12fcd95362a337ab5a22a36693cc6dfe7547ed12207f0388dadf4efc6e5875f76de5fc437ef203
|
data/.gitignore
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2014-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|