loops 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/lib/loops/engine.rb +2 -1
- data/loops.gemspec +3 -3
- metadata +12 -5
data/VERSION.yml
CHANGED
data/lib/loops/engine.rb
CHANGED
@@ -97,8 +97,9 @@ class Loops::Engine
|
|
97
97
|
return false
|
98
98
|
end
|
99
99
|
|
100
|
-
klass_name = "#{loop_name}_loop".capitalize.gsub(/_(.)/) { $1.upcase }
|
100
|
+
klass_name = "#{loop_name}_loop".split('/').map { |x| x.capitalize.gsub(/_(.)/) { $1.upcase } }.join('::')
|
101
101
|
klass = Object.const_get(klass_name) rescue nil
|
102
|
+
klass = klass_name.constantize if klass_name.respond_to?(:constantize) && !klass
|
102
103
|
|
103
104
|
unless klass
|
104
105
|
error "Can't find class: #{klass_name}. Worker #{name} won't be started!"
|
data/loops.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{loops}
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alexey Kovyrin", "Dmytro Shteflyuk"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-04-01}
|
13
13
|
s.description = %q{Loops is a small and lightweight framework for Ruby on Rails, Merb and other ruby frameworks created to support simple background loops in your application which are usually used to do some background data processing on your servers (queue workers, batch tasks processors, etc).}
|
14
14
|
s.email = %q{alexey@kovyrin.net}
|
15
15
|
s.executables = ["loops", "loops-memory-stats"]
|
@@ -70,7 +70,7 @@ Gem::Specification.new do |s|
|
|
70
70
|
s.homepage = %q{http://github.com/kovyrin/loops}
|
71
71
|
s.rdoc_options = ["--charset=UTF-8"]
|
72
72
|
s.require_paths = ["lib"]
|
73
|
-
s.rubygems_version = %q{1.3.
|
73
|
+
s.rubygems_version = %q{1.3.6}
|
74
74
|
s.summary = %q{Simple background loops framework for ruby}
|
75
75
|
s.test_files = [
|
76
76
|
"spec/loop_lock_spec.rb",
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 2
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
version: 2.0.3
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Alexey Kovyrin
|
@@ -10,7 +15,7 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2010-
|
18
|
+
date: 2010-04-01 00:00:00 -04:00
|
14
19
|
default_executable:
|
15
20
|
dependencies: []
|
16
21
|
|
@@ -86,18 +91,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
91
|
requirements:
|
87
92
|
- - ">="
|
88
93
|
- !ruby/object:Gem::Version
|
94
|
+
segments:
|
95
|
+
- 0
|
89
96
|
version: "0"
|
90
|
-
version:
|
91
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
98
|
requirements:
|
93
99
|
- - ">="
|
94
100
|
- !ruby/object:Gem::Version
|
101
|
+
segments:
|
102
|
+
- 0
|
95
103
|
version: "0"
|
96
|
-
version:
|
97
104
|
requirements: []
|
98
105
|
|
99
106
|
rubyforge_project:
|
100
|
-
rubygems_version: 1.3.
|
107
|
+
rubygems_version: 1.3.6
|
101
108
|
signing_key:
|
102
109
|
specification_version: 3
|
103
110
|
summary: Simple background loops framework for ruby
|