rabbit_jobs 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43e6ebadd3d397552985fda60cd5a52a83fde2aa
4
- data.tar.gz: 382a384672309bbc88a73caa3f091aa7499a9ed5
3
+ metadata.gz: 2bb35a66a6c216bde7ea3e1499939cb91dbb6fc2
4
+ data.tar.gz: 373d2758afd762a09f1f6ba8d251a06d4a72e2ab
5
5
  SHA512:
6
- metadata.gz: f65d7b759e44f7a3f41d41c566e2a2682e11bd7752a8b51851bcfc5ed3942bd5ddc024bca849cdf35629feccf2ea3bf2521c596083a41f3bbe0cd1e3992525b6
7
- data.tar.gz: 1b41ee27e600e2608bf1de39a95ba0e7b5065d158ca5bbdb20b50f157a3028e02e1a747a3443cdffdf87d95f27c10e9d56f4a9e09720510b6c6fa198e511ecfd
6
+ metadata.gz: 675e971a4a190aea0a9b59d16e24742634f3189ae7b62e07ef0058d183ed9b1741ee67d2889b0de355af67d5903ab4d026153c34e44287c1b32612fb43acae22
7
+ data.tar.gz: c20af9f81ab6ebb1bb350f83b50071c50d138f966579b25f752c9084233d8827105c4023f662236735ccaafc70e77c575095bff7a9ea264beddb718216dc40a5
data/Gemfile CHANGED
@@ -1,10 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gemspec
4
-
5
- group :development do
6
- gem 'timecop'
7
- gem 'rspec', '~> 2.8'
8
- gem 'rr'
9
- gem 'simplecov', require: false
10
- end
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Pavel Lazureykis
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # RabbitJobs
2
2
 
3
- Schedule jobs on rabbitmq and run them in background.
3
+ TODO: Write a gem description
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,12 +18,12 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here.
21
+ TODO: Write usage instructions here
22
22
 
23
23
  ## Contributing
24
24
 
25
- 1. Fork it
25
+ 1. Fork it ( http://github.com/<my-github-username>/rabbit_jobs/fork )
26
26
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Added some feature'`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
28
  4. Push to the branch (`git push origin my-new-feature`)
29
29
  5. Create new Pull Request
data/Rakefile CHANGED
@@ -1,2 +1 @@
1
- #!/usr/bin/env rake
2
1
  require "bundler/gem_tasks"
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RabbitJobs
4
- VERSION = "0.9.1"
4
+ VERSION = "0.10.0"
5
5
  end
data/rabbit_jobs.gemspec CHANGED
@@ -1,23 +1,33 @@
1
- # -*- encoding: utf-8 -*-
2
1
  $:.push File.expand_path("../lib", __FILE__)
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
3
5
  require 'rabbit_jobs/version'
4
6
 
5
- Gem::Specification.new do |gem|
6
- gem.authors = ["Pavel Lazureykis"]
7
- gem.email = ["lazureykis@gmail.com"]
8
- gem.description = %q{Background jobs on RabbitMQ}
9
- gem.summary = %q{Background jobs on RabbitMQ}
10
- gem.homepage = ""
11
- gem.date = Time.now.strftime('%Y-%m-%d')
7
+ Gem::Specification.new do |spec|
8
+ spec.authors = ["Pavel Lazureykis"]
9
+ spec.email = ["lazureykis@gmail.com"]
10
+ spec.description = %q{Background jobs on RabbitMQ}
11
+ spec.summary = %q{Background jobs on RabbitMQ}
12
+ spec.homepage = ""
13
+ spec.date = Time.now.strftime('%Y-%m-%d')
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.name = "rabbit_jobs"
18
+ spec.require_paths = ["lib"]
19
+ spec.version = RabbitJobs::VERSION
20
+ spec.license = "MIT"
12
21
 
13
- gem.files = `git ls-files`.split("\n")
14
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
- gem.name = "rabbit_jobs"
16
- gem.require_paths = ["lib"]
17
- gem.version = RabbitJobs::VERSION
22
+ spec.add_dependency "bunny", "~> 1.0"
23
+ spec.add_dependency "rake"
24
+ spec.add_dependency "rufus-scheduler", "~> 3.0"
25
+ spec.add_dependency "rails", ">= 3.2", "< 5.0"
18
26
 
19
- gem.add_dependency "bunny", "~> 1.0"
20
- gem.add_dependency "rake"
21
- gem.add_dependency "rufus-scheduler", "~> 2.0"
22
- gem.add_dependency "rails", "~> 3.2"
27
+ spec.add_development_dependency "bundler", "~> 1.5"
28
+ # spec.add_development_dependency "rake"
29
+ spec.add_development_dependency "timecop"
30
+ spec.add_development_dependency "rspec"
31
+ spec.add_development_dependency "rr"
32
+ spec.add_development_dependency "simplecov"
23
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Lazureykis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-08 00:00:00.000000000 Z
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -44,28 +44,104 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '2.0'
47
+ version: '3.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '2.0'
54
+ version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.2'
62
+ - - <
63
+ - !ruby/object:Gem::Version
64
+ version: '5.0'
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - ~>
69
+ - - '>='
67
70
  - !ruby/object:Gem::Version
68
71
  version: '3.2'
72
+ - - <
73
+ - !ruby/object:Gem::Version
74
+ version: '5.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: bundler
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ~>
80
+ - !ruby/object:Gem::Version
81
+ version: '1.5'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: '1.5'
89
+ - !ruby/object:Gem::Dependency
90
+ name: timecop
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rspec
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rr
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: simplecov
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - '>='
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
69
145
  description: Background jobs on RabbitMQ
70
146
  email:
71
147
  - lazureykis@gmail.com
@@ -77,6 +153,7 @@ files:
77
153
  - .rspec
78
154
  - Gemfile
79
155
  - LICENSE
156
+ - LICENSE.txt
80
157
  - README.md
81
158
  - Rakefile
82
159
  - build
@@ -111,7 +188,8 @@ files:
111
188
  - spec/unit/rabbit_jobs_spec.rb
112
189
  - spec/unit/worker_spec.rb
113
190
  homepage: ''
114
- licenses: []
191
+ licenses:
192
+ - MIT
115
193
  metadata: {}
116
194
  post_install_message:
117
195
  rdoc_options: []
@@ -133,4 +211,16 @@ rubygems_version: 2.0.14
133
211
  signing_key:
134
212
  specification_version: 4
135
213
  summary: Background jobs on RabbitMQ
136
- test_files: []
214
+ test_files:
215
+ - spec/fixtures/config.yml
216
+ - spec/fixtures/jobs.rb
217
+ - spec/fixtures/schedule.yml
218
+ - spec/integration/publisher_spec.rb
219
+ - spec/integration/scheduler_spec.rb
220
+ - spec/integration/worker_spec.rb
221
+ - spec/spec_helper.rb
222
+ - spec/unit/configuration_spec.rb
223
+ - spec/unit/job_consumer_spec.rb
224
+ - spec/unit/job_spec.rb
225
+ - spec/unit/rabbit_jobs_spec.rb
226
+ - spec/unit/worker_spec.rb