megaphone-client 1.1.1 → 1.1.2

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: 2d48043a0df8afb5fba26820a9a09e32c57c6c2658795ae38869c979062b5d67
4
- data.tar.gz: ebababb0d2f28825df5587fba9a792864360836fe40a1a0843be3837acbd779d
3
+ metadata.gz: 315e5deb2dd214964607d481b8c543ad5ba99a96f76c1e8a7506d0de5acca691
4
+ data.tar.gz: af97c555222397aaadc4fe707617c60873d6eb6dbce402fc11c3931b02768000
5
5
  SHA512:
6
- metadata.gz: f9e5512231b6bcb86b8180851fe0091e3fcc9c03caf87c445121cf7cef2f05abdef37582d97bdc184c9c1cf8c14dfb42114a59859e3fc7296c27762592d20505
7
- data.tar.gz: 181405d9073d0616d7a2a91db1f852d9c852f63801877f12575f7a9eea5a6f6b34b564cb60d918b2d4bc128064e9d15362d95a5b2e15bab4ea0c4f6d4378f1eb
6
+ metadata.gz: 5473ac343fe518998e2716200604ca0f66cf91ba39c66ebe98c2cbf9a82bae9161d57c46d28635a203c36325e6297cc53b1c12e4b893e6b5c2d58489e784f2b8
7
+ data.tar.gz: 2e7589a0d3b537a4a6731f8d70745df8d3c5cfdda6ce47fa1f6fa3d710b22f495611452725103c58c354bbed49119fa8c06ef8adf09c40b6685a3ee8523e4522
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and
6
6
  this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.1.2] - 2018-03-05
9
+
10
+ ### Changed
11
+
12
+ * If no port specified (via parameter or environment) then the default
13
+ Fluentd port will be used.
14
+
8
15
  ## [1.1.1] - 2018-02-09
9
16
 
10
17
  ### Added
@@ -8,6 +8,8 @@ module Megaphone
8
8
  attr_reader :logger, :origin
9
9
  private :logger, :origin
10
10
 
11
+ FLUENT_DEFAULT_PORT = 24224
12
+
11
13
  # Main entry point for apps using this library.
12
14
  # Will default to environment for host and port settings, if not passed.
13
15
  # Note that a missing callback_handler will result in a default handler
@@ -15,7 +17,7 @@ module Megaphone
15
17
  def initialize(config)
16
18
  @origin = config.fetch(:origin)
17
19
  host = config.fetch(:host, ENV['MEGAPHONE_FLUENT_HOST'])
18
- port = config.fetch(:port, ENV['MEGAPHONE_FLUENT_PORT'])
20
+ port = config.fetch(:port, ENV['MEGAPHONE_FLUENT_PORT'] || FLUENT_DEFAULT_PORT)
19
21
  overflow_handler = config.fetch(:overflow_handler, nil)
20
22
  @logger = Megaphone::Client::Logger.create(host, port, overflow_handler)
21
23
  end
@@ -1,5 +1,5 @@
1
1
  module Megaphone
2
2
  class Client
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megaphone-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Redbubble
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-02-09 00:00:00.000000000 Z
13
+ date: 2018-03-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fluent-logger
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.7.5
97
+ rubygems_version: 2.7.3
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Send events to Megaphone.