cyclop 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  *.gem
2
2
  .bundle
3
- Gemfile.lock
4
3
  pkg/*
5
4
  docs/
6
5
  *.log
@@ -0,0 +1,40 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cyclop (0.1.6)
5
+ bson_ext (~> 1.3)
6
+ mongo (~> 1.3)
7
+ posix-spawn (~> 0.3.6)
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ bson (1.4.0)
13
+ bson_ext (1.4.0)
14
+ diff-lcs (1.1.3)
15
+ mongo (1.4.0)
16
+ bson (= 1.4.0)
17
+ mustache (0.99.4)
18
+ posix-spawn (0.3.6)
19
+ rake (0.8.7)
20
+ redcarpet (1.17.2)
21
+ rocco (0.8.2)
22
+ mustache
23
+ redcarpet
24
+ rspec (2.6.0)
25
+ rspec-core (~> 2.6.0)
26
+ rspec-expectations (~> 2.6.0)
27
+ rspec-mocks (~> 2.6.0)
28
+ rspec-core (2.6.4)
29
+ rspec-expectations (2.6.0)
30
+ diff-lcs (~> 1.1.2)
31
+ rspec-mocks (2.6.0)
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ cyclop!
38
+ rake (~> 0.8.7)
39
+ rocco (~> 0.7)
40
+ rspec (~> 2.6.0)
@@ -80,7 +80,8 @@ module Cyclop
80
80
  # Returns the modified job
81
81
  conditions[:new] = true
82
82
 
83
- new collection.find_and_modify conditions
83
+ job = collection.find_and_modify conditions
84
+ new job if job
84
85
  rescue Mongo::OperationFailure
85
86
  nil
86
87
  end
@@ -1,3 +1,3 @@
1
1
  module Cyclop
2
- VERSION = "0.1.6"
3
- end
2
+ VERSION = "0.1.7"
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyclop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-09-23 00:00:00.000000000Z
13
+ date: 2011-10-16 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bson_ext
17
- requirement: &2157178600 !ruby/object:Gem::Requirement
17
+ requirement: &3731690 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '1.3'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2157178600
25
+ version_requirements: *3731690
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: mongo
28
- requirement: &2157177900 !ruby/object:Gem::Requirement
28
+ requirement: &3731160 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '1.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2157177900
36
+ version_requirements: *3731160
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: posix-spawn
39
- requirement: &2157177280 !ruby/object:Gem::Requirement
39
+ requirement: &3730520 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 0.3.6
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2157177280
47
+ version_requirements: *3730520
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rake
50
- requirement: &2157176740 !ruby/object:Gem::Requirement
50
+ requirement: &3730210 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 0.8.7
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2157176740
58
+ version_requirements: *3730210
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rspec
61
- requirement: &2157176020 !ruby/object:Gem::Requirement
61
+ requirement: &3729850 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 2.6.0
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *2157176020
69
+ version_requirements: *3729850
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rocco
72
- requirement: &2157175420 !ruby/object:Gem::Requirement
72
+ requirement: &3729290 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,7 +77,7 @@ dependencies:
77
77
  version: '0.7'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *2157175420
80
+ version_requirements: *3729290
81
81
  description: Job queue with MongoDB with emphasis on never losing any task even if
82
82
  worker fails hard (segfault).
83
83
  email:
@@ -92,6 +92,7 @@ files:
92
92
  - .rspec
93
93
  - .travis.yml
94
94
  - Gemfile
95
+ - Gemfile.lock
95
96
  - LICENSE
96
97
  - README.md
97
98
  - Rakefile
@@ -128,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
129
  version: '0'
129
130
  requirements: []
130
131
  rubyforge_project:
131
- rubygems_version: 1.8.6
132
+ rubygems_version: 1.8.10
132
133
  signing_key:
133
134
  specification_version: 3
134
135
  summary: Job queue with MongoDB