fixme 4.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fixme.rb +2 -1
- data/lib/fixme/version.rb +1 -1
- data/spec/fixme_spec.rb +10 -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: 92e0825cac58243fb2c3ce48aa71479b2c11a789
|
4
|
+
data.tar.gz: 129bba3a82f2e7a34cc7b2314698595d3376367f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f1a393618b27bb77ce171afa39de54e0d3096d9f4c73a54177291de1190b6b59428488e5b0f6b0e92523900eeadb8be58aa338e3bab95b3144718f08d3059ac
|
7
|
+
data.tar.gz: 97ad061f1c4edd245e5d4e299e59d24b3441b14e51b342763b2b2381075cc1a34ca0135fd0d80c1c9bf99b95f1565aa310160a1a337be134d6f5762e8363ae81
|
data/lib/fixme.rb
CHANGED
@@ -2,7 +2,8 @@ require "fixme/version"
|
|
2
2
|
require "date"
|
3
3
|
|
4
4
|
module Fixme
|
5
|
-
|
5
|
+
# We intentionally do NOT inherit from StandardError, because we don't want these errors caught by a blanket "rescue".
|
6
|
+
UnfixedError = Class.new(Exception)
|
6
7
|
|
7
8
|
Details = Struct.new(:full_message, :backtrace, :date, :message) do
|
8
9
|
def due_days_ago
|
data/lib/fixme/version.rb
CHANGED
data/spec/fixme_spec.rb
CHANGED
@@ -29,7 +29,7 @@ describe Fixme, "#FIXME" do
|
|
29
29
|
it "truncates the backtrace to exclude the library itself" do
|
30
30
|
begin
|
31
31
|
FIXME "2013-12-31: Remove this stuff."
|
32
|
-
rescue => e
|
32
|
+
rescue Fixme::UnfixedError => e
|
33
33
|
expect(e.backtrace.first).to include("fixme_spec.rb:")
|
34
34
|
end
|
35
35
|
end
|
@@ -55,6 +55,15 @@ describe Fixme, "#FIXME" do
|
|
55
55
|
}.to raise_error(Fixme::UnfixedError)
|
56
56
|
end
|
57
57
|
|
58
|
+
it "is not caught by a blanket 'rescue'" do
|
59
|
+
expect {
|
60
|
+
begin
|
61
|
+
FIXME "2000-01-01: Don't be caught."
|
62
|
+
rescue
|
63
|
+
end
|
64
|
+
}.to raise_error(Fixme::UnfixedError)
|
65
|
+
end
|
66
|
+
|
58
67
|
it "is not fooled by the Timecop gem" do
|
59
68
|
future_date = Date.today + 2
|
60
69
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrik Nyh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|