app_builder 0.2.3 → 0.2.4

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
  SHA256:
3
- metadata.gz: 0e5234bd5e7c932b29ea147367c2ad29a69b832d6b9a26c4f442eae948913dbe
4
- data.tar.gz: 27ec4ebd788679816462232de6749ceeb14aa4916312ad34d09119ed76f78210
3
+ metadata.gz: c0cda82ca1043fd288c27ea1ba7d407dbfcc9a73e48b7f05611b166891e45220
4
+ data.tar.gz: 78db32348bee99238d155d6ba9107b2b6c10f704fb0a6e5aaef5ffc763b9a976
5
5
  SHA512:
6
- metadata.gz: 43bc7d20d99fc97fb6dc31e1efc6a8fab601f72829e5ed2a3f27672a2d84c014d7519e84874356b247efcfd27c0a1aa5b16294d222d7ac5f43c03c57d25fd4fa
7
- data.tar.gz: e243fc9e933047dc710c4f1667e8d967045862d8fd973d4cbca647488d02e81535d29776f7ac6b776d34653b74af8462b2fcf9dd104ddf710a964f440c1a96db
6
+ metadata.gz: a109c1cb7480cd771539e2d15310ba767b04ea3a77624394a8a58f80bc787de3d44bc3a231c648943afa5244cd00dc229233eab286bcb290261f566e9520aa22
7
+ data.tar.gz: 742cb157bd79786924cd16d9e52cc2ee39cc1e234631997461fd9b83cdf7dda3df11c80ab67b7a0b4fc4eb73d671810a0c9ca63f7493e75347152d15c77df935
@@ -132,7 +132,7 @@ module AppBuilder
132
132
  @build_id = Time.now.strftime("%Y%m%d%H%M%S")
133
133
  @project_name = File.basename(`git rev-parse --show-toplevel`.chomp)
134
134
  @remote_repository = `git remote get-url origin`.chomp
135
- @branch = ENV.fetch("TARGET_BRANCH", "master")
135
+ @branch = ENV.fetch("TARGET_BRANCH", `git symbolic-ref --short HEAD`.chomp)
136
136
  @revision = `git rev-parse #{branch}`.chomp
137
137
  @remote_src_path = "assets"
138
138
  @manifest_template_path = File.expand_path("template/manifest.yml.erb", __dir__)
@@ -6,7 +6,7 @@ module AppBuilder
6
6
  def initialize(source_path, name: nil, repo_path: nil, branch: nil)
7
7
  @name = name || ENV.fetch("APP_ENV", "default")
8
8
  @repo_path = repo_path || `git rev-parse --show-toplevel`.chomp
9
- @branch = branch || `git symbolic-ref --short HEAD`.chomp
9
+ @branch = branch || ENV.fetch("TARGET_BRANCH", `git symbolic-ref --short HEAD`.chomp)
10
10
  @source_path = source_path
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module AppBuilder
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - i2bskn