bento-ya 1.0.0 → 1.0.1

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: d80f43a61098c9b321b679f1518f54a033fcd3eb
4
- data.tar.gz: fe4d410bb82744e2757d5717072019b222782daa
3
+ metadata.gz: d3a4a811fdc2c81366c62522b1b758f45fb8a12e
4
+ data.tar.gz: 929e82a5352413218acbd12c3cc371f278431569
5
5
  SHA512:
6
- metadata.gz: db56b1404c177c23ca3229c08b3281b5d524a7e01c3f82a8c76a331798a21ea1d86058312637250881c5fbdd8aba141a9479846abc1dbd86bf4885ea00b6e9c1
7
- data.tar.gz: 3d004b6eb6e7fcd13f1a36ed86d991bbb24d5c9f678fbe5024d323e73f34aa27e1cf9e7b8ddd4c6be5643571748ff68b6065a81d0e50b4f08ad185625ba7b4a2
6
+ metadata.gz: 4e88969658d00883c8f95b034d45e7f5ae78a2668b676a2f4468dce0a27db38a38797bcc79e8ef1f3905f954580e0c88977310e0d1bb97fb5b6679c3b25028ef
7
+ data.tar.gz: db8fdd9566b2ee62a5b7e6db3c704abbe5cbef24cde7fc1c204d284d823f4328e247960e4d0bfc9756da1ca1de41787e2159006dbe96c639c0ef3365eef3130d
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.0.1](https://github.com/cheeseplus/bento-ya/tree/v1.0.1) (2017-09-14)
4
+ [Full Changelog](https://github.com/cheeseplus/bento-ya/compare/v1.0.0...v1.0.1)
5
+
6
+ ### BUG FIXES
7
+
8
+ * Fix normalize
9
+ * Fix release
10
+
3
11
  ## [v1.0.0](https://github.com/cheeseplus/bento-ya/tree/v1.0.0) (2017-09-05)
4
12
  [Full Changelog](https://github.com/cheeseplus/bento-ya/compare/v0.1.4...v1.0.0)
5
13
 
@@ -38,7 +38,7 @@ class Options
38
38
  }
39
39
 
40
40
  templates_argv_proc = proc { |options|
41
- options.templates = calculate_templates(args) unless args.empty?
41
+ options.template_files = calculate_templates(args) unless args.empty?
42
42
 
43
43
  options.template_files.each do |t|
44
44
  if !File.exists?("#{t}.json")
@@ -191,7 +191,7 @@ class Options
191
191
  map { |glob| result = Dir.glob(glob); result.empty? ? glob : result }.
192
192
  flatten.
193
193
  sort.
194
- delete_if { |file| file =~ /\.(variables||metadata)\./ }.
194
+ delete_if { |file| file =~ /\.(variables||metadata)\.json/ }.
195
195
  map { |template| template.sub(/\.json$/, "") }
196
196
  end
197
197
  end
@@ -7,18 +7,21 @@ class NormalizeRunner
7
7
  attr_reader :templates, :build_timestamp, :debug, :override_version
8
8
 
9
9
  def initialize(opts)
10
- @templates = opts.templates
10
+ @templates = opts.template_files
11
11
  @debug = opts.debug
12
12
  @modified = []
13
13
  @build_timestamp = Time.now.gmtime.strftime("%Y%m%d%H%M%S")
14
14
  end
15
15
 
16
16
  def start
17
- banner("Normalizing for templates: #{templates}")
17
+ banner("Normalizing for templates:")
18
+ templates.each { |t| puts "- #{t}" }
18
19
  time = Benchmark.measure do
19
- templates.each do |template|
20
+ templates.each do |file|
21
+ dir, template = file.split("/")[0], file.split("/")[1]
22
+ Dir.chdir dir
20
23
  validate(template)
21
- fix(template)
24
+ Dir.chdir("..")
22
25
  end
23
26
  end
24
27
  if !@modified.empty?
@@ -13,9 +13,9 @@ class ReleaseRunner
13
13
  def start
14
14
  banner("Releasing #{box}/#{version}...")
15
15
  time = Benchmark.measure do
16
- box = vc_account.get_box(box)
17
- version = box.get_version(version)
18
- version.release
16
+ b = vc_account.get_box(box)
17
+ v = b.get_version(version)
18
+ v.release
19
19
  end
20
20
  banner("Release finished in #{duration(time.real)}.")
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module Bento
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bento-ya
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Thomas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-05 00:00:00.000000000 Z
11
+ date: 2017-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout