debug-extras 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: 47c7d5857ff588d85e3ba344e2aee47b70215c4f5a72b95e48126b64e5195640
4
- data.tar.gz: 454499099c76781bd703496790f64281de68ba5244660520012ff7f126f1d21c
3
+ metadata.gz: efd3403b20978559405fb093bda6f49a72db8b37053e3923a83609a0c6ac6c1d
4
+ data.tar.gz: bd0687c28074f62cd4127a5803e3f1774e172f57864a09f15f15396558aeb906
5
5
  SHA512:
6
- metadata.gz: c96945e47ae1372d61d8b5a6185bdba50bb09ff28d0b5cfe9b113e2b0aed558ed4fc3dc612a3acc74c88fc9d67717db66085eb6c14e8e814f8eeff552da090c3
7
- data.tar.gz: f828a05a023fbb690515e186e89d97fcbfc6822245ddba53185dc6ddb39184e48d3217549bd4e5bc3fcc7809336d46238dd5a7ade85a79137b07731e469bf265
6
+ metadata.gz: 682e9b91e7b3a3d3266a06885c0f0d04265a591ba547312a248aed345287fc4eaf0fc1988a62a348c441f697ae56ac03f6a170efa6ca55b77ae89f8f24650858
7
+ data.tar.gz: '084b6fd3e018f00b2ac470d8f98943b873775587cd3c2f0a2302cbb105e028ac1f0e5a2898d75293b82ab0ea6819ad303d2e196e12b190b02a8f434bcd6704b3'
data/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  # DebugExtras
2
2
  [![Gem](https://img.shields.io/gem/v/debug-extras.svg)](https://rubygems.org/gems/debug-extras) [![Build Status](https://img.shields.io/travis/vavgustov/debug-extras/master.svg)](https://travis-ci.org/vavgustov/debug-extras) [![Maintainability](https://api.codeclimate.com/v1/badges/63067512ae858df2a5b3/maintainability)](https://codeclimate.com/github/vavgustov/debug-extras/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/63067512ae858df2a5b3/test_coverage)](https://codeclimate.com/github/vavgustov/debug-extras/test_coverage)
3
3
 
4
- Extras for Ruby on Rails debugging. [Screenshots](https://github.com/vavgustov/debug-extras#usage).
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' debugging.
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
  ![image](https://user-images.githubusercontent.com/312873/35333799-26ffefba-0121-11e8-8021-a5faa62e6953.png)
73
71
 
74
72
  ## Styling
75
- DebugExtras inject CSS to the page on methods call. You can override styles and set your fonts,
76
- margins, etc using `.debug-extras` wrapper. Just look to page sources to get an idea.
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 rails debugging."
13
- spec.description = "Provide debug helper methods for ActionController::Base and ActionView::Base."
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;
@@ -1,3 +1,3 @@
1
1
  module DebugExtras
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-25 00:00:00.000000000 Z
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: Provide debug helper methods for ActionController::Base and ActionView::Base.
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 rails debugging.
161
+ summary: Extras for Ruby on Rails applications debugging.
162
162
  test_files: []