knife-tidy 0.6.0 → 0.6.1
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 +4 -4
 - data/CHANGELOG.md +12 -0
 - data/lib/chef/knife/tidy_server_clean.rb +2 -2
 - data/lib/knife-tidy/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 60a150c120a04db504d0a45032efbf9426bbdcfc
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 21e0ade15f1e70010c329b0e957e2346ca1cb364
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4534399f82061ce69215d280b431a4880c42accaa39f229e4f38cf9c71ff12d856734ebf6a129c1318e0f8b72c6a5ed1c61e81dd7bd6380733fa28750a583e13
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: f0dbc8390ffb48af2193e100ac0a06a7b081359113a03bd2acac64b8e7f929860025fca818f15f1fcb33d2f97fdb8302d8e0a43c9e9b152837de20ea1a6bab5d
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,5 +1,17 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Change Log
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            ## [0.6.1](https://github.com/chef-customers/knife-tidy/tree/0.6.1) (2017-10-26)
         
     | 
| 
      
 4 
     | 
    
         
            +
            [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.6.0...0.6.1)
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            **Closed issues:**
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            - knife tidy server clean - org names with \_ [\#53](https://github.com/chef-customers/knife-tidy/issues/53)
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            **Merged pull requests:**
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            - fixing orgs with underscores [\#54](https://github.com/chef-customers/knife-tidy/pull/54) ([jeremymv2](https://github.com/jeremymv2))
         
     | 
| 
      
 13 
     | 
    
         
            +
            - Jeremymv2/release 0 6 0 [\#52](https://github.com/chef-customers/knife-tidy/pull/52) ([jeremymv2](https://github.com/jeremymv2))
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
       3 
15 
     | 
    
         
             
            ## [0.6.0](https://github.com/chef-customers/knife-tidy/tree/0.6.0) (2017-10-23)
         
     | 
| 
       4 
16 
     | 
    
         
             
            [Full Changelog](https://github.com/chef-customers/knife-tidy/compare/0.5.2...0.6.0)
         
     | 
| 
       5 
17 
     | 
    
         | 
| 
         @@ -132,13 +132,13 @@ class Chef 
     | 
|
| 
       132 
132 
     | 
    
         
             
                  end
         
     | 
| 
       133 
133 
     | 
    
         | 
| 
       134 
134 
     | 
    
         
             
                  def report_files
         
     | 
| 
       135 
     | 
    
         
            -
                    Dir[::File.join(tidy.reports_dir, ' 
     | 
| 
      
 135 
     | 
    
         
            +
                    Dir[::File.join(tidy.reports_dir, '**.json')]
         
     | 
| 
       136 
136 
     | 
    
         
             
                  end
         
     | 
| 
       137 
137 
     | 
    
         | 
| 
       138 
138 
     | 
    
         
             
                  def all_orgs
         
     | 
| 
       139 
139 
     | 
    
         
             
                    orgs = []
         
     | 
| 
       140 
140 
     | 
    
         
             
                    report_files.each do |file|
         
     | 
| 
       141 
     | 
    
         
            -
                      org = ::File.basename(file).match(/^(.*?)_/).captures[0]
         
     | 
| 
      
 141 
     | 
    
         
            +
                      org = ::File.basename(file).match(/^(.*?)_(cookbook_count|unused_cookbooks|stale_nodes)\.json/).captures[0]
         
     | 
| 
       142 
142 
     | 
    
         
             
                      if org
         
     | 
| 
       143 
143 
     | 
    
         
             
                        orgs.push(org) unless orgs.include?(org)
         
     | 
| 
       144 
144 
     | 
    
         
             
                      end
         
     | 
    
        data/lib/knife-tidy/version.rb
    CHANGED
    
    
    
        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.6. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.6.1
         
     | 
| 
       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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2017-10-26 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rake
         
     |