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 +4 -4
- data/README.md +7 -0
- data/lib/fixme.rb +3 -4
- data/lib/fixme/version.rb +1 -1
- data/spec/fixme_spec.rb +1 -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: ee77f3652407beeb65a9b00c0beda6ebebb970a0
|
4
|
+
data.tar.gz: e1938b519c3a1c98516abfd491ee290a65d38a78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7904af13220ecc11babdea9ab748f3ce88af3008ad94ce1e3363a7da187377bf871dc41803fd0a06c0748fb8d5e582a7e453979543fda24e304d257be4d2a13f
|
7
|
+
data.tar.gz: def4c437d9ccdfe486c5cc3c4a2c332f1e8f42433fc59e0a303d7c22c39c5bb86426c74466be78acf84f4e1f300412c07c71f19f91cef38d340cafc59f69db92
|
data/README.md
CHANGED
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
data/spec/fixme_spec.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|