Skip to content

Commit

Permalink
Bump to 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
anonoz committed Nov 9, 2023
1 parent f8a44c0 commit c285d68
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## 0.0.2 (2023-11-09)

1. Fully rebrand everything in codebase from OyenOnsen to OyenCov.
2. Make it run in test mode even when API key is not set.
3. Put `OyenCov::VERSION` in its own file, have everywhere else refer to it.
5 changes: 2 additions & 3 deletions lib/oyencov.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
require_relative "oyencov/configuration"
require_relative "oyencov/simplecov_resultset_translator"
require_relative "oyencov/version"

# For now, support only Rails. We bootstrap from Railtie.
module OyenCov
VERSION = "0.0.1.pre"

def self.config
@config ||= OyenCov::Configuration.new
end

!!ENV["OYENCOV_DEBUG"] && puts("[OyenCov] Checking Rails existence")
if defined?(Rails::Railtie) #&& ENV["OYENCOV_API_KEY"]
if defined?(Rails::Railtie) # && ENV["OYENCOV_API_KEY"]
puts "[OyenCov] Starting Railtie"
require_relative "oyencov/railtie"
end
Expand Down
3 changes: 2 additions & 1 deletion lib/oyencov/api_connection.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require "faraday"
require "singleton"
require_relative "version"

module OyenCov
class APIConnection < Faraday::Connection
Expand All @@ -11,7 +12,7 @@ def initialize
headers: {
"Authorization" => "Bearer #{ENV["OYENCOV_API_KEY"]}",
"Content-Type" => "application/json",
"User-Agent" => "oyencov-ruby 0.0.1"
"User-Agent" => "oyencov-ruby #{OyenCov::VERSION}"
}
}) do |f|
f.request :json
Expand Down
3 changes: 3 additions & 0 deletions lib/oyencov/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module OyenCov
VERSION = "0.0.2".freeze
end
8 changes: 5 additions & 3 deletions oyencov.gemspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
require_relative "lib/oyencov/version"

Gem::Specification.new do |s|
s.name = "oyencov"
s.version = "0.0.1.pre"
s.version = OyenCov::VERSION
s.licenses = ["MIT"]
s.summary = "Calculates test coverage based on production runtime"
s.summary = "Usage-weighted test coverage for Rails"
s.description = "Runtime and test reporters."
s.executables = ["oyencov"]
s.authors = ["Anonoz Chong"]
s.email = "anonoz@oyencov.com"
s.files = Dir["{lib}/**/*.*", "bin/*"]
s.homepage = "https://www.oyencov.com"
s.metadata = {
"source_code_uri" => "https://github.com/oyencovteam/sdk-ruby"
"source_code_uri" => "https://github.com/oyencov/sdk-ruby"
}

s.required_ruby_version = ">= 3.1.0"
Expand Down

0 comments on commit c285d68

Please sign in to comment.