guard-markdown2impress 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Kohei Hasegawa
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ # Guard-Markdown2Impress
2
+
3
+ This little addition to guard allows you to run [markdown2impress](https://github.com/yoshiki/markdown2impress)
4
+ commands when files are modified.
5
+
6
+ ## Install
7
+
8
+ Make sure you have [markdown2impress](https://github.com/yoshiki/markdown2impress) installed.
9
+
10
+ Install the gem with:
11
+
12
+ $ gem install guard
13
+ $ gem install guard-markdown2impress
14
+
15
+ And then add a basic setup to your Guardfile:
16
+
17
+ $ guard init markdown2impress
18
+
19
+ Then what only you have to do is just watch:
20
+
21
+ $ guard start
22
+
@@ -0,0 +1,19 @@
1
+ require 'guard'
2
+ require 'guard/guard'
3
+
4
+ module Guard
5
+ class Markdown2Impress < Guard
6
+
7
+ VERSION = '0.0.1'
8
+
9
+ # Print the result of the command, if there is a result
10
+ # to be printed. (see README.md)
11
+ #
12
+ # @param res [Array] the result of the commands that have run
13
+ #
14
+ def run_on_change(res)
15
+ puts res[0] if res[0]
16
+ end
17
+
18
+ end
19
+ end
@@ -0,0 +1,8 @@
1
+ # Add files and command option to this file, like the example:
2
+ # watch(/README.md/i) {|m| `markdown2impress.pl --width=1000 #{m[0]}` }
3
+ # See more detail:
4
+ # https://github.com/yoshiki/markdown2impress
5
+ #
6
+ guard 'markdown2impress' do
7
+ watch(/README.md/i) {|m| `markdown2impress.pl #{m[0]}` }
8
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guard-markdown2impress
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Kohei Hasegawa
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-20 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: guard
16
+ requirement: &70197183488880 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.2.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70197183488880
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70197183487980 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.1.1
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70197183487980
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70197183486760 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 2.8.0
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70197183486760
47
+ description: Guard::Markdown2Impress automatically runs markdown2impress commands
48
+ when watched files are modified.
49
+ email:
50
+ - ameutau@gmail.com
51
+ executables: []
52
+ extensions: []
53
+ extra_rdoc_files: []
54
+ files:
55
+ - lib/guard/markdown2impress/templates/Guardfile
56
+ - lib/guard/markdown2impress.rb
57
+ - LICENSE
58
+ - README.md
59
+ homepage: http://rubygems.org/gems/guard-markdown2impress
60
+ licenses: []
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 1.3.6
77
+ requirements: []
78
+ rubyforge_project: guard-markdown2impress
79
+ rubygems_version: 1.8.10
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: Guard gem for markdown2impress
83
+ test_files: []