knife-tidy 0.3.5 → 0.3.6

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: 2fc1d727190b5d98c1020db4370cb85525785081
4
- data.tar.gz: 3da9ec48377cf236c391c97494863e0cf20ee15d
3
+ metadata.gz: eb1485dc35ad891eb9cfdeaf1d240c0bd1c6d1dd
4
+ data.tar.gz: 15f5aa2d783d766f3d8fe3dcfde722c0f2400637
5
5
  SHA512:
6
- metadata.gz: d6af0d2b285e86999607a52a4daa64cd8969d0961b4e0902cf4f1e43907b73960402dc7b67b26cec8b5fb0eebe715be33b295952ec184c2d30fab1cee36a2978
7
- data.tar.gz: 83239068fd7d85f677fe4faf9e007b29174d3e4042cd6c433589a84e36a5efde758b24acf2ea651ca0a9ce22be168fda6f8987b02c54bbf7cf4c0c0ae0385cd0
6
+ metadata.gz: ae78c38d8b4a2210793a6a40ec5d55692bb6b148bc14ecdcf7a700ccfc9b8417c6c2d617c416cd0e1df3e9f3bbd7044bab81645560a4c8203a8acbaaf44f9431
7
+ data.tar.gz: 4aa27248646d13d019dbca4c44a0b330a76784ee866815530e52050fdf8e192fa2c7bbe97a01763147b6fba6c4aefd2003d62b17c192a7d152e8a3e7f3e01e3d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.3.6](https://github.com/chef-customers/knife-tidy/tree/0.3.6) (2017-09-25)
4
+ [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.3.5...0.3.6)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - first check if the\_user.has\_key?\('email'\) [\#29](https://github.com/chef-customers/knife-tidy/pull/29) ([jeremymv2](https://github.com/jeremymv2))
9
+ - bump to 0.3.5 [\#28](https://github.com/chef-customers/knife-tidy/pull/28) ([jeremymv2](https://github.com/jeremymv2))
10
+
3
11
  ## [0.3.5](https://github.com/chef-customers/knife-tidy/tree/0.3.5) (2017-09-20)
4
12
  [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.3.4...0.3.5)
5
13
 
@@ -67,7 +67,7 @@ class Chef
67
67
  email = ''
68
68
  puts "INFO: Validating #{user}"
69
69
  the_user = FFI_Yajl::Parser.parse(::File.read(::File.join(tidy.users_path, "#{user}.json")), symbolize_names: false)
70
- if the_user['email'].match(/\A[^@\s]+@[^@\s]+\z/)
70
+ if the_user.has_key?('email') && the_user['email'].match(/\A[^@\s]+@[^@\s]+\z/)
71
71
  if emails_seen.include?(the_user['email'])
72
72
  puts "REPAIRING: Already saw #{user}'s email, creating a unique one."
73
73
  email = tidy.unique_email
@@ -1,4 +1,4 @@
1
1
  module KnifeTidy
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  MAJOR, MINOR, TINY = VERSION.split('.')
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-tidy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Miller