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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc40a6d4591cdf1c3d38112e9d1bc4bde1012687
4
- data.tar.gz: '0102491f9b95b694905db3e7876d588a2e067f62'
3
+ metadata.gz: eeaac445621a0c0521008a3b7e92ef3a0faca8fa
4
+ data.tar.gz: 859fe6152e81018f187c89887e51015960610513
5
5
  SHA512:
6
- metadata.gz: f64bcd5db7366dadd1f09d63a2a61a441ace5de3020a3827d5b60a0e39ce09e577eb6c600db871434038c21de73901794dde097b34b2185eac601719bf723659
7
- data.tar.gz: f41a21fd11a8196aa2b2fd46f6f2197a7641ba11e6afb18092c5902a691d78b8054d2b721a86814604cc14015e85d6884a3b79a762b5410c5b6932f8ee316d34
6
+ metadata.gz: 15010197f5d99b3e1cf48fed3c5556a86349dfd9aebd74eba2caf5925cc8dd1f041601bed45db94ff09e8588043a6901e90e68ce870c4a74b3e78d92e7766818
7
+ data.tar.gz: 65273d2387626c01a8ac718c731635b02ead2c5624d0bf89adcc7d719df5bc7893d69b2e8b9e85dfb66a8bf454ba80ef6708b46674a87c00435c2937e06bf244
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.1 (2017-5-25)
4
+
5
+ Fixed:
6
+
7
+ - Get force pushed changes from buildpack branches. [b976393](../../commit/b976393)
8
+
3
9
  ## 2.0.0 (2017-5-3)
4
10
 
5
11
  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
 
@@ -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 fetch --quiet --all && git checkout --quiet #{buildpack_matches[:hash]}")
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
@@ -1,3 +1,3 @@
1
1
  module Slugbuilder
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
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.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-03 00:00:00.000000000 Z
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.6.10
112
+ rubygems_version: 2.5.2
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Build Heroku-like slugs