double_doc 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Guardfile CHANGED
@@ -1,3 +1,6 @@
1
- guard 'rake', :task => 'doc' do
1
+ $LOAD_PATH.unshift 'lib'
2
+ require 'double_doc'
3
+
4
+ guard :double_doc, :task => 'doc' do
2
5
  watch(%r{^(doc|lib)/.+\.(md|rb)})
3
6
  end
@@ -0,0 +1,33 @@
1
+ require 'guard'
2
+ require 'guard/guard'
3
+ require 'rake'
4
+
5
+ module Guard
6
+ class Doubledoc < Guard
7
+ include ::Rake::DSL
8
+
9
+ def start
10
+ load 'Rakefile'
11
+ true
12
+ end
13
+
14
+ def reload
15
+ stop
16
+ start
17
+ end
18
+
19
+ def run_all
20
+ run_rake_task
21
+ end
22
+
23
+ def run_on_change(paths)
24
+ run_rake_task
25
+ end
26
+
27
+ def run_rake_task
28
+ UI.info "generating double docs"
29
+ ::Rake::Task.tasks.each { |t| t.reenable }
30
+ ::Rake::Task[@options[:task]].invoke
31
+ end
32
+ end
33
+ end
@@ -1,4 +1,4 @@
1
1
  ## ## DoubleDoc 1.0
2
2
  module DoubleDoc
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
data/lib/double_doc.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "double_doc/version"
2
2
 
3
- module DoubleDoc
4
- # Your code goes here...
3
+ module Guard
4
+ autoload :Doubledoc, 'double_doc/guard'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: double_doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &70269246238700 !ruby/object:Gem::Requirement
16
+ requirement: &70105352370900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70269246238700
24
+ version_requirements: *70105352370900
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: guard-rake
27
- requirement: &70269246237960 !ruby/object:Gem::Requirement
27
+ requirement: &70105352370120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70269246237960
35
+ version_requirements: *70105352370120
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: erubis
38
- requirement: &70269246237320 !ruby/object:Gem::Requirement
38
+ requirement: &70105352369520 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70269246237320
46
+ version_requirements: *70105352369520
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: redcarpet
49
- requirement: &70269246236600 !ruby/object:Gem::Requirement
49
+ requirement: &70105352368780 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70269246236600
57
+ version_requirements: *70105352368780
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: pygments.rb
60
- requirement: &70269246235800 !ruby/object:Gem::Requirement
60
+ requirement: &70105352368000 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70269246235800
68
+ version_requirements: *70105352368000
69
69
  description: A simple framework for writing and generating beautiful documentation
70
70
  for your code
71
71
  email:
@@ -84,6 +84,7 @@ files:
84
84
  - double_doc.gemspec
85
85
  - lib/double_doc.rb
86
86
  - lib/double_doc/doc_extractor.rb
87
+ - lib/double_doc/guard.rb
87
88
  - lib/double_doc/html_generator.rb
88
89
  - lib/double_doc/html_renderer.rb
89
90
  - lib/double_doc/import_handler.rb