delogger 0.3.0.alpha1 → 0.3.0.alpha2

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: dba07624ea89cafdd1db84f72c879abaf0472637
4
- data.tar.gz: 13cb174e168c085a6c420bb09e16eeae6dbfb9a8
3
+ metadata.gz: 2772a74e4b98f748a8eea9b0111ccd8cf8de6ea6
4
+ data.tar.gz: 2b6d4c33da21cb6634debe5ae076c88fb9252171
5
5
  SHA512:
6
- metadata.gz: 9d385a1820dde27ffc7a3159f3340710113e3073873ace763b7fcd0cbdb4fe83f15d9bd7f62363cf3d15c3cd0c173a2f13bb00045d7c2a98818fbf88a878ac87
7
- data.tar.gz: 40770d16bd88cf05751bdb07be79d9896014979b5a0fcbeed41a127da79a63aaaf15f6de735399695efc8ca1a46c3970990f6a16161e5b96520af3a6802b566c
6
+ metadata.gz: 2cbc27a273ed6c5251a15646085dcdca02655e9ab8fdd6546caddbeb8bf7ceb316d9bca3a60b5c21794a9f9718e3951039d34246889b5c967a95ee00fb32e4e2
7
+ data.tar.gz: 3bfce17107d90729aeaf6bee941213f514ed831ac0b703fba46e85975d42dca19a6cee5d71cd236a9fb45561dead506b011f187780636e4930561a1082ea0555
@@ -0,0 +1,6 @@
1
+ require "delogger/rails/engine"
2
+
3
+ module DeLogger
4
+ module Rails
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module DeLogger
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ module DeLogger
2
+ VERSION = "0.3.0.alpha2"
3
+ end
@@ -0,0 +1 @@
1
+ (function(){var t=[].slice;this.DeLogger=function(){function n(t){var n,e;null==t&&(t={}),n=t.disabled||!1,e=null==t.formatStrings||t.formatStrings,this.settings={disabled:n,formatStrings:e}}var e,r,o;return n.prototype.log=function(){return this.print.apply(this,["log"].concat(t.call(arguments)))},n.prototype.info=function(){return this.print.apply(this,["info"].concat(t.call(arguments)))},n.prototype.debug=function(){return this.print.apply(this,["debug"].concat(t.call(arguments)))},n.prototype.warn=function(){return this.print.apply(this,["warn"].concat(t.call(arguments)))},n.prototype.error=function(){return this.print.apply(this,["error"].concat(t.call(arguments)))},n.prototype.enable=function(){return localStorage.setItem("deloggerEnabled",!0)},n.prototype.disable=function(){return localStorage.removeItem("deloggerEnabled")},n.prototype.print=function(){var n,e,o,l,i,a,c,p,s,u,g;if(a=arguments[0],e=2<=arguments.length?t.call(arguments,1):[],this.canPrint()){for(g="",u=[],o=0,l=0,i=e.length;l<i&&(n=e[l],"string"==typeof n&&this.settings.formatStrings);l++)c=r(n),p=c[0],s=c[1],g+=p,u.push.apply(u,s),o+=1;return e.splice(0,o),console[a].apply(console,[g].concat(t.call(u),t.call(e)))}},n.prototype.canPrint=function(){return!this.settings.disabled&&null!=localStorage.deloggerEnabled},r=function(t){var n,r,o;for(n=[],o=/\(([^\(\)]+)\)(\.[\.\w]+)/;r=t.match(o);)n.push(e(r[2].split(".").join(" "))),n.push(e("default")),t=t.replace(o,"%c"+r[1]+"%c");return[t,n]},e=function(t){var n,e,r,l;return e=document.createElement("div"),e.id="delogger",e.className=t,e.style="display: none;",document.getElementsByTagName("body")[0].appendChild(e),n=getComputedStyle(e),l=function(){var t,e,l;for(l=[],t=0,e=o.length;t<e;t++)r=o[t],l.push(r+":"+n.getPropertyValue(r));return l}().join(";"),e.parentNode.removeChild(e),l},o=["margin-right","color","background-color","border-radius","padding","font-weight","font-style"],n}()}).call(this);
@@ -0,0 +1,68 @@
1
+ #delogger {
2
+ color: black;
3
+ background-color: transparent;
4
+ border-radius: 0;
5
+ padding: 0;
6
+ margin-left: 0;
7
+ font-weight: normal;
8
+ font-style: normal;
9
+ margin-left: 3px; }
10
+ #delogger.badge {
11
+ color: white;
12
+ background-color: black;
13
+ border-radius: 9px;
14
+ padding: 1px 5px; }
15
+ #delogger.badge.blue {
16
+ color: white;
17
+ background-color: blue; }
18
+ #delogger.badge.orange {
19
+ color: white;
20
+ background-color: orange; }
21
+ #delogger.badge.red {
22
+ color: white;
23
+ background-color: red; }
24
+ #delogger.badge.green {
25
+ color: white;
26
+ background-color: green; }
27
+ #delogger.badge.cyan {
28
+ color: gray;
29
+ background-color: cyan; }
30
+ #delogger.badge.yellow {
31
+ color: gray;
32
+ background-color: yellow; }
33
+ #delogger.badge.gray {
34
+ color: white;
35
+ background-color: gray; }
36
+ #delogger.badge.brown {
37
+ color: white;
38
+ background-color: brown; }
39
+ #delogger.badge.purple {
40
+ color: white;
41
+ background-color: purple; }
42
+ #delogger.badge.pink {
43
+ color: gray;
44
+ background-color: pink; }
45
+ #delogger.blue {
46
+ color: blue; }
47
+ #delogger.orange {
48
+ color: orange; }
49
+ #delogger.red {
50
+ color: red; }
51
+ #delogger.green {
52
+ color: green; }
53
+ #delogger.cyan {
54
+ color: cyan; }
55
+ #delogger.yellow {
56
+ color: yellow; }
57
+ #delogger.gray {
58
+ color: gray; }
59
+ #delogger.brown {
60
+ color: brown; }
61
+ #delogger.purple {
62
+ color: purple; }
63
+ #delogger.pink {
64
+ color: pink; }
65
+ #delogger.bold {
66
+ font-weight: bold; }
67
+ #delogger.italic {
68
+ font-style: italic; }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delogger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.alpha1
4
+ version: 0.3.0.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Komarov
@@ -92,6 +92,11 @@ files:
92
92
  - LICENSE.txt
93
93
  - README.md
94
94
  - lib/delogger.rb
95
+ - lib/delogger/rails.rb
96
+ - lib/delogger/rails/engine.rb
97
+ - lib/delogger/version.rb
98
+ - vendor/assets/javascripts/delogger.js
99
+ - vendor/assets/stylesheets/delogger.css
95
100
  homepage: https://github.com/akxcv/delogger
96
101
  licenses:
97
102
  - MIT