bubbler_ruby 0.1.0 → 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: 52716a000a41b820fa24b5b2d503a343c422e3845332c98bac6d130fe5a15e0c
4
- data.tar.gz: c2e24b74ef841793466351eaf55baf7e64e5b8b557ca4c5ee69bb5df42a75c65
3
+ metadata.gz: 632abe30f5c924751f717050bd33423bd4ad70b117f6021703e0c637d97eeb46
4
+ data.tar.gz: e7b5b73599dd2ae799876ecc09d1630e45834b84e4fcb39452da07a3dae2e5bc
5
5
  SHA512:
6
- metadata.gz: bc5e67183c2803374ccceb89f8ffcec9e6b34e4f1d9c9922f4f8948207bfba8eaaadce1fbf12bb364a573d8da1baf5eb6c0b3774b6011f1e561b391a23ca9a93
7
- data.tar.gz: 9e8548314a6ff47f5ef37c4282b460b24c94a1d15abf2b670933543eb94b0fa54600d9092e48f92b1716bedcf9245163265eba2596a3ace5a661df6fc317e578
6
+ metadata.gz: 7974f2dd8d0f5b387bd4e26a5b0411f5af198d0d68d194980b0d161cf735eade7dc3136cfa93d121eaab7e49f013c791da330e103be6f243896b15db3feacaca
7
+ data.tar.gz: 20d0ba9cd70bc777c88c633e029f15f9a51c6d22712c8efda276944e653b81acd53f791a7e9194dc7c75af79e464d16b13df6720cda2197bf858ac9d2632391d
data/lib/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  # lib/Rakefile
2
- require 'bubbler'
2
+ require 'bubbler_ruby'
3
3
 
4
4
  path = File.expand_path(__dir__)
5
5
  Dir.glob("#{path}/tasks/**/*.rake").each { |f| import f }
@@ -5,7 +5,7 @@ require 'net/http'
5
5
 
6
6
  module Bubbler
7
7
  module Api
8
- require 'bubbler/railtie' if defined?(Rails)
8
+ require 'bubbler_ruby/railtie' if defined?(Rails)
9
9
 
10
10
  def self.post(simplecov_results)
11
11
  body = request_body(simplecov_results.as_json)
@@ -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
  # lib/railtie.rb
2
- require 'bubbler'
2
+ require 'bubbler_ruby'
3
3
  require 'rails'
4
4
 
5
5
  module Bubbler
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bubbler
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "bubbler/version"
4
- require_relative "bubbler/api"
3
+ require_relative "bubbler_ruby/version"
4
+ require_relative "bubbler_ruby/api"
5
5
 
6
6
  module Bubbler
7
7
  class Error < StandardError; end
8
- require 'bubbler/railtie' if defined?(Rails)
8
+ require 'bubbler_ruby/railtie' if defined?(Rails)
9
9
 
10
10
  def self.upload
11
11
  require 'simplecov'
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Davenport
@@ -26,11 +26,11 @@ files:
26
26
  - README.md
27
27
  - Rakefile
28
28
  - lib/Rakefile
29
- - lib/bubbler.rb
30
- - lib/bubbler/api.rb
31
- - lib/bubbler/railtie.rb
32
- - lib/bubbler/tasks/bubbler_coverage/upload.rake
33
- - lib/bubbler/version.rb
29
+ - lib/bubbler_ruby.rb
30
+ - lib/bubbler_ruby/api.rb
31
+ - lib/bubbler_ruby/railtie.rb
32
+ - lib/bubbler_ruby/tasks/bubbler_coverage/upload.rake
33
+ - lib/bubbler_ruby/version.rb
34
34
  - sig/bubbler.rbs
35
35
  homepage: https://github.com/mark579/bubbler_ruby
36
36
  licenses: