guard-docbook-status 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ *.*~
2
+ coverage
3
+ rdoc
4
+ doc
5
+ pkg
6
+ #*.*
7
+ .DS_Store
8
+ spec/work/*.*
data/Gemfile CHANGED
@@ -1,10 +1,9 @@
1
1
  source "http://rubygems.org"
2
- gem "guard"
3
- gem "docbook_status"
2
+ gem "guard", ">=1.1"
3
+ gem "docbook_status", ">=0.5.0"
4
4
 
5
5
  group :development do
6
6
  gem "bones"
7
- gem "guard"
8
7
  gem "rspec"
9
8
  gem 'rb-fsevent'
10
9
  gem 'growl_notify'
data/Gemfile.lock CHANGED
@@ -1,49 +1,57 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- bones (3.7.1)
5
- little-plugger (>= 1.1.2)
6
- loquacious (>= 1.8.1)
4
+ bones (3.8.0)
5
+ little-plugger (~> 1.1.3)
6
+ loquacious (~> 1.9.1)
7
7
  rake (>= 0.8.7)
8
8
  diff-lcs (1.1.3)
9
- directory_watcher (1.4.1)
10
- docbook_status (0.4.0)
11
- directory_watcher (>= 1.4.1)
12
- json (>= 1.6.1)
9
+ docbook_status (0.5.0)
13
10
  libxml-ruby (>= 2.2.2)
14
- term-ansicolor (>= 1.0.6)
11
+ term-ansicolor (>= 1.0.7)
12
+ zucker (>= 11)
13
+ ffi (1.0.11)
15
14
  growl_notify (0.0.3)
16
15
  rb-appscript
17
- guard (0.8.4)
18
- thor (~> 0.14.6)
19
- guard-rspec (0.5.0)
20
- guard (>= 0.8.4)
21
- json (1.6.1)
22
- libxml-ruby (2.2.2)
23
- little-plugger (1.1.2)
24
- loquacious (1.9.0)
25
- rake (0.9.2)
16
+ guard (1.2.1)
17
+ listen (>= 0.4.2)
18
+ thor (>= 0.14.6)
19
+ guard-rspec (1.1.0)
20
+ guard (>= 1.1)
21
+ libxml-ruby (2.3.2)
22
+ listen (0.4.6)
23
+ rb-fchange (~> 0.0.5)
24
+ rb-fsevent (~> 0.9.1)
25
+ rb-inotify (~> 0.8.8)
26
+ little-plugger (1.1.3)
27
+ loquacious (1.9.1)
28
+ rake (0.9.2.2)
26
29
  rb-appscript (0.6.1)
27
- rb-fsevent (0.4.3.1)
28
- rspec (2.6.0)
29
- rspec-core (~> 2.6.0)
30
- rspec-expectations (~> 2.6.0)
31
- rspec-mocks (~> 2.6.0)
32
- rspec-core (2.6.4)
33
- rspec-expectations (2.6.0)
34
- diff-lcs (~> 1.1.2)
35
- rspec-mocks (2.6.0)
30
+ rb-fchange (0.0.5)
31
+ ffi
32
+ rb-fsevent (0.9.1)
33
+ rb-inotify (0.8.8)
34
+ ffi (>= 0.5.0)
35
+ rspec (2.10.0)
36
+ rspec-core (~> 2.10.0)
37
+ rspec-expectations (~> 2.10.0)
38
+ rspec-mocks (~> 2.10.0)
39
+ rspec-core (2.10.1)
40
+ rspec-expectations (2.10.0)
41
+ diff-lcs (~> 1.1.3)
42
+ rspec-mocks (2.10.1)
36
43
  term-ansicolor (1.0.7)
37
- thor (0.14.6)
44
+ thor (0.15.3)
45
+ zucker (12.1)
38
46
 
39
47
  PLATFORMS
40
48
  ruby
41
49
 
42
50
  DEPENDENCIES
43
51
  bones
44
- docbook_status
52
+ docbook_status (>= 0.5.0)
45
53
  growl_notify
46
- guard
54
+ guard (>= 1.1)
47
55
  guard-rspec
48
56
  rb-fsevent
49
57
  rspec
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.0 / 2012-06-22
2
+
3
+ * Compatibility changes for Guard 1.1
4
+
1
5
  == 0.1.0 / 2011-10-15
2
6
 
3
7
  * first release
data/README.md CHANGED
@@ -28,7 +28,7 @@ To adapt the Guardfile to your requirements:
28
28
  Install
29
29
  -------
30
30
 
31
- Since you are reading this, it is assumed that you have docbook_status already installed. Since this is a Guard add-on, you'll need also [Guard](https://github.com/guard/guard) to be installed.
31
+ Since you are reading this, it is assumed that you have [docbook_status](https://github.com/rvolz/docbook_status) already installed. Since this is a Guard add-on, you'll need also [Guard](https://github.com/guard/guard) to be installed.
32
32
 
33
33
  Then install this add-on with
34
34
 
data/Rakefile CHANGED
@@ -6,6 +6,7 @@ rescue LoadError
6
6
  end
7
7
 
8
8
  task :default => 'spec'
9
+ task :test => 'spec'
9
10
  task 'gem:release' => 'spec'
10
11
 
11
12
  Bones {
@@ -15,6 +16,6 @@ Bones {
15
16
  url 'https://github.com/rvolz/guard-docbook-status/'
16
17
  ignore_file '.gitignore'
17
18
  depend_on 'docbook_status'
18
- depend_on 'guard'
19
+ depend_on 'guard', '>= 1.1'
19
20
  }
20
21
 
@@ -1,4 +1,4 @@
1
- # *-* encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
  require 'guard'
3
3
  require 'guard/guard'
4
4
  require 'guard/watcher'
@@ -14,20 +14,20 @@ module Guard
14
14
  end
15
15
 
16
16
  def start
17
- ::Guard::UI.info("Guard::DocbookStatus has started watching your files")
17
+ ::Guard::UI.info("Guard::DocbookStatus has started watching your files",{})
18
18
  run_all if @options[:trigger_on_start]
19
19
  end
20
20
 
21
21
  def run_all
22
- run_on_change([])
22
+ run_on_changes([])
23
23
  end
24
24
 
25
- def run_on_change(paths)
26
- ::Guard::UI.info("Guard::DocbookStatus detected a change")
25
+ def run_on_changes(paths)
26
+ ::Guard::UI.info("Guard::DocbookStatus detected a change",{})
27
27
  output = system("docbook_status #{@options[:cli]}")
28
28
  command_failure = ($?.to_i != 0)
29
29
  if command_failure
30
- ::Guard::UI.error("docbook_status indicated an error")
30
+ ::Guard::UI.error("docbook_status indicated an error",{})
31
31
  end
32
32
  end
33
33
  end
@@ -8,23 +8,27 @@ require 'fileutils'
8
8
 
9
9
  module Guard
10
10
  describe DocbookStatus do
11
- before(:each) do
11
+
12
+ before(:each) do
13
+ FileUtils.cp_r 'spec/fixtures/', 'spec/work/'
12
14
  @gdbs = DocbookStatus.new
13
15
  end
14
16
 
17
+ after(:each) do
18
+ FileUtils.rm_rf 'spec/work'
19
+ end
20
+
15
21
  describe "start" do
16
22
  it "should trigger dbs on start" do
17
- ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus has started watching your files")
18
- ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus detected a change")
19
- ::Guard::UI.should_receive(:error).with("docbook_status indicated an error")
23
+ ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus has started watching your files",{})
24
+ ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus detected a change",{})
25
+ ::Guard::UI.should_receive(:error).with("docbook_status indicated an error",{})
20
26
  @gdbs.start
21
27
  end
22
28
 
23
29
  it "should process a file on start" do
24
- FileUtils.rm_rf 'spec/work'
25
- FileUtils.cp_r 'spec/fixtures/', 'spec/work/'
26
- ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus has started watching your files")
27
- ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus detected a change")
30
+ ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus has started watching your files",{})
31
+ ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus detected a change",{})
28
32
  ::Guard::UI.should_not_receive(:error)
29
33
  @gdbs = DocbookStatus.new(["*.xml"],{:cli => 'spec/work/bookxi.xml'})
30
34
  @gdbs.start
@@ -33,21 +37,21 @@ module Guard
33
37
 
34
38
  describe "run_on_change" do
35
39
  it "should process a file in the working dir" do
36
- w = Watcher.new("spec/fixtures/*.xml")
37
- ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus has started watching your files")
38
- @gdbs = DocbookStatus.new([w],{:cli => 'bookxi.xml'})
39
- @gdbs.should_receive(:run_on_change).twice
40
+ w = Watcher.new("spec/work/*.xml")
41
+ ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus has started watching your files",{})
42
+ @gdbs = DocbookStatus.new([w],{:cli => 'spec/work/bookxi.xml'})
43
+ @gdbs.should_receive(:run_on_changes).twice
40
44
  @gdbs.start
41
- @gdbs.run_on_change(["chapter2xi.xml"])
45
+ @gdbs.run_on_changes(["chapter2xi.xml"])
42
46
 
43
47
  end
44
48
  it "should process a file in a subdir" do
45
- w = Watcher.new("spec/fixtures/**/*.xml")
46
- ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus has started watching your files")
47
- @gdbs = DocbookStatus.new([w],{:cli => 'bookxi.xml'})
48
- @gdbs.should_receive(:run_on_change).twice
49
+ w = Watcher.new("spec/work/**/*.xml")
50
+ ::Guard::UI.should_receive(:info).with("Guard::DocbookStatus has started watching your files",{})
51
+ @gdbs = DocbookStatus.new([w],{:cli => 'spec/work/bookxi.xml'})
52
+ @gdbs.should_receive(:run_on_changes).twice
49
53
  @gdbs.start
50
- @gdbs.run_on_change(["chapter4xi.xml"])
54
+ @gdbs.run_on_changes(["/spec/work/chapter4xi.xml"])
51
55
  end
52
56
  end
53
57
  end
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-docbook-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,41 +9,56 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-15 00:00:00.000000000Z
12
+ date: 2012-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: docbook_status
16
- requirement: &2166150860 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.0
21
+ version: 0.5.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2166150860
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.5.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: guard
27
- requirement: &2166149960 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
31
36
  - !ruby/object:Gem::Version
32
- version: 0.8.4
37
+ version: '1.1'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2166149960
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '1.1'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: bones
38
- requirement: &2166149240 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
42
52
  - !ruby/object:Gem::Version
43
- version: 3.7.1
53
+ version: 3.8.0
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *2166149240
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 3.8.0
47
62
  description: ! 'The docbook-status guard will watch your DocBook documents and check
48
63
 
49
64
  their status when they change. It is meant to work with the
@@ -56,6 +71,7 @@ extra_rdoc_files:
56
71
  - History.txt
57
72
  - lib/guard/docbook-status/templates/Guardfile
58
73
  files:
74
+ - .gitignore
59
75
  - Gemfile
60
76
  - Gemfile.lock
61
77
  - Guardfile
@@ -72,11 +88,6 @@ files:
72
88
  - spec/fixtures/section1xi.xml
73
89
  - spec/guard/docbook-status_spec.rb
74
90
  - spec/spec_helper.rb
75
- - spec/work/bookxi.xml
76
- - spec/work/c4/chapter4xi.xml
77
- - spec/work/chapter2xi.xml
78
- - spec/work/chapter3xi.xml
79
- - spec/work/section1xi.xml
80
91
  - version.txt
81
92
  homepage: https://github.com/rvolz/guard-docbook-status/
82
93
  licenses: []
@@ -100,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
111
  version: '0'
101
112
  requirements: []
102
113
  rubyforge_project: guard-docbook-status
103
- rubygems_version: 1.8.11
114
+ rubygems_version: 1.8.24
104
115
  signing_key:
105
116
  specification_version: 3
106
117
  summary: The docbook-status guard will watch your DocBook documents and check their
data/spec/work/bookxi.xml DELETED
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <book xmlns="http://docbook.org/ns/docbook"
3
- xmlns:xi="http://www.w3.org/2001/XInclude"
4
- version="5.0">
5
- <title>B1</title>
6
- <chapter>
7
- <title>C1</title>
8
- <para>
9
- Dies ist ein Test .. Dies ist ein Test.
10
- In den Jahren 1900-1901 geschahen viele Überfälle von O`Reillys.
11
- </para>
12
- </chapter>
13
- <xi:include href="chapter2xi.xml"/>
14
- <xi:include href="chapter3xi.xml"/>
15
- <xi:include href="c4/chapter4xi.xml"/>
16
- </book>
@@ -1,8 +0,0 @@
1
- <chapter xmlns="http://docbook.org/ns/docbook" version="5.0">
2
- <title>C4</title>
3
- <para>
4
- Dies ist ein Test .. Dies ist ein Test.
5
- In den Jahren 1900-1901 geschahen viele Überfälle von O`Reillys.
6
- <remark>FIXME 3 Ausbauen.</remark>
7
- </para>
8
- </chapter>
@@ -1,11 +0,0 @@
1
- <chapter xmlns="http://docbook.org/ns/docbook"
2
- xmlns:xi="http://www.w3.org/2001/XInclude"
3
- version="5.0">
4
- <title>C2</title>
5
- <para>
6
- Dies ist ein Test .. Dies ist ein Test.
7
- In den Jahren 1900-1901 geschahen viele Überfälle von O`Reillys.
8
- <remark>FIXME Ausbauen.</remark>
9
- </para>
10
- <xi:include href="section1xi.xml"/>
11
- </chapter>
@@ -1,8 +0,0 @@
1
- <chapter xmlns="http://docbook.org/ns/docbook" version="5.0">
2
- <title>C3</title>
3
- <para>
4
- Dies ist ein Test .. Dies ist ein Test.
5
- In den Jahren 1900-1901 geschahen viele Überfälle von O`Reillys.
6
- <remark>FIXME 3 Ausbauen.</remark>
7
- </para>
8
- </chapter>
@@ -1,9 +0,0 @@
1
- <section xmlns="http://docbook.org/ns/docbook"
2
- version="5.0">
3
- <title>S1</title>
4
- <para>
5
- Dies ist ein Test .. Dies ist ein Test.
6
- In den Jahren 1900-1901 geschahen viele Überfälle von O`Reillys.
7
- <remark>TODO S1 Ausbauen.</remark>
8
- </para>
9
- </section>