foodcritic-rackspace-rules 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Foodcritic
2
2
  module Rackspace
3
3
  module Rules
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  require 'pp'
2
2
 
3
- rule 'RACK001', 'Missing license or copyright declarations' do
3
+ rule 'RACK001', 'Missing "# Copyright" declaration' do
4
4
  tags %w(style rackspace)
5
5
  cookbook do |path|
6
6
  matches = []
@@ -15,7 +15,7 @@ rule 'RACK001', 'Missing license or copyright declarations' do
15
15
  # need to scan comments for this rule
16
16
  lines = File.readlines(recipe)
17
17
  next if lines.collect do |line|
18
- line.include?('Rackspace') || line.include?('# Copyright') || line.include?('http://www.apache.org/licenses/LICENSE-2.0')
18
+ line.include?('# Copyright')
19
19
  end.compact.flatten.include? true
20
20
 
21
21
  matches << {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foodcritic-rackspace-rules
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: