fixme 1.1.0 → 1.1.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: a739fb14f76d1ecaf78b09daa1ef1bb44d3619dc
4
- data.tar.gz: 6b4463e54b2eb7c81324fc0d26498b494db25eed
3
+ metadata.gz: ee77f3652407beeb65a9b00c0beda6ebebb970a0
4
+ data.tar.gz: e1938b519c3a1c98516abfd491ee290a65d38a78
5
5
  SHA512:
6
- metadata.gz: f07137de06cedb7e5141b04f87e2573c3f625068e58bdd7f0b132ec6b3405768d20e5c708c02f729151e6ca9200480f3d0d557d9c4d98f891536c6c1aedb6abf
7
- data.tar.gz: fd5d5a33abe502db63b0e18dc144d5e4b36197791647e0f1482cd68da5d80697e3f2cb323fcd2d769bbd89247acd23f4c41a66b768f7b9ae3a59591b477618b1
6
+ metadata.gz: 7904af13220ecc11babdea9ab748f3ce88af3008ad94ce1e3363a7da187377bf871dc41803fd0a06c0748fb8d5e582a7e453979543fda24e304d257be4d2a13f
7
+ data.tar.gz: def4c437d9ccdfe486c5cc3c4a2c332f1e8f42433fc59e0a303d7c22c39c5bb86426c74466be78acf84f4e1f300412c07c71f19f91cef38d340cafc59f69db92
data/README.md CHANGED
@@ -52,6 +52,13 @@ rake # Run tests.
52
52
  ```
53
53
 
54
54
 
55
+ ## Contributors
56
+
57
+ * [Henrik Trotzig](https://www.causes.com/henric)
58
+ * [Henrik Nyh](http://henrik.nyh.se)
59
+ * Kim Persson
60
+
61
+
55
62
  ## License
56
63
 
57
64
  Copyright (c) 2014 Henrik Nyh
data/lib/fixme.rb CHANGED
@@ -8,14 +8,13 @@ module Fixme
8
8
  def FIXME(date_and_message)
9
9
  return if ENV["DO_NOT_RAISE_FIXMES"]
10
10
 
11
+ env = defined?(Rails) ? Rails.env : ENV["RACK_ENV"]
12
+ return unless [ "", "test", "development" ].include?(env.to_s)
13
+
11
14
  raw_date, message = date_and_message.split(": ", 2)
12
15
  due_date = Date.parse(raw_date)
13
-
14
16
  return if Date.today < due_date
15
17
 
16
- env = defined?(Rails) ? Rails.env : ENV["RACK_ENV"]
17
- return unless [ "", "test", "development" ].include?(env.to_s)
18
-
19
18
  raise UnfixedError, "Fix by #{due_date}: #{message}"
20
19
  end
21
20
  end
data/lib/fixme/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fixme
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
data/spec/fixme_spec.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require "fixme"
2
2
 
3
- describe Fixme, "#TODO" do
3
+ describe Fixme, "#FIXME" do
4
4
  it "raises after the given date" do
5
5
  expect {
6
6
  FIXME "2013-12-31: Remove this stuff."
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Nyh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-03 00:00:00.000000000 Z
11
+ date: 2014-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler