fixme 1.0.0 → 1.0.1

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: cbc2e5c159dcd920e203ec950ac493e9339b77e8
4
- data.tar.gz: 96191e0feb5b2c28d2dc3d7bb65fd3e162307ef6
3
+ metadata.gz: 446328def31c867a17062161e563e6b6a5d292a1
4
+ data.tar.gz: 46c74e2f259703dc4e329c2fd3ca78e90206ffe1
5
5
  SHA512:
6
- metadata.gz: 13424bc30b93a5c28007dd1bd80f4786c5c9a36918dde89c4d4e81e133fd7458bc5c8e6c41e2843db73840e918a2f036135aee3770e89e1171eaa260f6943d31
7
- data.tar.gz: 8694fdbb13ed2d7382f3e04cfbe98c1ae3843e6d2baefaafad6f19dbf37f2d399ddcbadfd608b0e6f099d88a135af7b45edae60f2b7a239b16c8478dd6b50c86
6
+ metadata.gz: b7ac9527bd3cbced205d5c2200e04acba028345dd1ae6f647b01e671ebd66366ab1b34562a53883390e71b51aa3d8eeed7424ca55b749d196013fb73547c55ea
7
+ data.tar.gz: 4c41a4c9aba365850ad2fec9f4024c2e20d0697c5ca9a92f38064f64769e7ac31539fab84783c1709eea9bfc4952fd71e12f0607628c14e3afe0d9c853c53ff4
@@ -6,7 +6,7 @@ module Fixme
6
6
 
7
7
  module Mixin
8
8
  def FIXME(date_and_message)
9
- raw_date, message = date_and_message.split(": ")
9
+ raw_date, message = date_and_message.split(": ", 2)
10
10
  due_date = Date.parse(raw_date)
11
11
 
12
12
  return if Date.today < due_date
@@ -1,3 +1,3 @@
1
1
  module Fixme
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -19,6 +19,12 @@ describe Fixme, "#TODO" do
19
19
  }.not_to raise_error
20
20
  end
21
21
 
22
+ it "parses the date and message flawlessly" do
23
+ expect {
24
+ FIXME "2013-12-31: Remove this: and this."
25
+ }.to raise_error("Fix by 2013-12-31: Remove this: and this.")
26
+ end
27
+
22
28
  it "is available everywhere" do
23
29
  expect {
24
30
  "some random object".instance_eval do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Nyh