guard-erlang 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Guard::Erlang
2
2
 
3
- TODO: Write a gem description
3
+ Guard::Erlang automatically compile your erlang file & run Module:test() from ebin
4
+
5
+ Guard::Erlang watch your *.erl and compile whit changed.
6
+
7
+ Guard::Erlang watch your ebin/*.beam and run Module:test() whit test/0 exist.
4
8
 
5
9
  ## Installation
6
10
 
@@ -18,7 +22,9 @@ Or install it yourself as:
18
22
 
19
23
  ## Usage
20
24
 
21
- TODO: Write usage instructions here
25
+ mkdir -p project/ebin && cd project
26
+ bundle guard init erlang
27
+ guard
22
28
 
23
29
  ## Contributing
24
30
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module Erlang
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
data/lib/guard/erlang.rb CHANGED
@@ -23,6 +23,7 @@ module Guard
23
23
  paths.each do |x|
24
24
  functions = `cd ebin && #{erlang_fun} #{x}`.split
25
25
  puts `#{eunit x}` if functions.include?("test/0")
26
+ puts "NOT FOUND test/0" unless functions.include?("test/0")
26
27
  end
27
28
  end
28
29
 
@@ -32,7 +33,7 @@ module Guard
32
33
  end
33
34
 
34
35
  def eunit(m)
35
- "erl -pa #{Dir.pwd}/ebin -s init stop -noshell -eval '#{m}:test()'"
36
+ "erl -pa #{Dir.pwd}/ebin -eval '#{m}:test()' -s init stop -noshell"
36
37
  end
37
38
  end
38
39
  end
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.1
4
+ version: 0.2.2
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: &70160854638940 !ruby/object:Gem::Requirement
16
+ requirement: &70180395408260 !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: *70160854638940
24
+ version_requirements: *70180395408260
25
25
  description: Guard::Erlang automatically compile your erlang file & run Module:test()
26
26
  email:
27
27
  - jackchiu.org@gmail.com