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.
@@ -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
- LiveReload guard have 1 option that you can set like this:
35
+ gimli guard have 1 option that you can set like this:
34
36
 
35
37
  bc. guard 'gimli', :outputdir => 'build' do
36
38
  ...
@@ -11,7 +11,8 @@ module Guard
11
11
  def initialize(watchers = [], options = {})
12
12
  super
13
13
  @options = {
14
- :outputdir => nil
14
+ :outputdir => nil,
15
+ :stylesheet => nil
15
16
  }.update(options)
16
17
  end
17
18
 
@@ -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("gimli#{command(path)}")
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)
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module GimliVersion
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
6
6
 
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
- version: 0.1.0
5
- prerelease:
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
- date: 2011-05-05 00:00:00.000000000 +02:00
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
- requirement: &10226600 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
18
24
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
23
31
  type: :runtime
24
- prerelease: false
25
- version_requirements: *10226600
26
- - !ruby/object:Gem::Dependency
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
27
34
  name: gimli
28
- requirement: &10226180 !ruby/object:Gem::Requirement
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
29
37
  none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
34
44
  type: :runtime
35
- prerelease: false
36
- version_requirements: *10226180
37
- - !ruby/object:Gem::Dependency
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
38
47
  name: bundler
39
- requirement: &10225760 !ruby/object:Gem::Requirement
48
+ prerelease: false
49
+ requirement: &id003 !ruby/object:Gem::Requirement
40
50
  none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
56
+ version: "0"
45
57
  type: :development
46
- prerelease: false
47
- version_requirements: *10225760
48
- - !ruby/object:Gem::Dependency
58
+ version_requirements: *id003
59
+ - !ruby/object:Gem::Dependency
49
60
  name: rspec
50
- requirement: &10225340 !ruby/object:Gem::Requirement
61
+ prerelease: false
62
+ requirement: &id004 !ruby/object:Gem::Requirement
51
63
  none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
69
+ version: "0"
56
70
  type: :development
57
- prerelease: false
58
- version_requirements: *10225340
59
- - !ruby/object:Gem::Dependency
71
+ version_requirements: *id004
72
+ - !ruby/object:Gem::Dependency
60
73
  name: rr
61
- requirement: &10224920 !ruby/object:Gem::Requirement
74
+ prerelease: false
75
+ requirement: &id005 !ruby/object:Gem::Requirement
62
76
  none: false
63
- requirements:
64
- - - ! '>='
65
- - !ruby/object:Gem::Version
66
- version: '0'
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ segments:
81
+ - 0
82
+ version: "0"
67
83
  type: :development
68
- prerelease: false
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
- files:
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
- require_paths:
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
- version: '0'
96
- required_rubygems_version: !ruby/object:Gem::Requirement
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
- version: '0'
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.6.2
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
+