colorized_routes 0.1.0 → 0.1.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/.idea/colorized_routes.iml +3 -1
- data/.idea/workspace.xml +128 -65
- data/Gemfile.lock +22 -0
- data/README.md +1 -1
- data/colorized_routes-0.1.0.gem +0 -0
- data/lib/colorized_routes/rails/tasks/colorized_routes.rake +32 -27
- data/lib/colorized_routes/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2a8d73144c105e7aeacc5c345514d2fdd209b11
|
4
|
+
data.tar.gz: 759d09cdc7967c0d9de5f57ece7ef0cec1472e04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5b82f9c61b5948353c28b1390e40f4cc66703a30dbe54d7b3d66a49a8ac7f5487f2570e05551a378ee5b6ce1dddd941aeefd37af21dd42a17443029897b5063
|
7
|
+
data.tar.gz: 99129f0b28393ab42020af4d8c342a6b1d552a30475d5c6e9178b2a79ff20a693622ba173053213529ee3ea4da5779ed731a6ed8bdeabefe1b5d64f8d15768e4
|
data/.idea/colorized_routes.iml
CHANGED
@@ -11,7 +11,9 @@
|
|
11
11
|
</component>
|
12
12
|
<component name="NewModuleRootManager">
|
13
13
|
<content url="file://$MODULE_DIR$" />
|
14
|
-
<orderEntry type="
|
14
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.2.2" jdkType="RUBY_SDK" />
|
15
15
|
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.4, RVM: ruby-2.2.2) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="colorize (v0.7.7, RVM: ruby-2.2.2) [gem]" level="application" />
|
16
18
|
</component>
|
17
19
|
</module>
|
data/.idea/workspace.xml
CHANGED
@@ -2,18 +2,10 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="a9b6e393-f803-42e0-97f3-9fbcb5028dc2" name="Default" comment="">
|
5
|
-
<change type="
|
6
|
-
<change type="
|
7
|
-
<change type="
|
8
|
-
<change type="
|
9
|
-
<change type="DELETED" beforePath="$PROJECT_DIR$/lib/color_routes.rb" afterPath="" />
|
10
|
-
<change type="DELETED" beforePath="$PROJECT_DIR$/lib/color_routes/rails/tasks/color_routes.rake" afterPath="" />
|
11
|
-
<change type="DELETED" beforePath="$PROJECT_DIR$/lib/color_routes/railtie.rb" afterPath="" />
|
12
|
-
<change type="DELETED" beforePath="$PROJECT_DIR$/lib/color_routes/version.rb" afterPath="" />
|
13
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.rvmrc" afterPath="$PROJECT_DIR$/.rvmrc" />
|
14
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
15
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
|
16
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/console" afterPath="$PROJECT_DIR$/bin/console" />
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/colorized_routes.iml" afterPath="$PROJECT_DIR$/.idea/colorized_routes.iml" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake" afterPath="$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake" />
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/colorized_routes/version.rb" afterPath="$PROJECT_DIR$/lib/colorized_routes/version.rb" />
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
17
9
|
</list>
|
18
10
|
<ignored path="colorized_routes.iws" />
|
19
11
|
<ignored path=".idea/workspace.xml" />
|
@@ -32,15 +24,16 @@
|
|
32
24
|
<component name="DaemonCodeAnalyzer">
|
33
25
|
<disable_hints />
|
34
26
|
</component>
|
27
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
35
28
|
<component name="FavoritesManager">
|
36
29
|
<favorites_list name="colorized_routes" />
|
37
30
|
</component>
|
38
31
|
<component name="FileEditorManager">
|
39
32
|
<leaf>
|
40
|
-
<file leaf-file-name="colorized_routes.rb" pinned="false" current-in-tab="
|
33
|
+
<file leaf-file-name="colorized_routes.rb" pinned="false" current-in-tab="false">
|
41
34
|
<entry file="file://$PROJECT_DIR$/lib/colorized_routes.rb">
|
42
35
|
<provider selected="true" editor-type-id="text-editor">
|
43
|
-
<state vertical-scroll-proportion="0.
|
36
|
+
<state vertical-scroll-proportion="-0.6" vertical-offset="0" max-vertical-offset="210">
|
44
37
|
<caret line="1" column="25" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="25" />
|
45
38
|
<folding />
|
46
39
|
</state>
|
@@ -50,8 +43,8 @@
|
|
50
43
|
<file leaf-file-name="colorized_routes.rake" pinned="false" current-in-tab="false">
|
51
44
|
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake">
|
52
45
|
<provider selected="true" editor-type-id="text-editor">
|
53
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
54
|
-
<caret line="
|
46
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="825">
|
47
|
+
<caret line="3" column="20" selection-start-line="3" selection-start-column="20" selection-end-line="3" selection-end-column="20" />
|
55
48
|
<folding />
|
56
49
|
</state>
|
57
50
|
</provider>
|
@@ -60,17 +53,17 @@
|
|
60
53
|
<file leaf-file-name="railtie.rb" pinned="false" current-in-tab="false">
|
61
54
|
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/railtie.rb">
|
62
55
|
<provider selected="true" editor-type-id="text-editor">
|
63
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
56
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="225">
|
64
57
|
<caret line="5" column="18" selection-start-line="5" selection-start-column="18" selection-end-line="5" selection-end-column="18" />
|
65
58
|
<folding />
|
66
59
|
</state>
|
67
60
|
</provider>
|
68
61
|
</entry>
|
69
62
|
</file>
|
70
|
-
<file leaf-file-name="version.rb" pinned="false" current-in-tab="
|
63
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
71
64
|
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/version.rb">
|
72
65
|
<provider selected="true" editor-type-id="text-editor">
|
73
|
-
<state vertical-scroll-proportion="0.
|
66
|
+
<state vertical-scroll-proportion="0.011398177" vertical-offset="0" max-vertical-offset="1316">
|
74
67
|
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
75
68
|
<folding />
|
76
69
|
</state>
|
@@ -80,7 +73,7 @@
|
|
80
73
|
<file leaf-file-name=".rvmrc" pinned="false" current-in-tab="false">
|
81
74
|
<entry file="file://$PROJECT_DIR$/.rvmrc">
|
82
75
|
<provider selected="true" editor-type-id="text-editor">
|
83
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
76
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="780">
|
84
77
|
<caret line="8" column="27" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
|
85
78
|
<folding />
|
86
79
|
</state>
|
@@ -90,7 +83,7 @@
|
|
90
83
|
<file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
|
91
84
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
92
85
|
<provider selected="true" editor-type-id="text-editor">
|
93
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
86
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="30" max-vertical-offset="150">
|
94
87
|
<caret line="2" column="37" selection-start-line="2" selection-start-column="37" selection-end-line="2" selection-end-column="37" />
|
95
88
|
<folding />
|
96
89
|
</state>
|
@@ -100,7 +93,7 @@
|
|
100
93
|
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
101
94
|
<entry file="file://$PROJECT_DIR$/README.md">
|
102
95
|
<provider selected="true" editor-type-id="text-editor">
|
103
|
-
<state vertical-scroll-proportion="
|
96
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="675">
|
104
97
|
<caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
105
98
|
<folding />
|
106
99
|
</state>
|
@@ -110,7 +103,7 @@
|
|
110
103
|
<file leaf-file-name="console" pinned="false" current-in-tab="false">
|
111
104
|
<entry file="file://$PROJECT_DIR$/bin/console">
|
112
105
|
<provider selected="true" editor-type-id="text-editor">
|
113
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
106
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="45" max-vertical-offset="300">
|
114
107
|
<caret line="3" column="9" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="9" />
|
115
108
|
<folding />
|
116
109
|
</state>
|
@@ -120,7 +113,7 @@
|
|
120
113
|
<file leaf-file-name="colorized_routes.gemspec" pinned="false" current-in-tab="false">
|
121
114
|
<entry file="file://$PROJECT_DIR$/colorized_routes.gemspec">
|
122
115
|
<provider selected="true" editor-type-id="text-editor">
|
123
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
116
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="510">
|
124
117
|
<caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
|
125
118
|
<folding />
|
126
119
|
</state>
|
@@ -139,11 +132,11 @@
|
|
139
132
|
<option value="$PROJECT_DIR$/Gemfile" />
|
140
133
|
<option value="$PROJECT_DIR$/bin/console" />
|
141
134
|
<option value="$PROJECT_DIR$/lib/colorized_routes.rb" />
|
142
|
-
<option value="$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake" />
|
143
|
-
<option value="$PROJECT_DIR$/lib/colorized_routes/version.rb" />
|
144
135
|
<option value="$PROJECT_DIR$/README.md" />
|
145
136
|
<option value="$PROJECT_DIR$/colorized_routes.gemspec" />
|
146
137
|
<option value="$PROJECT_DIR$/lib/colorized_routes/railtie.rb" />
|
138
|
+
<option value="$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake" />
|
139
|
+
<option value="$PROJECT_DIR$/lib/colorized_routes/version.rb" />
|
147
140
|
</list>
|
148
141
|
</option>
|
149
142
|
</component>
|
@@ -151,9 +144,8 @@
|
|
151
144
|
<detection-done>true</detection-done>
|
152
145
|
</component>
|
153
146
|
<component name="ProjectFrameBounds">
|
154
|
-
<option name="
|
155
|
-
<option name="
|
156
|
-
<option name="height" value="873" />
|
147
|
+
<option name="width" value="2560" />
|
148
|
+
<option name="height" value="1440" />
|
157
149
|
</component>
|
158
150
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
159
151
|
<OptionsSetting value="true" id="Add" />
|
@@ -276,19 +268,12 @@
|
|
276
268
|
<component name="PropertiesComponent">
|
277
269
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
278
270
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
271
|
+
<property name="FullScreen" value="true" />
|
272
|
+
<property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
273
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
274
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
279
275
|
</component>
|
280
276
|
<component name="RunManager">
|
281
|
-
<configuration default="true" type="BashConfigurationType" factoryName="Bash">
|
282
|
-
<option name="INTERPRETER_OPTIONS" value="" />
|
283
|
-
<option name="INTERPRETER_PATH" value="/bin/bash" />
|
284
|
-
<option name="WORKING_DIRECTORY" value="" />
|
285
|
-
<option name="PARENT_ENVS" value="true" />
|
286
|
-
<option name="SCRIPT_NAME" value="" />
|
287
|
-
<option name="PARAMETERS" value="" />
|
288
|
-
<module name="" />
|
289
|
-
<envs />
|
290
|
-
<method />
|
291
|
-
</configuration>
|
292
277
|
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
293
278
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
294
279
|
<module name="" />
|
@@ -373,6 +358,12 @@
|
|
373
358
|
<method />
|
374
359
|
</configuration>
|
375
360
|
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
361
|
+
<node-options />
|
362
|
+
<gulpfile />
|
363
|
+
<tasks />
|
364
|
+
<arguments />
|
365
|
+
<pass-parent-envs>true</pass-parent-envs>
|
366
|
+
<envs />
|
376
367
|
<method />
|
377
368
|
</configuration>
|
378
369
|
<list size="0" />
|
@@ -388,29 +379,29 @@
|
|
388
379
|
<servers />
|
389
380
|
</component>
|
390
381
|
<component name="ToolWindowManager">
|
391
|
-
<frame x="0" y="
|
382
|
+
<frame x="0" y="0" width="2560" height="1440" extended-state="6" />
|
392
383
|
<editor active="true" />
|
393
384
|
<layout>
|
394
|
-
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
385
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
386
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.1624305" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
395
387
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
396
|
-
<window_info id="
|
397
|
-
<window_info id="
|
398
|
-
<window_info id="
|
399
|
-
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
400
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
401
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
402
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
403
|
-
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
404
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32891566" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
388
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
389
|
+
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
390
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
391
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
405
392
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
406
|
-
<window_info id="
|
407
|
-
<window_info id="
|
393
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
394
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
408
395
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
409
|
-
<window_info id="
|
396
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32891566" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
410
397
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
411
398
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
412
399
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
400
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
401
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
402
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32891566" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
413
403
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
404
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
414
405
|
</layout>
|
415
406
|
</component>
|
416
407
|
<component name="Vcs.Log.UiProperties">
|
@@ -434,9 +425,41 @@
|
|
434
425
|
<watches-manager />
|
435
426
|
</component>
|
436
427
|
<component name="editorHistoryManager">
|
428
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes.rb">
|
429
|
+
<provider selected="true" editor-type-id="text-editor">
|
430
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="100">
|
431
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
432
|
+
<folding />
|
433
|
+
</state>
|
434
|
+
</provider>
|
435
|
+
</entry>
|
436
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake">
|
437
|
+
<provider selected="true" editor-type-id="text-editor">
|
438
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="30" max-vertical-offset="750">
|
439
|
+
<caret line="2" column="6" selection-start-line="2" selection-start-column="6" selection-end-line="2" selection-end-column="6" />
|
440
|
+
<folding />
|
441
|
+
</state>
|
442
|
+
</provider>
|
443
|
+
</entry>
|
444
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/railtie.rb">
|
445
|
+
<provider selected="true" editor-type-id="text-editor">
|
446
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="225">
|
447
|
+
<caret line="5" column="18" selection-start-line="5" selection-start-column="18" selection-end-line="5" selection-end-column="18" />
|
448
|
+
<folding />
|
449
|
+
</state>
|
450
|
+
</provider>
|
451
|
+
</entry>
|
452
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/version.rb">
|
453
|
+
<provider selected="true" editor-type-id="text-editor">
|
454
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="15" max-vertical-offset="135">
|
455
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
456
|
+
<folding />
|
457
|
+
</state>
|
458
|
+
</provider>
|
459
|
+
</entry>
|
437
460
|
<entry file="file://$PROJECT_DIR$/.rvmrc">
|
438
461
|
<provider selected="true" editor-type-id="text-editor">
|
439
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
462
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="780">
|
440
463
|
<caret line="8" column="27" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
|
441
464
|
<folding />
|
442
465
|
</state>
|
@@ -444,39 +467,63 @@
|
|
444
467
|
</entry>
|
445
468
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
446
469
|
<provider selected="true" editor-type-id="text-editor">
|
447
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
470
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="30" max-vertical-offset="150">
|
448
471
|
<caret line="2" column="37" selection-start-line="2" selection-start-column="37" selection-end-line="2" selection-end-column="37" />
|
449
472
|
<folding />
|
450
473
|
</state>
|
451
474
|
</provider>
|
452
475
|
</entry>
|
476
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
477
|
+
<provider selected="true" editor-type-id="text-editor">
|
478
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="675">
|
479
|
+
<caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
480
|
+
<folding />
|
481
|
+
</state>
|
482
|
+
</provider>
|
483
|
+
</entry>
|
453
484
|
<entry file="file://$PROJECT_DIR$/bin/console">
|
454
485
|
<provider selected="true" editor-type-id="text-editor">
|
455
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
486
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="45" max-vertical-offset="300">
|
456
487
|
<caret line="3" column="9" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="9" />
|
457
488
|
<folding />
|
458
489
|
</state>
|
459
490
|
</provider>
|
460
491
|
</entry>
|
461
|
-
<entry file="file://$PROJECT_DIR$/
|
492
|
+
<entry file="file://$PROJECT_DIR$/colorized_routes.gemspec">
|
462
493
|
<provider selected="true" editor-type-id="text-editor">
|
463
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
464
|
-
<caret line="
|
494
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="105" max-vertical-offset="510">
|
495
|
+
<caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
|
465
496
|
<folding />
|
466
497
|
</state>
|
467
498
|
</provider>
|
468
499
|
</entry>
|
469
|
-
<entry file="file://$PROJECT_DIR
|
500
|
+
<entry file="file://$PROJECT_DIR$/.rvmrc">
|
470
501
|
<provider selected="true" editor-type-id="text-editor">
|
471
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
472
|
-
<caret line="
|
502
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="780">
|
503
|
+
<caret line="8" column="27" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
|
504
|
+
<folding />
|
505
|
+
</state>
|
506
|
+
</provider>
|
507
|
+
</entry>
|
508
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
509
|
+
<provider selected="true" editor-type-id="text-editor">
|
510
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
511
|
+
<caret line="2" column="37" selection-start-line="2" selection-start-column="37" selection-end-line="2" selection-end-column="37" />
|
512
|
+
<folding />
|
513
|
+
</state>
|
514
|
+
</provider>
|
515
|
+
</entry>
|
516
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
517
|
+
<provider selected="true" editor-type-id="text-editor">
|
518
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="300">
|
519
|
+
<caret line="3" column="9" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="9" />
|
473
520
|
<folding />
|
474
521
|
</state>
|
475
522
|
</provider>
|
476
523
|
</entry>
|
477
524
|
<entry file="file://$PROJECT_DIR$/README.md">
|
478
525
|
<provider selected="true" editor-type-id="text-editor">
|
479
|
-
<state vertical-scroll-proportion="
|
526
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="75" max-vertical-offset="675">
|
480
527
|
<caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
481
528
|
<folding />
|
482
529
|
</state>
|
@@ -500,11 +547,27 @@
|
|
500
547
|
</entry>
|
501
548
|
<entry file="file://$PROJECT_DIR$/lib/colorized_routes.rb">
|
502
549
|
<provider selected="true" editor-type-id="text-editor">
|
503
|
-
<state vertical-scroll-proportion="0.
|
550
|
+
<state vertical-scroll-proportion="-0.6" vertical-offset="0" max-vertical-offset="210">
|
504
551
|
<caret line="1" column="25" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="25" />
|
505
552
|
<folding />
|
506
553
|
</state>
|
507
554
|
</provider>
|
508
555
|
</entry>
|
556
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake">
|
557
|
+
<provider selected="true" editor-type-id="text-editor">
|
558
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="825">
|
559
|
+
<caret line="3" column="20" selection-start-line="3" selection-start-column="20" selection-end-line="3" selection-end-column="20" />
|
560
|
+
<folding />
|
561
|
+
</state>
|
562
|
+
</provider>
|
563
|
+
</entry>
|
564
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/version.rb">
|
565
|
+
<provider selected="true" editor-type-id="text-editor">
|
566
|
+
<state vertical-scroll-proportion="0.011398177" vertical-offset="0" max-vertical-offset="1316">
|
567
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
568
|
+
<folding />
|
569
|
+
</state>
|
570
|
+
</provider>
|
571
|
+
</entry>
|
509
572
|
</component>
|
510
573
|
</project>
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
colorized_routes (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
colorize (0.7.7)
|
10
|
+
rake (10.4.2)
|
11
|
+
|
12
|
+
PLATFORMS
|
13
|
+
ruby
|
14
|
+
|
15
|
+
DEPENDENCIES
|
16
|
+
bundler (~> 1.10)
|
17
|
+
colorize (~> 0.7)
|
18
|
+
colorized_routes!
|
19
|
+
rake (~> 10.0)
|
20
|
+
|
21
|
+
BUNDLED WITH
|
22
|
+
1.10.4
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
ColorizedRoutes
|
2
2
|
===========
|
3
|
-
|
3
|
+
[](http://badge.fury.io/rb/colorized_routes)
|
4
4
|
# DESCRIPTION
|
5
5
|
|
6
6
|
ColorizedRoutes is just a little library bundled with the necessary code to turn the output of the rake routes command from the usable but dull white and black screen to something more vivid and, more important, readable.
|
Binary file
|
@@ -1,44 +1,49 @@
|
|
1
1
|
desc 'Makes routes a little more pretty.'
|
2
2
|
|
3
|
-
task :
|
4
|
-
|
3
|
+
task :routes do
|
4
|
+
Rake::Task['routes'].clear
|
5
5
|
Rails.application.reload_routes!
|
6
6
|
all_routes = Rails.application.routes.routes.to_a
|
7
7
|
all_routes.reject! { |route| route.verb.nil? || route.path.spec.to_s == '/assets' }
|
8
8
|
all_routes.select! { |route| ENV['CONTROLLER'].nil? || route.defaults[:controller].to_s == ENV['CONTROLLER'] }
|
9
9
|
|
10
10
|
max_widths = {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
names: (all_routes.map { |route| route.name.to_s.length }.max),
|
12
|
+
verbs: (6),
|
13
|
+
paths: (all_routes.map { |route| route.path.spec.to_s.rstrip.length }.max),
|
14
|
+
controllers: (all_routes.map { |route| route.defaults[:controller].to_s.length }.max),
|
15
|
+
actions: (all_routes.map { |route| route.defaults[:action].to_s.length }.max)
|
16
16
|
}
|
17
17
|
puts "#{max_widths.inspect}".yellow
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
print " | ".light_white
|
19
|
+
all_routes.group_by {|route| route.defaults[:controller]}.each_value do |group|
|
20
|
+
print "Controller: ".light_white
|
21
|
+
puts "#{group.first.defaults[:controller].to_s}".cyan
|
22
|
+
group.each do |route|
|
23
|
+
# VERBS (GET/POST/DELETE/PATCH/ETC)
|
24
|
+
print "#{route.verb.inspect.gsub(/^.{2}|.{2}$/, "").center(max_widths[:verbs])}".light_red
|
25
|
+
print " | ".light_white
|
26
|
+
# PATHS
|
27
|
+
path = route.path.spec.to_s.gsub("(.:format)","")
|
28
|
+
print "#{path.ljust(max_widths[:paths]).split('/').map{|p| p.light_yellow}.join('/'.red)}"
|
31
29
|
|
32
|
-
|
33
|
-
print "#{route.name.to_s.ljust(max_widths[:names])}".light_blue
|
34
|
-
print " | ".light_white
|
30
|
+
print " | ".light_white
|
35
31
|
|
36
|
-
|
37
|
-
|
32
|
+
# PATH NAMES
|
33
|
+
print "#{route.name.to_s.ljust(max_widths[:names])}".light_blue
|
34
|
+
print " | ".light_white
|
38
35
|
|
39
|
-
|
40
|
-
|
36
|
+
# CONTROLLER ACTIONS
|
37
|
+
print "#{route.defaults[:action].to_s}".light_green
|
41
38
|
|
42
|
-
|
39
|
+
puts ""
|
43
40
|
end
|
41
|
+
|
42
|
+
puts ""
|
43
|
+
end
|
44
44
|
end
|
45
|
+
|
46
|
+
#task :colorized_routes => :environment do
|
47
|
+
|
48
|
+
|
49
|
+
#end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colorized_routes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Tate
|
@@ -72,12 +72,14 @@ files:
|
|
72
72
|
- ".rvmrc"
|
73
73
|
- ".travis.yml"
|
74
74
|
- Gemfile
|
75
|
+
- Gemfile.lock
|
75
76
|
- LICENSE
|
76
77
|
- LICENSE.txt
|
77
78
|
- README.md
|
78
79
|
- Rakefile
|
79
80
|
- bin/console
|
80
81
|
- bin/setup
|
82
|
+
- colorized_routes-0.1.0.gem
|
81
83
|
- colorized_routes.gemspec
|
82
84
|
- lib/colorized_routes.rb
|
83
85
|
- lib/colorized_routes/rails/tasks/colorized_routes.rake
|