bubbler_ruby 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/Rakefile +1 -1
- data/lib/{bubbler → bubbler_ruby}/api.rb +9 -2
- data/lib/{bubbler → bubbler_ruby}/railtie.rb +1 -1
- data/lib/{bubbler → bubbler_ruby}/version.rb +1 -1
- data/lib/{bubbler.rb → bubbler_ruby.rb} +3 -3
- metadata +6 -6
- /data/lib/{bubbler → bubbler_ruby}/tasks/bubbler_coverage/upload.rake +0 -0
    
        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/Rakefile
    CHANGED
    
    
| @@ -5,7 +5,7 @@ require 'net/http' | |
| 5 5 |  | 
| 6 6 | 
             
            module Bubbler
         | 
| 7 7 | 
             
              module Api
         | 
| 8 | 
            -
                require ' | 
| 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:  | 
| 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,11 +1,11 @@ | |
| 1 1 | 
             
            # frozen_string_literal: true
         | 
| 2 2 |  | 
| 3 | 
            -
            require_relative " | 
| 4 | 
            -
            require_relative " | 
| 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 ' | 
| 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. | 
| 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/ | 
| 30 | 
            -
            - lib/ | 
| 31 | 
            -
            - lib/ | 
| 32 | 
            -
            - lib/ | 
| 33 | 
            -
            - lib/ | 
| 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:
         | 
| 
            File without changes
         |