guard-treetop 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +2 -2
- data/README.md +22 -5
- data/lib/guard/treetop/version.rb +1 -1
- data/spec/lib/guard/treetop_spec.rb +2 -2
- data/spec/spec_helper.rb +3 -0
- metadata +6 -6
data/LICENSE.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2012
|
1
|
+
Copyright (c) 2012-2013 José Otávio Rizzatti
|
2
2
|
|
3
3
|
MIT License
|
4
4
|
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
-
# Guard::Treetop
|
1
|
+
# Guard::Treetop
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version][badge-fury-badge]][badge-fury-site]
|
4
|
+
[![Build Status][travis-badge]][travis-site]
|
5
|
+
[![Dependency Status][gemnasium-badge]][gemnasium-site]
|
6
|
+
[![Code Climate][cc-badge]][cc-site]
|
7
|
+
[![Coverage Status][coveralls-badge]][coveralls-site]
|
8
|
+
|
9
|
+
Compiles your treetop grammars to ruby files using [guard][guard].
|
10
|
+
|
11
|
+
Tested under MRI 1.8, 1.9 and 2.0, JRuby and Rubinius.
|
4
12
|
|
5
13
|
## Installation
|
6
14
|
|
@@ -18,7 +26,7 @@ And then execute:
|
|
18
26
|
$ bundle
|
19
27
|
```
|
20
28
|
|
21
|
-
Or install it yourself
|
29
|
+
Or install it yourself:
|
22
30
|
|
23
31
|
```bash
|
24
32
|
$ gem install guard-treetop
|
@@ -54,5 +62,14 @@ And edit your `Guardfile`.
|
|
54
62
|
4. Push to the branch (`git push origin my-new-feature`)
|
55
63
|
5. Create new Pull Request
|
56
64
|
|
57
|
-
[
|
58
|
-
[
|
65
|
+
[badge-fury-badge]: https://badge.fury.io/rb/guard-treetop.png
|
66
|
+
[badge-fury-site]: http://badge.fury.io/rb/guard-treetop
|
67
|
+
[cc-badge]: https://codeclimate.com/badge.png
|
68
|
+
[cc-site]: https://codeclimate.com/github/rizzatti/guard-treetop
|
69
|
+
[coveralls-badge]: https://coveralls.io/repos/rizzatti/guard-treetop/badge.png?branch=master
|
70
|
+
[coveralls-site]: https://coveralls.io/r/rizzatti/guard-treetop
|
71
|
+
[gemnasium-badge]: https://gemnasium.com/rizzatti/guard-treetop.png
|
72
|
+
[gemnasium-site]: https://gemnasium.com/rizzatti/guard-treetop
|
73
|
+
[guard]: https://github.com/guard/guard
|
74
|
+
[travis-badge]: https://travis-ci.org/rizzatti/guard-treetop.png
|
75
|
+
[travis-site]: https://travis-ci.org/rizzatti/guard-treetop
|
@@ -88,7 +88,7 @@ module Guard
|
|
88
88
|
subject { Treetop.new(nil, :input => 'inputs') }
|
89
89
|
let(:inputs) { ['inputs/1.tt', 'inputs/2.treetop'] }
|
90
90
|
let(:outputs) { ['inputs/1.rb', 'inputs/2.rb'] }
|
91
|
-
before(:
|
91
|
+
before(:each) { Dir.stub(:glob).and_return(inputs) }
|
92
92
|
|
93
93
|
it 'should call run_on_changes' do
|
94
94
|
subject.should_receive(:run_on_changes).with(inputs)
|
@@ -111,7 +111,7 @@ module Guard
|
|
111
111
|
subject { Treetop.new(nil, :input => 'inputs', :output => 'outputs') }
|
112
112
|
let(:inputs) { ['inputs/1.tt', 'inputs/2.treetop'] }
|
113
113
|
let(:outputs) { ['outputs/1.rb', 'outputs/2.rb'] }
|
114
|
-
before(:
|
114
|
+
before(:each) { Dir.stub(:glob).and_return(inputs) }
|
115
115
|
|
116
116
|
it 'calls run_on_changes' do
|
117
117
|
files = [inputs, outputs].transpose
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-treetop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- José Otávio Rizzatti
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -56,8 +56,9 @@ files:
|
|
56
56
|
- spec/spec_helper.rb
|
57
57
|
- README.md
|
58
58
|
- LICENSE.txt
|
59
|
-
homepage: https://github.org/
|
60
|
-
licenses:
|
59
|
+
homepage: https://github.org/rizzatti/guard-treetop
|
60
|
+
licenses:
|
61
|
+
- MIT
|
61
62
|
post_install_message:
|
62
63
|
rdoc_options: []
|
63
64
|
require_paths:
|
@@ -83,4 +84,3 @@ summary: Guard gem for Treetop
|
|
83
84
|
test_files:
|
84
85
|
- spec/lib/guard/treetop_spec.rb
|
85
86
|
- spec/spec_helper.rb
|
86
|
-
has_rdoc:
|