percy-common 1.0.0 → 1.1.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 +9 -0
- data/lib/percy/common/version.rb +1 -1
- data/lib/percy/logger.rb +2 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d5a79133a1c95ae793cb30e7135badb17b59db1
|
4
|
+
data.tar.gz: 1c4a63b4f4998e03f4500b99212e6968b565a7c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2efd0479f2da30ff271cd09376a9910055f1d381b9538a6808939e3e1313130aa344370b076e2585e432f73a541cf04b5cb3b8818a961e08b26ecbe603a3f27
|
7
|
+
data.tar.gz: a2205abeed0c19bad7669d6bccd840c16242d3b9bd966cff4a5683ab1347a14dde8abb5288ddae44f572665d96930bf2ac05264bb65c72e2e0122893f09a9b6e
|
data/.travis.yml
ADDED
data/lib/percy/common/version.rb
CHANGED
data/lib/percy/logger.rb
CHANGED
@@ -4,13 +4,8 @@ require 'syslog-logger'
|
|
4
4
|
module Percy
|
5
5
|
def self.logger
|
6
6
|
@logger if defined?(@logger)
|
7
|
-
|
8
|
-
if
|
9
|
-
@logger ||= Logger.new(STDOUT)
|
10
|
-
else
|
11
|
-
@logger ||= Logger::Syslog.new('percy', Syslog::LOG_LOCAL7)
|
12
|
-
@logger.level = Logger::INFO
|
13
|
-
end
|
7
|
+
@logger ||= Logger::Syslog.new('percy', Syslog::LOG_LOCAL7)
|
8
|
+
@logger.level = Logger::INFO if ENV['PERCY_ENV'] == 'production'
|
14
9
|
@logger
|
15
10
|
end
|
16
11
|
end
|
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.
|
4
|
+
version: 1.1.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: 2016-
|
11
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dogstatsd-ruby
|
@@ -89,6 +89,7 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
91
|
- ".rspec"
|
92
|
+
- ".travis.yml"
|
92
93
|
- Gemfile
|
93
94
|
- LICENSE
|
94
95
|
- README.md
|
@@ -117,9 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
118
|
version: '0'
|
118
119
|
requirements: []
|
119
120
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.4.
|
121
|
+
rubygems_version: 2.4.8
|
121
122
|
signing_key:
|
122
123
|
specification_version: 4
|
123
124
|
summary: Server-side common library for Percy.
|
124
125
|
test_files: []
|
125
|
-
has_rdoc:
|