loop_dance 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/README.rdoc +11 -7
  2. data/VERSION +1 -1
  3. data/lib/loop_dance/railtie.rb +2 -0
  4. data/loop_dance.gemspec +41 -56
  5. data/{test/rails → rails_example}/.gitignore +0 -0
  6. data/{test/rails → rails_example}/Gemfile +2 -4
  7. data/{test/rails → rails_example}/Rakefile +0 -0
  8. data/{test/rails → rails_example}/app/controllers/application_controller.rb +0 -0
  9. data/{test/rails → rails_example}/config/application.rb +0 -0
  10. data/{test/rails → rails_example}/config/boot.rb +0 -0
  11. data/{test/rails → rails_example}/config/database.yml +0 -0
  12. data/{test/rails → rails_example}/config/environment.rb +0 -0
  13. data/{test/rails → rails_example}/config/environments/development.rb +0 -0
  14. data/{test/rails → rails_example}/config/environments/production.rb +0 -0
  15. data/{test/rails → rails_example}/config/environments/test.rb +0 -0
  16. data/{test/rails → rails_example}/config/initializers/backtrace_silencers.rb +0 -0
  17. data/{test/rails → rails_example}/config/initializers/inflections.rb +0 -0
  18. data/{test/rails → rails_example}/config/initializers/mime_types.rb +0 -0
  19. data/{test/rails → rails_example}/config/initializers/secret_token.rb +0 -0
  20. data/{test/rails → rails_example}/config/initializers/session_store.rb +0 -0
  21. data/{test/rails → rails_example}/config/locales/en.yml +0 -0
  22. data/{test/rails → rails_example}/config/routes.rb +0 -0
  23. data/{test/rails → rails_example}/config.ru +0 -0
  24. data/{test/rails → rails_example}/db/seeds.rb +0 -0
  25. data/{test/rails → rails_example}/lib/dancers.rb +0 -0
  26. data/{test/rails → rails_example}/lib/tasks/.gitkeep +0 -0
  27. data/{test/rails → rails_example}/public/404.html +0 -0
  28. data/{test/rails → rails_example}/public/422.html +0 -0
  29. data/{test/rails → rails_example}/public/500.html +0 -0
  30. data/{test/rails → rails_example}/public/favicon.ico +0 -0
  31. data/{test/rails → rails_example}/public/images/rails.png +0 -0
  32. data/{test/rails → rails_example}/public/index.html +0 -0
  33. data/{test/rails → rails_example}/public/javascripts/application.js +0 -0
  34. data/{test/rails → rails_example}/public/javascripts/controls.js +0 -0
  35. data/{test/rails → rails_example}/public/javascripts/dragdrop.js +0 -0
  36. data/{test/rails → rails_example}/public/javascripts/effects.js +0 -0
  37. data/{test/rails → rails_example}/public/javascripts/prototype.js +0 -0
  38. data/{test/rails → rails_example}/public/javascripts/rails.js +0 -0
  39. data/{test/rails → rails_example}/public/robots.txt +0 -0
  40. data/{test/rails → rails_example}/public/stylesheets/.gitkeep +0 -0
  41. data/{test/rails → rails_example}/script/rails +0 -0
  42. metadata +41 -56
data/README.rdoc CHANGED
@@ -1,6 +1,7 @@
1
1
  = LoopDance
2
2
 
3
- No forks. No threads. Just looped scheduler based on `daemon_controller` and `looper`
3
+ No forks. No threads. Just looped scheduler based on `daemon_controller` and `looper`.
4
+ We call it 'Dancer'.
4
5
 
5
6
  == Easy to install
6
7
 
@@ -8,9 +9,9 @@ No forks. No threads. Just looped scheduler based on `daemon_controller` and `lo
8
9
 
9
10
  == Simple to setup
10
11
 
11
- Just create file 'lib/loop_dance.rb':
12
+ Create file 'lib/loop_dance.rb':
12
13
 
13
- class Dancer < LoopDance::Dancer
14
+ class Dancer1 < LoopDance::Dancer
14
15
 
15
16
  every 3.hours do
16
17
  User.notify_all
@@ -26,16 +27,19 @@ LoopDance automatically starts at the rails 3 server startup.
26
27
 
27
28
  == Useful management
28
29
 
29
- From the application:
30
+ From the rails application:
30
31
 
31
- Dancer.start unless Dancer.running?
32
+ Dancer1.controller.start unless Dancer1.controller.running?
32
33
 
33
34
  By the rake tasks (TODO):
34
35
 
35
- rake loop_dance:start
36
- rake loop_dance:stop
36
+ rake loop_dance:start_all
37
+ rake loop_dance:stop_all
37
38
  rake loop_dance:status
38
39
 
40
+ rake loop_dance:dancer1:start
41
+ rake loop_dance:dancer1:stop
42
+ rake loop_dance:dancer1:status
39
43
 
40
44
  == Contributing to loop_dance
41
45
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -5,6 +5,8 @@ module LoopDance
5
5
 
6
6
  def self.load_dancers
7
7
  require 'dancers'
8
+ rescue LoadError => err
9
+ puts "LoopDance: file 'lib/dancers.rb' not exists. No dencers are defined."
8
10
  end
9
11
 
10
12
  initializer 'loop_dance.initialize' do
data/loop_dance.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{loop_dance}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Danil Pismenny"]
12
- s.date = %q{2011-01-01}
12
+ s.date = %q{2011-01-02}
13
13
  s.description = %q{Really simple daemon builder and manager. Based on the looper and daemon_controller}
14
14
  s.email = %q{danil@orionet.ru}
15
15
  s.extra_rdoc_files = [
@@ -32,47 +32,47 @@ Gem::Specification.new do |s|
32
32
  "lib/loop_dance/task.rb",
33
33
  "loop_dance.gemspec",
34
34
  "rails/init.rb",
35
+ "rails_example/.gitignore",
36
+ "rails_example/Gemfile",
37
+ "rails_example/Rakefile",
38
+ "rails_example/app/controllers/application_controller.rb",
39
+ "rails_example/config.ru",
40
+ "rails_example/config/application.rb",
41
+ "rails_example/config/boot.rb",
42
+ "rails_example/config/database.yml",
43
+ "rails_example/config/environment.rb",
44
+ "rails_example/config/environments/development.rb",
45
+ "rails_example/config/environments/production.rb",
46
+ "rails_example/config/environments/test.rb",
47
+ "rails_example/config/initializers/backtrace_silencers.rb",
48
+ "rails_example/config/initializers/inflections.rb",
49
+ "rails_example/config/initializers/mime_types.rb",
50
+ "rails_example/config/initializers/secret_token.rb",
51
+ "rails_example/config/initializers/session_store.rb",
52
+ "rails_example/config/locales/en.yml",
53
+ "rails_example/config/routes.rb",
54
+ "rails_example/db/seeds.rb",
55
+ "rails_example/lib/dancers.rb",
56
+ "rails_example/lib/tasks/.gitkeep",
57
+ "rails_example/public/404.html",
58
+ "rails_example/public/422.html",
59
+ "rails_example/public/500.html",
60
+ "rails_example/public/favicon.ico",
61
+ "rails_example/public/images/rails.png",
62
+ "rails_example/public/index.html",
63
+ "rails_example/public/javascripts/application.js",
64
+ "rails_example/public/javascripts/controls.js",
65
+ "rails_example/public/javascripts/dragdrop.js",
66
+ "rails_example/public/javascripts/effects.js",
67
+ "rails_example/public/javascripts/prototype.js",
68
+ "rails_example/public/javascripts/rails.js",
69
+ "rails_example/public/robots.txt",
70
+ "rails_example/public/stylesheets/.gitkeep",
71
+ "rails_example/script/rails",
35
72
  "spec/dancer_spec.rb",
36
73
  "spec/spec_helper.rb",
37
74
  "spec/task_spec.rb",
38
- "tasks/loop_dance.rake",
39
- "test/rails/.gitignore",
40
- "test/rails/Gemfile",
41
- "test/rails/Rakefile",
42
- "test/rails/app/controllers/application_controller.rb",
43
- "test/rails/config.ru",
44
- "test/rails/config/application.rb",
45
- "test/rails/config/boot.rb",
46
- "test/rails/config/database.yml",
47
- "test/rails/config/environment.rb",
48
- "test/rails/config/environments/development.rb",
49
- "test/rails/config/environments/production.rb",
50
- "test/rails/config/environments/test.rb",
51
- "test/rails/config/initializers/backtrace_silencers.rb",
52
- "test/rails/config/initializers/inflections.rb",
53
- "test/rails/config/initializers/mime_types.rb",
54
- "test/rails/config/initializers/secret_token.rb",
55
- "test/rails/config/initializers/session_store.rb",
56
- "test/rails/config/locales/en.yml",
57
- "test/rails/config/routes.rb",
58
- "test/rails/db/seeds.rb",
59
- "test/rails/lib/dancers.rb",
60
- "test/rails/lib/tasks/.gitkeep",
61
- "test/rails/public/404.html",
62
- "test/rails/public/422.html",
63
- "test/rails/public/500.html",
64
- "test/rails/public/favicon.ico",
65
- "test/rails/public/images/rails.png",
66
- "test/rails/public/index.html",
67
- "test/rails/public/javascripts/application.js",
68
- "test/rails/public/javascripts/controls.js",
69
- "test/rails/public/javascripts/dragdrop.js",
70
- "test/rails/public/javascripts/effects.js",
71
- "test/rails/public/javascripts/prototype.js",
72
- "test/rails/public/javascripts/rails.js",
73
- "test/rails/public/robots.txt",
74
- "test/rails/public/stylesheets/.gitkeep",
75
- "test/rails/script/rails"
75
+ "tasks/loop_dance.rake"
76
76
  ]
77
77
  s.homepage = %q{http://github.com/dapi/loop_dance}
78
78
  s.licenses = ["MIT"]
@@ -82,22 +82,7 @@ Gem::Specification.new do |s|
82
82
  s.test_files = [
83
83
  "spec/dancer_spec.rb",
84
84
  "spec/spec_helper.rb",
85
- "spec/task_spec.rb",
86
- "test/rails/app/controllers/application_controller.rb",
87
- "test/rails/config/application.rb",
88
- "test/rails/config/boot.rb",
89
- "test/rails/config/environment.rb",
90
- "test/rails/config/environments/development.rb",
91
- "test/rails/config/environments/production.rb",
92
- "test/rails/config/environments/test.rb",
93
- "test/rails/config/initializers/backtrace_silencers.rb",
94
- "test/rails/config/initializers/inflections.rb",
95
- "test/rails/config/initializers/mime_types.rb",
96
- "test/rails/config/initializers/secret_token.rb",
97
- "test/rails/config/initializers/session_store.rb",
98
- "test/rails/config/routes.rb",
99
- "test/rails/db/seeds.rb",
100
- "test/rails/lib/dancers.rb"
85
+ "spec/task_spec.rb"
101
86
  ]
102
87
 
103
88
  if s.respond_to? :specification_version then
File without changes
@@ -5,11 +5,9 @@ gem 'rails', '3.0.3'
5
5
  # Bundle edge Rails instead:
6
6
  # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
7
 
8
- gem "loop_dance", :path => '../../'
8
+ gem "loop_dance", :path => '../'
9
9
 
10
- gem "ruby-debug"
11
-
12
- gem 'sqlite3-ruby', :require => 'sqlite3'
10
+ #gem 'sqlite3-ruby', :require => 'sqlite3'
13
11
 
14
12
  # Use unicorn as the web server
15
13
  # gem 'unicorn'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loop_dance
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Danil Pismenny
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-01 00:00:00 +03:00
18
+ date: 2011-01-02 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -176,47 +176,47 @@ files:
176
176
  - lib/loop_dance/task.rb
177
177
  - loop_dance.gemspec
178
178
  - rails/init.rb
179
+ - rails_example/.gitignore
180
+ - rails_example/Gemfile
181
+ - rails_example/Rakefile
182
+ - rails_example/app/controllers/application_controller.rb
183
+ - rails_example/config.ru
184
+ - rails_example/config/application.rb
185
+ - rails_example/config/boot.rb
186
+ - rails_example/config/database.yml
187
+ - rails_example/config/environment.rb
188
+ - rails_example/config/environments/development.rb
189
+ - rails_example/config/environments/production.rb
190
+ - rails_example/config/environments/test.rb
191
+ - rails_example/config/initializers/backtrace_silencers.rb
192
+ - rails_example/config/initializers/inflections.rb
193
+ - rails_example/config/initializers/mime_types.rb
194
+ - rails_example/config/initializers/secret_token.rb
195
+ - rails_example/config/initializers/session_store.rb
196
+ - rails_example/config/locales/en.yml
197
+ - rails_example/config/routes.rb
198
+ - rails_example/db/seeds.rb
199
+ - rails_example/lib/dancers.rb
200
+ - rails_example/lib/tasks/.gitkeep
201
+ - rails_example/public/404.html
202
+ - rails_example/public/422.html
203
+ - rails_example/public/500.html
204
+ - rails_example/public/favicon.ico
205
+ - rails_example/public/images/rails.png
206
+ - rails_example/public/index.html
207
+ - rails_example/public/javascripts/application.js
208
+ - rails_example/public/javascripts/controls.js
209
+ - rails_example/public/javascripts/dragdrop.js
210
+ - rails_example/public/javascripts/effects.js
211
+ - rails_example/public/javascripts/prototype.js
212
+ - rails_example/public/javascripts/rails.js
213
+ - rails_example/public/robots.txt
214
+ - rails_example/public/stylesheets/.gitkeep
215
+ - rails_example/script/rails
179
216
  - spec/dancer_spec.rb
180
217
  - spec/spec_helper.rb
181
218
  - spec/task_spec.rb
182
219
  - tasks/loop_dance.rake
183
- - test/rails/.gitignore
184
- - test/rails/Gemfile
185
- - test/rails/Rakefile
186
- - test/rails/app/controllers/application_controller.rb
187
- - test/rails/config.ru
188
- - test/rails/config/application.rb
189
- - test/rails/config/boot.rb
190
- - test/rails/config/database.yml
191
- - test/rails/config/environment.rb
192
- - test/rails/config/environments/development.rb
193
- - test/rails/config/environments/production.rb
194
- - test/rails/config/environments/test.rb
195
- - test/rails/config/initializers/backtrace_silencers.rb
196
- - test/rails/config/initializers/inflections.rb
197
- - test/rails/config/initializers/mime_types.rb
198
- - test/rails/config/initializers/secret_token.rb
199
- - test/rails/config/initializers/session_store.rb
200
- - test/rails/config/locales/en.yml
201
- - test/rails/config/routes.rb
202
- - test/rails/db/seeds.rb
203
- - test/rails/lib/dancers.rb
204
- - test/rails/lib/tasks/.gitkeep
205
- - test/rails/public/404.html
206
- - test/rails/public/422.html
207
- - test/rails/public/500.html
208
- - test/rails/public/favicon.ico
209
- - test/rails/public/images/rails.png
210
- - test/rails/public/index.html
211
- - test/rails/public/javascripts/application.js
212
- - test/rails/public/javascripts/controls.js
213
- - test/rails/public/javascripts/dragdrop.js
214
- - test/rails/public/javascripts/effects.js
215
- - test/rails/public/javascripts/prototype.js
216
- - test/rails/public/javascripts/rails.js
217
- - test/rails/public/robots.txt
218
- - test/rails/public/stylesheets/.gitkeep
219
- - test/rails/script/rails
220
220
  has_rdoc: true
221
221
  homepage: http://github.com/dapi/loop_dance
222
222
  licenses:
@@ -255,18 +255,3 @@ test_files:
255
255
  - spec/dancer_spec.rb
256
256
  - spec/spec_helper.rb
257
257
  - spec/task_spec.rb
258
- - test/rails/app/controllers/application_controller.rb
259
- - test/rails/config/application.rb
260
- - test/rails/config/boot.rb
261
- - test/rails/config/environment.rb
262
- - test/rails/config/environments/development.rb
263
- - test/rails/config/environments/production.rb
264
- - test/rails/config/environments/test.rb
265
- - test/rails/config/initializers/backtrace_silencers.rb
266
- - test/rails/config/initializers/inflections.rb
267
- - test/rails/config/initializers/mime_types.rb
268
- - test/rails/config/initializers/secret_token.rb
269
- - test/rails/config/initializers/session_store.rb
270
- - test/rails/config/routes.rb
271
- - test/rails/db/seeds.rb
272
- - test/rails/lib/dancers.rb