minke 1.9.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzcxNDdkYWEzOGQyM2ZlYjVkYTYwYzYxZmI2MGU5ODI2OTk5YzI5MA==
4
+ ZTEwNTdmMjU1NDBmOTdhOWNiMTdkNWU5Y2MwZGQ4MDdkNTRmMGEwZQ==
5
5
  data.tar.gz: !binary |-
6
- MmJhOTlmOWU2YTBjZmYyNTFiZjZhMzY0ZWExZTUyMjFmNzE5ZTYwOA==
6
+ YjI0ZDU0MjgxNDQwNmQ1MTRhNGRlMjI4OTg0MjBlNzA5ODJjYTA0ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmIxOTNmNzk1ZWUyNzM5MGM0Yjc1MmI0YjcwYjgwZjIzZDk5ZTIyMGM5MTZm
10
- OGM3ZTcyOWM2ZTA3MjY5ZTFkOGUwZWZmZmNmZGFhZDYwYmI4MmYxY2YxMzkx
11
- ODQwMGFiYTRkMWVhODFhOWU4MWFjZjYwYmIwZDAyZDVhZTllODQ=
9
+ YzEwOWMyNzU1NDBiYmYwOGU2MjRkMWE3YzA0YWQ3N2Y0ODFmMDBhN2U3NjIx
10
+ NTdjNjFkOTcwNTA3OGQ2NGY3ODhjZjA2YTVhOWI4OWIzZDRkNjg0Mzk4YmY2
11
+ MmE5OGU1NzJjNzQyYjJmYzVhNDI5YTQ1ZWExYjRlY2E5NzJhMWU=
12
12
  data.tar.gz: !binary |-
13
- ZmZkNDgwYmIxZGRjYzE0OWM0MDYzOTBjMGYxNGUzOWMxNmM4MzJhMGFjNjQy
14
- MTBlZTg0MjBlM2U2OWZlMzRjYmU4NzA3OGE1YWVkNTA3MWRlNGIwZTJkYzBk
15
- MjllZjgzMzIzZjc0YjM5YTc4ZjNlNTJjYjFlOGY3YTI5NjFiZWU=
13
+ MjE0MTgxNDk2ZGNhZDg2ZDVmYzVkYTk3ZDFiMmFjNmIwZmY5MmUwOGE5OGVj
14
+ MzUxODI2OWM4MTgzMWMxNjVkZWVmMGRmZDQ5Yzc4Y2M1OTYyYWRkNDJjNmUy
15
+ YjA3NzIyMjc4YjNkMTQxODdhODg5NGIzZDNjNGVlYTMyMWUwZDY=
data/bin/minke CHANGED
@@ -19,6 +19,11 @@ puts ""
19
19
  puts "Version: #{Minke::VERSION}"
20
20
  puts ""
21
21
 
22
+ Minke::Generators::Processor.load_generators
23
+
24
+ puts ""
25
+ puts ""
26
+
22
27
  options = {}
23
28
  OptionParser.new do |opts|
24
29
  opts.banner = "Usage: minke [options]"
@@ -39,10 +44,6 @@ variables = Minke::Generators::ConfigVariables.new.tap do |v|
39
44
  v.src_root = File.expand_path(options[:output]) unless options[:output] == nil
40
45
  end
41
46
  processor = Minke::Generators::Processor.new variables, Minke::Docker::DockerRunner.new
42
- processor.load_generators
43
-
44
- puts ""
45
- puts ""
46
47
 
47
48
  if options[:encrypt] != nil
48
49
  puts "Please specify a key to use for encryption using -k [path to file]" if options[:key] == nil
@@ -4,6 +4,15 @@ module Minke
4
4
  # Process handles the creation of new projects from a generator template.
5
5
  class Processor
6
6
 
7
+ def self.load_generators
8
+ puts '# Loading installed generators'
9
+ Gem::Specification.find_all.each do |spec|
10
+ if spec.metadata != nil && spec.metadata['entrypoint'] != nil
11
+ require spec.metadata['entrypoint']
12
+ end
13
+ end
14
+ end
15
+
7
16
  def initialize variables, docker_runner
8
17
  @variables = variables
9
18
  @docker_runner = docker_runner
@@ -105,15 +114,6 @@ module Minke
105
114
  Gem::Specification.sort_by{ |g| [g.name.downcase, g.version] }.group_by{ |g| g.name }
106
115
  end
107
116
 
108
- def load_generators
109
- puts '# Loading installed generators'
110
- Gem::Specification.find_all.each do |spec|
111
- if spec.metadata != nil && spec.metadata['entrypoint'] != nil
112
- require spec.metadata['entrypoint']
113
- end
114
- end
115
- end
116
-
117
117
  def get_generator generator
118
118
  config = Minke::Generators.get_registrations.select { |c| c.name == generator}.first
119
119
  if config == nil
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.9.0"
2
+ VERSION = "1.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson