livelydocs 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/livelydocs +25 -0
  2. metadata +53 -0
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'thread'
4
+
5
+ if ARGV.include?('-h')
6
+ puts "livelydocs [task]"
7
+ puts "- task : defaults to rdoc"
8
+ exit
9
+ end
10
+
11
+ puts "** Running LivelyDocs!"
12
+
13
+ task_name = ARGV.shift
14
+
15
+ t = Thread.start do
16
+ while true
17
+ result = `rake -s #{task_name || "rdoc"}`
18
+ puts result unless result.strip.empty?
19
+ sleep(1)
20
+ end
21
+ end
22
+
23
+ trap(:INT) { puts "\n** LivelyDocs! is no longer lively"; t.exit! }
24
+
25
+ t.join
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: livelydocs
3
+ version: !ruby/object:Gem::Version
4
+ version: "0.1"
5
+ platform: ruby
6
+ authors:
7
+ - Blake Mizerany
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-03-18 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: blake.mizerany@gmail.com
18
+ executables:
19
+ - livelydocs
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - bin/livelydocs
26
+ has_rdoc: false
27
+ homepage: blakemizerany.com
28
+ post_install_message:
29
+ rdoc_options: []
30
+
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: "0"
38
+ version:
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ requirements: []
46
+
47
+ rubyforge_project: livelydocs
48
+ rubygems_version: 1.0.1
49
+ signing_key:
50
+ specification_version: 2
51
+ summary: Escape the hell of `rake rdoc` .. edit .. `rake rdoc` .. edit
52
+ test_files: []
53
+