wtails 0.0.5 → 0.0.6
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/bin/wtails +4 -3
- data/lib/wtails/version.rb +1 -1
- metadata +3 -3
data/bin/wtails
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
require 'rubygems'
|
|
4
4
|
require 'trollop'
|
|
5
5
|
|
|
6
|
+
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
|
|
7
|
+
require "wtails"
|
|
8
|
+
|
|
6
9
|
opts = Trollop::options do
|
|
7
|
-
version "wtails
|
|
10
|
+
version "wtails #{Wtails::VERSION} (c) 2012 Naoyuki Hirayama"
|
|
8
11
|
banner <<-EOS
|
|
9
12
|
Wtails is a web server acts like 'tail -f'.
|
|
10
13
|
|
|
@@ -20,8 +23,6 @@ end
|
|
|
20
23
|
|
|
21
24
|
Trollop::die "need at least one filename" if ARGV.empty?
|
|
22
25
|
|
|
23
|
-
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
|
|
24
|
-
require "wtails"
|
|
25
26
|
begin
|
|
26
27
|
Wtails.run(opts.to_hash, ARGV)
|
|
27
28
|
rescue Errno::ENOENT => e
|
data/lib/wtails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wtails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.0.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Naoyuki HIRAYAMA
|