bubbler_ruby 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 +4 -4
- data/lib/bubbler_ruby/api.rb +8 -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: 632abe30f5c924751f717050bd33423bd4ad70b117f6021703e0c637d97eeb46
|
4
|
+
data.tar.gz: e7b5b73599dd2ae799876ecc09d1630e45834b84e4fcb39452da07a3dae2e5bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7974f2dd8d0f5b387bd4e26a5b0411f5af198d0d68d194980b0d161cf735eade7dc3136cfa93d121eaab7e49f013c791da330e103be6f243896b15db3feacaca
|
7
|
+
data.tar.gz: 20d0ba9cd70bc777c88c633e029f15f9a51c6d22712c8efda276944e653b81acd53f791a7e9194dc7c75af79e464d16b13df6720cda2197bf858ac9d2632391d
|
data/lib/bubbler_ruby/api.rb
CHANGED
@@ -37,11 +37,18 @@ 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 ENV['CIRCLE_PR_NUMBER'] if ENV['CIRCLE_PR_NUMBER']
|
49
|
+
return ENV['CIRCLE_PULL_REQUEST'].split('/').last
|
50
|
+
end
|
51
|
+
|
45
52
|
# CIRCLE_PROJECT_REPONAME=rails-bubbler-test
|
46
53
|
# CIRCLE_PROJECT_USERNAME=mark579
|
47
54
|
# CIRCLE_REPOSITORY_URL=git@github.com:mark579/rails-bubbler-test.git
|
data/lib/bubbler_ruby/version.rb
CHANGED