knife-tidy 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/chef/knife/tidy_backup_clean.rb +1 -1
- data/lib/knife-tidy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb1485dc35ad891eb9cfdeaf1d240c0bd1c6d1dd
|
4
|
+
data.tar.gz: 15f5aa2d783d766f3d8fe3dcfde722c0f2400637
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/knife-tidy/version.rb
CHANGED