tractive 1.0.13 → 1.0.14

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: 6b9a604e9dd1c9d05edc6ebb71730d1c1660c7f5fc478a99ce87597fe48b567e
4
- data.tar.gz: 6c70e06cd214b9b97d3ec17878774b5417ee3108f95b1ec09642179ca88c5c4a
3
+ metadata.gz: 0db013dccdcc48d417706b5f52036b4c5801b4d81d6a835c09ee4b1afc6480db
4
+ data.tar.gz: 4603e9e32107e75a4e2f495dc4a93cbc4e810a65c2bee576721e7d58d4be78cd
5
5
  SHA512:
6
- metadata.gz: 67728d36b54a32045c49a69c873c49a63a87ac6242260f3eefe09c1511b88919af579fcffd4bc08919825606f99cbcdd12284f3c5d3b347adaf8226c6c770f57
7
- data.tar.gz: 0caa7b60a2620eca00de262cd0d122cfab88a9fe6737800c7a281d9d36dfb0b02368722608cf130fe9c6faf8caf579bc96db111c130866df7fade690f8504bb4
6
+ metadata.gz: 5cf948f6fd3aed7f3b67778e91e9d88e7e1f9586824e21c4a1a0a4a42b42a14eedac4df7d5bf7627e182741ccf35865e195c1990c18e008b352b43bee08d4f4a
7
+ data.tar.gz: f2b76c16fdf603a4d084df7a895f6ffdef16b4fc9297e6f039d9894e4b95a14a6d31ef090399983f46e68f4b904485df41102f3749926aef8adffee8e7d4011a
data/exe/command_base.rb CHANGED
@@ -7,5 +7,7 @@ class CommandBase < Thor
7
7
  desc: "Name of the logfile to output logs to."
8
8
  class_option "config", type: :string, default: "tractive.config.yaml", banner: "<PATH>", aliases: "-c",
9
9
  desc: "Set the configuration file"
10
+ class_option "git-token", type: :string,
11
+ desc: "The access token for Github actions."
10
12
  class_option "verbose", type: :boolean, aliases: ["-v", "--verbose"], desc: "Verbose mode"
11
13
  end
data/lib/tractive/main.rb CHANGED
@@ -8,6 +8,9 @@ module Tractive
8
8
  @opts = opts
9
9
  @cfg = YAML.load_file(@opts[:config])
10
10
 
11
+ @cfg["github"] ||= {}
12
+ @cfg["github"]["token"] = @opts["git-token"]
13
+
11
14
  Tractive::Utilities.setup_logger(output_stream: @opts[:logfile] || $stderr, verbose: @opts[:verbose])
12
15
  @db = Tractive::Utilities.setup_db!(@opts["trac-database-path"] || @cfg["trac"]["database"])
13
16
  rescue Sequel::DatabaseConnectionError, Sequel::AdapterNotFound, URI::InvalidURIError, Sequel::DatabaseError => e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tractive
4
- VERSION = "1.0.13"
4
+ VERSION = "1.0.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tractive
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose