gregfitz23-chrono_trigger 0.0.2 → 0.0.3

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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :major: 0
4
4
  :minor: 0
@@ -1,3 +1,3 @@
1
- Dir[File.join(File.dirname(__FILE__), '..', '..', 'tasks', '*.rake')].each do |f|
1
+ Dir[File.join(File.dirname(__FILE__), '..', 'tasks', '*.rake')].each do |f|
2
2
  load f
3
3
  end
@@ -0,0 +1,14 @@
1
+ namespace :chrono_trigger do
2
+
3
+ run_task_name = defined?(RAILS_ROOT) ? {:run => :environment} : :run
4
+ desc "Execute all triggers in loop, sleeping 1 minute between checks."
5
+ task run_task_name do
6
+ shell = ChronoTrigger::Shell.new
7
+ shell.load_triggers
8
+ loop do
9
+ shell.execute_triggers
10
+ sleep 1.minute.to_i
11
+ end
12
+
13
+ end
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gregfitz23-chrono_trigger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Fitzgerald
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-03 00:00:00 -07:00
12
+ date: 2009-04-06 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -33,6 +33,8 @@ files:
33
33
  - lib/chrono_trigger/tasks.rb
34
34
  - lib/chrono_trigger/trigger.rb
35
35
  - lib/chrono_trigger.rb
36
+ - lib/tasks
37
+ - lib/tasks/chrono_trigger.rake
36
38
  - lib/triggers
37
39
  - lib/triggers/test_triggers.rb
38
40
  - test/test_chrono_trigger.rb