magent 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -18,7 +18,7 @@ require 'magent/processor'
18
18
  require 'magent/async'
19
19
  require 'magent/async_channel'
20
20
 
21
- require 'magent/railtie' if defined?(Rails)
21
+ require 'magent/railtie' if defined?(Rails) && Rails.version >= "3.0.0"
22
22
 
23
23
  if defined?(EventMachine::WebSocket)
24
24
  require 'magent/web_socket_server'
@@ -41,7 +41,7 @@ module Magent
41
41
  ensure
42
42
  end
43
43
 
44
- sleep delay
44
+ sleep (delay*100.0).to_i/100.0
45
45
  end
46
46
  end
47
47
 
@@ -1,7 +1,7 @@
1
1
  require 'magent'
2
2
  require 'rails'
3
3
 
4
- module MyPlugin
4
+ module Magent
5
5
  class Railtie < Rails::Railtie
6
6
  rake_tasks do
7
7
  load "tasks/magent.rake"
@@ -1,75 +1,73 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{magent}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David A. Cuadrado"]
12
- s.date = %q{2010-10-17}
12
+ s.date = %q{2011-02-07}
13
13
  s.default_executable = %q{magent}
14
14
  s.description = %q{Simple job queue system based on mongodb}
15
15
  s.email = %q{krawek@gmail.com}
16
16
  s.executables = ["magent"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README.rdoc"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
- ".gitignore",
24
- "Gemfile",
25
- "Gemfile.lock",
26
- "History.txt",
27
- "LICENSE",
28
- "Manifest.txt",
29
- "PostInstall.txt",
30
- "README.rdoc",
31
- "Rakefile",
32
- "VERSION",
33
- "bin/magent",
34
- "examples/comm/run.rb",
35
- "examples/comm/worker.rb",
36
- "examples/error/error.rb",
37
- "examples/mongomapper/async.rb",
38
- "examples/simple/bot.rb",
39
- "examples/stats/stats.rb",
40
- "lib/magent.rb",
41
- "lib/magent/actor.rb",
42
- "lib/magent/actor_channel.rb",
43
- "lib/magent/async.rb",
44
- "lib/magent/async_channel.rb",
45
- "lib/magent/failure.rb",
46
- "lib/magent/generic_channel.rb",
47
- "lib/magent/processor.rb",
48
- "lib/magent/push.rb",
49
- "lib/magent/railtie.rb",
50
- "lib/magent/utils.rb",
51
- "lib/magent/web_socket_channel.rb",
52
- "lib/magent/web_socket_server.rb",
53
- "lib/tasks/magent.rake",
54
- "magent.gemspec",
55
- "script/console",
56
- "test/test_helper.rb",
57
- "test/test_magent.rb"
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "History.txt",
26
+ "LICENSE",
27
+ "Manifest.txt",
28
+ "PostInstall.txt",
29
+ "README.rdoc",
30
+ "Rakefile",
31
+ "VERSION",
32
+ "bin/magent",
33
+ "examples/comm/run.rb",
34
+ "examples/comm/worker.rb",
35
+ "examples/error/error.rb",
36
+ "examples/mongomapper/async.rb",
37
+ "examples/simple/bot.rb",
38
+ "examples/stats/stats.rb",
39
+ "lib/magent.rb",
40
+ "lib/magent/actor.rb",
41
+ "lib/magent/actor_channel.rb",
42
+ "lib/magent/async.rb",
43
+ "lib/magent/async_channel.rb",
44
+ "lib/magent/failure.rb",
45
+ "lib/magent/generic_channel.rb",
46
+ "lib/magent/processor.rb",
47
+ "lib/magent/push.rb",
48
+ "lib/magent/railtie.rb",
49
+ "lib/magent/utils.rb",
50
+ "lib/magent/web_socket_channel.rb",
51
+ "lib/magent/web_socket_server.rb",
52
+ "lib/tasks/magent.rake",
53
+ "magent.gemspec",
54
+ "script/console",
55
+ "test/test_helper.rb",
56
+ "test/test_magent.rb"
58
57
  ]
59
58
  s.homepage = %q{http://github.com/dcu/magent}
60
- s.rdoc_options = ["--charset=UTF-8"]
61
59
  s.require_paths = ["lib"]
62
60
  s.rubygems_version = %q{1.3.7}
63
61
  s.summary = %q{Simple job queue system based on mongodb}
64
62
  s.test_files = [
63
+ "examples/comm/run.rb",
64
+ "examples/comm/worker.rb",
65
+ "examples/error/error.rb",
66
+ "examples/mongomapper/async.rb",
67
+ "examples/simple/bot.rb",
68
+ "examples/stats/stats.rb",
65
69
  "test/test_helper.rb",
66
- "test/test_magent.rb",
67
- "examples/simple/bot.rb",
68
- "examples/error/error.rb",
69
- "examples/comm/run.rb",
70
- "examples/comm/worker.rb",
71
- "examples/mongomapper/async.rb",
72
- "examples/stats/stats.rb"
70
+ "test/test_magent.rb"
73
71
  ]
74
72
 
75
73
  if s.respond_to? :specification_version then
@@ -77,17 +75,26 @@ Gem::Specification.new do |s|
77
75
  s.specification_version = 3
78
76
 
79
77
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
78
+ s.add_runtime_dependency(%q<mongo>, ["~> 1.0"])
79
+ s.add_runtime_dependency(%q<uuidtools>, [">= 0"])
80
+ s.add_runtime_dependency(%q<em-websocket>, [">= 0"])
80
81
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
81
82
  s.add_runtime_dependency(%q<mongo>, [">= 0"])
82
83
  s.add_runtime_dependency(%q<em-websocket>, [">= 0"])
83
84
  s.add_runtime_dependency(%q<uuidtools>, [">= 0"])
84
85
  else
86
+ s.add_dependency(%q<mongo>, ["~> 1.0"])
87
+ s.add_dependency(%q<uuidtools>, [">= 0"])
88
+ s.add_dependency(%q<em-websocket>, [">= 0"])
85
89
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
86
90
  s.add_dependency(%q<mongo>, [">= 0"])
87
91
  s.add_dependency(%q<em-websocket>, [">= 0"])
88
92
  s.add_dependency(%q<uuidtools>, [">= 0"])
89
93
  end
90
94
  else
95
+ s.add_dependency(%q<mongo>, ["~> 1.0"])
96
+ s.add_dependency(%q<uuidtools>, [">= 0"])
97
+ s.add_dependency(%q<em-websocket>, [">= 0"])
91
98
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
92
99
  s.add_dependency(%q<mongo>, [">= 0"])
93
100
  s.add_dependency(%q<em-websocket>, [">= 0"])
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magent
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 13
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 5
8
- - 2
9
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - David A. Cuadrado
@@ -14,61 +15,108 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-10-17 00:00:00 -05:00
18
+ date: 2011-02-07 00:00:00 -05:00
18
19
  default_executable: magent
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- name: thoughtbot-shoulda
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ hash: 15
28
+ segments:
29
+ - 1
30
+ - 0
31
+ version: "1.0"
32
+ requirement: *id001
22
33
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
34
+ type: :runtime
35
+ name: mongo
36
+ - !ruby/object:Gem::Dependency
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
24
38
  none: false
25
39
  requirements:
26
40
  - - ">="
27
41
  - !ruby/object:Gem::Version
42
+ hash: 3
28
43
  segments:
29
44
  - 0
30
45
  version: "0"
31
- type: :development
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: mongo
46
+ requirement: *id002
35
47
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
48
+ type: :runtime
49
+ name: uuidtools
50
+ - !ruby/object:Gem::Dependency
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
37
52
  none: false
38
53
  requirements:
39
54
  - - ">="
40
55
  - !ruby/object:Gem::Version
56
+ hash: 3
41
57
  segments:
42
58
  - 0
43
59
  version: "0"
60
+ requirement: *id003
61
+ prerelease: false
44
62
  type: :runtime
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
47
63
  name: em-websocket
64
+ - !ruby/object:Gem::Dependency
65
+ version_requirements: &id004 !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
74
+ requirement: *id004
48
75
  prerelease: false
49
- requirement: &id003 !ruby/object:Gem::Requirement
76
+ type: :development
77
+ name: thoughtbot-shoulda
78
+ - !ruby/object:Gem::Dependency
79
+ version_requirements: &id005 !ruby/object:Gem::Requirement
50
80
  none: false
51
81
  requirements:
52
82
  - - ">="
53
83
  - !ruby/object:Gem::Version
84
+ hash: 3
54
85
  segments:
55
86
  - 0
56
87
  version: "0"
88
+ requirement: *id005
89
+ prerelease: false
57
90
  type: :runtime
58
- version_requirements: *id003
91
+ name: mongo
59
92
  - !ruby/object:Gem::Dependency
60
- name: uuidtools
93
+ version_requirements: &id006 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ hash: 3
99
+ segments:
100
+ - 0
101
+ version: "0"
102
+ requirement: *id006
61
103
  prerelease: false
62
- requirement: &id004 !ruby/object:Gem::Requirement
104
+ type: :runtime
105
+ name: em-websocket
106
+ - !ruby/object:Gem::Dependency
107
+ version_requirements: &id007 !ruby/object:Gem::Requirement
63
108
  none: false
64
109
  requirements:
65
110
  - - ">="
66
111
  - !ruby/object:Gem::Version
112
+ hash: 3
67
113
  segments:
68
114
  - 0
69
115
  version: "0"
116
+ requirement: *id007
117
+ prerelease: false
70
118
  type: :runtime
71
- version_requirements: *id004
119
+ name: uuidtools
72
120
  description: Simple job queue system based on mongodb
73
121
  email: krawek@gmail.com
74
122
  executables:
@@ -80,7 +128,6 @@ extra_rdoc_files:
80
128
  - README.rdoc
81
129
  files:
82
130
  - .document
83
- - .gitignore
84
131
  - Gemfile
85
132
  - Gemfile.lock
86
133
  - History.txt
@@ -120,8 +167,8 @@ homepage: http://github.com/dcu/magent
120
167
  licenses: []
121
168
 
122
169
  post_install_message:
123
- rdoc_options:
124
- - --charset=UTF-8
170
+ rdoc_options: []
171
+
125
172
  require_paths:
126
173
  - lib
127
174
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -129,6 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
176
  requirements:
130
177
  - - ">="
131
178
  - !ruby/object:Gem::Version
179
+ hash: 3
132
180
  segments:
133
181
  - 0
134
182
  version: "0"
@@ -137,6 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
185
  requirements:
138
186
  - - ">="
139
187
  - !ruby/object:Gem::Version
188
+ hash: 3
140
189
  segments:
141
190
  - 0
142
191
  version: "0"
@@ -148,11 +197,11 @@ signing_key:
148
197
  specification_version: 3
149
198
  summary: Simple job queue system based on mongodb
150
199
  test_files:
151
- - test/test_helper.rb
152
- - test/test_magent.rb
153
- - examples/simple/bot.rb
154
- - examples/error/error.rb
155
200
  - examples/comm/run.rb
156
201
  - examples/comm/worker.rb
202
+ - examples/error/error.rb
157
203
  - examples/mongomapper/async.rb
204
+ - examples/simple/bot.rb
158
205
  - examples/stats/stats.rb
206
+ - test/test_helper.rb
207
+ - test/test_magent.rb
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- *~
2
- config/gitspace.yml
3
- lib/couchmapper
4
- lib/discm
5
- log/*
6
- public/stylesheets/**/*.css
7
- .bundle