rails_development_tools 0.1.4 → 0.1.5

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
- SHA256:
3
- metadata.gz: f92bfbfcf84c80ce89d54f591adec640620525f9db5ee8f3e646c87aefd85622
4
- data.tar.gz: 3f75d17396e318207da8537884723e9bd827cfa065cf730bee0e814bd3f6e924
2
+ SHA1:
3
+ metadata.gz: f3064eeba83d87c9fb5fabc9aacbb6856c202bcf
4
+ data.tar.gz: 1314eaf4d40fbc34f4fd1e060a84dc02f972b1dc
5
5
  SHA512:
6
- metadata.gz: 7d076b3b268b3f0ae451d57e6d43bc8d81046a471a75f623160b2114150b5e76f053fdb98a0955ee1364aa5d36ba2f25f56546500febb958bcb0c128f6c96b4f
7
- data.tar.gz: fa8779717221ba6bca56c2471e79fcf9a701572954a3617e834720b0be2ca45f78c085619cab30e22a8f3c28def12688f4893c1e08bed43f667d53da6c82cac4
6
+ metadata.gz: 1871e4383ac7c53335a21b3c0fd9733a0482df87f412598e4ce535803bb1e4ad820d97502a3cc6abe0ca26c07d3b7244fb92d112ea09f3500098352c28ea7b84
7
+ data.tar.gz: af3c5cce9d512ef5a6cad4997722a3d908034cd387df4ee6784f120a2b16588f9ed4560b41d1fcaa2c10ea9a6b2c7d1dde92f0f4ac69f3ea7347175b260cbdd3
data/README.md CHANGED
@@ -1,9 +1,24 @@
1
1
  # RailsDevelopmentTools
2
- This gem is .
2
+ This gem is a set of tools that could speed up development of a Rails application.
3
+ These tools give you an insight of some of the main aspects of your application. All this wihout changing context directly in the browser.
4
+
5
+
3
6
 
4
7
  ## Usage
5
8
  The gem has 3 main feature: routing info, partials info and messages.
6
9
 
10
+ ROUTING INFO
11
+ 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
+ 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
+ ie. '/prices_computer' is routed to action 'search_by_category' in the 'product_controller'.
14
+
15
+ PARTIALS INFO
16
+ The partials info shows you the an overview of the partials file involved in the creation of the entire page.
17
+
18
+ MESSAGES
19
+ This is used to avoid the need to open (ie. 'tail -f development.log') the .log file to see what's going on.
20
+ You can set custom messages and see them directly on the screen.
21
+
7
22
  ## Installation
8
23
  Add this line to your application's Gemfile:
9
24
 
@@ -20,12 +35,33 @@ Or install it yourself as:
20
35
  ```bash
21
36
  $ gem install rails_development_tools
22
37
  ```
23
- Add 'helper RailsDevelopmentTools::ApplicationHelper' and 'include RailsDevelopmentTools' into the 'ApplicationController' of your application.
24
38
 
25
- In the 'application.html.erb' add '<%= rails_development_tools_panel %>'. This is where the main panel is shown. This partial include the javascripts.
39
+ ## Changes in your application
40
+
41
+ Some little changes are required to make the tools available. The correct javacript should be loaded and the main panel has to be added
42
+ to the main layout.
26
43
 
27
- ## Contributing
28
- Contribution directions go here.
44
+ ### - application_controller.rb
45
+ Add the following lines to include the custom helpers and classes.
46
+ ```ruby
47
+ class ApplicationController < ActionController::Base
48
+ helper RailsDevelopmentTools::ApplicationHelper
49
+ include RailsDevelopmentTools
50
+ # ...
51
+ end
52
+ ```
53
+ ### - application.html.erb
54
+ To include the main panel to all of your pages add the following line. This helper load a partial that loads the javascript.
55
+ ```ruby
56
+ <%= rails_development_tools_panel %>
57
+ ```
58
+
59
+ ### - assets.rb
60
+ To make the javascripts available for loading include these lines:
61
+ ```ruby
62
+ rails_development_tools/rails_development_tools.js
63
+ rails_development_tools/rails_development_tools_status.js
64
+ ```
29
65
 
30
66
  ## License
31
67
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -9,11 +9,8 @@
9
9
  </div>
10
10
  </div>
11
11
 
12
- <% content_for :js do %>
13
- <%= javascript_include_tag 'rails_development_tools/rails_development_tools_status' %>
14
- <%= javascript_include_tag 'rails_development_tools/rails_development_tools' %>
15
-
16
- <% end %>
12
+ <%= javascript_include_tag 'rails_development_tools/rails_development_tools_status' %>
13
+ <%= javascript_include_tag 'rails_development_tools/rails_development_tools' %>
17
14
 
18
15
  <!-- style for panel -->
19
16
  <style>
@@ -1,3 +1,3 @@
1
1
  module RailsDevelopmentTools
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
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
4
+ version: 0.1.5
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-02-14 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.7.3
88
+ rubygems_version: 2.6.14
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Tools to speed up Rails applications development