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: 4ca3047fc7ba0e7fb3e7a4fe8ca51b4f446d3eb7
4
- data.tar.gz: ab9dfedf5db56ff643deca9372afb664f8bda1be
3
+ metadata.gz: e6483b3b842d393d1825de04acf2db6a8c3678a5
4
+ data.tar.gz: 7ac6f980db5b9de1c3f077b5599daa9208c021e8
5
5
  SHA512:
6
- metadata.gz: 63d38ceee5ac2921c79ea3d4bf517770d75ceeabe96345dc50c33f59f17c822d6bbec08e30438df2af23d81f066b6dcd6d0cb16661259aa32d2409f5afbb259a
7
- data.tar.gz: a898e22af4fd9c765a8c43cc15dcc818ca50a9271b0e82d532c285eb9ef1b94dcd262da82c132543fc63c995460c80137f6f3d65cd05f8dc920ef13f98bdcd82
6
+ metadata.gz: 0a40e76d184af629cfafc57cf1cf66798d5d5f36de569c4800e5b07fc3cf582bb345bc48100bed81b40a0f221b738991372439d14cbd05ec2b52b4a319164977
7
+ data.tar.gz: 57375d5b229c8b949f932e8ff569c1ff8a12f03a62396063358ec24a2d9a6a957e680d013c4e1f9f8bf3eaa96fc049d5423daec072a082db84a8d8c931ca97c6
data/.rspec CHANGED
@@ -1,4 +1,5 @@
1
1
  --colour
2
+ --fail-fast
2
3
  --require error_to_communicate/at_exit
3
4
  --require error_to_communicate/rspec_formatter
4
5
  --format WhatWeveGotHereIsAnErrorToCommunicate::RSpecFormatter
@@ -13,5 +13,6 @@ at_exit do
13
13
 
14
14
  # There has got to be a better way to clear an exception,
15
15
  # this could break other at_exit hooks -.^
16
- exit! 1
16
+ read, write = IO.pipe
17
+ $stderr = write
17
18
  end
@@ -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 code, message_offset, highlight
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(/^\s*/).min_by(&:length)
124
+ indentation = code.scan(/^[ \r\t]*/).min_by(&:length)
125
125
  code.gsub(/^#{indentation}/, "")
126
126
  end
127
127
 
@@ -1,3 +1,3 @@
1
1
  module ErrorToCommunicate
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.5'.freeze
3
3
  end
@@ -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
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-06-04 00:00:00.000000000 Z
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.1
179
+ rubygems_version: 2.4.5
174
180
  signing_key:
175
181
  specification_version: 4
176
182
  summary: Readable, helpful error messages