bubbler_ruby 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bubbler_ruby/api.rb +10 -1
- data/lib/bubbler_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2404f75be949f1c9dfc13156f883edf55a79004ba3ee6d665570b4e67473d13
|
4
|
+
data.tar.gz: 9ebcbeff64912755aadfc91ea3b16ce6c9d7d5cdd9fec404fc2745e935e35bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bee38d1d822419a71255a4098d64feee0d340e3e036238a2af3db37900dc75cf6ba8a196f2d7f7633099ff62d455f9d1684868d1f92fb4df19593acb76dc372
|
7
|
+
data.tar.gz: e574d9bb263980c55d859365e006578870b247be1847ce2b32e4f6473561e0ef131331fb6df8c8a77085b9c1086ed3a370d947115ed2dde0620443a5874d99f0
|
data/lib/bubbler_ruby/api.rb
CHANGED
@@ -37,11 +37,20 @@ module Bubbler
|
|
37
37
|
branch: ENV['CIRCLE_BRANCH'],
|
38
38
|
commit_sha: ENV['CIRCLE_SHA1'],
|
39
39
|
slug: circle_slug,
|
40
|
-
pr:
|
40
|
+
pr: circleci_pr_number,
|
41
41
|
results: simplecov_results
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
|
+
# CIRCLE_PR_NUMBER=2 (Only populated on forked PRs)
|
46
|
+
# CIRCLE_PULL_REQUEST= https://github.com/mark579/pull/2
|
47
|
+
def self.circleci_pr_number
|
48
|
+
return unless ENV['CIRCLE_PR_NUMBER'] || ENV['CIRCLE_PULL_REQUEST']
|
49
|
+
|
50
|
+
return ENV['CIRCLE_PR_NUMBER'] if ENV['CIRCLE_PR_NUMBER']
|
51
|
+
return ENV['CIRCLE_PULL_REQUEST'].split('/').last
|
52
|
+
end
|
53
|
+
|
45
54
|
# CIRCLE_PROJECT_REPONAME=rails-bubbler-test
|
46
55
|
# CIRCLE_PROJECT_USERNAME=mark579
|
47
56
|
# CIRCLE_REPOSITORY_URL=git@github.com:mark579/rails-bubbler-test.git
|
data/lib/bubbler_ruby/version.rb
CHANGED