new-ls 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/eax.iml +57 -0
- data/.idea/encodings.xml +4 -0
- data/.idea/misc.xml +4 -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 +646 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +2 -0
- data/bin/eax +44 -0
- data/eax.gemspec +26 -0
- data/lib/eax/version.rb +3 -0
- data/lib/eax.rb +216 -0
- metadata +133 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d9dfd1dcc2b8353cf9d8c504883028e80fa74cc1
|
4
|
+
data.tar.gz: ac7aa16d8e9509213408ff27a75c09e159ecbef8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ec5e8489c50654e3816da0ef9fa1167842f8d96c865ecd4dea74534d37295cd90ed7d67ace87f981d36d0c7273b964a524667de260c0827574f2c68072f30878
|
7
|
+
data.tar.gz: 13d5494c8e4709cd555f2d9e86dde0f9f6ee45af07346a8797e9b9bfe1968b9f154c15ff552d5a238d23b0c41b05194494b4cdd0c56acffd44f760c4c8b988f5
|
data/.gitignore
ADDED
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
eax
|
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"><RakeTask description="Build eax-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install eax-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push eax-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
data/.idea/eax.iml
ADDED
@@ -0,0 +1,57 @@
|
|
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="$MODULE_DIR$/test" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="install: eax" type="RakeRunConfigurationType" factoryName="Rake" temporary="true">
|
14
|
+
<module name="eax" />
|
15
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
16
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
17
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
18
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
19
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
20
|
+
<envs />
|
21
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
22
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
23
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
24
|
+
<COVERAGE_PATTERN ENABLED="true">
|
25
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
26
|
+
</COVERAGE_PATTERN>
|
27
|
+
</EXTENSION>
|
28
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
29
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="install" />
|
30
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
|
31
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
|
32
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
|
33
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
|
34
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
35
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
36
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
37
|
+
<method />
|
38
|
+
</configuration>
|
39
|
+
</component>
|
40
|
+
<component name="NewModuleRootManager">
|
41
|
+
<content url="file://$MODULE_DIR$">
|
42
|
+
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
43
|
+
</content>
|
44
|
+
<orderEntry type="inheritedJdk" />
|
45
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
46
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.3, RVM: ruby-2.1.3) [gem]" level="application" />
|
47
|
+
<orderEntry type="library" scope="PROVIDED" name="equatable (v0.5.0, RVM: ruby-2.1.3) [gem]" level="application" />
|
48
|
+
<orderEntry type="library" scope="PROVIDED" name="necromancer (v0.3.0, RVM: ruby-2.1.3) [gem]" level="application" />
|
49
|
+
<orderEntry type="library" scope="PROVIDED" name="pastel (v0.4.0, RVM: ruby-2.1.3) [gem]" level="application" />
|
50
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.1.3) [gem]" level="application" />
|
51
|
+
<orderEntry type="library" scope="PROVIDED" name="slop (v4.0.0, RVM: ruby-2.1.3) [gem]" level="application" />
|
52
|
+
<orderEntry type="library" scope="PROVIDED" name="tty (v0.1.2, RVM: ruby-2.1.3) [gem]" level="application" />
|
53
|
+
<orderEntry type="library" scope="PROVIDED" name="tty-progressbar (v0.2.0, RVM: ruby-2.1.3) [gem]" level="application" />
|
54
|
+
<orderEntry type="library" scope="PROVIDED" name="tty-screen (v0.1.0, RVM: ruby-2.1.3) [gem]" level="application" />
|
55
|
+
<orderEntry type="library" scope="PROVIDED" name="tty-spinner (v0.1.0, RVM: ruby-2.1.3) [gem]" level="application" />
|
56
|
+
</component>
|
57
|
+
</module>
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,646 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="e123d1ff-8edd-41b7-bfc2-70b64e3ff90e" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/eax.iml" afterPath="$PROJECT_DIR$/.idea/eax.iml" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/eax.rb" afterPath="$PROJECT_DIR$/lib/eax.rb" />
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/eax" afterPath="$PROJECT_DIR$/bin/eax" />
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
9
|
+
</list>
|
10
|
+
<ignored path="eax.iws" />
|
11
|
+
<ignored path=".idea/workspace.xml" />
|
12
|
+
<ignored path=".idea/dataSources.local.xml" />
|
13
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
14
|
+
<option name="TRACKING_ENABLED" value="true" />
|
15
|
+
<option name="SHOW_DIALOG" value="false" />
|
16
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
17
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
18
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
19
|
+
</component>
|
20
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
21
|
+
<component name="CoverageDataManager">
|
22
|
+
<SUITE FILE_PATH="coverage/eax@install__eax.coverage" NAME="install: eax Coverage Results" MODIFIED="1424705201590" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="eax" />
|
23
|
+
</component>
|
24
|
+
<component name="CreatePatchCommitExecutor">
|
25
|
+
<option name="PATCH_PATH" value="" />
|
26
|
+
</component>
|
27
|
+
<component name="DaemonCodeAnalyzer">
|
28
|
+
<disable_hints />
|
29
|
+
</component>
|
30
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
31
|
+
<component name="FavoritesManager">
|
32
|
+
<favorites_list name="eax" />
|
33
|
+
</component>
|
34
|
+
<component name="FileEditorManager">
|
35
|
+
<splitter split-orientation="horizontal" split-proportion="0.5">
|
36
|
+
<split-first>
|
37
|
+
<leaf>
|
38
|
+
<file leaf-file-name="eax.gemspec" pinned="false" current-in-tab="false">
|
39
|
+
<entry file="file://$PROJECT_DIR$/eax.gemspec">
|
40
|
+
<provider selected="true" editor-type-id="text-editor">
|
41
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="425" max-vertical-offset="527">
|
42
|
+
<caret line="25" column="0" selection-start-line="25" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
|
43
|
+
<folding />
|
44
|
+
</state>
|
45
|
+
</provider>
|
46
|
+
</entry>
|
47
|
+
</file>
|
48
|
+
<file leaf-file-name="eax" pinned="false" current-in-tab="true">
|
49
|
+
<entry file="file://$PROJECT_DIR$/bin/eax">
|
50
|
+
<provider selected="true" editor-type-id="text-editor">
|
51
|
+
<state vertical-scroll-proportion="0.7868676" vertical-offset="0" max-vertical-offset="929">
|
52
|
+
<caret line="43" column="24" selection-start-line="43" selection-start-column="24" selection-end-line="43" selection-end-column="24" />
|
53
|
+
<folding />
|
54
|
+
</state>
|
55
|
+
</provider>
|
56
|
+
</entry>
|
57
|
+
</file>
|
58
|
+
<file leaf-file-name="eax.rb" pinned="false" current-in-tab="false">
|
59
|
+
<entry file="file://$PROJECT_DIR$/lib/eax.rb">
|
60
|
+
<provider selected="true" editor-type-id="text-editor">
|
61
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="64" max-vertical-offset="3366">
|
62
|
+
<caret line="22" column="26" selection-start-line="22" selection-start-column="26" selection-end-line="22" selection-end-column="26" />
|
63
|
+
<folding />
|
64
|
+
</state>
|
65
|
+
</provider>
|
66
|
+
</entry>
|
67
|
+
</file>
|
68
|
+
<file leaf-file-name="table.rb" pinned="false" current-in-tab="false">
|
69
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.3/gems/tty-0.1.2/lib/tty/table.rb">
|
70
|
+
<provider selected="true" editor-type-id="text-editor">
|
71
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="6620" max-vertical-offset="8194">
|
72
|
+
<caret line="433" column="22" selection-start-line="433" selection-start-column="22" selection-end-line="433" selection-end-column="22" />
|
73
|
+
<folding />
|
74
|
+
</state>
|
75
|
+
</provider>
|
76
|
+
</entry>
|
77
|
+
</file>
|
78
|
+
<file leaf-file-name="color.rb" pinned="false" current-in-tab="false">
|
79
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.3/gems/tty-0.1.0/lib/tty/terminal/color.rb">
|
80
|
+
<provider selected="true" editor-type-id="text-editor">
|
81
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="629" max-vertical-offset="2771">
|
82
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
83
|
+
<folding />
|
84
|
+
</state>
|
85
|
+
</provider>
|
86
|
+
</entry>
|
87
|
+
</file>
|
88
|
+
<file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
|
89
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
90
|
+
<provider selected="true" editor-type-id="text-editor">
|
91
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="136">
|
92
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
93
|
+
<folding />
|
94
|
+
</state>
|
95
|
+
</provider>
|
96
|
+
</entry>
|
97
|
+
</file>
|
98
|
+
</leaf>
|
99
|
+
</split-first>
|
100
|
+
<split-second>
|
101
|
+
<leaf>
|
102
|
+
<file leaf-file-name="eax.rb" pinned="false" current-in-tab="true">
|
103
|
+
<entry file="file://$PROJECT_DIR$/lib/eax.rb">
|
104
|
+
<provider selected="true" editor-type-id="text-editor">
|
105
|
+
<state vertical-scroll-proportion="0.6221744" vertical-offset="1071" max-vertical-offset="3366">
|
106
|
+
<caret line="97" column="73" selection-start-line="97" selection-start-column="73" selection-end-line="97" selection-end-column="73" />
|
107
|
+
<folding />
|
108
|
+
</state>
|
109
|
+
</provider>
|
110
|
+
</entry>
|
111
|
+
</file>
|
112
|
+
</leaf>
|
113
|
+
</split-second>
|
114
|
+
</splitter>
|
115
|
+
</component>
|
116
|
+
<component name="Git.Settings">
|
117
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
118
|
+
</component>
|
119
|
+
<component name="IdeDocumentHistory">
|
120
|
+
<option name="CHANGED_PATHS">
|
121
|
+
<list>
|
122
|
+
<option value="$PROJECT_DIR$/lib/eax/version.rb" />
|
123
|
+
<option value="$PROJECT_DIR$/eax.gemspec" />
|
124
|
+
<option value="$PROJECT_DIR$/bin/eax" />
|
125
|
+
<option value="$PROJECT_DIR$/lib/eax.rb" />
|
126
|
+
</list>
|
127
|
+
</option>
|
128
|
+
</component>
|
129
|
+
<component name="JsGulpfileManager">
|
130
|
+
<detection-done>true</detection-done>
|
131
|
+
</component>
|
132
|
+
<component name="ProjectFrameBounds">
|
133
|
+
<option name="y" value="23" />
|
134
|
+
<option name="width" value="1680" />
|
135
|
+
<option name="height" value="1023" />
|
136
|
+
</component>
|
137
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
138
|
+
<OptionsSetting value="true" id="Add" />
|
139
|
+
<OptionsSetting value="true" id="Remove" />
|
140
|
+
<OptionsSetting value="true" id="Checkout" />
|
141
|
+
<OptionsSetting value="true" id="Update" />
|
142
|
+
<OptionsSetting value="true" id="Status" />
|
143
|
+
<OptionsSetting value="true" id="Edit" />
|
144
|
+
<ConfirmationsSetting value="0" id="Add" />
|
145
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
146
|
+
</component>
|
147
|
+
<component name="ProjectView">
|
148
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
149
|
+
<flattenPackages />
|
150
|
+
<showMembers />
|
151
|
+
<showModules />
|
152
|
+
<showLibraryContents />
|
153
|
+
<hideEmptyPackages />
|
154
|
+
<abbreviatePackageNames />
|
155
|
+
<autoscrollToSource />
|
156
|
+
<autoscrollFromSource />
|
157
|
+
<sortByType />
|
158
|
+
</navigator>
|
159
|
+
<panes>
|
160
|
+
<pane id="ProjectPane">
|
161
|
+
<subPane>
|
162
|
+
<PATH>
|
163
|
+
<PATH_ELEMENT>
|
164
|
+
<option name="myItemId" value="eax" />
|
165
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
166
|
+
</PATH_ELEMENT>
|
167
|
+
</PATH>
|
168
|
+
<PATH>
|
169
|
+
<PATH_ELEMENT>
|
170
|
+
<option name="myItemId" value="eax" />
|
171
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
172
|
+
</PATH_ELEMENT>
|
173
|
+
<PATH_ELEMENT>
|
174
|
+
<option name="myItemId" value="eax" />
|
175
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
176
|
+
</PATH_ELEMENT>
|
177
|
+
</PATH>
|
178
|
+
<PATH>
|
179
|
+
<PATH_ELEMENT>
|
180
|
+
<option name="myItemId" value="eax" />
|
181
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
182
|
+
</PATH_ELEMENT>
|
183
|
+
<PATH_ELEMENT>
|
184
|
+
<option name="myItemId" value="eax" />
|
185
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
186
|
+
</PATH_ELEMENT>
|
187
|
+
<PATH_ELEMENT>
|
188
|
+
<option name="myItemId" value="lib" />
|
189
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
190
|
+
</PATH_ELEMENT>
|
191
|
+
</PATH>
|
192
|
+
<PATH>
|
193
|
+
<PATH_ELEMENT>
|
194
|
+
<option name="myItemId" value="eax" />
|
195
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
196
|
+
</PATH_ELEMENT>
|
197
|
+
<PATH_ELEMENT>
|
198
|
+
<option name="myItemId" value="eax" />
|
199
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
200
|
+
</PATH_ELEMENT>
|
201
|
+
<PATH_ELEMENT>
|
202
|
+
<option name="myItemId" value="lib" />
|
203
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
204
|
+
</PATH_ELEMENT>
|
205
|
+
<PATH_ELEMENT>
|
206
|
+
<option name="myItemId" value="eax" />
|
207
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
208
|
+
</PATH_ELEMENT>
|
209
|
+
</PATH>
|
210
|
+
<PATH>
|
211
|
+
<PATH_ELEMENT>
|
212
|
+
<option name="myItemId" value="eax" />
|
213
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
214
|
+
</PATH_ELEMENT>
|
215
|
+
<PATH_ELEMENT>
|
216
|
+
<option name="myItemId" value="eax" />
|
217
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
218
|
+
</PATH_ELEMENT>
|
219
|
+
<PATH_ELEMENT>
|
220
|
+
<option name="myItemId" value="bin" />
|
221
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
222
|
+
</PATH_ELEMENT>
|
223
|
+
</PATH>
|
224
|
+
</subPane>
|
225
|
+
</pane>
|
226
|
+
<pane id="Scope" />
|
227
|
+
</panes>
|
228
|
+
</component>
|
229
|
+
<component name="PropertiesComponent">
|
230
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
231
|
+
<property name="options.lastSelected" value="preferences.keymap" />
|
232
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
233
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
234
|
+
<property name="RakeTaksPopup.undocumentedIncluded" value="false" />
|
235
|
+
<property name="recentsLimit" value="5" />
|
236
|
+
</component>
|
237
|
+
<component name="RunManager" selected="Rake.install: eax">
|
238
|
+
<configuration default="false" name="install: eax" type="RakeRunConfigurationType" factoryName="Rake" temporary="true">
|
239
|
+
<module name="eax" />
|
240
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
241
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
242
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
243
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
244
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
245
|
+
<envs />
|
246
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
247
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
248
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
249
|
+
<COVERAGE_PATTERN ENABLED="true">
|
250
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
251
|
+
</COVERAGE_PATTERN>
|
252
|
+
</EXTENSION>
|
253
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
254
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="install" />
|
255
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
|
256
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
|
257
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
|
258
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
|
259
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
260
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
261
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
262
|
+
<method />
|
263
|
+
</configuration>
|
264
|
+
<configuration default="true" type="RakeRunConfigurationType" factoryName="Rake">
|
265
|
+
<module name="" />
|
266
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
267
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
268
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
269
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
270
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
271
|
+
<envs />
|
272
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
273
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
274
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
275
|
+
<COVERAGE_PATTERN ENABLED="true">
|
276
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
277
|
+
</COVERAGE_PATTERN>
|
278
|
+
</EXTENSION>
|
279
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
280
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="" />
|
281
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
|
282
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
|
283
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
|
284
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
|
285
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
286
|
+
<method />
|
287
|
+
</configuration>
|
288
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
289
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
290
|
+
<module name="" />
|
291
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
292
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
293
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
294
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
295
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
296
|
+
<envs />
|
297
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
298
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
299
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
300
|
+
<COVERAGE_PATTERN ENABLED="true">
|
301
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
302
|
+
</COVERAGE_PATTERN>
|
303
|
+
</EXTENSION>
|
304
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
305
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
306
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
307
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
308
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
309
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
310
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
311
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
312
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
313
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
314
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
315
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
316
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
317
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
318
|
+
<method />
|
319
|
+
</configuration>
|
320
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
321
|
+
<module name="" />
|
322
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
323
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
324
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
325
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
326
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
327
|
+
<envs />
|
328
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
329
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
330
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
331
|
+
<COVERAGE_PATTERN ENABLED="true">
|
332
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
333
|
+
</COVERAGE_PATTERN>
|
334
|
+
</EXTENSION>
|
335
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
336
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
337
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
338
|
+
<method />
|
339
|
+
</configuration>
|
340
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
341
|
+
<method />
|
342
|
+
</configuration>
|
343
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
344
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
345
|
+
<module name="" />
|
346
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
347
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
348
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
349
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
350
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
351
|
+
<envs />
|
352
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
353
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
354
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
355
|
+
<COVERAGE_PATTERN ENABLED="true">
|
356
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
357
|
+
</COVERAGE_PATTERN>
|
358
|
+
</EXTENSION>
|
359
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
360
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
361
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
362
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
363
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
364
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
365
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
366
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
367
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
368
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
369
|
+
<method />
|
370
|
+
</configuration>
|
371
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
372
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
373
|
+
<module name="" />
|
374
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
375
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
376
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
377
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
378
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
379
|
+
<envs />
|
380
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
381
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
382
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
383
|
+
<COVERAGE_PATTERN ENABLED="true">
|
384
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
385
|
+
</COVERAGE_PATTERN>
|
386
|
+
</EXTENSION>
|
387
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
388
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
389
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
390
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
391
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
392
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
393
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
394
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
395
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
396
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
397
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
398
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
399
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
400
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
401
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
402
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
403
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
404
|
+
<method />
|
405
|
+
</configuration>
|
406
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
407
|
+
<node-options />
|
408
|
+
<gulpfile />
|
409
|
+
<tasks />
|
410
|
+
<pass-parent-envs>true</pass-parent-envs>
|
411
|
+
<envs />
|
412
|
+
<method />
|
413
|
+
</configuration>
|
414
|
+
<list size="1">
|
415
|
+
<item index="0" class="java.lang.String" itemvalue="Rake.install: eax" />
|
416
|
+
</list>
|
417
|
+
<recent_temporary>
|
418
|
+
<list size="1">
|
419
|
+
<item index="0" class="java.lang.String" itemvalue="Rake.install: eax" />
|
420
|
+
</list>
|
421
|
+
</recent_temporary>
|
422
|
+
</component>
|
423
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
424
|
+
<component name="SvnConfiguration">
|
425
|
+
<configuration />
|
426
|
+
</component>
|
427
|
+
<component name="TaskManager">
|
428
|
+
<task active="true" id="Default" summary="Default task">
|
429
|
+
<changelist id="e123d1ff-8edd-41b7-bfc2-70b64e3ff90e" name="Default" comment="" />
|
430
|
+
<created>1424697471400</created>
|
431
|
+
<option name="number" value="Default" />
|
432
|
+
<updated>1424697471400</updated>
|
433
|
+
</task>
|
434
|
+
<servers />
|
435
|
+
</component>
|
436
|
+
<component name="ToolWindowManager">
|
437
|
+
<frame x="0" y="23" width="1680" height="1023" extended-state="6" />
|
438
|
+
<editor active="true" />
|
439
|
+
<layout>
|
440
|
+
<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="4" side_tool="false" content_ui="tabs" />
|
441
|
+
<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="0" side_tool="false" content_ui="tabs" />
|
442
|
+
<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="11" side_tool="false" content_ui="tabs" />
|
443
|
+
<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="0" side_tool="false" content_ui="tabs" />
|
444
|
+
<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="2" side_tool="false" content_ui="tabs" />
|
445
|
+
<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="3" side_tool="false" content_ui="tabs" />
|
446
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.37604168" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
|
447
|
+
<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="0" side_tool="true" content_ui="tabs" />
|
448
|
+
<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" />
|
449
|
+
<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="2" side_tool="false" content_ui="tabs" />
|
450
|
+
<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="9" side_tool="false" content_ui="tabs" />
|
451
|
+
<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="5" side_tool="false" content_ui="tabs" />
|
452
|
+
<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="2" side_tool="false" content_ui="tabs" />
|
453
|
+
<window_info id="Find" 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" />
|
454
|
+
<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="8" side_tool="false" content_ui="tabs" />
|
455
|
+
<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="1" side_tool="false" content_ui="tabs" />
|
456
|
+
<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="3" side_tool="false" content_ui="combo" />
|
457
|
+
<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="10" side_tool="false" content_ui="tabs" />
|
458
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32016212" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
459
|
+
</layout>
|
460
|
+
<layout-to-restore>
|
461
|
+
<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="9" side_tool="false" content_ui="tabs" />
|
462
|
+
<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="4" side_tool="false" content_ui="tabs" />
|
463
|
+
<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="0" side_tool="false" content_ui="tabs" />
|
464
|
+
<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="5" side_tool="false" content_ui="tabs" />
|
465
|
+
<window_info id="Find" 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" />
|
466
|
+
<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="0" side_tool="false" content_ui="tabs" />
|
467
|
+
<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="2" side_tool="false" content_ui="tabs" />
|
468
|
+
<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="8" side_tool="false" content_ui="tabs" />
|
469
|
+
<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="0" side_tool="true" content_ui="tabs" />
|
470
|
+
<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" />
|
471
|
+
<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="2" side_tool="false" content_ui="tabs" />
|
472
|
+
<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="11" side_tool="false" content_ui="tabs" />
|
473
|
+
<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="2" side_tool="false" content_ui="tabs" />
|
474
|
+
<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="1" side_tool="false" content_ui="tabs" />
|
475
|
+
<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="3" side_tool="false" content_ui="tabs" />
|
476
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.37604168" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
|
477
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32016212" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
478
|
+
<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="10" side_tool="false" content_ui="tabs" />
|
479
|
+
<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="3" side_tool="false" content_ui="combo" />
|
480
|
+
</layout-to-restore>
|
481
|
+
</component>
|
482
|
+
<component name="Vcs.Log.UiProperties">
|
483
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
484
|
+
<collection />
|
485
|
+
</option>
|
486
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
487
|
+
<collection />
|
488
|
+
</option>
|
489
|
+
</component>
|
490
|
+
<component name="VcsContentAnnotationSettings">
|
491
|
+
<option name="myLimit" value="2678400000" />
|
492
|
+
</component>
|
493
|
+
<component name="VcsManagerConfiguration">
|
494
|
+
<option name="myTodoPanelSettings">
|
495
|
+
<TodoPanelSettings />
|
496
|
+
</option>
|
497
|
+
</component>
|
498
|
+
<component name="XDebuggerManager">
|
499
|
+
<breakpoint-manager />
|
500
|
+
<watches-manager />
|
501
|
+
</component>
|
502
|
+
<component name="editorHistoryManager">
|
503
|
+
<entry file="file://$PROJECT_DIR$/eax.gemspec">
|
504
|
+
<provider selected="true" editor-type-id="text-editor">
|
505
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="425" max-vertical-offset="527">
|
506
|
+
<caret line="25" column="0" selection-start-line="25" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
|
507
|
+
<folding />
|
508
|
+
</state>
|
509
|
+
</provider>
|
510
|
+
</entry>
|
511
|
+
<entry file="file://$PROJECT_DIR$/bin/eax">
|
512
|
+
<provider selected="true" editor-type-id="text-editor">
|
513
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="68" max-vertical-offset="170">
|
514
|
+
<caret line="4" column="31" selection-start-line="4" selection-start-column="31" selection-end-line="4" selection-end-column="31" />
|
515
|
+
<folding />
|
516
|
+
</state>
|
517
|
+
</provider>
|
518
|
+
</entry>
|
519
|
+
<entry file="file://$PROJECT_DIR$/lib/eax.rb">
|
520
|
+
<provider selected="true" editor-type-id="text-editor">
|
521
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="2346">
|
522
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
523
|
+
<folding />
|
524
|
+
</state>
|
525
|
+
</provider>
|
526
|
+
</entry>
|
527
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.3/gems/tty-0.1.2/lib/tty/table.rb">
|
528
|
+
<provider selected="true" editor-type-id="text-editor">
|
529
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="6620" max-vertical-offset="8194">
|
530
|
+
<caret line="433" column="22" selection-start-line="433" selection-start-column="22" selection-end-line="433" selection-end-column="22" />
|
531
|
+
<folding />
|
532
|
+
</state>
|
533
|
+
</provider>
|
534
|
+
</entry>
|
535
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.3/gems/tty-0.1.0/lib/tty/terminal/color.rb">
|
536
|
+
<provider selected="true" editor-type-id="text-editor">
|
537
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="629" max-vertical-offset="2771">
|
538
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
539
|
+
<folding />
|
540
|
+
</state>
|
541
|
+
</provider>
|
542
|
+
</entry>
|
543
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
544
|
+
<provider selected="true" editor-type-id="text-editor">
|
545
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="136">
|
546
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
547
|
+
<folding />
|
548
|
+
</state>
|
549
|
+
</provider>
|
550
|
+
</entry>
|
551
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
552
|
+
<provider selected="true" editor-type-id="text-editor">
|
553
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="613">
|
554
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
555
|
+
<folding />
|
556
|
+
</state>
|
557
|
+
</provider>
|
558
|
+
</entry>
|
559
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs21/dir.rb">
|
560
|
+
<provider selected="true" editor-type-id="text-editor">
|
561
|
+
<state vertical-scroll-proportion="0.44371942" vertical-offset="6307" max-vertical-offset="7344">
|
562
|
+
<caret line="387" column="41" selection-start-line="387" selection-start-column="23" selection-end-line="387" selection-end-column="41" />
|
563
|
+
<folding />
|
564
|
+
</state>
|
565
|
+
</provider>
|
566
|
+
</entry>
|
567
|
+
<entry file="file://$PROJECT_DIR$/lib/eax/version.rb">
|
568
|
+
<provider selected="true" editor-type-id="text-editor">
|
569
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="613">
|
570
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
571
|
+
<folding />
|
572
|
+
</state>
|
573
|
+
</provider>
|
574
|
+
</entry>
|
575
|
+
<entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rake/file_list.rb">
|
576
|
+
<provider selected="true" editor-type-id="text-editor">
|
577
|
+
<state vertical-scroll-proportion="0.3050571" vertical-offset="2346" max-vertical-offset="7174">
|
578
|
+
<caret line="149" column="8" selection-start-line="149" selection-start-column="8" selection-end-line="149" selection-end-column="8" />
|
579
|
+
</state>
|
580
|
+
</provider>
|
581
|
+
</entry>
|
582
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.3/gems/tty-0.1.0/lib/tty/terminal/color.rb">
|
583
|
+
<provider selected="true" editor-type-id="text-editor">
|
584
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="629" max-vertical-offset="2771">
|
585
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
586
|
+
<folding />
|
587
|
+
</state>
|
588
|
+
</provider>
|
589
|
+
</entry>
|
590
|
+
<entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/resolver/lock_specification.rb">
|
591
|
+
<provider selected="true" editor-type-id="text-editor">
|
592
|
+
<state vertical-scroll-proportion="0.33903578" vertical-offset="445" max-vertical-offset="1088">
|
593
|
+
<caret line="39" column="6" selection-start-line="39" selection-start-column="6" selection-end-line="39" selection-end-column="6" />
|
594
|
+
</state>
|
595
|
+
</provider>
|
596
|
+
</entry>
|
597
|
+
<entry file="file://$PROJECT_DIR$/eax.gemspec">
|
598
|
+
<provider selected="true" editor-type-id="text-editor">
|
599
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="527">
|
600
|
+
<caret line="25" column="0" selection-start-line="25" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
|
601
|
+
<folding />
|
602
|
+
</state>
|
603
|
+
</provider>
|
604
|
+
</entry>
|
605
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.3/gems/pastel-0.4.0/lib/pastel/color.rb">
|
606
|
+
<provider selected="true" editor-type-id="text-editor">
|
607
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="68" max-vertical-offset="3978">
|
608
|
+
<caret line="4" column="8" selection-start-line="4" selection-start-column="8" selection-end-line="4" selection-end-column="8" />
|
609
|
+
<folding />
|
610
|
+
</state>
|
611
|
+
</provider>
|
612
|
+
</entry>
|
613
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.3/gems/pastel-0.4.0/lib/pastel.rb">
|
614
|
+
<provider selected="true" editor-type-id="text-editor">
|
615
|
+
<state vertical-scroll-proportion="0.60342145" vertical-offset="122" max-vertical-offset="765">
|
616
|
+
<caret line="30" column="18" selection-start-line="30" selection-start-column="18" selection-end-line="30" selection-end-column="18" />
|
617
|
+
<folding />
|
618
|
+
</state>
|
619
|
+
</provider>
|
620
|
+
</entry>
|
621
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.3/gems/tty-0.1.2/lib/tty/table.rb">
|
622
|
+
<provider selected="true" editor-type-id="text-editor">
|
623
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="6620" max-vertical-offset="8194">
|
624
|
+
<caret line="433" column="22" selection-start-line="433" selection-start-column="22" selection-end-line="433" selection-end-column="22" />
|
625
|
+
<folding />
|
626
|
+
</state>
|
627
|
+
</provider>
|
628
|
+
</entry>
|
629
|
+
<entry file="file://$PROJECT_DIR$/bin/eax">
|
630
|
+
<provider selected="true" editor-type-id="text-editor">
|
631
|
+
<state vertical-scroll-proportion="0.7868676" vertical-offset="0" max-vertical-offset="929">
|
632
|
+
<caret line="43" column="24" selection-start-line="43" selection-start-column="24" selection-end-line="43" selection-end-column="24" />
|
633
|
+
<folding />
|
634
|
+
</state>
|
635
|
+
</provider>
|
636
|
+
</entry>
|
637
|
+
<entry file="file://$PROJECT_DIR$/lib/eax.rb">
|
638
|
+
<provider selected="true" editor-type-id="text-editor">
|
639
|
+
<state vertical-scroll-proportion="0.6221744" vertical-offset="1071" max-vertical-offset="3366">
|
640
|
+
<caret line="97" column="73" selection-start-line="97" selection-start-column="73" selection-end-line="97" selection-end-column="73" />
|
641
|
+
<folding />
|
642
|
+
</state>
|
643
|
+
</provider>
|
644
|
+
</entry>
|
645
|
+
</component>
|
646
|
+
</project>
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 facenord
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# Eax
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'eax'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install eax
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it ( https://github.com/[my-github-username]/eax/fork )
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/eax
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'eax'
|
2
|
+
require 'slop'
|
3
|
+
|
4
|
+
include Eax
|
5
|
+
|
6
|
+
begin
|
7
|
+
options = Slop.parse do |o|
|
8
|
+
o.banner = 'usage: eax [options] OPTIONAL directory'
|
9
|
+
o.on '-1', '--oneline', 'One entry per line'
|
10
|
+
o.on '-a', '--all', 'Show dot files'
|
11
|
+
o.on '-B', '--bytes', 'list file sizes in bytes, without prefixes'
|
12
|
+
o.on '-d', '--list-dirs', 'list directories as regular files'
|
13
|
+
o.on '-g', '--group', 'show group as well as user'
|
14
|
+
o.on '-h', '--header', 'show a header row at the top'
|
15
|
+
o.on '-H', '--links', 'show number of hard links'
|
16
|
+
o.on '-i', '--inode', 'show each file\'s inode number'
|
17
|
+
o.on '-l', '--long', 'display extended details and attributes'
|
18
|
+
o.on '-r', '--reverse', 'reverse order of files'
|
19
|
+
o.on '-R', '--recurse', 'recurse into directories'
|
20
|
+
o.string '-s', '--sort WORD', 'field to sort by'
|
21
|
+
o.on '-S', '--blocks', 'show number of file system blocks'
|
22
|
+
o.on '-T', '--tree', 'recurse into subdirectories in a tree view'
|
23
|
+
o.on '-m', '--modified', 'display timestamp of most recent modification'
|
24
|
+
o.on '-u', '--accessed', 'display timestamp of last access for a file'
|
25
|
+
o.on '-U', '--created', 'display timestamp of creation for a file'
|
26
|
+
o.on '--version', 'print the version' do
|
27
|
+
puts Eax::VERSION
|
28
|
+
exit
|
29
|
+
end
|
30
|
+
o.on '-?', '--help', 'Print Help'
|
31
|
+
end
|
32
|
+
rescue Slop::Error => e
|
33
|
+
puts "Bad utilization: #{e} See eax --help for more infos"
|
34
|
+
exit
|
35
|
+
end
|
36
|
+
|
37
|
+
# if options.binary? or options.bytes? or options.group? or options.header? or options.inode?
|
38
|
+
|
39
|
+
if options.help?
|
40
|
+
puts options
|
41
|
+
exit
|
42
|
+
end
|
43
|
+
|
44
|
+
puts EaxDir.new(options)
|
data/eax.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'eax/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "new-ls"
|
8
|
+
spec.version = Eax::VERSION
|
9
|
+
spec.authors = ["facenord"]
|
10
|
+
spec.email = ["facenord.sud@gmail.com"]
|
11
|
+
spec.summary = %q{Replacement for ls}
|
12
|
+
spec.homepage = ""
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0")
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
|
23
|
+
spec.add_dependency 'tty', '~> 0.1.2'
|
24
|
+
spec.add_dependency 'slop', '~> 4.0.0'
|
25
|
+
spec.add_dependency 'filesize', '~> 0.0.4'
|
26
|
+
end
|
data/lib/eax/version.rb
ADDED
data/lib/eax.rb
ADDED
@@ -0,0 +1,216 @@
|
|
1
|
+
require 'eax/version'
|
2
|
+
require 'tty'
|
3
|
+
require 'filesize'
|
4
|
+
|
5
|
+
module Eax
|
6
|
+
|
7
|
+
class FileListing
|
8
|
+
|
9
|
+
# List all items in a given directory
|
10
|
+
# +dir+ is the directory in which to list the items
|
11
|
+
# +hidden+ display hidden files
|
12
|
+
def self.list_files_in(dir, hidden: false, parent_dir: true)
|
13
|
+
args = [File.join(dir, '*')]
|
14
|
+
args << File::FNM_DOTMATCH if hidden
|
15
|
+
files = Dir.glob(*args)
|
16
|
+
files.reject! { |file| file.end_with? '.' or file.end_with? '..' } if parent_dir
|
17
|
+
files
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class EaxDir
|
22
|
+
attr_accessor :eax_files, :options, :list
|
23
|
+
|
24
|
+
def initialize(options)
|
25
|
+
@eax_files = []
|
26
|
+
@options = options
|
27
|
+
hidden = (options.all? or options.long?)
|
28
|
+
order(
|
29
|
+
FileListing.list_files_in(options.arguments.first || Dir.pwd, hidden: hidden),
|
30
|
+
by: (options[:sort] || :name).to_sym,
|
31
|
+
desc: options.reverse?
|
32
|
+
)
|
33
|
+
end
|
34
|
+
|
35
|
+
def to_s
|
36
|
+
files_info = eax_files.map {|file| file.output(options) }
|
37
|
+
if print_list?
|
38
|
+
files_info.join("\n")
|
39
|
+
else
|
40
|
+
files_info.join(' ' * 3)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def print_list?
|
47
|
+
options.oneline? or options.long?
|
48
|
+
end
|
49
|
+
|
50
|
+
def init_eax_files(files)
|
51
|
+
files.each do |file|
|
52
|
+
@eax_files << EaxFile.new(file)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def order(files, by: :name, desc: false)
|
57
|
+
case by
|
58
|
+
when :name
|
59
|
+
files.sort!
|
60
|
+
files.reverse! if desc
|
61
|
+
init_eax_files files
|
62
|
+
else
|
63
|
+
init_eax_files files
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
class EaxFile
|
69
|
+
|
70
|
+
attr_accessor :type, :path_name
|
71
|
+
|
72
|
+
def initialize(file)
|
73
|
+
@path_name = Pathname.new(file)
|
74
|
+
@type = file_type(@path_name)
|
75
|
+
end
|
76
|
+
|
77
|
+
def color
|
78
|
+
@color ||= Pastel.new
|
79
|
+
end
|
80
|
+
|
81
|
+
def output(options)
|
82
|
+
if options.long?
|
83
|
+
[print_rights, print_size(bytes: options.bytes?), print_user(group: options.group?),
|
84
|
+
choose_date_to_print(options), print_name
|
85
|
+
]
|
86
|
+
else
|
87
|
+
[print_name]
|
88
|
+
end.join(' ')
|
89
|
+
end
|
90
|
+
|
91
|
+
private
|
92
|
+
def print_rights(group: false)
|
93
|
+
mode = path_name.stat.mode.to_s(8)
|
94
|
+
folder = mode[0] == '4' ? color.blue('d') : '.'
|
95
|
+
user = mode[-3].to_i
|
96
|
+
group = mode[-2].to_i
|
97
|
+
other = mode[-1].to_i
|
98
|
+
rights = [folder, color.bold(determine_right(user))]
|
99
|
+
rights << determine_right(group) << determine_right(other) if group
|
100
|
+
rights.join
|
101
|
+
end
|
102
|
+
|
103
|
+
def determine_right(number)
|
104
|
+
right = ''
|
105
|
+
|
106
|
+
{4 => color.dim.yellow('r'), 2 => color.red('w'), 1 => color.green('x'), 0 => '-'}.each { |key, value|
|
107
|
+
compar = number - key
|
108
|
+
if compar >= 0
|
109
|
+
right += value
|
110
|
+
else
|
111
|
+
right += '-'
|
112
|
+
next
|
113
|
+
end
|
114
|
+
number = compar
|
115
|
+
}
|
116
|
+
right[0..-2]
|
117
|
+
end
|
118
|
+
|
119
|
+
def print_size(bytes: false)
|
120
|
+
return ' ' * 5 + '-' if path_name.directory?
|
121
|
+
size = path_name.stat.size
|
122
|
+
return color.green.bold size.to_s if bytes
|
123
|
+
size_in_word = Filesize.from("#{size} B").pretty.gsub(/\.00/, '').gsub(' ', '').gsub(/B/, '')
|
124
|
+
color.green.bold(' ' * (6 - size_in_word.length) + size_in_word )
|
125
|
+
end
|
126
|
+
|
127
|
+
def print_user(group: false)
|
128
|
+
user = color.yellow.bold(Etc.getpwuid(path_name.stat.uid).name)
|
129
|
+
user += color.yellow(' ' + Etc.getgrgid(path_name.stat.gid).name) if group
|
130
|
+
user
|
131
|
+
end
|
132
|
+
|
133
|
+
def print_date(date)
|
134
|
+
color.blue date.strftime("%d %b %H:%M")
|
135
|
+
end
|
136
|
+
|
137
|
+
def choose_date_to_print(options)
|
138
|
+
stat = path_name.stat
|
139
|
+
if options.modified?
|
140
|
+
print_date stat.mtime
|
141
|
+
else
|
142
|
+
print_date stat.ctime
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
def print_name
|
147
|
+
type.output(path_name.basename)
|
148
|
+
end
|
149
|
+
|
150
|
+
def file_type(path_name)
|
151
|
+
return FileTypes::FolderType.new if path_name.directory?
|
152
|
+
return FileTypes::ExecutableType.new if path_name.executable?
|
153
|
+
return FileTypes::ImportantType.new if %w(README.md Gemfile Grunt.js).include? path_name.basename.to_s
|
154
|
+
case path_name.extname
|
155
|
+
when 'jpeg', 'jpg', 'gif', 'svg', 'bitmap'
|
156
|
+
FileTypes::ImageType.new
|
157
|
+
else
|
158
|
+
FileTypes::NormalType.new
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
module Console
|
164
|
+
|
165
|
+
def terminal
|
166
|
+
@terminal ||= TTY::Terminal.new
|
167
|
+
end
|
168
|
+
|
169
|
+
def color
|
170
|
+
@color ||= Pastel.new
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
module FileTypes
|
175
|
+
|
176
|
+
class NormalType
|
177
|
+
include Console
|
178
|
+
|
179
|
+
def output(string)
|
180
|
+
string
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class BinaryType < NormalType
|
185
|
+
def output(string)
|
186
|
+
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
class ImportantType < NormalType
|
191
|
+
|
192
|
+
def output(string)
|
193
|
+
color.yellow.underline.bold string
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class ImageType < NormalType
|
198
|
+
def output(string)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class ExecutableType < NormalType
|
203
|
+
|
204
|
+
def output(string)
|
205
|
+
color.green string
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
class FolderType < NormalType
|
210
|
+
|
211
|
+
def output(string)
|
212
|
+
color.blue.bold string
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
metadata
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: new-ls
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- facenord
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-24 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.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
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: tty
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.1.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: slop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.0.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.0.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: filesize
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.0.4
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.0.4
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- facenord.sud@gmail.com
|
86
|
+
executables:
|
87
|
+
- eax
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- ".idea/.name"
|
93
|
+
- ".idea/.rakeTasks"
|
94
|
+
- ".idea/eax.iml"
|
95
|
+
- ".idea/encodings.xml"
|
96
|
+
- ".idea/misc.xml"
|
97
|
+
- ".idea/modules.xml"
|
98
|
+
- ".idea/scopes/scope_settings.xml"
|
99
|
+
- ".idea/vcs.xml"
|
100
|
+
- ".idea/workspace.xml"
|
101
|
+
- Gemfile
|
102
|
+
- LICENSE.txt
|
103
|
+
- README.md
|
104
|
+
- Rakefile
|
105
|
+
- bin/eax
|
106
|
+
- eax.gemspec
|
107
|
+
- lib/eax.rb
|
108
|
+
- lib/eax/version.rb
|
109
|
+
homepage: ''
|
110
|
+
licenses:
|
111
|
+
- MIT
|
112
|
+
metadata: {}
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options: []
|
115
|
+
require_paths:
|
116
|
+
- lib
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
requirements: []
|
128
|
+
rubyforge_project:
|
129
|
+
rubygems_version: 2.2.2
|
130
|
+
signing_key:
|
131
|
+
specification_version: 4
|
132
|
+
summary: Replacement for ls
|
133
|
+
test_files: []
|