knife-tidy 0.5.1 → 0.5.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 071bb6ad4e8a7d71253a9c27d2d4ee403e6ba717
4
- data.tar.gz: f0f2a4f16234607bb640b9b8f08fb3ad90ec724b
3
+ metadata.gz: 574027ab3af26d4383f69f812b5d4eb29c6ab51a
4
+ data.tar.gz: 1b94365fec7c20cd8428873fc30cebc9e3e3fc3d
5
5
  SHA512:
6
- metadata.gz: c74f705ff021fad51d91b72e4613ede50ab8bd6c64725931952f36ce64b1a903234b0df39c71cfad94e5563f89d1b3787977a5db8f77c3137047f1db1e1e8151
7
- data.tar.gz: 7e919520072df002de5565fb0a9b81d617f04aaf20b02a11a7b293bdac01a9b3637cb645a0a06df11547b2e4e26a503ec9aa6dabfcb00651440ef87cbc81d822
6
+ metadata.gz: 422a2d9b1d01215eff25ce18d261a144dd05dac39b1097baae5ba1c685135b1555449fd92b970adec770b72535d8c6c8405adfad35e0c60ea221e51326aba158
7
+ data.tar.gz: 691b7f8399fb3cd3f6edb0ebd9c77a6c3b5a7685b19110200e94b568f4340f04bf075a2e59f1b18e28fb71227c00c2951e5a03651a1162be9b32f26983e0381e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.5.2](https://github.com/chef-customers/knife-tidy/tree/0.5.2) (2017-10-20)
4
+ [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.5.1...0.5.2)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - fixing regex for whitespace [\#48](https://github.com/chef-customers/knife-tidy/pull/48) ([jeremymv2](https://github.com/jeremymv2))
9
+ - bump patch to 0.5.1 [\#47](https://github.com/chef-customers/knife-tidy/pull/47) ([jeremymv2](https://github.com/jeremymv2))
10
+
3
11
  ## [0.5.1](https://github.com/chef-customers/knife-tidy/tree/0.5.1) (2017-10-19)
4
12
  [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.5.0...0.5.1)
5
13
 
@@ -130,7 +130,7 @@ class Chef
130
130
  def add_cookbook_name_to_metadata(cookbook_name, rb_path)
131
131
  puts "REPAIRING: Correcting `name` in #{rb_path}"
132
132
  content = IO.readlines(rb_path)
133
- new_content = content.reject { |line| line =~ /^name .*/ }
133
+ new_content = content.reject { |line| line =~ /^name\s+/ }
134
134
  name_field = "name '#{cookbook_name}'\n"
135
135
  IO.write rb_path, name_field + new_content.join('')
136
136
  end
@@ -1,4 +1,4 @@
1
1
  module KnifeTidy
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  MAJOR, MINOR, TINY = VERSION.split('.')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-tidy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Miller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2017-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake