simple_worker 2.0.10 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +2 -2
  2. data/lib/simple_worker.rb +1 -51
  3. metadata +10 -10
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :major: 2
2
+ :major: 3
3
3
  :minor: 0
4
- :patch: 10
4
+ :patch: 0
5
5
  :build:
data/lib/simple_worker.rb CHANGED
@@ -1,51 +1 @@
1
- puts 'WARNING: The simple_worker gem is deprecated! Please use iron_worker gem instead: https://github.com/iron-io/iron_worker_ruby. Same gem, different name.'
2
-
3
- require_relative 'simple_worker/utils'
4
- require_relative 'simple_worker/service'
5
- require_relative 'simple_worker/base'
6
- require_relative 'simple_worker/config'
7
- require_relative 'simple_worker/used_in_worker'
8
-
9
-
10
- module SimpleWorker
11
- @@logger = Logger.new(STDOUT)
12
- @@logger.level = Logger::INFO
13
-
14
-
15
- class << self
16
- attr_accessor :config,
17
- :service
18
-
19
- def configure()
20
- yield(config)
21
- if config && config.token
22
- SimpleWorker.service ||= Service.new(config.token, :config=>config)
23
- else
24
- @@logger.warn "No token specified in configure, be sure to set it!"
25
- end
26
- end
27
-
28
- def config
29
- @config ||= Config.new
30
- end
31
-
32
- def logger
33
- @@logger
34
- end
35
-
36
- def api_version
37
- 2
38
- end
39
- end
40
-
41
- end
42
-
43
- if defined?(Rails)
44
- # puts 'Rails=' + Rails.inspect
45
- # puts 'vers=' + Rails::VERSION::MAJOR.inspect
46
- if Rails::VERSION::MAJOR == 2
47
- require_relative 'simple_worker/rails2_init.rb'
48
- else
49
- require_relative 'simple_worker/railtie'
50
- end
51
- end
1
+ raise "The simple_worker gem is deprecated. Please change to iron_worker gem instead. Same usage, different name."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 3.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-20 00:00:00.000000000 Z
12
+ date: 2012-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zip
16
- requirement: &24535980 !ruby/object:Gem::Requirement
16
+ requirement: &15075360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *24535980
24
+ version_requirements: *15075360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &24550760 !ruby/object:Gem::Requirement
27
+ requirement: &15122940 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *24550760
35
+ version_requirements: *15122940
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: zip
38
- requirement: &24550020 !ruby/object:Gem::Requirement
38
+ requirement: &15122460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *24550020
46
+ version_requirements: *15122460
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rest-client
49
- requirement: &24548960 !ruby/object:Gem::Requirement
49
+ requirement: &15121560 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *24548960
57
+ version_requirements: *15121560
58
58
  description: The official SimpleWorker gem for http://www.simpleworker.com
59
59
  email: travis@appoxy.com
60
60
  executables: []