guard-erlang 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,5 +3,5 @@ guard 'erlang' do
3
3
  end
4
4
 
5
5
  guard 'eunit' do
6
- watch(/^ebin\/.+\.beam$/)
6
+ watch(%r{^ebin/(.+)\.beam$}) do |m| "#{m[1]}" end
7
7
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module Erlang
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
data/lib/guard/erlang.rb CHANGED
@@ -21,8 +21,8 @@ module Guard
21
21
 
22
22
  def run_on_change(paths)
23
23
  paths.each do |x|
24
- functions = `cd ebin && #{erlang_fun} a`.split
25
- puts `#{eunit "a"}` if functions.include?("test/0")
24
+ functions = `cd ebin && #{erlang_fun} #{x}`.split
25
+ puts `#{eunit x}` if functions.include?("test/0")
26
26
  end
27
27
  end
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-erlang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &70293787863000 !ruby/object:Gem::Requirement
16
+ requirement: &70160854638940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.8.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70293787863000
24
+ version_requirements: *70160854638940
25
25
  description: Guard::Erlang automatically compile your erlang file & run Module:test()
26
26
  email:
27
27
  - jackchiu.org@gmail.com