rails_development_tools 0.1.7 → 0.1.8
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 +21 -4
- data/app/views/rails_development_tools/_panel.html.erb +2 -1
- data/lib/rails_development_tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b55924b9f164f6017c4b003d29af21fba72eb7e504460b5a6e58ae5caf28aa06
|
|
4
|
+
data.tar.gz: d3b7f7c0079578910352744701afe10a4c853f372da79a1ae8034088bf8b1477
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f40576b39c0888dd57b6cf50e7a595b63e88d880bee0765eeec8ca7bab90213c0b4f3dd36e18e2c84343698c8999ccf4a419db0b5d295eab2d07bb54e4e79d6d
|
|
7
|
+
data.tar.gz: 369385e8b787598a480d920828550e2647229c4c240429dce69b0935d2651b074a77b83c131088192f823ef119cf2d748f5ef478f4849347e11809ec5e4e27fa
|
data/README.md
CHANGED
|
@@ -7,18 +7,30 @@ These tools give you an insight of some of the main aspects of your application.
|
|
|
7
7
|
## Usage
|
|
8
8
|
The gem has 3 main feature: routing info, partials info and messages.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## Screenshots
|
|
11
|
+
Take a look of the 3 main features
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
### ROUTING INFO
|
|
11
15
|
The routing panel shows the current action name, controller name and layout. This is helpful to quickly focus on the controller's action of the
|
|
12
16
|
current page. Useful mainly in the case the RESTful rules are not fully applied and the controller/action couple is not easy guessing from the url
|
|
13
17
|
ie. '/prices_computer' is routed to action 'search_by_category' in the 'product_controller'.
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### PARTIALS INFO
|
|
16
23
|
The partials info shows you the an overview of the partials file involved in the creation of the entire page.
|
|
17
24
|
|
|
18
|
-
|
|
25
|
+

|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
### MESSAGES
|
|
19
29
|
This is used to avoid the need to open (ie. 'tail -f development.log') the .log file to see what's going on.
|
|
20
30
|
You can set custom messages and see them directly on the screen.
|
|
21
31
|
|
|
32
|
+

|
|
33
|
+
|
|
22
34
|
## Installation
|
|
23
35
|
Add this line to your application's Gemfile:
|
|
24
36
|
|
|
@@ -53,7 +65,7 @@ end
|
|
|
53
65
|
### - application.html.erb
|
|
54
66
|
To include the main panel to all of your pages add the following line. This helper load a partial that loads the javascript.
|
|
55
67
|
```ruby
|
|
56
|
-
<%=
|
|
68
|
+
<%= development_tools_panel %>
|
|
57
69
|
```
|
|
58
70
|
|
|
59
71
|
### - assets.rb
|
|
@@ -62,6 +74,11 @@ To make the javascripts available for loading include these lines:
|
|
|
62
74
|
rails_development_tools/rails_development_tools.js
|
|
63
75
|
rails_development_tools/rails_development_tools_status.js
|
|
64
76
|
```
|
|
77
|
+
### - application.js
|
|
78
|
+
Add the following line
|
|
79
|
+
```ruby
|
|
80
|
+
//= require js.cookie
|
|
81
|
+
```
|
|
65
82
|
|
|
66
83
|
## License
|
|
67
84
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
@@ -118,7 +118,6 @@
|
|
|
118
118
|
div#partials-container .single-partial {
|
|
119
119
|
font-family: Helvetica;
|
|
120
120
|
left: 20px;
|
|
121
|
-
width: 100%;
|
|
122
121
|
text-align: left;
|
|
123
122
|
font-size: 12px;
|
|
124
123
|
padding: 3px;
|
|
@@ -165,5 +164,7 @@
|
|
|
165
164
|
font-size: 16px;
|
|
166
165
|
font-weight: bold;
|
|
167
166
|
line-height: 0;
|
|
167
|
+
height:13px;
|
|
168
|
+
font-family: Helvetica;
|
|
168
169
|
}
|
|
169
170
|
</style>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_development_tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- michele-lavezzi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|