qmin 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/Gemfile +3 -0
- data/Gemfile.ci +4 -0
- data/README.md +4 -0
- data/lib/qmin/version.rb +1 -1
- data/qmin.gemspec +0 -2
- data/spec/qmin/qmin_spec.rb +4 -3
- data/spec/qmin/resque/base_job_spec.rb +2 -2
- data/spec/spec_helper.rb +8 -4
- metadata +2 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43fbea2d8af2608d83b22a3dce04abb38bec4e64
|
4
|
+
data.tar.gz: cfd53ca11ac9302d8412c52a4ff26f5ce0a46da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11ff0a9e5d79d9227161c666d0da69953119e5d8d821da42bb07f71363f413a6d7ee9994648885587181d131ad0625f18783bd153193df388a1a69bf75360b03
|
7
|
+
data.tar.gz: 4679da2a22b7a7f1f8e80f2485b0d46a96cdb93c48528f651ffca88b045454253dd9b5f321c47e9b22858ee0e653792f4e821d495ffe703230a37456ddf516e2
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.ci
ADDED
data/README.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/qmin/qmin.png?branch=master)](https://travis-ci.org/qmin/qmin)
|
2
|
+
[![Dependency Status](https://gemnasium.com/qmin/qmin.png)](https://gemnasium.com/qmin/qmin)
|
3
|
+
[![Code Climate](https://codeclimate.com/github/qmin/qmin.png)](https://codeclimate.com/github/qmin/qmin)
|
4
|
+
|
1
5
|
# Qmin
|
2
6
|
|
3
7
|
Enables your application to handle method calls in the background without the need to write a worker for every task.
|
data/lib/qmin/version.rb
CHANGED
data/qmin.gemspec
CHANGED
@@ -22,6 +22,4 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency 'rake'
|
23
23
|
spec.add_development_dependency 'rspec'
|
24
24
|
spec.add_development_dependency 'mocha'
|
25
|
-
spec.add_development_dependency 'simplecov'
|
26
|
-
spec.add_development_dependency 'simplecov-html'
|
27
25
|
end
|
data/spec/qmin/qmin_spec.rb
CHANGED
@@ -12,16 +12,17 @@ describe Qmin do
|
|
12
12
|
it 'raises error if no strategy defined' do
|
13
13
|
Qmin::Qmin.default_strategy = nil
|
14
14
|
|
15
|
-
|
15
|
+
lambda {
|
16
16
|
Qmin::Qmin.new
|
17
17
|
}.should raise_error(Qmin::MustDefineStrategyError)
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'raises error for current if no strategy defined' do
|
21
|
+
# reset strategies
|
21
22
|
Qmin::Qmin.default_strategy = nil
|
22
|
-
Qmin::Qmin.class_variable_set
|
23
|
+
Qmin::Qmin.send :class_variable_set, :@@current, nil
|
23
24
|
|
24
|
-
|
25
|
+
lambda {
|
25
26
|
Qmin::Qmin.current
|
26
27
|
}.should raise_error(Qmin::MustDefineStrategyError)
|
27
28
|
end
|
@@ -9,7 +9,7 @@ describe Qmin::Resque::BaseJob do
|
|
9
9
|
|
10
10
|
it 'demands find method on model class' do
|
11
11
|
Qmin::Qmin.new(Qmin::Strategy::Resque)
|
12
|
-
|
12
|
+
lambda {
|
13
13
|
Class.new(Qmin::Resque::BaseJob) do
|
14
14
|
model Class
|
15
15
|
end
|
@@ -18,7 +18,7 @@ describe Qmin::Resque::BaseJob do
|
|
18
18
|
|
19
19
|
it 'demands implementation of perform method' do
|
20
20
|
instance = Class.new(Qmin::Resque::BaseJob).new(TestClass, :action, 123)
|
21
|
-
|
21
|
+
lambda {
|
22
22
|
instance.perform
|
23
23
|
}.should raise_error(Qmin::Resque::BaseJob::ImplementationMissing)
|
24
24
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
begin
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start do
|
4
|
+
add_filter '/spec'
|
5
|
+
end
|
6
|
+
rescue LoadError
|
7
|
+
# only available for ruby 1.9+ in non-CI environments
|
4
8
|
end
|
5
9
|
|
6
10
|
require 'rspec/autorun'
|
@@ -35,7 +39,7 @@ RSpec.configure do |config|
|
|
35
39
|
config.order = 'random'
|
36
40
|
|
37
41
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
38
|
-
config.filter_run focus
|
42
|
+
config.filter_run :focus => true
|
39
43
|
config.filter_run_excluding :wip => true
|
40
44
|
config.run_all_when_everything_filtered = true
|
41
45
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- the-architect
|
@@ -66,34 +66,6 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '>='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: simplecov-html
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '>='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '>='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
69
|
description: Simple framwork to coordinate background tasks
|
98
70
|
email:
|
99
71
|
- marcel.scherf@epicteams.com
|
@@ -105,6 +77,7 @@ files:
|
|
105
77
|
- .rspec
|
106
78
|
- .travis.yml
|
107
79
|
- Gemfile
|
80
|
+
- Gemfile.ci
|
108
81
|
- LICENSE.txt
|
109
82
|
- README.md
|
110
83
|
- Rakefile
|