-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prepared version dump to next release 1.0.0a would not be launched immediately, but version should be bumped 1.0.0a would be affected by big back-incompatible changes in #9, so it would be a good time to increment majorest version. Hovewer, i'll increment it now to simplify Changelog usage. * Added Changelog.md * added doc:coverage task into rake default to check yard coverage * done * fixed bugs and updated json dependency for ruby 2.4 compatibility * update travis build matrix to actual supported versions * updated rubocop to 0.49
- Loading branch information
Showing
17 changed files
with
198 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ AllCops: | |
Exclude: | ||
- bin/**/* | ||
TargetRubyVersion: 2.3 | ||
|
||
Style/Documentation: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
sudo: false | ||
language: ruby | ||
rvm: | ||
- 2.3.1 | ||
- 2.3.4 | ||
- 2.4.1 | ||
before_install: gem install bundler -v 1.12.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Lamian version changes (since 0.1.0) | ||
|
||
Update this on a pull request, under Lamian::VERSION | ||
(also known as next version). If this constant would be changed without release, | ||
i'll update it here too | ||
|
||
## 1.0.0alpha | ||
|
||
Add your changes here | ||
|
||
|
||
## 0.3.3 | ||
|
||
* 8136689 fixed crashes when dump used outside lamian context | ||
|
||
|
||
## 0.3.2 | ||
|
||
* e57e6cec Changed rails dependency from ~> 4.2 to >= 4.2 | ||
|
||
|
||
## 0.3.1 | ||
|
||
* 34ca83b5 Fixed formatting | ||
|
||
Stabilized formatting api, which removes control sequences from loggers data. | ||
E.g. "[23mNice, lol[0m\n" becomes "Nice, lol\n" | ||
|
||
|
||
## 0.3.0 | ||
|
||
* d24f895b API update | ||
|
||
Updated API, so lamian is now forced to be used with block. | ||
It also simplified usage outside a middleware | ||
|
||
|
||
## 0.2.0 | ||
* 3166517e Added integrtation with rails | ||
|
||
Injected middleware before ExceptionNotification, so ExceptionNotification | ||
can use current log without any configuration. | ||
Also added some views | ||
|
||
|
||
## 0.1.0 | ||
* 62eb8685 Made test version to check it's integration with rails application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in lamian.gemspec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,49 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
require 'rubocop/rake_task' | ||
require 'yard' | ||
require 'pathname' | ||
require 'launchy' | ||
require 'uri' | ||
|
||
ROOT = Pathname.new(__FILE__).join('..') | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
RuboCop::RakeTask.new(:lint) | ||
|
||
task default: %i(lint spec) | ||
YARD::Rake::YardocTask.new(:doc) do |t| | ||
t.files = Dir[ROOT.join('lib/**/*.rb')] | ||
t.options = %w[--private] | ||
end | ||
|
||
def open_in_browser(path) | ||
Launchy.open(URI.join('file:///', path.to_s)) | ||
end | ||
|
||
namespace :doc do | ||
desc 'open doc' | ||
task open: :doc do | ||
open_in_browser ROOT.join('doc/frames.html') | ||
end | ||
|
||
desc 'checks doc coverage' | ||
task coverage: :doc do | ||
# ideally you've already generated the database to .load it | ||
# if not, have this task depend on the docs task. | ||
YARD::Registry.load | ||
objs = YARD::Registry.select do |o| | ||
puts "pending #{o}" if o.docstring =~ /TODO|FIXME|@pending/ | ||
o.docstring.blank? | ||
end | ||
|
||
next if objs.empty? | ||
puts 'No documentation found for:' | ||
objs.each { |x| puts "\t#{x}" } | ||
|
||
raise '100% document coverage required' | ||
end | ||
end | ||
|
||
task default: %i[lint doc:coverage spec] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module Lamian | ||
VERSION = '0.3.3' | ||
# Current lamian vewrsion | ||
# | ||
# format: 'a.b.c' with possible suffixes such as alpha | ||
# * a is for major version, it is guaranteed to be changed | ||
# if back-compatibility of public API is broken | ||
# * b is for minor version, it is guaranteed to be changed | ||
# on public API changes and also if private API | ||
# back-compatibility is broken | ||
# * c is for incremental version, it is updated in other cases | ||
# According to this, it is enought to specify '~> a.b' | ||
# if private API was not used and to specify '~> a.b.c' if it was | ||
|
||
VERSION = '1.0.0alpha' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/setup' | ||
require 'logger' | ||
require 'pry' | ||
|