guard-ronn 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -1
- data/README.md +9 -1
- data/lib/guard/ronn.rb +1 -1
- data/lib/guard/ronn/inspector.rb +8 -8
- data/lib/guard/ronn/version.rb +1 -1
- metadata +13 -13
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
+
## 0.1.2 - September 3, 2011
|
2
|
+
|
3
|
+
### Improvement
|
4
|
+
|
5
|
+
* Actually clean paths and accept `.ronn` files. ([@rymai][])
|
6
|
+
|
1
7
|
## 0.1.1 - August 13, 2011
|
2
8
|
|
3
9
|
### Improvement
|
4
10
|
|
5
|
-
* The generated Guardfile now watch for modification on files with the `.ronn` extension as well as `.md` and `.markdown`.
|
11
|
+
* The generated Guardfile now watch for modification on files with the `.ronn` extension as well as `.md` and `.markdown`. ([@rymai][])
|
6
12
|
|
7
13
|
## 0.1.0 - August 11, 2011
|
8
14
|
|
data/README.md
CHANGED
@@ -78,7 +78,15 @@ You can use the awesome [gem-man](https://github.com/defunkt/gem-man) by [defunk
|
|
78
78
|
* Source hosted at [GitHub](https://github.com/guard/guard-ronn)
|
79
79
|
* Report issues/Questions/Feature requests on [GitHub Issues](https://github.com/guard/guard-ronn/issues)
|
80
80
|
|
81
|
-
Pull requests are very welcome!
|
81
|
+
Pull requests are very welcome! Please try to follow these simple "rules", though:
|
82
|
+
|
83
|
+
- Please create a topic branch for every separate change you make;
|
84
|
+
- Make sure your patches are well tested;
|
85
|
+
- Update the README (if applicable);
|
86
|
+
- Update the CHANGELOG (maybe not for a typo but don't hesitate!);
|
87
|
+
- Please do not change the version number.
|
88
|
+
|
89
|
+
For questions please join us on our [Google group](http://groups.google.com/group/guard-dev) or on `#guard` (irc.freenode.net).
|
82
90
|
|
83
91
|
## Testing
|
84
92
|
|
data/lib/guard/ronn.rb
CHANGED
data/lib/guard/ronn/inspector.rb
CHANGED
@@ -5,25 +5,25 @@ module Guard
|
|
5
5
|
def clean(paths)
|
6
6
|
paths.uniq!
|
7
7
|
paths.compact!
|
8
|
-
|
9
|
-
paths = paths.select { |path|
|
8
|
+
clear_ronn_files_list_after do
|
9
|
+
paths = paths.select { |path| ronn_file?(path) }
|
10
10
|
end
|
11
11
|
paths.reject { |p| included_in_other_path?(p, paths) }
|
12
12
|
end
|
13
13
|
|
14
14
|
private
|
15
15
|
|
16
|
-
def
|
17
|
-
|
16
|
+
def ronn_file?(path)
|
17
|
+
ronn_files.include?(path)
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
21
|
-
@
|
20
|
+
def ronn_files
|
21
|
+
@ronn_files ||= Dir["man/*.{ronn,md,markdown}"]
|
22
22
|
end
|
23
23
|
|
24
|
-
def
|
24
|
+
def clear_ronn_files_list_after
|
25
25
|
yield
|
26
|
-
@
|
26
|
+
@ronn_files = nil
|
27
27
|
end
|
28
28
|
|
29
29
|
def included_in_other_path?(path, paths)
|
data/lib/guard/ronn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-ronn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-09-03 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156174640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.4.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156174640
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: ronn
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156172020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.7.3
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156172020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &2156168020 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,18 +43,18 @@ dependencies:
|
|
43
43
|
version: '1.0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156168020
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &2156165480 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.6'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2156165480
|
58
58
|
description: Guard::Ronn automatically builds manual pages.
|
59
59
|
email:
|
60
60
|
- rymai@rymai.me
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 1.8.
|
99
|
+
rubygems_version: 1.8.10
|
100
100
|
signing_key:
|
101
101
|
specification_version: 3
|
102
102
|
summary: Guard gem for Ronn.
|