debug-extras 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +25 -7
- data/debug-extras.gemspec +2 -2
- data/lib/debug_extras/templates/styles.html +6 -0
- data/lib/debug_extras/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efd3403b20978559405fb093bda6f49a72db8b37053e3923a83609a0c6ac6c1d
|
4
|
+
data.tar.gz: bd0687c28074f62cd4127a5803e3f1774e172f57864a09f15f15396558aeb906
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 682e9b91e7b3a3d3266a06885c0f0d04265a591ba547312a248aed345287fc4eaf0fc1988a62a348c441f697ae56ac03f6a170efa6ca55b77ae89f8f24650858
|
7
|
+
data.tar.gz: '084b6fd3e018f00b2ac470d8f98943b873775587cd3c2f0a2302cbb105e028ac1f0e5a2898d75293b82ab0ea6819ad303d2e196e12b190b02a8f434bcd6704b3'
|
data/README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
# DebugExtras
|
2
2
|
[](https://rubygems.org/gems/debug-extras) [](https://travis-ci.org/vavgustov/debug-extras) [](https://codeclimate.com/github/vavgustov/debug-extras/maintainability) [](https://codeclimate.com/github/vavgustov/debug-extras/test_coverage)
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
> Note: README actual for master branch.
|
4
|
+
Helper methods for Ruby on Rails applications debugging. [Screenshots](https://github.com/vavgustov/debug-extras#usage).
|
7
5
|
|
8
6
|
## Table of Contents
|
9
7
|
- [Features](#features)
|
@@ -12,14 +10,14 @@ Extras for Ruby on Rails debugging. [Screenshots](https://github.com/vavgustov/d
|
|
12
10
|
- [#dd](#dd)
|
13
11
|
- [#wp](#wp)
|
14
12
|
- [#dump](#dump)
|
15
|
-
- [Styling](#styling)
|
13
|
+
- [Styling](#styling)
|
16
14
|
- [License](#license)
|
17
15
|
|
18
16
|
## Features
|
19
17
|
* `dd <variable>` at any `app/` place. Inspired by `dd` function from
|
20
18
|
[Laravel](https://laravel.com/).
|
21
19
|
|
22
|
-
* `wp <variable>` at any `app/` place. Inspired by classic PHP 'print'
|
20
|
+
* `wp <variable>` at any `app/` place. Inspired by classic PHP 'print' debug.
|
23
21
|
It works for HTML pages and bypass other content types like `application/json`.
|
24
22
|
|
25
23
|
* `dump <variable>` at your views. It's alternative for `debug` method from
|
@@ -72,8 +70,28 @@ Call `dump` from views:
|
|
72
70
|

|
73
71
|
|
74
72
|
## Styling
|
75
|
-
|
76
|
-
|
73
|
+
|
74
|
+
DebugExtras inject default CSS to the page on methods call. You can override styles and
|
75
|
+
set your fonts, margins, etc using `.debug-extras` wrapper. Just look to the page sources to see
|
76
|
+
them at the end of head section.
|
77
|
+
|
78
|
+
Example how to override default fonts in your stylesheet:
|
79
|
+
```css
|
80
|
+
.debug-extras pre,
|
81
|
+
.debug-extras kbd {
|
82
|
+
font-family: Consolas, SFMono-Regular, Menlo, Monaco, Ubuntu, monospace !important;
|
83
|
+
font-size: 14px !important;
|
84
|
+
line-height: 18px !important;
|
85
|
+
}
|
86
|
+
```
|
87
|
+
or may be you want to use `pre-wrap` rendering:
|
88
|
+
```css
|
89
|
+
.debug-extras pre {
|
90
|
+
white-space: pre-wrap !important;
|
91
|
+
}
|
92
|
+
```
|
93
|
+
>Note: if #wp and #dump results look different compare to the screenshots above then default
|
94
|
+
styles were overridden by yours.
|
77
95
|
|
78
96
|
## License
|
79
97
|
|
data/debug-extras.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Vladimir Avgustov"]
|
10
10
|
spec.email = ["vavgustov@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = "Extras for
|
13
|
-
spec.description = "
|
12
|
+
spec.summary = "Extras for Ruby on Rails applications debugging."
|
13
|
+
spec.description = "Helper methods for Ruby on Rails application debugging."
|
14
14
|
spec.homepage = "https://github.com/vavgustov/debug-extras"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -3,6 +3,7 @@
|
|
3
3
|
.debug-extras pre {
|
4
4
|
padding: 10px;
|
5
5
|
text-align: left;
|
6
|
+
white-space: pre;
|
6
7
|
}
|
7
8
|
|
8
9
|
.debug-extras kbd {
|
@@ -21,6 +22,11 @@
|
|
21
22
|
margin: 0;
|
22
23
|
}
|
23
24
|
|
25
|
+
.debug-extras.debug-wp {
|
26
|
+
position: relative;
|
27
|
+
z-index: 9999;
|
28
|
+
}
|
29
|
+
|
24
30
|
.debug-extras.debug-dump {
|
25
31
|
background: #f5f8fa;
|
26
32
|
border: 1px solid #ccc;
|
data/lib/debug_extras/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debug-extras
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Avgustov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0.15'
|
109
|
-
description:
|
109
|
+
description: Helper methods for Ruby on Rails application debugging.
|
110
110
|
email:
|
111
111
|
- vavgustov@gmail.com
|
112
112
|
executables: []
|
@@ -158,5 +158,5 @@ rubyforge_project:
|
|
158
158
|
rubygems_version: 2.7.3
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
|
-
summary: Extras for
|
161
|
+
summary: Extras for Ruby on Rails applications debugging.
|
162
162
|
test_files: []
|