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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/megaphone/client.rb +3 -1
- data/lib/megaphone/client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 315e5deb2dd214964607d481b8c543ad5ba99a96f76c1e8a7506d0de5acca691
|
4
|
+
data.tar.gz: af97c555222397aaadc4fe707617c60873d6eb6dbce402fc11c3931b02768000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5473ac343fe518998e2716200604ca0f66cf91ba39c66ebe98c2cbf9a82bae9161d57c46d28635a203c36325e6297cc53b1c12e4b893e6b5c2d58489e784f2b8
|
7
|
+
data.tar.gz: 2e7589a0d3b537a4a6731f8d70745df8d3c5cfdda6ce47fa1f6fa3d710b22f495611452725103c58c354bbed49119fa8c06ef8adf09c40b6685a3ee8523e4522
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/megaphone/client.rb
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
97
|
+
rubygems_version: 2.7.3
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Send events to Megaphone.
|