clockker 0.1.0 → 0.1.1

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: 69851fff50f8e00c0fc78c209864330dee98e78130b7c982593545de6ad02687
4
- data.tar.gz: 5850c706c8d88b03aa1f8c4acaf5e2a15eb3de7e53ac801d4f872591c3a35881
3
+ metadata.gz: 60febb5ab25ebb2bbd8beb19013b4e54ac48755a9c7255b87bfa2c6ebdfad55b
4
+ data.tar.gz: 770b3c91268b9d6ed4f4e6cbd855d6c7bd5acfb2588139992f64b7a098f08e7f
5
5
  SHA512:
6
- metadata.gz: 79acd1ea6482332e3bbfe521fe6c060366393f4953b3cbe16854d53b60d4e08844ea81024161a5b7f70ce6c25e0557651d11a49c4c9255e5e0584b609b9cfdc7
7
- data.tar.gz: 0d53068a16887be5090b7083e987964f59571fecc1c665847aeff8dc1864257e6774e479104c64552918d82bc8c578d826ca0488d3d06fe20d5771eb04bb36bc
6
+ metadata.gz: 2a2d56cca5f1620347090554a82ff033398bf7765dec45150b22db04cec73f2bb689aa609f1a75f7d432959ce579aef521b4229d45a84d1bdf5e3708efbc93d5
7
+ data.tar.gz: 5cdebc5439bd5bef35f9d4d9bc555fdfa76fcec32d94db78d08ba1e22a84501abebe5c74fe7ef5de7f43abf2828178b0c56fa553c244bb495a35735d0918ae39
@@ -1,5 +1,5 @@
1
1
  module Clockker
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
 
4
4
  def self.macos_version
5
5
  @mov ||= `sw_vers -productVersion`
@@ -77,7 +77,13 @@ module Clockker
77
77
  end
78
78
 
79
79
  begin
80
- res = Net::HTTP.post(clockk_agent_uri, {artifacts: @changeset.map{|c| {file_path: c[:filepath], touched_at: c[:created_at].strftime("%Y-%m-%d %H:%M:%S"), identifier: identifier, agent: Clockker.version}}}.to_json, {"Authorization" => "Bearer #{token}", "Content-Type" => "application/json"})
80
+ data = {artifacts: @changeset.map{|c| {file_path: c[:filepath], touched_at: c[:created_at].strftime("%Y-%m-%d %H:%M:%S"), identifier: identifier, agent: Clockker.version}}}.to_json
81
+ header = {"Authorization" => "Bearer #{token}", "Content-Type" => "application/json"}
82
+
83
+ Net::HTTP.start(clockk_agent_uri.hostname, clockk_agent_uri.port, use_ssl: clockk_agent_uri.scheme == 'https') do |http|
84
+ http.post(clockk_agent_uri.path, data, header)
85
+ end
86
+
81
87
  @changeset = []
82
88
  rescue Exception => e
83
89
  logger.info "#{Time.now} Reached exception #{e}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clockker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Doerwald