colorized_routes 0.1.0
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 +7 -0
- data/.gitignore +1 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/colorized_routes.iml +17 -0
- data/.idea/encodings.xml +4 -0
- data/.idea/misc.xml +27 -0
- data/.idea/modules.xml +8 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +510 -0
- data/.rvmrc +46 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/colorized_routes.gemspec +28 -0
- data/lib/colorized_routes.rb +8 -0
- data/lib/colorized_routes/rails/tasks/colorized_routes.rake +44 -0
- data/lib/colorized_routes/railtie.rb +9 -0
- data/lib/colorized_routes/version.rb +3 -0
- metadata +110 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fe7a34592c1fadbd85958c50849929b27cc11f40
|
4
|
+
data.tar.gz: 8717dc4e69323e34194a6b1924b86ef405d9b17e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9650a83da833aed771c70d3fe4db4e7192935883fc701c1824e1bdc5dad744772b09fe17dafc7f6792786dcd318c6ca2a5b5b09482a30f849bd47f86e8c368fa
|
7
|
+
data.tar.gz: 3a47e2b2348874e1049db11550eadcc76c18c859b687056a6c27e05e9b01c405faaeda34a089be122f828b7141eb79dab89369a7a77cab10728832eb596f716b
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg
|
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
colorized_routes
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Ruby Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="NewModuleRootManager">
|
13
|
+
<content url="file://$MODULE_DIR$" />
|
14
|
+
<orderEntry type="inheritedJdk" />
|
15
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
</component>
|
17
|
+
</module>
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="DaemonCodeAnalyzer">
|
4
|
+
<disable_hints />
|
5
|
+
</component>
|
6
|
+
<component name="DependencyValidationManager">
|
7
|
+
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
8
|
+
</component>
|
9
|
+
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
|
10
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
11
|
+
<OptionsSetting value="true" id="Add" />
|
12
|
+
<OptionsSetting value="true" id="Remove" />
|
13
|
+
<OptionsSetting value="true" id="Checkout" />
|
14
|
+
<OptionsSetting value="true" id="Update" />
|
15
|
+
<OptionsSetting value="true" id="Status" />
|
16
|
+
<OptionsSetting value="true" id="Edit" />
|
17
|
+
<ConfirmationsSetting value="0" id="Add" />
|
18
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
19
|
+
</component>
|
20
|
+
<component name="ProjectModuleManager">
|
21
|
+
<modules />
|
22
|
+
</component>
|
23
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p286 [parkandpay]" project-jdk-type="RUBY_SDK" />
|
24
|
+
<component name="RunManager">
|
25
|
+
<list size="0" />
|
26
|
+
</component>
|
27
|
+
</project>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/colorized_routes.iml" filepath="$PROJECT_DIR$/.idea/colorized_routes.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,510 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="a9b6e393-f803-42e0-97f3-9fbcb5028dc2" name="Default" comment="">
|
5
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/color_routes-2.0.0.gem" afterPath="" />
|
6
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/color_routes.gemspec" afterPath="" />
|
7
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/doc/demo1.png" afterPath="" />
|
8
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/doc/demo2.png" afterPath="" />
|
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" />
|
17
|
+
</list>
|
18
|
+
<ignored path="colorized_routes.iws" />
|
19
|
+
<ignored path=".idea/workspace.xml" />
|
20
|
+
<ignored path=".idea/dataSources.local.xml" />
|
21
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
22
|
+
<option name="TRACKING_ENABLED" value="true" />
|
23
|
+
<option name="SHOW_DIALOG" value="false" />
|
24
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
25
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
26
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
27
|
+
</component>
|
28
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
29
|
+
<component name="CreatePatchCommitExecutor">
|
30
|
+
<option name="PATCH_PATH" value="" />
|
31
|
+
</component>
|
32
|
+
<component name="DaemonCodeAnalyzer">
|
33
|
+
<disable_hints />
|
34
|
+
</component>
|
35
|
+
<component name="FavoritesManager">
|
36
|
+
<favorites_list name="colorized_routes" />
|
37
|
+
</component>
|
38
|
+
<component name="FileEditorManager">
|
39
|
+
<leaf>
|
40
|
+
<file leaf-file-name="colorized_routes.rb" pinned="false" current-in-tab="true">
|
41
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes.rb">
|
42
|
+
<provider selected="true" editor-type-id="text-editor">
|
43
|
+
<state vertical-scroll-proportion="0.018703243" vertical-offset="0" max-vertical-offset="802">
|
44
|
+
<caret line="1" column="25" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="25" />
|
45
|
+
<folding />
|
46
|
+
</state>
|
47
|
+
</provider>
|
48
|
+
</entry>
|
49
|
+
</file>
|
50
|
+
<file leaf-file-name="colorized_routes.rake" pinned="false" current-in-tab="false">
|
51
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake">
|
52
|
+
<provider selected="true" editor-type-id="text-editor">
|
53
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="750">
|
54
|
+
<caret line="2" column="6" selection-start-line="2" selection-start-column="6" selection-end-line="2" selection-end-column="6" />
|
55
|
+
<folding />
|
56
|
+
</state>
|
57
|
+
</provider>
|
58
|
+
</entry>
|
59
|
+
</file>
|
60
|
+
<file leaf-file-name="railtie.rb" pinned="false" current-in-tab="false">
|
61
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/railtie.rb">
|
62
|
+
<provider selected="true" editor-type-id="text-editor">
|
63
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="225">
|
64
|
+
<caret line="5" column="18" selection-start-line="5" selection-start-column="18" selection-end-line="5" selection-end-column="18" />
|
65
|
+
<folding />
|
66
|
+
</state>
|
67
|
+
</provider>
|
68
|
+
</entry>
|
69
|
+
</file>
|
70
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
71
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/version.rb">
|
72
|
+
<provider selected="true" editor-type-id="text-editor">
|
73
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="135">
|
74
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
75
|
+
<folding />
|
76
|
+
</state>
|
77
|
+
</provider>
|
78
|
+
</entry>
|
79
|
+
</file>
|
80
|
+
<file leaf-file-name=".rvmrc" pinned="false" current-in-tab="false">
|
81
|
+
<entry file="file://$PROJECT_DIR$/.rvmrc">
|
82
|
+
<provider selected="true" editor-type-id="text-editor">
|
83
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="780">
|
84
|
+
<caret line="8" column="27" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
|
85
|
+
<folding />
|
86
|
+
</state>
|
87
|
+
</provider>
|
88
|
+
</entry>
|
89
|
+
</file>
|
90
|
+
<file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
|
91
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
92
|
+
<provider selected="true" editor-type-id="text-editor">
|
93
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
94
|
+
<caret line="2" column="37" selection-start-line="2" selection-start-column="37" selection-end-line="2" selection-end-column="37" />
|
95
|
+
<folding />
|
96
|
+
</state>
|
97
|
+
</provider>
|
98
|
+
</entry>
|
99
|
+
</file>
|
100
|
+
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
101
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
102
|
+
<provider selected="true" editor-type-id="text-editor">
|
103
|
+
<state vertical-scroll-proportion="-3.0" vertical-offset="0" max-vertical-offset="675">
|
104
|
+
<caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
105
|
+
<folding />
|
106
|
+
</state>
|
107
|
+
</provider>
|
108
|
+
</entry>
|
109
|
+
</file>
|
110
|
+
<file leaf-file-name="console" pinned="false" current-in-tab="false">
|
111
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
112
|
+
<provider selected="true" editor-type-id="text-editor">
|
113
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="300">
|
114
|
+
<caret line="3" column="9" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="9" />
|
115
|
+
<folding />
|
116
|
+
</state>
|
117
|
+
</provider>
|
118
|
+
</entry>
|
119
|
+
</file>
|
120
|
+
<file leaf-file-name="colorized_routes.gemspec" pinned="false" current-in-tab="false">
|
121
|
+
<entry file="file://$PROJECT_DIR$/colorized_routes.gemspec">
|
122
|
+
<provider selected="true" editor-type-id="text-editor">
|
123
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="510">
|
124
|
+
<caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
|
125
|
+
<folding />
|
126
|
+
</state>
|
127
|
+
</provider>
|
128
|
+
</entry>
|
129
|
+
</file>
|
130
|
+
</leaf>
|
131
|
+
</component>
|
132
|
+
<component name="Git.Settings">
|
133
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
134
|
+
</component>
|
135
|
+
<component name="IdeDocumentHistory">
|
136
|
+
<option name="CHANGED_PATHS">
|
137
|
+
<list>
|
138
|
+
<option value="$PROJECT_DIR$/.rvmrc" />
|
139
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
140
|
+
<option value="$PROJECT_DIR$/bin/console" />
|
141
|
+
<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
|
+
<option value="$PROJECT_DIR$/README.md" />
|
145
|
+
<option value="$PROJECT_DIR$/colorized_routes.gemspec" />
|
146
|
+
<option value="$PROJECT_DIR$/lib/colorized_routes/railtie.rb" />
|
147
|
+
</list>
|
148
|
+
</option>
|
149
|
+
</component>
|
150
|
+
<component name="JsGulpfileManager">
|
151
|
+
<detection-done>true</detection-done>
|
152
|
+
</component>
|
153
|
+
<component name="ProjectFrameBounds">
|
154
|
+
<option name="y" value="23" />
|
155
|
+
<option name="width" value="1440" />
|
156
|
+
<option name="height" value="873" />
|
157
|
+
</component>
|
158
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
159
|
+
<OptionsSetting value="true" id="Add" />
|
160
|
+
<OptionsSetting value="true" id="Remove" />
|
161
|
+
<OptionsSetting value="true" id="Checkout" />
|
162
|
+
<OptionsSetting value="true" id="Update" />
|
163
|
+
<OptionsSetting value="true" id="Status" />
|
164
|
+
<OptionsSetting value="true" id="Edit" />
|
165
|
+
<ConfirmationsSetting value="0" id="Add" />
|
166
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
167
|
+
</component>
|
168
|
+
<component name="ProjectView">
|
169
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
170
|
+
<flattenPackages />
|
171
|
+
<showMembers />
|
172
|
+
<showModules />
|
173
|
+
<showLibraryContents />
|
174
|
+
<hideEmptyPackages />
|
175
|
+
<abbreviatePackageNames />
|
176
|
+
<autoscrollToSource />
|
177
|
+
<autoscrollFromSource />
|
178
|
+
<sortByType />
|
179
|
+
</navigator>
|
180
|
+
<panes>
|
181
|
+
<pane id="ProjectPane">
|
182
|
+
<subPane>
|
183
|
+
<PATH>
|
184
|
+
<PATH_ELEMENT>
|
185
|
+
<option name="myItemId" value="colorized_routes" />
|
186
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
187
|
+
</PATH_ELEMENT>
|
188
|
+
</PATH>
|
189
|
+
<PATH>
|
190
|
+
<PATH_ELEMENT>
|
191
|
+
<option name="myItemId" value="colorized_routes" />
|
192
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
193
|
+
</PATH_ELEMENT>
|
194
|
+
<PATH_ELEMENT>
|
195
|
+
<option name="myItemId" value="colorized_routes" />
|
196
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
197
|
+
</PATH_ELEMENT>
|
198
|
+
</PATH>
|
199
|
+
<PATH>
|
200
|
+
<PATH_ELEMENT>
|
201
|
+
<option name="myItemId" value="colorized_routes" />
|
202
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
203
|
+
</PATH_ELEMENT>
|
204
|
+
<PATH_ELEMENT>
|
205
|
+
<option name="myItemId" value="colorized_routes" />
|
206
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
207
|
+
</PATH_ELEMENT>
|
208
|
+
<PATH_ELEMENT>
|
209
|
+
<option name="myItemId" value="lib" />
|
210
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
211
|
+
</PATH_ELEMENT>
|
212
|
+
</PATH>
|
213
|
+
<PATH>
|
214
|
+
<PATH_ELEMENT>
|
215
|
+
<option name="myItemId" value="colorized_routes" />
|
216
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
217
|
+
</PATH_ELEMENT>
|
218
|
+
<PATH_ELEMENT>
|
219
|
+
<option name="myItemId" value="colorized_routes" />
|
220
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
221
|
+
</PATH_ELEMENT>
|
222
|
+
<PATH_ELEMENT>
|
223
|
+
<option name="myItemId" value="lib" />
|
224
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
225
|
+
</PATH_ELEMENT>
|
226
|
+
<PATH_ELEMENT>
|
227
|
+
<option name="myItemId" value="colorized_routes" />
|
228
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
229
|
+
</PATH_ELEMENT>
|
230
|
+
</PATH>
|
231
|
+
<PATH>
|
232
|
+
<PATH_ELEMENT>
|
233
|
+
<option name="myItemId" value="colorized_routes" />
|
234
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
235
|
+
</PATH_ELEMENT>
|
236
|
+
<PATH_ELEMENT>
|
237
|
+
<option name="myItemId" value="colorized_routes" />
|
238
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
239
|
+
</PATH_ELEMENT>
|
240
|
+
<PATH_ELEMENT>
|
241
|
+
<option name="myItemId" value="lib" />
|
242
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
243
|
+
</PATH_ELEMENT>
|
244
|
+
<PATH_ELEMENT>
|
245
|
+
<option name="myItemId" value="colorized_routes" />
|
246
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
247
|
+
</PATH_ELEMENT>
|
248
|
+
<PATH_ELEMENT>
|
249
|
+
<option name="myItemId" value="rails" />
|
250
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
251
|
+
</PATH_ELEMENT>
|
252
|
+
<PATH_ELEMENT>
|
253
|
+
<option name="myItemId" value="tasks" />
|
254
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
255
|
+
</PATH_ELEMENT>
|
256
|
+
</PATH>
|
257
|
+
<PATH>
|
258
|
+
<PATH_ELEMENT>
|
259
|
+
<option name="myItemId" value="colorized_routes" />
|
260
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
261
|
+
</PATH_ELEMENT>
|
262
|
+
<PATH_ELEMENT>
|
263
|
+
<option name="myItemId" value="colorized_routes" />
|
264
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
265
|
+
</PATH_ELEMENT>
|
266
|
+
<PATH_ELEMENT>
|
267
|
+
<option name="myItemId" value="bin" />
|
268
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
269
|
+
</PATH_ELEMENT>
|
270
|
+
</PATH>
|
271
|
+
</subPane>
|
272
|
+
</pane>
|
273
|
+
<pane id="Scope" />
|
274
|
+
</panes>
|
275
|
+
</component>
|
276
|
+
<component name="PropertiesComponent">
|
277
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
278
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
279
|
+
</component>
|
280
|
+
<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
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
293
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
294
|
+
<module name="" />
|
295
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
296
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
297
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
298
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
299
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
300
|
+
<envs />
|
301
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
302
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
303
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
304
|
+
<COVERAGE_PATTERN ENABLED="true">
|
305
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
306
|
+
</COVERAGE_PATTERN>
|
307
|
+
</EXTENSION>
|
308
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
309
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
310
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
311
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
312
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
313
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
315
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
316
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
317
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
318
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
319
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
320
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
321
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
322
|
+
<method />
|
323
|
+
</configuration>
|
324
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
325
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
326
|
+
<module name="" />
|
327
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
328
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
329
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
330
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
331
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
332
|
+
<envs />
|
333
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
334
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
335
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
336
|
+
<COVERAGE_PATTERN ENABLED="true">
|
337
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
338
|
+
</COVERAGE_PATTERN>
|
339
|
+
</EXTENSION>
|
340
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
341
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
342
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
343
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
344
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
345
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
346
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
347
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
348
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
349
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
350
|
+
<method />
|
351
|
+
</configuration>
|
352
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
353
|
+
<method />
|
354
|
+
</configuration>
|
355
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
356
|
+
<module name="" />
|
357
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
358
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
359
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
360
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
361
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
362
|
+
<envs />
|
363
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
364
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
365
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
366
|
+
<COVERAGE_PATTERN ENABLED="true">
|
367
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
368
|
+
</COVERAGE_PATTERN>
|
369
|
+
</EXTENSION>
|
370
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
371
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
372
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
373
|
+
<method />
|
374
|
+
</configuration>
|
375
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
376
|
+
<method />
|
377
|
+
</configuration>
|
378
|
+
<list size="0" />
|
379
|
+
</component>
|
380
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
381
|
+
<component name="TaskManager">
|
382
|
+
<task active="true" id="Default" summary="Default task">
|
383
|
+
<changelist id="a9b6e393-f803-42e0-97f3-9fbcb5028dc2" name="Default" comment="" />
|
384
|
+
<created>1438827177628</created>
|
385
|
+
<option name="number" value="Default" />
|
386
|
+
<updated>1438827177628</updated>
|
387
|
+
</task>
|
388
|
+
<servers />
|
389
|
+
</component>
|
390
|
+
<component name="ToolWindowManager">
|
391
|
+
<frame x="0" y="23" width="1440" height="873" extended-state="6" />
|
392
|
+
<editor active="true" />
|
393
|
+
<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="-1" side_tool="false" content_ui="tabs" />
|
395
|
+
<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="Messages" 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" />
|
397
|
+
<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="-1" side_tool="true" content_ui="tabs" />
|
398
|
+
<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="-1" side_tool="false" content_ui="tabs" />
|
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="-1" 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="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" />
|
405
|
+
<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="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
407
|
+
<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" />
|
408
|
+
<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="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" />
|
410
|
+
<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
|
+
<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
|
+
<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" />
|
413
|
+
<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" />
|
414
|
+
</layout>
|
415
|
+
</component>
|
416
|
+
<component name="Vcs.Log.UiProperties">
|
417
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
418
|
+
<collection />
|
419
|
+
</option>
|
420
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
421
|
+
<collection />
|
422
|
+
</option>
|
423
|
+
</component>
|
424
|
+
<component name="VcsContentAnnotationSettings">
|
425
|
+
<option name="myLimit" value="2678400000" />
|
426
|
+
</component>
|
427
|
+
<component name="VcsManagerConfiguration">
|
428
|
+
<option name="myTodoPanelSettings">
|
429
|
+
<TodoPanelSettings />
|
430
|
+
</option>
|
431
|
+
</component>
|
432
|
+
<component name="XDebuggerManager">
|
433
|
+
<breakpoint-manager />
|
434
|
+
<watches-manager />
|
435
|
+
</component>
|
436
|
+
<component name="editorHistoryManager">
|
437
|
+
<entry file="file://$PROJECT_DIR$/.rvmrc">
|
438
|
+
<provider selected="true" editor-type-id="text-editor">
|
439
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="780">
|
440
|
+
<caret line="8" column="27" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
|
441
|
+
<folding />
|
442
|
+
</state>
|
443
|
+
</provider>
|
444
|
+
</entry>
|
445
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
446
|
+
<provider selected="true" editor-type-id="text-editor">
|
447
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
448
|
+
<caret line="2" column="37" selection-start-line="2" selection-start-column="37" selection-end-line="2" selection-end-column="37" />
|
449
|
+
<folding />
|
450
|
+
</state>
|
451
|
+
</provider>
|
452
|
+
</entry>
|
453
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
454
|
+
<provider selected="true" editor-type-id="text-editor">
|
455
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="300">
|
456
|
+
<caret line="3" column="9" selection-start-line="3" selection-start-column="9" selection-end-line="3" selection-end-column="9" />
|
457
|
+
<folding />
|
458
|
+
</state>
|
459
|
+
</provider>
|
460
|
+
</entry>
|
461
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/rails/tasks/colorized_routes.rake">
|
462
|
+
<provider selected="true" editor-type-id="text-editor">
|
463
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="750">
|
464
|
+
<caret line="2" column="6" selection-start-line="2" selection-start-column="6" selection-end-line="2" selection-end-column="6" />
|
465
|
+
<folding />
|
466
|
+
</state>
|
467
|
+
</provider>
|
468
|
+
</entry>
|
469
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/version.rb">
|
470
|
+
<provider selected="true" editor-type-id="text-editor">
|
471
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="135">
|
472
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
473
|
+
<folding />
|
474
|
+
</state>
|
475
|
+
</provider>
|
476
|
+
</entry>
|
477
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
478
|
+
<provider selected="true" editor-type-id="text-editor">
|
479
|
+
<state vertical-scroll-proportion="-3.0" vertical-offset="0" max-vertical-offset="675">
|
480
|
+
<caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
481
|
+
<folding />
|
482
|
+
</state>
|
483
|
+
</provider>
|
484
|
+
</entry>
|
485
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes/railtie.rb">
|
486
|
+
<provider selected="true" editor-type-id="text-editor">
|
487
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="225">
|
488
|
+
<caret line="5" column="18" selection-start-line="5" selection-start-column="18" selection-end-line="5" selection-end-column="18" />
|
489
|
+
<folding />
|
490
|
+
</state>
|
491
|
+
</provider>
|
492
|
+
</entry>
|
493
|
+
<entry file="file://$PROJECT_DIR$/colorized_routes.gemspec">
|
494
|
+
<provider selected="true" editor-type-id="text-editor">
|
495
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="510">
|
496
|
+
<caret line="7" column="23" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="23" />
|
497
|
+
<folding />
|
498
|
+
</state>
|
499
|
+
</provider>
|
500
|
+
</entry>
|
501
|
+
<entry file="file://$PROJECT_DIR$/lib/colorized_routes.rb">
|
502
|
+
<provider selected="true" editor-type-id="text-editor">
|
503
|
+
<state vertical-scroll-proportion="0.018703243" vertical-offset="0" max-vertical-offset="802">
|
504
|
+
<caret line="1" column="25" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="25" />
|
505
|
+
<folding />
|
506
|
+
</state>
|
507
|
+
</provider>
|
508
|
+
</entry>
|
509
|
+
</component>
|
510
|
+
</project>
|
data/.rvmrc
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
+
# development environment upon cd'ing into the directory
|
5
|
+
|
6
|
+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
+
# Only full ruby name is supported here, for short names use:
|
8
|
+
# echo "rvm use 2.2.2@colorized_routes" > .rvmrc
|
9
|
+
environment_id="ruby-2.2.2@colorized_routes"
|
10
|
+
|
11
|
+
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
+
# rvmrc_rvm_version="1.26.11 (master)" # 1.10.1 seems like a safe start
|
13
|
+
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | __rvm_awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
|
+
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
|
+
# return 1
|
16
|
+
# }
|
17
|
+
|
18
|
+
# First we attempt to load the desired environment directly from the environment
|
19
|
+
# file. This is very fast and efficient compared to running through the entire
|
20
|
+
# CLI and selector. If you want feedback on which environment was used then
|
21
|
+
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
|
23
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
24
|
+
then
|
25
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
+
for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
|
27
|
+
do
|
28
|
+
if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
|
29
|
+
then \. "${__hook}" || true
|
30
|
+
fi
|
31
|
+
done
|
32
|
+
unset __hook
|
33
|
+
if (( ${rvm_use_flag:=1} >= 2 )) # display only when forced
|
34
|
+
then
|
35
|
+
if [[ $- == *i* ]] # check for interactive shells
|
36
|
+
then printf "%b" "Using: $(tput setaf 2 2>/dev/null)$GEM_HOME$(tput sgr0 2>/dev/null)\n" # show the user the ruby and gemset they are using in green
|
37
|
+
else printf "%b" "Using: $GEM_HOME\n" # don't use colors in non-interactive shells
|
38
|
+
fi
|
39
|
+
fi
|
40
|
+
else
|
41
|
+
# If the environment file has not yet been created, use the RVM CLI to select.
|
42
|
+
rvm --create "$environment_id" || {
|
43
|
+
echo "Failed to create RVM environment '${environment_id}'."
|
44
|
+
return 1
|
45
|
+
}
|
46
|
+
fi
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) Nicolas Oga
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Josh Tate
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
ColorizedRoutes
|
2
|
+
===========
|
3
|
+
|
4
|
+
# DESCRIPTION
|
5
|
+
|
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.
|
7
|
+
|
8
|
+
Based on the work at: https://github.com/nicooga/colorized_routes
|
9
|
+
|
10
|
+
SUPPORTED VERSIONS: 4.x
|
11
|
+
|
12
|
+
Enjoy!
|
13
|
+
|
14
|
+
# INSTALLATION
|
15
|
+
```bash
|
16
|
+
gem install colorized_routes
|
17
|
+
```
|
18
|
+
or
|
19
|
+
```ruby
|
20
|
+
# In your Gemfile
|
21
|
+
gem 'colorized_routes'
|
22
|
+
```
|
23
|
+
then run
|
24
|
+
```bash
|
25
|
+
bundle
|
26
|
+
```
|
27
|
+
|
28
|
+
run this to get your colorized routes
|
29
|
+
```bash
|
30
|
+
rake colorized_routes
|
31
|
+
```
|
32
|
+
|
33
|
+
# DEMO
|
34
|
+
|
35
|
+
####rake routes normal output:
|
36
|
+
<img src="https://imgur.com/BeKHDbB.png" title="Example output" alt="Example output" />
|
37
|
+
|
38
|
+
####rake colorized_routes output:
|
39
|
+
<img src="https://imgur.com/xlpTPtB.png" title="Example output" alt="Example output" />
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "colorized_routes"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'colorized_routes/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "colorized_routes"
|
8
|
+
spec.version = ColorizedRoutes::VERSION
|
9
|
+
spec.authors = ["Josh Tate"]
|
10
|
+
spec.email = ["joshtate04@me.com"]
|
11
|
+
|
12
|
+
spec.summary = "Colorize your Rails routes"
|
13
|
+
spec.description = "Colorize your Rails routes grouped by controller"
|
14
|
+
spec.homepage = "http://github.com/joshtate04/colorized_routes"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "colorize", '~> 0.7'
|
28
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
desc 'Makes routes a little more pretty.'
|
2
|
+
|
3
|
+
task :colorized_routes => :environment do
|
4
|
+
|
5
|
+
Rails.application.reload_routes!
|
6
|
+
all_routes = Rails.application.routes.routes.to_a
|
7
|
+
all_routes.reject! { |route| route.verb.nil? || route.path.spec.to_s == '/assets' }
|
8
|
+
all_routes.select! { |route| ENV['CONTROLLER'].nil? || route.defaults[:controller].to_s == ENV['CONTROLLER'] }
|
9
|
+
|
10
|
+
max_widths = {
|
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
|
+
}
|
17
|
+
puts "#{max_widths.inspect}".yellow
|
18
|
+
|
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)}"
|
29
|
+
|
30
|
+
print " | ".light_white
|
31
|
+
|
32
|
+
# PATH NAMES
|
33
|
+
print "#{route.name.to_s.ljust(max_widths[:names])}".light_blue
|
34
|
+
print " | ".light_white
|
35
|
+
|
36
|
+
# CONTROLLER ACTIONS
|
37
|
+
print "#{route.defaults[:action].to_s}".light_green
|
38
|
+
|
39
|
+
puts ""
|
40
|
+
end
|
41
|
+
|
42
|
+
puts ""
|
43
|
+
end
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: colorized_routes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Josh Tate
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: colorize
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.7'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
55
|
+
description: Colorize your Rails routes grouped by controller
|
56
|
+
email:
|
57
|
+
- joshtate04@me.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".idea/.name"
|
64
|
+
- ".idea/.rakeTasks"
|
65
|
+
- ".idea/colorized_routes.iml"
|
66
|
+
- ".idea/encodings.xml"
|
67
|
+
- ".idea/misc.xml"
|
68
|
+
- ".idea/modules.xml"
|
69
|
+
- ".idea/scopes/scope_settings.xml"
|
70
|
+
- ".idea/vcs.xml"
|
71
|
+
- ".idea/workspace.xml"
|
72
|
+
- ".rvmrc"
|
73
|
+
- ".travis.yml"
|
74
|
+
- Gemfile
|
75
|
+
- LICENSE
|
76
|
+
- LICENSE.txt
|
77
|
+
- README.md
|
78
|
+
- Rakefile
|
79
|
+
- bin/console
|
80
|
+
- bin/setup
|
81
|
+
- colorized_routes.gemspec
|
82
|
+
- lib/colorized_routes.rb
|
83
|
+
- lib/colorized_routes/rails/tasks/colorized_routes.rake
|
84
|
+
- lib/colorized_routes/railtie.rb
|
85
|
+
- lib/colorized_routes/version.rb
|
86
|
+
homepage: http://github.com/joshtate04/colorized_routes
|
87
|
+
licenses:
|
88
|
+
- MIT
|
89
|
+
metadata: {}
|
90
|
+
post_install_message:
|
91
|
+
rdoc_options: []
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirements: []
|
105
|
+
rubyforge_project:
|
106
|
+
rubygems_version: 2.4.8
|
107
|
+
signing_key:
|
108
|
+
specification_version: 4
|
109
|
+
summary: Colorize your Rails routes
|
110
|
+
test_files: []
|