todo-txt 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Binary file
data/lib/todo-txt/task.rb CHANGED
@@ -85,6 +85,7 @@ module Todo
85
85
  # task.text #=> "Testing!"
86
86
  def text
87
87
  @text ||= orig.
88
+ gsub(self.class.date_regex, '').
88
89
  gsub(self.class.priotity_regex, '').
89
90
  gsub(self.class.contexts_regex, '').
90
91
  gsub(self.class.projects_regex, '').
@@ -38,7 +38,7 @@ describe Todo::Task do
38
38
  end
39
39
 
40
40
  it 'should be able to get just the text, no contexts etc.' do
41
- task = Todo::Task.new "(B) This is a sweet task. @context +project"
41
+ task = Todo::Task.new "(B) 2012-03-04 This is a sweet task. @context +project"
42
42
  task.text.should == "This is a sweet task."
43
43
  end
44
44
 
data/todo-txt.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{todo-txt}
3
- s.version = "0.2"
3
+ s.version = "0.2.1"
4
4
  s.date = %q{2012-03-31}
5
5
  s.authors = ["Sam Rose"]
6
6
  s.email = %q{samwho@lbak.co.uk}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: todo-txt
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -23,6 +23,7 @@ files:
23
23
  - lib/todo-txt.rb
24
24
  - gems/todo-txt-0.1.1.gem
25
25
  - gems/todo-txt-0.1.gem
26
+ - gems/todo-txt-0.2.gem
26
27
  - README.md
27
28
  - spec/todo-txt/list_spec.rb
28
29
  - spec/todo-txt/task_spec.rb