slugbuilder 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/lib/slugbuilder/builder.rb +2 -2
- data/lib/slugbuilder/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeaac445621a0c0521008a3b7e92ef3a0faca8fa
|
4
|
+
data.tar.gz: 859fe6152e81018f187c89887e51015960610513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15010197f5d99b3e1cf48fed3c5556a86349dfd9aebd74eba2caf5925cc8dd1f041601bed45db94ff09e8588043a6901e90e68ce870c4a74b3e78d92e7766818
|
7
|
+
data.tar.gz: 65273d2387626c01a8ac718c731635b02ead2c5624d0bf89adcc7d719df5bc7893d69b2e8b9e85dfb66a8bf454ba80ef6708b46674a87c00435c2937e06bf244
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -101,7 +101,7 @@ Alternatively, a Proc can be passed to `build` method's keyword argument `prebui
|
|
101
101
|
- `slug_name` String (optional): Override default name of slug (repo.git_ref.git_sha.tgz with the `/` in repo replaced by `.`)
|
102
102
|
- `clear_cache` Boolean (optional): destroys the cache before building when true
|
103
103
|
- `env` Hash (optional): an optional hash of environment variables
|
104
|
-
- `buildpacks` Array (optional): optionally set buildpacks to be used for that particular build. defaults to `Slugbuilder.config.buildpacks`
|
104
|
+
- `buildpacks` Array (optional): optionally set buildpacks to be used for that particular build. defaults to `Slugbuilder.config.buildpacks`. Buildpacks should be in the form `<organization>/<repository_name>`, `https://<git_service>/<organization>/<repository_name>.git`, or `git@<git_service>:<organization>/<repository_name>.git`
|
105
105
|
- `prebuild` Proc (optional): an optional Proc (or anything that conforms to the `call` API of a Proc) that will be run before the build. The Proc will receive a Hash with the structure:
|
106
106
|
- `repo` String: The git repo identifier
|
107
107
|
- `git_ref` String: The git branchname or SHA
|
@@ -185,7 +185,7 @@ The protocol that should be used to pull down git repositories (including buildb
|
|
185
185
|
|
186
186
|
**buildpacks**
|
187
187
|
|
188
|
-
Buildpacks is an array of valid git clone-able [buildpack](https://devcenter.heroku.com/articles/buildpacks) URLs.
|
188
|
+
Buildpacks is an array of valid git clone-able [buildpack](https://devcenter.heroku.com/articles/buildpacks) URLs. Buildpacks should be in the form `<organization>/<repository_name>`, `https://<git_service>/<organization>/<repository_name>.git`, or `git@<git_service>:<organization>/<repository_name>.git`
|
189
189
|
|
190
190
|
> Defaults to []
|
191
191
|
|
data/lib/slugbuilder/builder.rb
CHANGED
@@ -188,7 +188,7 @@ module Slugbuilder
|
|
188
188
|
# fetch latest
|
189
189
|
stitle("Using cached buildpack. Ensuring latest version of buildpack: #{buildpack_name}")
|
190
190
|
Dir.chdir("#{@buildpacks_dir}/#{buildpack_name}") do
|
191
|
-
rc = run('git pull --quiet')
|
191
|
+
rc = run('git reset origin --hard && git pull --quiet')
|
192
192
|
fail "Failed to update: #{buildpack_name}" if rc != 0
|
193
193
|
end
|
194
194
|
end
|
@@ -196,7 +196,7 @@ module Slugbuilder
|
|
196
196
|
# checkout hash
|
197
197
|
if buildpack_matches[:hash]
|
198
198
|
Dir.chdir("#{@buildpacks_dir}/#{buildpack_name}") do
|
199
|
-
rc = run("git
|
199
|
+
rc = run("git checkout --quiet #{buildpack_matches[:hash]} && git reset origin --hard && git pull --quiet")
|
200
200
|
fail "Failed to fetch and checkout: #{buildpack_matches[:hash]}" if rc != 0
|
201
201
|
end
|
202
202
|
end
|
data/lib/slugbuilder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slugbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Panoply Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.5.2
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Build Heroku-like slugs
|