sidekick 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.sidekick +1 -2
- data/VERSION +1 -1
- data/lib/sidekick.rb +6 -9
- data/lib/{template → sidekick/template} +4 -2
- metadata +6 -7
- data/.gitignore +0 -23
data/.sidekick
CHANGED
@@ -3,7 +3,7 @@ on_start { notify 'started..' }
|
|
3
3
|
|
4
4
|
on_stop { notify 'stopped..' }
|
5
5
|
|
6
|
-
|
6
|
+
every(10) { notify sh 'fortune' }
|
7
7
|
|
8
8
|
watch('lib/**.rb') { rake 'docs' }
|
9
9
|
|
@@ -13,6 +13,5 @@ auto_compile 'test/fixtures/*.sass', 'test/output/:name.css'
|
|
13
13
|
|
14
14
|
auto_compile 'test/fixtures/*.coffee', 'test/output/:name.js'
|
15
15
|
|
16
|
-
passenger_server 3002
|
17
16
|
|
18
17
|
# vim:ft=ruby
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.4
|
data/lib/sidekick.rb
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
#
|
3
3
|
# This is the annotated source code. See the [README](http://github.com/jbe/sidekick#readme) too.
|
4
4
|
#
|
5
|
-
# ***
|
6
|
-
#
|
7
5
|
# The default trigger definitions and helper methods -- commonly referred to as actions -- are automagically required and included from `lib/sidekick/actions/**.rb`.
|
8
6
|
|
9
7
|
require 'fileutils'
|
@@ -31,22 +29,21 @@ module Sidekick
|
|
31
29
|
Signal.trap(:INT) { stop }
|
32
30
|
|
33
31
|
EventMachine.run do
|
34
|
-
Context.module_eval(
|
35
|
-
open(path) {|f| f.read },
|
36
|
-
path
|
37
|
-
)
|
32
|
+
Context.module_eval(IO.read(path), path)
|
38
33
|
end
|
39
34
|
end
|
40
35
|
|
41
36
|
def self.ensure_config_exists(path)
|
42
37
|
unless File.exists?(path)
|
43
38
|
puts "Generate #{path}? (Y/n)"
|
44
|
-
STDIN.gets =~ /^N|n/ ? exit :
|
45
|
-
FileUtils.cp(File.expand_path('../template',
|
46
|
-
__FILE__), path)
|
39
|
+
STDIN.gets =~ /^N|n/ ? exit : FileUtils.cp(template_path, path)
|
47
40
|
end
|
48
41
|
end
|
49
42
|
|
43
|
+
def self.template_path
|
44
|
+
File.join File.dirname(__FILE__), *%w{sidekick template}
|
45
|
+
end
|
46
|
+
|
50
47
|
def self.stop(msg=nil)
|
51
48
|
STOP_CALLBACKS.each {|c| c.call }
|
52
49
|
EventMachine.stop
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 4
|
9
|
+
version: 0.6.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jostein Berre Eliassen,
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-03-26 00:00:00 +01:00
|
18
18
|
default_executable: sidekick
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -67,7 +67,6 @@ extra_rdoc_files:
|
|
67
67
|
- README.textile
|
68
68
|
files:
|
69
69
|
- .document
|
70
|
-
- .gitignore
|
71
70
|
- .gitmodules
|
72
71
|
- .sidekick
|
73
72
|
- LICENSE
|
@@ -84,7 +83,7 @@ files:
|
|
84
83
|
- lib/sidekick/actions/system.rb
|
85
84
|
- lib/sidekick/actions/triggers.rb
|
86
85
|
- lib/sidekick/actions/user_interaction.rb
|
87
|
-
- lib/template
|
86
|
+
- lib/sidekick/template
|
88
87
|
- test/fixtures/page.haml
|
89
88
|
- test/fixtures/site.coffee
|
90
89
|
- test/fixtures/styles.sass
|
@@ -95,8 +94,8 @@ homepage: http://github.com/jbe/sidekick
|
|
95
94
|
licenses: []
|
96
95
|
|
97
96
|
post_install_message:
|
98
|
-
rdoc_options:
|
99
|
-
|
97
|
+
rdoc_options: []
|
98
|
+
|
100
99
|
require_paths:
|
101
100
|
- lib
|
102
101
|
required_ruby_version: !ruby/object:Gem::Requirement
|
data/.gitignore
DELETED