procrastinate 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -57,6 +57,9 @@ COMPATIBILITY
57
57
 
58
58
  This library runs with at least Ruby 1.8.7 and Ruby 1.9.
59
59
 
60
+ Ruby 1.9-p136 users must use this patch:
61
+ https://gist.github.com/762807
62
+
60
63
  KNOWN BUGS
61
64
 
62
65
  Due to the way we handle signal traps, you cannot start more than one
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ spec = Gem::Specification.new do |s|
16
16
 
17
17
  # Change these as appropriate
18
18
  s.name = "procrastinate"
19
- s.version = "0.3.0"
19
+ s.version = "0.3.1"
20
20
  s.summary = "Framework to run tasks in separate processes."
21
21
  s.authors = ['Kaspar Schiess', 'Patrick Marchi']
22
22
  s.email = ['kaspar.schiess@absurd.li', 'mail@patrickmarchi.ch']
@@ -55,4 +55,13 @@ module Procrastinate
55
55
  scheduler.shutdown
56
56
  end
57
57
  module_function :shutdown
58
+
59
+ # Resets the implicit scheduler. Please use this only in tests, not in
60
+ # production code.
61
+ #
62
+ def reset
63
+ scheduler.shutdown
64
+ @scheduler = nil
65
+ end
66
+ module_function :reset
58
67
  end
@@ -19,8 +19,8 @@ class Procrastinate::SpawnStrategy::Default < Procrastinate::SpawnStrategy::Thro
19
19
 
20
20
  # Mac OS X
21
21
  if File.exist?('/usr/sbin/system_profiler')
22
- output = `system_profiler SPHardwareDataType | grep "Total Number Of Cores"`
23
- if md=output.match(%r(Total Number Of Cores: (\d+)))
22
+ output = `system_profiler SPHardwareDataType | grep "Total Number [oO]f Cores"`
23
+ if md=output.match(%r(Total Number [oO]f Cores: (\d+)))
24
24
  return Integer(md[1])
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,75 +1,59 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: procrastinate
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 0
9
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Kaspar Schiess
13
9
  - Patrick Marchi
14
10
  autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
-
18
- date: 2010-12-27 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2011-09-13 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: state_machine
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70138440330900 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
19
+ requirements:
27
20
  - - ~>
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- - 9
32
- - 4
21
+ - !ruby/object:Gem::Version
33
22
  version: 0.9.4
34
23
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rspec
38
24
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *70138440330900
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &70138440330260 !ruby/object:Gem::Requirement
40
29
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- segments:
45
- - 0
46
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
47
34
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: flexmock
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *70138440330260
37
+ - !ruby/object:Gem::Dependency
38
+ name: flexmock
39
+ requirement: &70138440329160 !ruby/object:Gem::Requirement
53
40
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- segments:
58
- - 0
59
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
60
45
  type: :development
61
- version_requirements: *id003
46
+ prerelease: false
47
+ version_requirements: *70138440329160
62
48
  description:
63
- email:
49
+ email:
64
50
  - kaspar.schiess@absurd.li
65
51
  - mail@patrickmarchi.ch
66
52
  executables: []
67
-
68
53
  extensions: []
69
-
70
- extra_rdoc_files:
54
+ extra_rdoc_files:
71
55
  - README
72
- files:
56
+ files:
73
57
  - LICENSE
74
58
  - Rakefile
75
59
  - README
@@ -94,38 +78,30 @@ files:
94
78
  - lib/procrastinate/utils/one_time_flag_ruby18_shim.rb
95
79
  - lib/procrastinate/utils.rb
96
80
  - lib/procrastinate.rb
97
- has_rdoc: true
98
81
  homepage: http://github.com/kschiess/procrastinate
99
82
  licenses: []
100
-
101
83
  post_install_message:
102
- rdoc_options:
84
+ rdoc_options:
103
85
  - --main
104
86
  - README
105
- require_paths:
87
+ require_paths:
106
88
  - lib
107
- required_ruby_version: !ruby/object:Gem::Requirement
89
+ required_ruby_version: !ruby/object:Gem::Requirement
108
90
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- segments:
113
- - 0
114
- version: "0"
115
- required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
96
  none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- segments:
121
- - 0
122
- version: "0"
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
123
101
  requirements: []
124
-
125
102
  rubyforge_project:
126
- rubygems_version: 1.3.7
103
+ rubygems_version: 1.8.10
127
104
  signing_key:
128
105
  specification_version: 3
129
106
  summary: Framework to run tasks in separate processes.
130
107
  test_files: []
131
-