foodcritic 13.1.0 → 13.1.1

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
  SHA256:
3
- metadata.gz: 3903e57cd4ed6cf6c556f4fa0081e5eace7eb2935faa088c407a5ac3df595a63
4
- data.tar.gz: 4bce109b2c6ee021e420c373034bd48294f4a94cc05eef8e08ca918e000ebff6
3
+ metadata.gz: b858aa4f622933d71f53374eb8fc6dc128bf64edf373dabe496d479f7e6810a4
4
+ data.tar.gz: 157fb6af5a3bbbac77b837a045dcf5479375a0107a907387e58cec6cfd557896
5
5
  SHA512:
6
- metadata.gz: 48d6d18c3629a920e36f03536733078ccc1edc069ee151972cd9ba424e69f5c2470869296324ad0b10cc7155d533950e071db8b9daae86ed161535279b0267da
7
- data.tar.gz: 9e8f389db7509486afd00772e675d1f1af6603fa689df3b4c59022362003437a99c4d57a73aec08715acd00eec112f23ee5d580baea9f4d4c237a2fdd2038311
6
+ metadata.gz: aa6c67bbace23b89f175be01b8a4f2d070713ee4040749cc2747934f85ee64ce2323366ba8298676209bc9623a047eb47ca030c7d57acb3997d26affad8c7919
7
+ data.tar.gz: 14c7e53a8247e861a2e6edbde44cf95b5b60bde02343cd15cfe4e721dd9c8eebe78170b1f0945a551200fe8764ea80c74bd3bb4c10dcf490cb1b10d33a6a3ffd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Foodcritic Changelog:
2
2
 
3
+ ## [13.1.1](https://github.com/Foodcritic/foodcritic/tree/v13.1.1) (2018-04-12)
4
+
5
+ - Fixed an error in the detection of attributes.rb files when using root alias functionality
6
+ - Updated rules that used the 'deprecation' tag to instead use the 'deprecated' tag. All rules for deprecated functionality now have the same catch all tag.
7
+
3
8
  ## [13.1.0](https://github.com/Foodcritic/foodcritic/tree/v13.1.0) (2018-04-12)
4
9
 
5
10
  ### Speed improvements
@@ -277,7 +277,7 @@ module FoodCritic
277
277
  else
278
278
  # determine the difference to the root of the CB from our file's directory
279
279
  relative_difference = case File.basename(file)
280
- when "recipe.rb", "attribute.rb", "metadata.rb" then ""
280
+ when "recipe.rb", "attributes.rb", "metadata.rb" then ""
281
281
  else # everything else is 1 directory up ie. cookbook/recipes/default.rb
282
282
  ".."
283
283
  end
@@ -1,5 +1,5 @@
1
1
  rule "FC106", "Use the plist_hash property in launchd instead of hash" do
2
- tags %w{deprecation chef13}
2
+ tags %w{deprecated chef13}
3
3
  recipe do |ast|
4
4
  find_resources(ast, type: "launchd").find_all do |launchd_resource|
5
5
  resource_attribute(launchd_resource, "hash")
@@ -1,5 +1,5 @@
1
1
  rule "FC110", "Script resources should use 'code' property not 'command' property" do
2
- tags %w{deprecation chef13}
2
+ tags %w{deprecated chef13}
3
3
  recipe do |ast|
4
4
  script_resources = %w{ bash
5
5
  ksh
@@ -1,5 +1,5 @@
1
1
  rule "FC111", "search using deprecated sort flag" do
2
- tags %w{deprecation chef13}
2
+ tags %w{deprecated chef13}
3
3
  recipe do |ast|
4
4
  # search(:node, 'role:web', :sort => true)
5
5
  ast.xpath("//method_add_arg[fcall/ident/@value='search'][arg_paren/args_add_block/args_add/bare_assoc_hash/assoc_new/symbol/ident/@value = 'sort']")
@@ -1,5 +1,5 @@
1
1
  rule "FC112", "Resource using deprecated dsl_name method" do
2
- tags %w{deprecation chef13}
2
+ tags %w{deprecated chef13}
3
3
  recipe do |ast|
4
4
  ast.xpath("//call/ident[@value='dsl_name']")
5
5
  end
@@ -1,5 +1,5 @@
1
1
  rule "FC113", "Resource declares deprecated use_inline_resources" do
2
- tags %w{deprecation chef15 lwrp}
2
+ tags %w{deprecated chef15 lwrp}
3
3
  library do |ast|
4
4
  matches = []
5
5
  ast.xpath('//const_path_ref/const[@value="LWRPBase"]/..//const[@value="Provider"]/../../..').select do |x|
@@ -1,5 +1,5 @@
1
1
  rule "FC119", "windows_task :change action no longer exists in Chef 13" do
2
- tags %w{deprecation chef13}
2
+ tags %w{deprecated chef13}
3
3
  recipe do |ast|
4
4
  matches = []
5
5
  find_resources(ast).each do |resource|
@@ -1,4 +1,4 @@
1
1
  module FoodCritic
2
2
  # The current version of foodcritic
3
- VERSION = "13.1.0"
3
+ VERSION = "13.1.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foodcritic
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.1.0
4
+ version: 13.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Crump
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-12 00:00:00.000000000 Z
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber-core
@@ -554,5 +554,5 @@ rubyforge_project:
554
554
  rubygems_version: 2.7.5
555
555
  signing_key:
556
556
  specification_version: 4
557
- summary: foodcritic-13.1.0
557
+ summary: foodcritic-13.1.1
558
558
  test_files: []