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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a216b5818009a774c04e02dbae7f6323353fd56c989b5ec53ef30348528dba5
4
- data.tar.gz: cf999d1fb360657f92e374b8c63b9062fd6e59e1064082b5c439bbab7379e7fc
3
+ metadata.gz: 632abe30f5c924751f717050bd33423bd4ad70b117f6021703e0c637d97eeb46
4
+ data.tar.gz: e7b5b73599dd2ae799876ecc09d1630e45834b84e4fcb39452da07a3dae2e5bc
5
5
  SHA512:
6
- metadata.gz: bde7fdabf9c1b6621ad1e3172137cac5c7ca92a70c53c2d6baa271d312a7855eefe70b7a4c78cbda497d5b12ec8ce7c0dc459c75906feaa3c2c3355cfc4b5000
7
- data.tar.gz: 5b7763bf1e0d71304a47c55d5bd2abcb1514b0eb084da404ac6726fe3a2a544a397655154c737b1101f7d6697350a649446e089ac9d13ea0900fcbba3501ea04
6
+ metadata.gz: 7974f2dd8d0f5b387bd4e26a5b0411f5af198d0d68d194980b0d161cf735eade7dc3136cfa93d121eaab7e49f013c791da330e103be6f243896b15db3feacaca
7
+ data.tar.gz: 20d0ba9cd70bc777c88c633e029f15f9a51c6d22712c8efda276944e653b81acd53f791a7e9194dc7c75af79e464d16b13df6720cda2197bf858ac9d2632391d
@@ -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: ENV['CIRCLE_PR_NUMBER'],
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bubbler
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bubbler_ruby
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
  - Mark Davenport