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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a216b5818009a774c04e02dbae7f6323353fd56c989b5ec53ef30348528dba5
4
- data.tar.gz: cf999d1fb360657f92e374b8c63b9062fd6e59e1064082b5c439bbab7379e7fc
3
+ metadata.gz: a2404f75be949f1c9dfc13156f883edf55a79004ba3ee6d665570b4e67473d13
4
+ data.tar.gz: 9ebcbeff64912755aadfc91ea3b16ce6c9d7d5cdd9fec404fc2745e935e35bd4
5
5
  SHA512:
6
- metadata.gz: bde7fdabf9c1b6621ad1e3172137cac5c7ca92a70c53c2d6baa271d312a7855eefe70b7a4c78cbda497d5b12ec8ce7c0dc459c75906feaa3c2c3355cfc4b5000
7
- data.tar.gz: 5b7763bf1e0d71304a47c55d5bd2abcb1514b0eb084da404ac6726fe3a2a544a397655154c737b1101f7d6697350a649446e089ac9d13ea0900fcbba3501ea04
6
+ metadata.gz: 3bee38d1d822419a71255a4098d64feee0d340e3e036238a2af3db37900dc75cf6ba8a196f2d7f7633099ff62d455f9d1684868d1f92fb4df19593acb76dc372
7
+ data.tar.gz: e574d9bb263980c55d859365e006578870b247be1847ce2b32e4f6473561e0ef131331fb6df8c8a77085b9c1086ed3a370d947115ed2dde0620443a5874d99f0
@@ -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: 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 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
@@ -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.3"
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Davenport