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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64006ef1f5d6f666ccce5960f1ae9d5f7bd8b98b
4
- data.tar.gz: '0872bbe16d88ba7dc265548f1158c598d93efe70'
3
+ metadata.gz: ff0436bf3b67e3b1ba96ceef1acb452769389899
4
+ data.tar.gz: 9f89386fbf9f6e0b64b6246f09700d08af9f3e17
5
5
  SHA512:
6
- metadata.gz: 95e003cfbd93ccc85f4944b5fdcf27d279b360bea071eddbae440dd3ebc151e3e1a9c0f3e892c1f29e58749c298afb78414c4d3693bebe38eb9bc6de88614514
7
- data.tar.gz: 80a6522e0897fdc125163bd96a0dcece6e6440aa743809b5ae54d3b04c3d58510174527d261ab280a827237ceec3b97930bbfa0e7c02ddd9268f872b8a175640
6
+ metadata.gz: 07a215cba17815974cf1ef9d9b8e577a5739e7d47c8d3cd652bc1563cbc82dfb17cecbe79ffcd01d6766f6ba199de7231157d8f35b320e75fc075f0aa65ee91d
7
+ data.tar.gz: 6030828cb677b3ba831d8626a5045f859d95c537b72cee5531c684eba0679e388d3a9231af649098112829c8f4edf64d173b5a7361a4ac6d020a4a3669d84752
data/.travis.yml CHANGED
@@ -2,7 +2,7 @@ language: ruby
2
2
  sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.2.5
5
+ - 2.4
6
6
  - ruby-head
7
7
  before_install:
8
8
  - gem update bundler
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Common
3
- VERSION = '1.5.0'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
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::Syslog.new('percy', Syslog::LOG_LOCAL7)
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: 1.5.0
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 00:00:00.000000000 Z
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