chef-gen-flavors 0.6.1 → 0.6.2

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
  SHA1:
3
- metadata.gz: c301a9d2f304227c00cc7e080bd9feed4d0a12ad
4
- data.tar.gz: e245d425f3c5c009420feac956e6036071fb1bf1
3
+ metadata.gz: d54346e43941b8b363187f320e7a4e79e88d01c7
4
+ data.tar.gz: 9c2277aea6a1ce7cc542491469bb2ca07329a65c
5
5
  SHA512:
6
- metadata.gz: 227935fd118e0223435e428dbac228b429c2552c22d9e6ef96595b11c4f202c8425ffbec149cffcd580a332c51b83778aebee6618eab6963d4dff23c67c5927c
7
- data.tar.gz: 2de82aaebaf23b93f205c6793528e3abe9ec93b301debc725d0dfe4fe8db730533ee2f80e0d988698554be91424182dec15b9bd4636cc5469fd0c0e7fb88d56b
6
+ metadata.gz: 5f4ff7d350bcfe5bf7f0d662bf898fa8d1ed5a3d6b21417da090320011fe7e4878648c48596d949c87cd376cfd85d829be1c71fc071d2b75aa5d2b1fcef9dd5c
7
+ data.tar.gz: 174388c2872ecbbea6820f355648b82c8ef918a57d4585ef263b84601c2372f2d3d57998ad5cf81534c1ea935d3fae0c166321fecff3ad43570c48d1d2444859
data/History.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog for chef-gen-flavors
2
2
 
3
+ ## 0.6.2
4
+
5
+ * sort flavors alphabetically (suggested by @echohack)
6
+
3
7
  ## 0.6.1
4
8
 
5
9
  * remove leftover debugging statements about copy of generator cookbook
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: chef-gen-flavors 0.6.1.20150605065431 ruby lib
2
+ # stub: chef-gen-flavors 0.6.2.20150605071048 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "chef-gen-flavors"
6
- s.version = "0.6.1.20150605065431"
6
+ s.version = "0.6.2.20150605071048"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
@@ -8,7 +8,7 @@ module ChefGen
8
8
  # a plugin framework for creating ChefDK generator flavors
9
9
  class Flavors
10
10
  # the version of the gem
11
- VERSION = '0.6.1'
11
+ VERSION = '0.6.2'
12
12
 
13
13
  extend LittlePlugger path: 'chef_gen/flavor',
14
14
  module: ChefGen::Flavor
@@ -89,13 +89,14 @@ module ChefGen
89
89
  output = [ui.color('Flavors on the menu', :bold)]
90
90
  idx = 1
91
91
  valid = {}
92
- @plugins.each do |name, klass|
92
+ @plugins.sort.each do |name, klass|
93
93
  valid[idx] = name
94
94
  if true == klass
95
95
  output << "#{idx}. ChefDK built-in template"
96
96
  else
97
97
  descr = klass.respond_to?(:description) ? klass.description : ''
98
- output << "#{idx}. #{name}: #{descr}"
98
+ version = klass.const_defined?(:VERSION) ? "v#{klass.const_get(:VERSION, false)}" : ''
99
+ output << "#{idx}. #{name}: #{descr} #{version}"
99
100
  end
100
101
  idx += 1
101
102
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-gen-flavors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James FitzGibbon