logstash-output-stackdriver_logging 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7eeee7c50713fc116155c686aec51663bb78b62b7ec3015ab65abb2847a86d8a
4
- data.tar.gz: e8ae42e6139cf1c71a70ecc6aa3efc47888e29c6614548823ff55c4dd259513c
3
+ metadata.gz: 1ab40031a4d82e5073f72f3ca877bea35f017adce2cb4c783aae7953c747f1b2
4
+ data.tar.gz: 047c025efe95942ecb5103bbf8736112e3d147f40c9d43414c2b55310322b9a4
5
5
  SHA512:
6
- metadata.gz: f1f503d74a900679df982128b5b013355e4f7b9315001edc1a0d0fae808e9086fc7812010037e2eea468c089af704fd96beda645e25641486ccaa6319f8f8eae
7
- data.tar.gz: 2f2df41576e922909ccef24c32b0c7d1d02a2282cb5325454c09d18e402af9d6598b953c5d8475a98859a17bd3b36d04e421566e230203c4ec3afdb97c98fd57
6
+ metadata.gz: 62e8bb7fb2e280d2439be0e92a7ee3a8ed934891e63899baa7bd907442bc68a4dfa15830ada6e18c4ae34920d0cbe27f6afdeb0f3ea97c6c33a9b2151dec7f40
7
+ data.tar.gz: 9569a5abd5797b94820842ba0cc69ec44c03903016f9427d3f4803b154357670251922ae587f4dde976332a2ba2b99abef2496458584b996195bbc959f0831bb
@@ -101,11 +101,11 @@ class LogStash::Outputs::StackdriverLogging < LogStash::Outputs::Base
101
101
  # project_id is not defined. Try to extract it from teh metadata server.
102
102
  unless @project_id
103
103
  if Google::Auth::GCECredentials.on_gce?
104
- connection = Faraday::Connection.new("http://169.254.169.254/computeMetadata/v1/", { :headers => headers })
104
+ connection = Faraday::Connection.new("http://169.254.169.254/computeMetadata/v1/")
105
105
  connection.headers = { "Metadata-Flavor": "Google" }
106
106
  response = connection.get "project/project-id"
107
107
 
108
- if response.status
108
+ if response.status == 200
109
109
  @project_id = response.body.to_s.strip
110
110
  end
111
111
 
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-stackdriver_logging'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.2'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "Writes payloads to Stackdriver Logging."
6
6
  s.description = ""
7
7
  s.authors = ["Geoff Garbers"]
8
8
  s.email = "geoff@garbers.co.za"
9
- s.homepage = "https://github.com/garbetjie/logstash-output-stackdriver"
9
+ s.homepage = "https://github.com/garbetjie/logstash-output-stackdriver_logging"
10
10
  s.require_paths = %w(lib generated)
11
11
 
12
12
  # Files
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-stackdriver_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Garbers
@@ -102,7 +102,7 @@ files:
102
102
  - lib/logstash/outputs/stackdriver_logging.rb
103
103
  - logstash-output-stackdriver_logging.gemspec
104
104
  - spec/outputs/stackdriver_logging_spec.rb
105
- homepage: https://github.com/garbetjie/logstash-output-stackdriver
105
+ homepage: https://github.com/garbetjie/logstash-output-stackdriver_logging
106
106
  licenses:
107
107
  - MIT
108
108
  metadata: