aptible-tasks 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/aptible-tasks.gemspec +4 -2
- data/lib/aptible/tasks/rubocop.rb +2 -2
- data/lib/aptible/tasks/version.rb +1 -1
- data/spec/aptible/tasks/rubocop_spec.rb +7 -7
- data/spec/spec_helper.rb +3 -0
- data/spec/tasks/rubocob_spec.rb +1 -1
- metadata +36 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30ea8a26829eb7c925479de1b6500da0111c474
|
4
|
+
data.tar.gz: 3cc0bb2cb28d9444e26a8c4b0d520d00a6d0f3b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3663f695f518c9be1500cfac5b7de573587edd7fd849fd04d581dbd539cf977fd7900bbd423bea71e90533024c233f425315347cac678612c736ac21b0d68905
|
7
|
+
data.tar.gz: 84c250ebae1d63d4447187aff33ccbcfb0f8cf1b88caa050cfcf5329bab86c0c0fc98acb4bed99f4c398c8551f08e147cdbc88cdac3fdfeaa71fe3cc0480025e
|
data/aptible-tasks.gemspec
CHANGED
@@ -20,8 +20,10 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
22
|
spec.add_dependency 'rake'
|
23
|
-
spec.add_dependency 'rubocop', '>= 0.
|
24
|
-
spec.add_dependency 'rspec', '
|
23
|
+
spec.add_dependency 'rubocop', '>= 0.23.0'
|
24
|
+
spec.add_dependency 'rspec', '>= 2.0.0'
|
25
|
+
spec.add_dependency 'rspec-its'
|
25
26
|
|
26
27
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
28
|
+
spec.add_development_dependency 'pry'
|
27
29
|
end
|
@@ -21,11 +21,11 @@ module Aptible
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def config
|
24
|
-
::
|
24
|
+
::RuboCop::ConfigLoader.load_file(config_file)
|
25
25
|
end
|
26
26
|
|
27
27
|
def run
|
28
|
-
cli = ::
|
28
|
+
cli = ::RuboCop::CLI.new
|
29
29
|
result = cli.run(%W( -c #{config_file} ))
|
30
30
|
abort unless result == 0
|
31
31
|
end
|
@@ -2,12 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Aptible::Tasks::Rubocop do
|
4
4
|
before do
|
5
|
-
::
|
5
|
+
allow(::RuboCop::CLI).to receive(:run)
|
6
6
|
end
|
7
7
|
|
8
|
-
its(:config) { should be_a ::
|
8
|
+
its(:config) { should be_a ::RuboCop::Config }
|
9
9
|
|
10
|
-
describe
|
10
|
+
describe '#project_config_file' do
|
11
11
|
let!(:rubocop_yml) { File.join(Dir.pwd, '.rubocop.yml') }
|
12
12
|
|
13
13
|
it 'should return a local .rubocop.yml if present' do
|
@@ -20,19 +20,19 @@ describe Aptible::Tasks::Rubocop do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'should return nil if no file exists' do
|
23
|
-
File.
|
23
|
+
allow(File).to receive(:exist?) { false }
|
24
24
|
expect(subject.project_config_file).to be_nil
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
describe
|
28
|
+
describe '#config' do
|
29
29
|
it 'contains sane values' do
|
30
|
-
expect(subject.config['Documentation']['Enabled']).to
|
30
|
+
expect(subject.config['Style/Documentation']['Enabled']).to be false
|
31
31
|
expect(subject.config['AllCops']['Exclude']).not_to be_empty
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'disables the NumericLiterals cop' do
|
35
|
-
expect(subject.config['NumericLiterals']['Enabled']).to
|
35
|
+
expect(subject.config['Style/NumericLiterals']['Enabled']).to be false
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
data/spec/spec_helper.rb
CHANGED
data/spec/tasks/rubocob_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptible-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frank Macreery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -30,28 +30,42 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.23.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.23.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-its
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +80,20 @@ dependencies:
|
|
66
80
|
- - ~>
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '1.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
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'
|
69
97
|
description: Shared Rake tasks for Aptible projects.
|
70
98
|
email:
|
71
99
|
- frank@macreery.com
|