guard-gimli 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +3 -1
- data/lib/guard/gimli.rb +2 -1
- data/lib/guard/gimli/converter.rb +6 -2
- data/lib/guard/gimli/version.rb +1 -1
- metadata +88 -62
data/README.textile
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
h1. guard-gimli
|
2
2
|
|
3
|
+
"!http://travis-ci.org/walle/guard-gimli.png!":http://travis-ci.org/walle/guard-gimli
|
4
|
+
|
3
5
|
gimli guard allows to automatically convert your files when markup is changed
|
4
6
|
|
5
7
|
h2. Install
|
@@ -30,7 +32,7 @@ end
|
|
30
32
|
|
31
33
|
h2. Options
|
32
34
|
|
33
|
-
|
35
|
+
gimli guard have 1 option that you can set like this:
|
34
36
|
|
35
37
|
bc. guard 'gimli', :outputdir => 'build' do
|
36
38
|
...
|
data/lib/guard/gimli.rb
CHANGED
@@ -2,22 +2,26 @@ module Guard
|
|
2
2
|
class Gimli
|
3
3
|
class Converter
|
4
4
|
|
5
|
+
attr_reader :stylesheet
|
6
|
+
|
5
7
|
def initialize(options)
|
6
8
|
@outputdir = options[:outputdir]
|
9
|
+
@stylesheet = options[:stylesheet]
|
7
10
|
end
|
8
11
|
|
9
12
|
def reload(paths = [])
|
10
13
|
UI.info "Building pdfs for #{paths.join(' ')}"
|
11
14
|
start_at = Time.now
|
12
15
|
paths.each do |path|
|
13
|
-
system(
|
16
|
+
system(command(path))
|
14
17
|
UI.info "#{outputinfo(path)} built"
|
15
18
|
end
|
16
19
|
end
|
17
20
|
|
18
21
|
def command(path)
|
19
|
-
command = " -f #{escape(path)}"
|
22
|
+
command = "gimli -f #{escape(path)}"
|
20
23
|
command += outputdir(escape(path)).nil? ? '' : " -o #{outputdir(escape(path))}"
|
24
|
+
command += stylesheet.nil? ? '' : " -s #{stylesheet}"
|
21
25
|
end
|
22
26
|
|
23
27
|
def outputdir(path)
|
data/lib/guard/gimli/version.rb
CHANGED
metadata
CHANGED
@@ -1,108 +1,134 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-gimli
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Fredrik Wallgren
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
16
|
+
|
17
|
+
date: 2011-05-10 00:00:00 +02:00
|
13
18
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
16
21
|
name: guard
|
17
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
24
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
23
31
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
32
|
+
version_requirements: *id001
|
33
|
+
- !ruby/object:Gem::Dependency
|
27
34
|
name: gimli
|
28
|
-
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
37
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
version: "0"
|
34
44
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
45
|
+
version_requirements: *id002
|
46
|
+
- !ruby/object:Gem::Dependency
|
38
47
|
name: bundler
|
39
|
-
|
48
|
+
prerelease: false
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
50
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
segments:
|
55
|
+
- 0
|
56
|
+
version: "0"
|
45
57
|
type: :development
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
58
|
+
version_requirements: *id003
|
59
|
+
- !ruby/object:Gem::Dependency
|
49
60
|
name: rspec
|
50
|
-
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
63
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
version: "0"
|
56
70
|
type: :development
|
57
|
-
|
58
|
-
|
59
|
-
- !ruby/object:Gem::Dependency
|
71
|
+
version_requirements: *id004
|
72
|
+
- !ruby/object:Gem::Dependency
|
60
73
|
name: rr
|
61
|
-
|
74
|
+
prerelease: false
|
75
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
76
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
segments:
|
81
|
+
- 0
|
82
|
+
version: "0"
|
67
83
|
type: :development
|
68
|
-
|
69
|
-
version_requirements: *10224920
|
84
|
+
version_requirements: *id005
|
70
85
|
description: Guard::Gimli automatically converts your markup files when they are modified.
|
71
|
-
email:
|
86
|
+
email:
|
72
87
|
- fredrik.wallgren@gmail.com
|
73
88
|
executables: []
|
89
|
+
|
74
90
|
extensions: []
|
91
|
+
|
75
92
|
extra_rdoc_files: []
|
76
|
-
|
93
|
+
|
94
|
+
files:
|
95
|
+
- lib/guard/gimli/converter.rb
|
77
96
|
- lib/guard/gimli/version.rb
|
78
97
|
- lib/guard/gimli/templates/Guardfile
|
79
|
-
- lib/guard/gimli/converter.rb
|
80
98
|
- lib/guard/gimli.rb
|
81
99
|
- LICENSE
|
82
100
|
- README.textile
|
83
101
|
has_rdoc: true
|
84
102
|
homepage: https://github.com/walle/guard-gimli
|
85
103
|
licenses: []
|
104
|
+
|
86
105
|
post_install_message:
|
87
106
|
rdoc_options: []
|
88
|
-
|
107
|
+
|
108
|
+
require_paths:
|
89
109
|
- lib
|
90
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
111
|
none: false
|
92
|
-
requirements:
|
93
|
-
- -
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
|
96
|
-
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
segments:
|
116
|
+
- 0
|
117
|
+
version: "0"
|
118
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
119
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
version: "0"
|
102
126
|
requirements: []
|
127
|
+
|
103
128
|
rubyforge_project: guard-gimli
|
104
|
-
rubygems_version: 1.
|
129
|
+
rubygems_version: 1.3.7
|
105
130
|
signing_key:
|
106
131
|
specification_version: 3
|
107
132
|
summary: Guard gem for gimli
|
108
133
|
test_files: []
|
134
|
+
|