percy-common 1.5.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/percy/common/version.rb +1 -1
- data/lib/percy/logger.rb +4 -2
- data/percy-common.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff0436bf3b67e3b1ba96ceef1acb452769389899
|
4
|
+
data.tar.gz: 9f89386fbf9f6e0b64b6246f09700d08af9f3e17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07a215cba17815974cf1ef9d9b8e577a5739e7d47c8d3cd652bc1563cbc82dfb17cecbe79ffcd01d6766f6ba199de7231157d8f35b320e75fc075f0aa65ee91d
|
7
|
+
data.tar.gz: 6030828cb677b3ba831d8626a5045f859d95c537b72cee5531c684eba0679e388d3a9231af649098112829c8f4edf64d173b5a7361a4ac6d020a4a3669d84752
|
data/.travis.yml
CHANGED
data/lib/percy/common/version.rb
CHANGED
data/lib/percy/logger.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
require 'logger'
|
2
|
-
require 'syslog-logger'
|
3
2
|
|
4
3
|
module Percy
|
5
4
|
def self.logger
|
6
5
|
@logger if defined?(@logger)
|
7
|
-
@logger ||= Logger
|
6
|
+
@logger ||= Logger.new(STDOUT)
|
8
7
|
@logger.level = Logger::INFO if ENV['PERCY_ENV'] == 'production'
|
8
|
+
@logger.formatter = proc do |severity, _datetime, _progname, msg|
|
9
|
+
"[#{severity}] #{msg}\n"
|
10
|
+
end
|
9
11
|
@logger
|
10
12
|
end
|
11
13
|
end
|
data/percy-common.gemspec
CHANGED
@@ -17,7 +17,6 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
19
|
spec.add_dependency 'dogstatsd-ruby', '~> 3.1'
|
20
|
-
spec.add_dependency 'syslog-logger', '~> 1.6'
|
21
20
|
spec.add_dependency 'excon', '~> 0.57'
|
22
21
|
|
23
22
|
spec.add_development_dependency 'bundler', '~> 1.15'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dogstatsd-ruby
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: syslog-logger
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.6'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.6'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: excon
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|