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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dba8ba7a78c47f46d5c9e821065767cda4de8bd6
4
- data.tar.gz: cfc792950c2e10c522a57208660c17784453f7b5
3
+ metadata.gz: f30ea8a26829eb7c925479de1b6500da0111c474
4
+ data.tar.gz: 3cc0bb2cb28d9444e26a8c4b0d520d00a6d0f3b9
5
5
  SHA512:
6
- metadata.gz: 02a0fbf6ee79795d3e762d95ece3be660caf51b6e09d0dfccbfd87975a0b08bb059d692589618c1838db40b9392e257b2805553ad0c0769b74d51faf1632ac20
7
- data.tar.gz: e09036991e41bfd54a1c60c0e39d360610f55638ebe357bd46c3e4b11cf6e5d370267bbbb0f37a412cd7553e2a61dbb44badc5d07d03f7ef6cfc705aa3a63b6f
6
+ metadata.gz: 3663f695f518c9be1500cfac5b7de573587edd7fd849fd04d581dbd539cf977fd7900bbd423bea71e90533024c233f425315347cac678612c736ac21b0d68905
7
+ data.tar.gz: 84c250ebae1d63d4447187aff33ccbcfb0f8cf1b88caa050cfcf5329bab86c0c0fc98acb4bed99f4c398c8551f08e147cdbc88cdac3fdfeaa71fe3cc0480025e
@@ -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.20.0'
24
- spec.add_dependency 'rspec', '~> 2.0'
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
- ::Rubocop::ConfigLoader.load_file(config_file)
24
+ ::RuboCop::ConfigLoader.load_file(config_file)
25
25
  end
26
26
 
27
27
  def run
28
- cli = ::Rubocop::CLI.new
28
+ cli = ::RuboCop::CLI.new
29
29
  result = cli.run(%W( -c #{config_file} ))
30
30
  abort unless result == 0
31
31
  end
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Tasks
3
- VERSION = '0.3.3'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
@@ -2,12 +2,12 @@ require 'spec_helper'
2
2
 
3
3
  describe Aptible::Tasks::Rubocop do
4
4
  before do
5
- ::Rubocop::CLI.stub(:run)
5
+ allow(::RuboCop::CLI).to receive(:run)
6
6
  end
7
7
 
8
- its(:config) { should be_a ::Rubocop::Config }
8
+ its(:config) { should be_a ::RuboCop::Config }
9
9
 
10
- describe :project_config_file do
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.stub(:exist?) { false }
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 :config do
28
+ describe '#config' do
29
29
  it 'contains sane values' do
30
- expect(subject.config['Documentation']['Enabled']).to be_false
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 be_false
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
@@ -8,3 +8,6 @@ end
8
8
 
9
9
  # Require library up front
10
10
  require 'aptible/tasks'
11
+
12
+ # Require RSpec helper libraries
13
+ require 'rspec/its'
@@ -6,7 +6,7 @@ describe 'rake rubocop' do
6
6
  let(:rubocop) { double('rubocop') }
7
7
 
8
8
  before do
9
- Aptible::Tasks::Rubocop.stub(new: rubocop)
9
+ allow(Aptible::Tasks::Rubocop).to receive(:new) { rubocop }
10
10
  end
11
11
 
12
12
  its(:prerequisites) { should be_empty }
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.3.3
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-05-27 00:00:00.000000000 Z
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.20.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.20.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: '2.0'
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: '2.0'
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