File tree Expand file tree Collapse file tree 5 files changed +19
-7
lines changed
Expand file tree Collapse file tree 5 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1+ # Changelog
2+
3+ ## 0.0.2 (2023-11-09)
4+
5+ 1 . Fully rebrand everything in codebase from OyenOnsen to OyenCov.
6+ 2 . Make it run in test mode even when API key is not set.
7+ 3 . Put ` OyenCov::VERSION ` in its own file, have everywhere else refer to it.
Original file line number Diff line number Diff line change 11require_relative "oyencov/configuration"
22require_relative "oyencov/simplecov_resultset_translator"
3+ require_relative "oyencov/version"
34
45# For now, support only Rails. We bootstrap from Railtie.
56module OyenCov
6- VERSION = "0.0.1.pre"
7-
87 def self . config
98 @config ||= OyenCov ::Configuration . new
109 end
1110
1211 !!ENV [ "OYENCOV_DEBUG" ] && puts ( "[OyenCov] Checking Rails existence" )
13- if defined? ( Rails ::Railtie ) #&& ENV["OYENCOV_API_KEY"]
12+ if defined? ( Rails ::Railtie ) # && ENV["OYENCOV_API_KEY"]
1413 puts "[OyenCov] Starting Railtie"
1514 require_relative "oyencov/railtie"
1615 end
Original file line number Diff line number Diff line change 11require "faraday"
22require "singleton"
3+ require_relative "version"
34
45module OyenCov
56 class APIConnection < Faraday ::Connection
@@ -11,7 +12,7 @@ def initialize
1112 headers : {
1213 "Authorization" => "Bearer #{ ENV [ "OYENCOV_API_KEY" ] } " ,
1314 "Content-Type" => "application/json" ,
14- "User-Agent" => "oyencov-ruby 0.0.1 "
15+ "User-Agent" => "oyencov-ruby #{ OyenCov :: VERSION } "
1516 }
1617 } ) do |f |
1718 f . request :json
Original file line number Diff line number Diff line change 1+ module OyenCov
2+ VERSION = "0.0.2" . freeze
3+ end
Original file line number Diff line number Diff line change 1+ require_relative "lib/oyencov/version"
2+
13Gem ::Specification . new do |s |
24 s . name = "oyencov"
3- s . version = "0.0.1.pre"
5+ s . version = OyenCov :: VERSION
46 s . licenses = [ "MIT" ]
5- s . summary = "Calculates test coverage based on production runtime "
7+ s . summary = "Usage-weighted test coverage for Rails "
68 s . description = "Runtime and test reporters."
79 s . executables = [ "oyencov" ]
810 s . authors = [ "Anonoz Chong" ]
911 s . email = "anonoz@oyencov.com"
1012 s . files = Dir [ "{lib}/**/*.*" , "bin/*" ]
1113 s . homepage = "https://www.oyencov.com"
1214 s . metadata = {
13- "source_code_uri" => "https://github.com/oyencovteam /sdk-ruby"
15+ "source_code_uri" => "https://github.com/oyencov /sdk-ruby"
1416 }
1517
1618 s . required_ruby_version = ">= 3.1.0"
You can’t perform that action at this time.
0 commit comments