what_weve_got_here_is_an_error_to_communicate 0.0.4 → 0.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6483b3b842d393d1825de04acf2db6a8c3678a5
|
4
|
+
data.tar.gz: 7ac6f980db5b9de1c3f077b5599daa9208c021e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a40e76d184af629cfafc57cf1cf66798d5d5f36de569c4800e5b07fc3cf582bb345bc48100bed81b40a0f221b738991372439d14cbd05ec2b52b4a319164977
|
7
|
+
data.tar.gz: 57375d5b229c8b949f932e8ff569c1ff8a12f03a62396063358ec24a2d9a6a957e680d013c4e1f9f8bf3eaa96fc049d5423daec072a082db84a8d8c931ca97c6
|
data/.rspec
CHANGED
@@ -91,7 +91,7 @@ module ErrorToCommunicate
|
|
91
91
|
code = theme.syntax_highlight code
|
92
92
|
code = prefix_linenos_to code, start_index.next, mark: mark_linenum
|
93
93
|
code = add_message_to code, message_offset, theme.screaming_red(message)
|
94
|
-
code = theme.highlight_text
|
94
|
+
code = theme.highlight_text code, message_offset, highlight
|
95
95
|
else
|
96
96
|
code = "Can't find code\n"
|
97
97
|
end
|
@@ -121,7 +121,7 @@ module ErrorToCommunicate
|
|
121
121
|
end
|
122
122
|
|
123
123
|
def remove_indentation(code)
|
124
|
-
indentation = code.scan(
|
124
|
+
indentation = code.scan(/^[ \r\t]*/).min_by(&:length)
|
125
125
|
code.gsub(/^#{indentation}/, "")
|
126
126
|
end
|
127
127
|
|
@@ -10,7 +10,9 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.files = `git ls-files`.split("\n")
|
11
11
|
s.homepage = 'https://github.com/JoshCheek/what-we-ve-got-here-is-an-error-to-communicate'
|
12
12
|
|
13
|
-
s.add_runtime_dependency 'rouge', '~> 1.8'
|
13
|
+
s.add_runtime_dependency 'rouge', '~> 1.8', '!= 1.9.1'
|
14
|
+
# s.add_runtime_dependency 'interception', '~> 0.5'
|
15
|
+
# s.add_runtime_dependency 'binding_of_caller', '~> 0.7.2'
|
14
16
|
|
15
17
|
s.add_development_dependency 'rspec', '~> 3.2'
|
16
18
|
s.add_development_dependency 'haiti', '< 0.3', '>= 0.2.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: what_weve_got_here_is_an_error_to_communicate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Cheek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rouge
|
@@ -18,6 +18,9 @@ dependencies:
|
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.8'
|
21
|
+
- - "!="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.9.1
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,6 +28,9 @@ dependencies:
|
|
25
28
|
- - "~>"
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '1.8'
|
31
|
+
- - "!="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.9.1
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: rspec
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
176
|
version: '0'
|
171
177
|
requirements: []
|
172
178
|
rubyforge_project:
|
173
|
-
rubygems_version: 2.4.
|
179
|
+
rubygems_version: 2.4.5
|
174
180
|
signing_key:
|
175
181
|
specification_version: 4
|
176
182
|
summary: Readable, helpful error messages
|