testcube 0.1.1 → 0.1.2

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: 88794f98d433913fb1f2d0de36f0cb191b18d9ae
4
- data.tar.gz: 3fd0ad9fc7d0d9aa95b34db4e055d1895904fd41
3
+ metadata.gz: f689b3808da322ea5b49372b875110972b8bd54a
4
+ data.tar.gz: 817a040cf3b6a94705e2a118e0dcd3eca1928f25
5
5
  SHA512:
6
- metadata.gz: d2250ad2a0d214ed3648690800404946499e58c28505d0ffb2fad4ffcc4e29bfaf2e7b9f19f73a708dd50d7134a472cb4a33db384a0a646635151a622846780c
7
- data.tar.gz: 1373df9b34c278f5ea8afc38a974f89858c780e5b92c1bd8c613d9b6d0c4682cf92742facce4228586f2881cad3bd1949dd52b5a0f5e5159e73d5e3ff357ca33
6
+ metadata.gz: cff73c0554625493cc2377656cf2d6f1e324e8273c86933911a8468c38bd07b38b16ad2633bbb217bfbbbc22b91ca5e9d070fbccceadea50960239ee1cca133a
7
+ data.tar.gz: f270998d402517a29cc23fa435eb14ad8faa17f2b0588dcf980c96346684d4761dcca86b20a1e070bd1da096fe46aecf0e26668c9de767a8ae053b184b6dac7e
@@ -6,6 +6,7 @@ module Testcube
6
6
  # TODO could also get some of this data from github api
7
7
  {
8
8
  branch: branch,
9
+ pr: pr,
9
10
  build_url: build_url,
10
11
  head: parse_from_git('HEAD'),
11
12
  merge_base: parse_from_git(merge_base)
@@ -17,6 +18,10 @@ module Testcube
17
18
  ENV['BUILDKITE_BRANCH'] || git('rev-parse --abbrev-ref HEAD')
18
19
  end
19
20
 
21
+ def self.pr
22
+ ENV['BUILDKITE_PULL_REQUEST']
23
+ end
24
+
20
25
  def self.build_url
21
26
  ENV['BUILDKITE_BUILD_URL']
22
27
  end
@@ -1,3 +1,3 @@
1
1
  module Testcube
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ankur