sidekick 0.6.3 → 0.6.4

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/.sidekick CHANGED
@@ -3,7 +3,7 @@ on_start { notify 'started..' }
3
3
 
4
4
  on_stop { notify 'stopped..' }
5
5
 
6
- after(5) { notify sh 'fortune' }
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.3
1
+ 0.6.4
@@ -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
@@ -1,8 +1,10 @@
1
1
 
2
+
3
+ # DELETE THIS LINE:
4
+
2
5
  stop "File generated. Now please fill it in."
3
6
 
4
- # Now delete the line above, and set up some actions.
5
- # Here are some samples:
7
+ # Then set up some actions. Here are some samples:
6
8
 
7
9
 
8
10
  # watch('**.rb') do |paths|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 3
9
- version: 0.6.3
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: 2010-11-12 00:00:00 +01:00
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
- - --charset=UTF-8
97
+ rdoc_options: []
98
+
100
99
  require_paths:
101
100
  - lib
102
101
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,23 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
- test/output
21
- sidekick.gemspec
22
-
23
- ## PROJECT::SPECIFIC