rubytodo 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,9 +21,9 @@ class RubyTodo
21
21
  protected
22
22
 
23
23
  def self.extract_todos node
24
- return nil unless node.is_a? Sexp
24
+ return [] unless node.is_a? Sexp
25
25
  todos = node.find_nodes(:call).map { |n| extract_todo_msg_from_args(n[3]) if n[2] == :todo }
26
- (todos | node.collect { |n| extract_todos n }).flatten.compact
26
+ (todos | node.collect { |n| extract_todos n }).flatten.compact
27
27
  end
28
28
 
29
29
  def self.extract_todo_msg_from_args node
@@ -1,3 +1,3 @@
1
1
  module RubyTodo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubytodo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: