vidazing_logger 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +50 -0
- data/.ruby-version +1 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +59 -0
- data/Rakefile +110 -0
- data/bin/vidazing_logger +50 -0
- data/lib/vidazing_logger/appenders/stderr.rb +60 -0
- data/lib/vidazing_logger/appenders/stdout.rb +67 -0
- data/lib/vidazing_logger/version.rb +4 -0
- data/lib/vidazing_logger.rb +47 -0
- data/vidazing_logger.gemspec +32 -0
- metadata +169 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9106df6123f10567ee61da20d022d23c5f43b97a05b2fa9a78291424b6c7b4ad
|
4
|
+
data.tar.gz: e7aaa6373349e1b2b1ac628a28daf169c314a8e3e452ae12a7b021f119427d86
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5c22b59b28fe9258a8453564f8c4db707ae4a3a84c2b120f8d994ecac31285306420365428f647adc478e281ef4c262b3c942182df3b5532ddc5172944e493c3
|
7
|
+
data.tar.gz: 3bfaf20cd8eead8be172c9839b9c202107510e580ab5ff7510485e04bdc38951785240a60a98400ba1590acceb669c8544840d32c6c05935664beef950f4dddd
|
data/.gitignore
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
*.bridgesupport
|
21
|
+
build-iPhoneOS/
|
22
|
+
build-iPhoneSimulator/
|
23
|
+
|
24
|
+
## Specific to RubyMotion (use of CocoaPods):
|
25
|
+
#
|
26
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
+
#
|
30
|
+
# vendor/Pods/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalization:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
|
43
|
+
# for a library or gem, you might want to ignore these files since the code is
|
44
|
+
# intended to run in multiple environments; otherwise, check them in:
|
45
|
+
# Gemfile.lock
|
46
|
+
# .ruby-version
|
47
|
+
# .ruby-gemset
|
48
|
+
|
49
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
+
.rvmrc
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.5.1
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2018 VidaZing
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# logger-gem
|
2
|
+
VidaZing logging strategy using [TwP/logging](https://github.com/TwP/logging).
|
3
|
+
|
4
|
+
Writes to rolling log files and the corresponding IO pipe.
|
5
|
+
|
6
|
+
* <span style="color:red">Red</span> timestamps: `logs/error.log` + stderr.
|
7
|
+
* <span style="color:blue">Blue</span> timestamps: `logs/build.log` + stdout.
|
8
|
+
|
9
|
+
1. [**Installation**](#installation)
|
10
|
+
2. [**Usage**](#usage)
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
1. In your `Gemfile`, add the `vidazing_logger` gem:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem 'vidazing_logger', '~> 0.1'
|
18
|
+
```
|
19
|
+
|
20
|
+
2. In your `shell`, run:
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
bundle install
|
24
|
+
```
|
25
|
+
|
26
|
+
3. (Optional - If you want to use the `rake loop:` tasks) Install [fswatch](https://github.com/emcrisostomo/fswatch)
|
27
|
+
|
28
|
+
4. (Optional - If you use `pry`) Ran into a [byebug issue](https://github.com/deivid-rodriguez/byebug/issues/440) that you can fix with:
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
gem install byebug
|
32
|
+
gem install pry-byebug
|
33
|
+
```
|
34
|
+
|
35
|
+
## Usage
|
36
|
+
See `rake -T`
|
37
|
+
|
38
|
+
### Gem
|
39
|
+
```ruby
|
40
|
+
require 'vidazing_logger'
|
41
|
+
|
42
|
+
logger = VidazingLogger.logger("OPTIONAL_LOGGER_NAME")
|
43
|
+
```
|
44
|
+
|
45
|
+
### Binary
|
46
|
+
|
47
|
+
`vidazing_logger` for all your stand alone shell logging needs. We should probably let you disable the `logs/` file logging... Moving along!
|
48
|
+
|
49
|
+
Install with `gem install vidazing_logger`
|
50
|
+
|
51
|
+
See `vidazing_logger --help`
|
52
|
+
|
53
|
+
## Under the hood
|
54
|
+
|
55
|
+
[Logging gem docs](https://www.rubydoc.info/gems/logging/toplevel)
|
56
|
+
|
57
|
+
### Considering
|
58
|
+
|
59
|
+
[Timber](https://github.com/timberio/timber-ruby)
|
data/Rakefile
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
require 'rainbow/refinement'
|
2
|
+
using Rainbow
|
3
|
+
require 'rake/testtask'
|
4
|
+
|
5
|
+
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
6
|
+
require "vidazing_logger/version"
|
7
|
+
VERSION = VidazingLogger::VERSION
|
8
|
+
|
9
|
+
GEM_NAME = "vidazing_logger"
|
10
|
+
|
11
|
+
# IMPORTANT: Color can't be used for `system` commands.
|
12
|
+
GEM_NAME_VERSION = "#{GEM_NAME}-#{VERSION}"
|
13
|
+
GEM_ARTIFACT = "#{GEM_NAME_VERSION}.gem"
|
14
|
+
|
15
|
+
desc "Remove #{GEM_ARTIFACT} && Gemfile.lock"
|
16
|
+
task :clean do
|
17
|
+
puts "Removing #{GEM_ARTIFACT} && Gemfile.lock".blue
|
18
|
+
system "rm -f *.gem Gemfile.lock"
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "Build #{GEM_NAME_VERSION}"
|
22
|
+
task :build => :clean do
|
23
|
+
puts "Building #{GEM_NAME_VERSION}".blue
|
24
|
+
system "gem build #{GEM_NAME}.gemspec"
|
25
|
+
end
|
26
|
+
|
27
|
+
desc "Publish #{GEM_ARTIFACT}"
|
28
|
+
task :publish do
|
29
|
+
puts "Publishing #{GEM_NAME_VERSION}".blue
|
30
|
+
system "gem push #{GEM_NAME_VERSION}.gem"
|
31
|
+
end
|
32
|
+
|
33
|
+
desc "Installs #{GEM_ARTIFACT}"
|
34
|
+
task :install => :build do
|
35
|
+
puts "Installing #{GEM_ARTIFACT}".blue
|
36
|
+
system "gem install #{GEM_NAME}"
|
37
|
+
end
|
38
|
+
|
39
|
+
desc "Uninstalls #{GEM_ARTIFACT}"
|
40
|
+
task :uninstall do
|
41
|
+
puts "UNINSTALLING #{GEM_ARTIFACT}".inverse.blue
|
42
|
+
system "gem uninstall -xq #{GEM_NAME}"
|
43
|
+
end
|
44
|
+
|
45
|
+
namespace :doc do
|
46
|
+
desc "Build documentation into 'doc/'"
|
47
|
+
task :build do
|
48
|
+
puts "Building documentation into 'doc/':".blue
|
49
|
+
system "yard"
|
50
|
+
end
|
51
|
+
|
52
|
+
desc "Find undocumented code"
|
53
|
+
task :coverage do
|
54
|
+
puts "Documentation coverage:".blue
|
55
|
+
system "yard stats --list-undoc"
|
56
|
+
end
|
57
|
+
|
58
|
+
desc "See local documentation at http://localhost:8808"
|
59
|
+
task :serve do
|
60
|
+
system "yard server --reload"
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
Rake::TestTask.new do |t|
|
65
|
+
t.libs << 'test'
|
66
|
+
t.test_files = FileList['test/test*.rb']
|
67
|
+
t.verbose = true
|
68
|
+
end
|
69
|
+
|
70
|
+
namespace :loop do
|
71
|
+
def looper?
|
72
|
+
puts "Checking for 'fswatch' to monitor files".blue
|
73
|
+
|
74
|
+
has_fswatch = ! `which fswatch`.empty?
|
75
|
+
|
76
|
+
abort('fswatch is NOT installed. Visit https://github.com/emcrisostomo/fswatch'.bright.red) unless has_fswatch
|
77
|
+
puts('fswatch is installed.'.bright.green) if has_fswatch
|
78
|
+
end
|
79
|
+
|
80
|
+
def looping(cmd)
|
81
|
+
fswatch_cmd = "fswatch -0 -e .git/ -e *.gem -e logs -e .yardoc -l 1 ."
|
82
|
+
xargs_cmd = "xargs -0 -I {} sh -c \"echo 'File: {}' && %s\""
|
83
|
+
looping_cmd = "#{fswatch_cmd} | #{xargs_cmd}"
|
84
|
+
|
85
|
+
system "#{looping_cmd}" % cmd
|
86
|
+
end
|
87
|
+
|
88
|
+
IGNORED_MESSAGE = "Ignores .git/, logs/, .yardoc/, and gems created. Watches every 1 seconds"
|
89
|
+
|
90
|
+
desc "Repeatedly installs the gem on file changes"
|
91
|
+
task :install do
|
92
|
+
looper?
|
93
|
+
puts "Rebuilding on file changes. #{IGNORED_MESSAGE}".blue
|
94
|
+
looping("rake uninstall install")
|
95
|
+
end
|
96
|
+
|
97
|
+
desc "Repeatedly runs tests on file changes"
|
98
|
+
task :test do
|
99
|
+
looper?
|
100
|
+
puts "Running tests on file changes. #{IGNORED_MESSAGE}".blue
|
101
|
+
looping("rake test")
|
102
|
+
end
|
103
|
+
|
104
|
+
desc "Repeatedly show documentation coverage on file changes"
|
105
|
+
task :"doc:coverage" do
|
106
|
+
looper?
|
107
|
+
puts "Showing undocumented code on file changes. #{IGNORED_MESSAGE}".blue
|
108
|
+
looping("rake doc:coverage")
|
109
|
+
end
|
110
|
+
end
|
data/bin/vidazing_logger
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'vidazing_logger'
|
4
|
+
|
5
|
+
require 'optparse'
|
6
|
+
require 'ostruct'
|
7
|
+
|
8
|
+
class VidazingOptions
|
9
|
+
LEVEL_ALIASES = { 'd' => 'debug', 'i' => 'info', 'w' => 'warn', 'e' => 'error', 'f' => 'fatal' }
|
10
|
+
|
11
|
+
def self.parse(args)
|
12
|
+
options = OpenStruct.new
|
13
|
+
options.level = 'info'
|
14
|
+
options.clean = false
|
15
|
+
|
16
|
+
options_parser = OptionParser.new do |opts|
|
17
|
+
opts.banner = "Usage: vidazing_logger [options] \"Message\""
|
18
|
+
|
19
|
+
opts.separator ""
|
20
|
+
opts.separator "Specific options:"
|
21
|
+
|
22
|
+
level_list = LEVEL_ALIASES.flatten.join(',')
|
23
|
+
opts.on("-l", "--level LEVEL", LEVEL_ALIASES.values, LEVEL_ALIASES, "Select log level",
|
24
|
+
" (#{level_list})") do |level|
|
25
|
+
options.level = level
|
26
|
+
end
|
27
|
+
|
28
|
+
opts.on_tail("-c", "--clean", "Remove the logs/ directory") do
|
29
|
+
options.clean = true
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
options_parser.parse!(args)
|
34
|
+
options
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
options = VidazingOptions.parse(ARGV)
|
39
|
+
|
40
|
+
if options.clean
|
41
|
+
puts "Cleaning the logs/ directory"
|
42
|
+
VidazingLogger.clean
|
43
|
+
end
|
44
|
+
|
45
|
+
unless ARGV.empty?
|
46
|
+
message = ARGV.join(' ')
|
47
|
+
|
48
|
+
log = VidazingLogger.logger
|
49
|
+
log.public_send(options.level, message)
|
50
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'logging'
|
2
|
+
|
3
|
+
# Determines how to log messages. Attaches to Logging.logger
|
4
|
+
# @api private
|
5
|
+
module VidazingLogger::Appenders
|
6
|
+
# Appender writing to STDERR and 'logs/error.log'
|
7
|
+
# @api private
|
8
|
+
module Stderr
|
9
|
+
class << self
|
10
|
+
private
|
11
|
+
|
12
|
+
# ----- BUILD STDERR + LOG -----
|
13
|
+
|
14
|
+
# Logging holds the color scheme reference
|
15
|
+
ERROR_LOG_COLOR_SCHEME = "bright_error"
|
16
|
+
Logging.color_scheme(
|
17
|
+
ERROR_LOG_COLOR_SCHEME,
|
18
|
+
:levels => {
|
19
|
+
:info => :green,
|
20
|
+
:warn => :yellow,
|
21
|
+
:error => :red,
|
22
|
+
:fatal => [:white, :on_red]
|
23
|
+
},
|
24
|
+
:date => :red,
|
25
|
+
:logger => :cyan,
|
26
|
+
:message => :magenta
|
27
|
+
)
|
28
|
+
|
29
|
+
def readable_error_layout_pattern
|
30
|
+
Logging.layouts.pattern \
|
31
|
+
:pattern => '[%d] %-5l %c: %m\n',
|
32
|
+
# ISO8601 without the 'T'
|
33
|
+
:date_pattern => '%Y-%m-%d %H:%M:%S',
|
34
|
+
:color_scheme => ERROR_LOG_COLOR_SCHEME
|
35
|
+
end
|
36
|
+
|
37
|
+
APPENDER_STDERR = "STDERR"
|
38
|
+
def stderr_appender
|
39
|
+
Logging.appenders.stderr \
|
40
|
+
APPENDER_STDERR,
|
41
|
+
:layout => readable_error_layout_pattern,
|
42
|
+
:level => :error
|
43
|
+
end
|
44
|
+
|
45
|
+
def error_log_appender(log_dir)
|
46
|
+
error_log_path = "#{log_dir}/error.log"
|
47
|
+
|
48
|
+
appender_error_log = error_log_path
|
49
|
+
Logging.appenders.rolling_file \
|
50
|
+
appender_error_log,
|
51
|
+
:layout => readable_error_layout_pattern,
|
52
|
+
:age => 'daily',
|
53
|
+
:keep => 7,
|
54
|
+
:level => :error
|
55
|
+
|
56
|
+
Logging.appenders[appender_error_log]
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require 'logging'
|
2
|
+
|
3
|
+
module VidazingLogger::Appenders
|
4
|
+
# Appender writing to STDOUT and 'logs/build.log'
|
5
|
+
# @api private
|
6
|
+
module Stdout
|
7
|
+
class << self
|
8
|
+
private
|
9
|
+
|
10
|
+
#----- BUILD STDOUT + LOG -----
|
11
|
+
|
12
|
+
# Logging holds the color scheme reference
|
13
|
+
LOG_COLOR_SCHEME = "bright"
|
14
|
+
Logging.color_scheme(
|
15
|
+
LOG_COLOR_SCHEME,
|
16
|
+
:levels => {
|
17
|
+
:info => :green,
|
18
|
+
:warn => :yellow,
|
19
|
+
:error => :red,
|
20
|
+
:fatal => [:white, :on_red]
|
21
|
+
},
|
22
|
+
:date => :blue,
|
23
|
+
:logger => :cyan,
|
24
|
+
:message => :magenta
|
25
|
+
)
|
26
|
+
|
27
|
+
def readable_layout_pattern
|
28
|
+
Logging.layouts.pattern \
|
29
|
+
:pattern => '[%d] %-5l %c: %m\n',
|
30
|
+
# ISO8601 without the 'T'
|
31
|
+
:date_pattern => '%Y-%m-%d %H:%M:%S',
|
32
|
+
:color_scheme => LOG_COLOR_SCHEME
|
33
|
+
end
|
34
|
+
|
35
|
+
def stdout_levels
|
36
|
+
Logging::Filters::Level.new \
|
37
|
+
:debug,
|
38
|
+
:info,
|
39
|
+
:warn
|
40
|
+
end
|
41
|
+
|
42
|
+
APPENDER_STDOUT = "STDOUT"
|
43
|
+
def stdout_appender
|
44
|
+
Logging.appenders.stdout \
|
45
|
+
APPENDER_STDOUT,
|
46
|
+
:layout => readable_layout_pattern,
|
47
|
+
:filters => stdout_levels
|
48
|
+
|
49
|
+
Logging.appenders[APPENDER_STDOUT]
|
50
|
+
end
|
51
|
+
|
52
|
+
def build_log_appender(log_dir)
|
53
|
+
build_log_path = "#{log_dir}/build.log"
|
54
|
+
|
55
|
+
appender_build_log = build_log_path
|
56
|
+
Logging.appenders.rolling_file \
|
57
|
+
appender_build_log,
|
58
|
+
:layout => readable_layout_pattern,
|
59
|
+
:age => 'daily',
|
60
|
+
:keep => 7,
|
61
|
+
:filters => stdout_levels
|
62
|
+
|
63
|
+
Logging.appenders[appender_build_log]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'vidazing_logger/version'
|
2
|
+
require 'vidazing_logger/appenders/stdout'
|
3
|
+
require 'vidazing_logger/appenders/stderr'
|
4
|
+
|
5
|
+
require 'logging'
|
6
|
+
|
7
|
+
# Namespace for the convenience method to create a new logger
|
8
|
+
#
|
9
|
+
# @see VidazingLogger#logger
|
10
|
+
# @since 0.1.0
|
11
|
+
module VidazingLogger
|
12
|
+
class << self
|
13
|
+
|
14
|
+
# [String]
|
15
|
+
LOG_DIR = "logs"
|
16
|
+
|
17
|
+
# Creates the 'logs/' directory
|
18
|
+
def initialize
|
19
|
+
Dir.mkdir(LOG_DIR) unless Dir.exists?(LOG_DIR)
|
20
|
+
end
|
21
|
+
|
22
|
+
# Deletes the 'logs/' directory
|
23
|
+
def clean
|
24
|
+
FileUtils.remove_dir(LOG_DIR, true)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Create a Logger with 4 Appenders.
|
28
|
+
# STDERR + 'logs/error.log'
|
29
|
+
# STDOUT + 'logs/build.log'
|
30
|
+
#
|
31
|
+
# @param name [String] Logger name used in messages
|
32
|
+
# @return [Logging.logger] See https://github.com/TwP/logging/blob/master/lib/logging/logger.rb
|
33
|
+
def logger(name = 'VidaZing')
|
34
|
+
require 'pry'; binding.pry
|
35
|
+
VidazingLogger.initialize
|
36
|
+
|
37
|
+
log = Logging.logger[name]
|
38
|
+
log.add_appenders \
|
39
|
+
VidazingLogger::Appenders::Stdout.stdout_appender,
|
40
|
+
VidazingLogger::Appenders::Stdout.build_log_appender(LOG_DIR),
|
41
|
+
VidazingLogger::Appenders::Stderr.stderr_appender,
|
42
|
+
VidazingLogger::Appenders::Stderr.error_log_appender(LOG_DIR)
|
43
|
+
|
44
|
+
log
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "vidazing_logger/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "vidazing_logger"
|
7
|
+
s.version = VidazingLogger::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["VidaZing, Inc."]
|
10
|
+
s.licenses = ['MIT']
|
11
|
+
s.email = ["VidaZing@gmail.com"]
|
12
|
+
s.homepage = "https://github.com/VidaZing/logger_gem"
|
13
|
+
s.summary = "Custom logging for VidaZing."
|
14
|
+
s.executables << 'vidazing_logger'
|
15
|
+
|
16
|
+
s.rubygems_version = "2.5.2"
|
17
|
+
s.required_ruby_version = '>= 1.9.3'
|
18
|
+
|
19
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec)/}) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
# s.test_files = ["test/test_vidazing_logger.rb"]
|
22
|
+
|
23
|
+
s.add_runtime_dependency('logging', '2.2.2')
|
24
|
+
|
25
|
+
s.add_development_dependency 'rake', '~> 0'
|
26
|
+
s.add_development_dependency 'rainbow', '3.0.0'
|
27
|
+
s.add_development_dependency 'rspec', '3.8.0'
|
28
|
+
s.add_development_dependency 'pry', '0.10.4'
|
29
|
+
s.add_development_dependency 'pry-byebug', '3.6.0'
|
30
|
+
s.add_development_dependency 'byebug', '10.0.2'
|
31
|
+
s.add_development_dependency 'yard', '0.9.16'
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vidazing_logger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- VidaZing, Inc.
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-08-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: logging
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.2.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.2.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rainbow
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.8.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.8.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.10.4
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.10.4
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry-byebug
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.6.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 3.6.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: byebug
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 10.0.2
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 10.0.2
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: yard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.9.16
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.9.16
|
125
|
+
description:
|
126
|
+
email:
|
127
|
+
- VidaZing@gmail.com
|
128
|
+
executables:
|
129
|
+
- vidazing_logger
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".gitignore"
|
134
|
+
- ".ruby-version"
|
135
|
+
- Gemfile
|
136
|
+
- LICENSE
|
137
|
+
- README.md
|
138
|
+
- Rakefile
|
139
|
+
- bin/vidazing_logger
|
140
|
+
- lib/vidazing_logger.rb
|
141
|
+
- lib/vidazing_logger/appenders/stderr.rb
|
142
|
+
- lib/vidazing_logger/appenders/stdout.rb
|
143
|
+
- lib/vidazing_logger/version.rb
|
144
|
+
- vidazing_logger.gemspec
|
145
|
+
homepage: https://github.com/VidaZing/logger_gem
|
146
|
+
licenses:
|
147
|
+
- MIT
|
148
|
+
metadata: {}
|
149
|
+
post_install_message:
|
150
|
+
rdoc_options: []
|
151
|
+
require_paths:
|
152
|
+
- lib
|
153
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 1.9.3
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
requirements: []
|
164
|
+
rubyforge_project:
|
165
|
+
rubygems_version: 2.7.6
|
166
|
+
signing_key:
|
167
|
+
specification_version: 4
|
168
|
+
summary: Custom logging for VidaZing.
|
169
|
+
test_files: []
|