foodcritic-rackspace-rules 0.0.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  module Foodcritic
2
2
  module Rackspace
3
3
  module Rules
4
- VERSION = "0.0.2"
4
+ VERSION = "1.0.0"
5
5
  end
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  require 'pp'
2
2
 
3
- rule 'RACK001', 'Missing license declaration' do
3
+ rule 'RACK001', 'Missing license or copyright declarations' do
4
4
  tags %w(style rackspace)
5
5
  cookbook do |path|
6
6
  matches = []
@@ -15,7 +15,7 @@ rule 'RACK001', 'Missing license declaration' 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?('http://www.apache.org/licenses/LICENSE-2.0')
18
+ line.include?('Rackspace') || line.include?('# Copyright') || line.include?('http://www.apache.org/licenses/LICENSE-2.0')
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: 0.0.2
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: