cyclop 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,4 +4,5 @@ Gemfile.lock
4
4
  pkg/*
5
5
  docs/
6
6
  *.log
7
- *.yml
7
+ *.yml
8
+ *.rbc
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ rvm:
2
+ - 1.9.2
3
+ - ruby-head
4
+ notifications:
5
+ disabled: true
data/README.md CHANGED
@@ -83,8 +83,10 @@ Usage
83
83
 
84
84
  cyclop -h
85
85
 
86
- About
87
- -----
86
+ Build Status
87
+ ---------
88
+
89
+ [![Build Status](http://travis-ci.org/TalentBox/cyclop.png)](http://travis-ci.org/TalentBox/cyclop)
88
90
 
89
91
  License
90
92
  -------
data/cyclop.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_runtime_dependency("bson_ext", ["~> 1.3.1"])
21
- s.add_runtime_dependency("mongo", ["~> 1.3.1"])
21
+ s.add_runtime_dependency("mongo", ["~> 1.3"])
22
22
  s.add_runtime_dependency("posix-spawn", ["~> 0.3.6"])
23
23
 
24
24
  s.add_development_dependency("rake", ["~> 0.8.7"])
@@ -1,3 +1,3 @@
1
1
  module Cyclop
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe Cyclop::Worker do
4
- subject { Cyclop::Worker.new({"mongo" => {"database" => "cyclop_test"}}) }
4
+ subject { Cyclop::Worker.new({"mongo" => {"database" => Cyclop.db.name}}) }
5
5
 
6
6
  its(:queues){ should be_empty }
7
7
  its(:logger){ should_not be_nil }
@@ -18,7 +18,7 @@ describe Cyclop::Worker do
18
18
  describe "#perform" do
19
19
  let(:worker) do
20
20
  Cyclop::Worker.new({
21
- "mongo" => {"database" => "cyclop_test"},
21
+ "mongo" => {"database" => Cyclop.db.name},
22
22
  "actions" => File.expand_path("../../fixtures/actions", __FILE__),
23
23
  })
24
24
  end
@@ -39,7 +39,7 @@ describe Cyclop::Worker do
39
39
  let(:worker) do
40
40
  Cyclop::Worker.new({
41
41
  "log_file" => File.expand_path("../../../test.log", __FILE__),
42
- "mongo" => {"database" => "cyclop_test"},
42
+ "mongo" => {"database" => Cyclop.db.name},
43
43
  "actions" => File.expand_path("../../fixtures/actions", __FILE__),
44
44
  })
45
45
  end
@@ -95,7 +95,7 @@ describe Cyclop::Worker do
95
95
  let(:worker) do
96
96
  Cyclop::Worker.new({
97
97
  "log_file" => File.expand_path("../../../test.log", __FILE__),
98
- "mongo" => {"database" => "cyclop_test"},
98
+ "mongo" => {"database" => Cyclop.db.name},
99
99
  "actions" => File.expand_path("../../fixtures/actions", __FILE__),
100
100
  "limit_to_host" => host,
101
101
  })
@@ -119,10 +119,10 @@ describe Cyclop::Worker do
119
119
  let(:worker) do
120
120
  Cyclop::Worker.new({
121
121
  "log_file" => File.expand_path("../../../test.log", __FILE__),
122
- "mongo" => {"database" => "cyclop_test"},
122
+ "mongo" => {"database" => Cyclop.db.name},
123
123
  "actions" => File.expand_path("../../fixtures/actions", __FILE__),
124
124
  "die_after" => 1,
125
- })
125
+ })
126
126
  end
127
127
  it "only processes specified number jobs" do
128
128
  job1 = Cyclop.push queue: "slow", job_params: ["tony@starkenterprises.com", :welcome]
data/spec/spec_helper.rb CHANGED
@@ -7,7 +7,8 @@ Dir[File.expand_path("../support/**/*.rb", __FILE__)].each{|f| require f}
7
7
  RSpec.configure do |config|
8
8
  config.before(:all) do
9
9
  logger = Logger.new "test.log"
10
- Cyclop.db = Mongo::Connection.new("localhost", nil, :logger => logger).db "cyclop_test"
10
+ db_name = "cyclop_test#{RUBY_VERSION.gsub(".", "_")}"
11
+ Cyclop.db = Mongo::Connection.new("localhost", nil, :logger => logger).db db_name
11
12
  end
12
13
  config.before do
13
14
  Cyclop.db.collections.each(&:remove)
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.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,12 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-06-28 00:00:00.000000000 +02:00
14
- default_executable:
13
+ date: 2011-09-23 00:00:00.000000000Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: bson_ext
18
- requirement: &2153189120 !ruby/object:Gem::Requirement
17
+ requirement: &2153320520 !ruby/object:Gem::Requirement
19
18
  none: false
20
19
  requirements:
21
20
  - - ~>
@@ -23,21 +22,21 @@ dependencies:
23
22
  version: 1.3.1
24
23
  type: :runtime
25
24
  prerelease: false
26
- version_requirements: *2153189120
25
+ version_requirements: *2153320520
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: mongo
29
- requirement: &2153187120 !ruby/object:Gem::Requirement
28
+ requirement: &2153319760 !ruby/object:Gem::Requirement
30
29
  none: false
31
30
  requirements:
32
31
  - - ~>
33
32
  - !ruby/object:Gem::Version
34
- version: 1.3.1
33
+ version: '1.3'
35
34
  type: :runtime
36
35
  prerelease: false
37
- version_requirements: *2153187120
36
+ version_requirements: *2153319760
38
37
  - !ruby/object:Gem::Dependency
39
38
  name: posix-spawn
40
- requirement: &2153183260 !ruby/object:Gem::Requirement
39
+ requirement: &2153318900 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ~>
@@ -45,10 +44,10 @@ dependencies:
45
44
  version: 0.3.6
46
45
  type: :runtime
47
46
  prerelease: false
48
- version_requirements: *2153183260
47
+ version_requirements: *2153318900
49
48
  - !ruby/object:Gem::Dependency
50
49
  name: rake
51
- requirement: &2153178120 !ruby/object:Gem::Requirement
50
+ requirement: &2153318180 !ruby/object:Gem::Requirement
52
51
  none: false
53
52
  requirements:
54
53
  - - ~>
@@ -56,10 +55,10 @@ dependencies:
56
55
  version: 0.8.7
57
56
  type: :development
58
57
  prerelease: false
59
- version_requirements: *2153178120
58
+ version_requirements: *2153318180
60
59
  - !ruby/object:Gem::Dependency
61
60
  name: rspec
62
- requirement: &2153177300 !ruby/object:Gem::Requirement
61
+ requirement: &2153317560 !ruby/object:Gem::Requirement
63
62
  none: false
64
63
  requirements:
65
64
  - - ~>
@@ -67,10 +66,10 @@ dependencies:
67
66
  version: 2.6.0
68
67
  type: :development
69
68
  prerelease: false
70
- version_requirements: *2153177300
69
+ version_requirements: *2153317560
71
70
  - !ruby/object:Gem::Dependency
72
71
  name: rocco
73
- requirement: &2153175900 !ruby/object:Gem::Requirement
72
+ requirement: &2153316820 !ruby/object:Gem::Requirement
74
73
  none: false
75
74
  requirements:
76
75
  - - ~>
@@ -78,7 +77,7 @@ dependencies:
78
77
  version: '0.7'
79
78
  type: :development
80
79
  prerelease: false
81
- version_requirements: *2153175900
80
+ version_requirements: *2153316820
82
81
  description: Job queue with MongoDB with emphasis on never losing any task even if
83
82
  worker fails hard (segfault).
84
83
  email:
@@ -91,6 +90,7 @@ extra_rdoc_files: []
91
90
  files:
92
91
  - .gitignore
93
92
  - .rspec
93
+ - .travis.yml
94
94
  - Gemfile
95
95
  - LICENSE
96
96
  - README.md
@@ -108,7 +108,6 @@ files:
108
108
  - spec/cyclop_spec.rb
109
109
  - spec/fixtures/actions/email.rb
110
110
  - spec/spec_helper.rb
111
- has_rdoc: true
112
111
  homepage: https://github.com/TalentBox/cyclop
113
112
  licenses: []
114
113
  post_install_message:
@@ -129,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
128
  version: '0'
130
129
  requirements: []
131
130
  rubyforge_project:
132
- rubygems_version: 1.6.2
131
+ rubygems_version: 1.8.6
133
132
  signing_key:
134
133
  specification_version: 3
135
134
  summary: Job queue with MongoDB