ttycoke 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,13 +11,14 @@ namespace :test do
11
11
  end
12
12
  end
13
13
 
14
- desc "install the rc file into user's home directory"
14
+ desc "install .ttycokerc and .ttycoke.d into user's home directory"
15
15
  task :setup do
16
16
  if File.exist?(File.join(ENV['HOME'], ".ttycokerc"))
17
17
  puts "#{File.join(ENV['HOME'], '.ttycokerc')} already exist."
18
18
  else
19
- puts "Coping .ttycokerc to $HOME directory"
19
+ puts "Coping .ttycokerc and .ttycoke.d to $HOME directory"
20
20
  system %Q{cp "$PWD/config/config.yaml" "$HOME/.ttycokerc"}
21
+ system %Q{cp -fr "$PWD/config/.ttycoke.d" "$HOME/.ttycoke.d"}
21
22
  puts "done."
22
23
  end
23
24
  end
data/bin/ttycoke CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env ruby -w
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  require 'ttycoke'
4
4
  include TTYCoke::Log
@@ -0,0 +1,14 @@
1
+ cat_focus.sh:
2
+ -
3
+ first:
4
+ regex: !ruby/regexp
5
+ /(?<red># \w+)/
6
+ second:
7
+ regex: !ruby/regexp
8
+ /(?<yellow>## \w+)/
9
+ third:
10
+ regex: !ruby/regexp
11
+ /(?<green>### \w+)/
12
+ fouth:
13
+ regex: !ruby/regexp
14
+ /(?<blue>#### \w+)/
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- tail-focus.sh:
1
+ cat_focus.sh:
2
2
  -
3
3
  first:
4
4
  regex: !ruby/regexp
@@ -12,3 +12,4 @@ tail-focus.sh:
12
12
  fouth:
13
13
  regex: !ruby/regexp
14
14
  /(?<blue>#### \w+)/
15
+
File without changes
data/config/config.yaml CHANGED
@@ -1,5 +1,6 @@
1
1
  # This file imports all the rules from the ttycoke.d directory.
2
2
  import:
3
- - /ttycoke.d/lsmod.yaml
4
- - /ttycoke.d/id.yaml
5
- - /ttycoke.d/tail_tork_logs.yaml
3
+ - /.ttycoke.d/lsmod.yaml
4
+ - /.ttycoke.d/id.yaml
5
+ - /.ttycoke.d/cat_focus.yaml
6
+ - /.ttycoke.d/tail_tork_logs.yaml
@@ -4,7 +4,7 @@ module TTYCoke
4
4
  extend self
5
5
  MAJOR = 0
6
6
  MINOR = 2
7
- PATCH = 0
7
+ PATCH = 1
8
8
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
9
9
  end
10
10
  end
File without changes
File without changes
File without changes
@@ -1,4 +1,5 @@
1
1
  import:
2
- - /ttycoke.d/lsmod.yaml
3
- - /ttycoke.d/id.yaml
4
- - /ttycoke.d/tail_tork_logs.yaml
2
+ - /.ttycoke.d/lsmod.yaml
3
+ - /.ttycoke.d/id.yaml
4
+ - /.ttycoke.d/cat_focus.yaml
5
+ - /.ttycoke.d/tail_tork_logs.yaml
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttycoke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -26,12 +26,13 @@ files:
26
26
  - README.md
27
27
  - Rakefile
28
28
  - bin/ttycoke
29
+ - config/.ttycoke.d/cat_focus.yaml
30
+ - config/.ttycoke.d/id.yaml
31
+ - config/.ttycoke.d/lsmod.yaml
32
+ - config/.ttycoke.d/tail_focus.yaml
33
+ - config/.ttycoke.d/tail_tork_logs.yaml
34
+ - config/.ttycoke.d/top.yaml
29
35
  - config/config.yaml
30
- - config/ttycoke.d/id.yaml
31
- - config/ttycoke.d/lsmod.yaml
32
- - config/ttycoke.d/tail_focus.yaml
33
- - config/ttycoke.d/tail_tork_logs.yaml
34
- - config/ttycoke.d/top.yaml
35
36
  - doc/TTYCoke.html
36
37
  - doc/TTYCoke/ANSI.html
37
38
  - doc/TTYCoke/ANSIColor.html
@@ -77,14 +78,14 @@ files:
77
78
  - lib/ttycoke/platform.rb
78
79
  - lib/ttycoke/run.rb
79
80
  - lib/ttycoke/version.rb
81
+ - test/data/.ttycoke.d/id.yaml
82
+ - test/data/.ttycoke.d/lsmod.yaml
83
+ - test/data/.ttycoke.d/tail_focus.yaml
84
+ - test/data/.ttycoke.d/tail_tork_logs.yaml
85
+ - test/data/.ttycoke.d/top.yaml
80
86
  - test/data/ansi_lines.yaml
81
87
  - test/data/config.yaml
82
88
  - test/data/syntax_error_config.yaml
83
- - test/data/ttycoke.d/id.yaml
84
- - test/data/ttycoke.d/lsmod.yaml
85
- - test/data/ttycoke.d/tail_focus.yaml
86
- - test/data/ttycoke.d/tail_tork_logs.yaml
87
- - test/data/ttycoke.d/top.yaml
88
89
  - test/test_helper.rb
89
90
  - test/ttycoke/test_ansi.rb
90
91
  - test/ttycoke/test_cli.rb