analizaruptor 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/analizaruptor.rb CHANGED
@@ -8,14 +8,17 @@ Motion::Project::App.setup do |app|
8
8
 
9
9
  files.uniq!
10
10
  files.each do |filename|
11
- matched = false
12
-
13
11
  File.open(filename, 'r') do |file|
14
12
  file.each_line do |line|
15
- if line =~ /^#--+>/
16
- matched = true
13
+ command = false
17
14
 
15
+ if line =~ /^#--+>/
18
16
  command, dep = line.rstrip.sub(/^#--+> */, '').split(' ', 2)
17
+ elsif line =~ /^#[ \t]*@(provides|requires)/
18
+ command, dep = line.rstrip.sub(/^#[ \t]*@/, '').split(' ', 2)
19
+ end
20
+
21
+ if command
19
22
  case command
20
23
  when 'break'
21
24
  dep ||= file.lineno + 1
@@ -1,3 +1,3 @@
1
1
  module Analizaruptor
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analizaruptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-03 00:00:00.000000000 Z
12
+ date: 2012-12-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Analizaruptor is a tool that looks for ''break'', ''require'', and
15
15
  ''provides''
@@ -69,3 +69,4 @@ signing_key:
69
69
  specification_version: 3
70
70
  summary: Keep your Rakefile and debugger_cmds files short and consistent
71
71
  test_files: []
72
+ has_rdoc: