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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2600d53df8e893c5b9db026cdcf198e40762746
4
- data.tar.gz: 828b42040a310cc8dbe53f3e3f0b088ae8ae498f
3
+ metadata.gz: 43fbea2d8af2608d83b22a3dce04abb38bec4e64
4
+ data.tar.gz: cfd53ca11ac9302d8412c52a4ff26f5ce0a46da3
5
5
  SHA512:
6
- metadata.gz: f98463e9cd5409ca24bb3442ce2a6383c97a0216021558a7c6f9a13805817923ae954d6500ab594ccbf681ec9610f0f2bf211302d4b6bfc8205b058384eadbe9
7
- data.tar.gz: f9c347d322057577481ae60c021b0b2b4fcfc8f7ed11e949c586539568ca36c26aa9a13a8a579c1f477d84e6df90f5de3dffd423d4cc4c5b7490f149b3a1cb90
6
+ metadata.gz: 11ff0a9e5d79d9227161c666d0da69953119e5d8d821da42bb07f71363f413a6d7ee9994648885587181d131ad0625f18783bd153193df388a1a69bf75360b03
7
+ data.tar.gz: 4679da2a22b7a7f1f8e80f2485b0d46a96cdb93c48528f651ffca88b045454253dd9b5f321c47e9b22858ee0e653792f4e821d495ffe703230a37456ddf516e2
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
+ gemfile: Gemfile.ci
2
3
  rvm:
3
4
  - ruby-head
4
5
  - 2.0.0-p0
data/Gemfile CHANGED
@@ -6,4 +6,7 @@ gemspec
6
6
  group :development do
7
7
  gem 'debugger'
8
8
  gem 'metric_fu', :platforms => [:ruby_19, :ruby_20]
9
+ gem 'simplecov', :platforms => [:ruby_19, :ruby_20]
10
+ gem 'simplecov-html', :platforms => [:ruby_19, :ruby_20]
9
11
  end
12
+
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in qmin.gemspec
4
+ gemspec
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.
@@ -1,3 +1,3 @@
1
1
  module Qmin
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -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
@@ -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(:@@current, nil)
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
 
@@ -1,6 +1,10 @@
1
- require 'simplecov'
2
- SimpleCov.start do
3
- add_filter '/spec'
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: true
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
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