arb-dict 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/arb-dict.iml +43 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/runConfigurations/arb_dict.xml +21 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +493 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +36 -0
- data/Rakefile +2 -0
- data/arb-dict.gemspec +25 -0
- data/bin/arb-dict +76 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/arb/dict.rb +7 -0
- data/lib/arb/dict/version.rb +5 -0
- metadata +104 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1e7cfeeb390ed8b6345e4836ad781e6adbaeb154
|
4
|
+
data.tar.gz: 27bc27242cfdaac0c7428e6c810d0aad9642d757
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2dc3c50a22145977d591e44d4898ca75a4d01125c67970673a144de459b8d008694e8acfeb3c603ee80d37e1afeb613444db2d505e4518e56a50979449f59f7b
|
7
|
+
data.tar.gz: 2db0c4206cb13be29d1f53595c6f0e0cd5d2247eb221b685c8d45ed8d708a1e7b771a7c97d6797417fac4eb3a147f30061058ae1e911649a5249c1de7c2a7ea8
|
data/.gitignore
ADDED
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 arb-dict-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install arb-dict-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install arb-dict-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push arb-dict-0.1.0.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/arb-dict.iml
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="New 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="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="arb-dict" type="RubyRunConfigurationType" factoryName="Ruby">
|
14
|
+
<module name="arb-dict" />
|
15
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
16
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/bin" />
|
17
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
18
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
19
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
20
|
+
<envs />
|
21
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
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
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/bin/arb-dict" />
|
29
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="take" />
|
30
|
+
<method />
|
31
|
+
</configuration>
|
32
|
+
</component>
|
33
|
+
<component name="NewModuleRootManager">
|
34
|
+
<content url="file://$MODULE_DIR$">
|
35
|
+
<excludeFolder url="file://$MODULE_DIR$/.bundle" />
|
36
|
+
<excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
|
37
|
+
</content>
|
38
|
+
<orderEntry type="inheritedJdk" />
|
39
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
40
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.12.5, RVM: ruby-2.2.4) [gem]" level="application" />
|
41
|
+
<orderEntry type="library" scope="PROVIDED" name="slop (v4.3.0, RVM: ruby-2.2.4) [gem]" level="application" />
|
42
|
+
</component>
|
43
|
+
</module>
|
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
<component name="ProjectRunConfigurationManager">
|
2
|
+
<configuration default="false" name="arb-dict" type="RubyRunConfigurationType" factoryName="Ruby">
|
3
|
+
<module name="arb-dict" />
|
4
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
5
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/bin" />
|
6
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
7
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
8
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
9
|
+
<envs />
|
10
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
11
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
12
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
13
|
+
<COVERAGE_PATTERN ENABLED="true">
|
14
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
15
|
+
</COVERAGE_PATTERN>
|
16
|
+
</EXTENSION>
|
17
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/bin/arb-dict" />
|
18
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="take" />
|
19
|
+
<method />
|
20
|
+
</configuration>
|
21
|
+
</component>
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,493 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="7df2479f-b303-403c-9058-2f358ddfac2f" name="Default" comment="">
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/arb-dict.iml" />
|
6
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
|
7
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
|
8
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/arb-dict.gemspec" afterPath="$PROJECT_DIR$/arb-dict.gemspec" />
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/arb/dict/version.rb" afterPath="$PROJECT_DIR$/lib/arb/dict/version.rb" />
|
11
|
+
</list>
|
12
|
+
<ignored path="arb-dict.iws" />
|
13
|
+
<ignored path=".idea/workspace.xml" />
|
14
|
+
<ignored path="$PROJECT_DIR$/.bundle/" />
|
15
|
+
<ignored path="$PROJECT_DIR$/vendor/bundle/" />
|
16
|
+
<ignored path=".idea/dataSources.local.xml" />
|
17
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
18
|
+
<option name="TRACKING_ENABLED" value="true" />
|
19
|
+
<option name="SHOW_DIALOG" value="false" />
|
20
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
21
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
22
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
23
|
+
</component>
|
24
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
25
|
+
<component name="CoverageDataManager">
|
26
|
+
<SUITE FILE_PATH="coverage/arb-dict@arb_dict.coverage" NAME="arb-dict Coverage Results" MODIFIED="1471675028241" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bin" MODULE_NAME="arb-dict" />
|
27
|
+
</component>
|
28
|
+
<component name="CreatePatchCommitExecutor">
|
29
|
+
<option name="PATCH_PATH" value="" />
|
30
|
+
</component>
|
31
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
32
|
+
<component name="FavoritesManager">
|
33
|
+
<favorites_list name="arb-dict" />
|
34
|
+
</component>
|
35
|
+
<component name="FileEditorManager">
|
36
|
+
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
37
|
+
<file leaf-file-name="arb-dict.gemspec" pinned="false" current-in-tab="false">
|
38
|
+
<entry file="file://$PROJECT_DIR$/arb-dict.gemspec">
|
39
|
+
<provider selected="true" editor-type-id="text-editor">
|
40
|
+
<state relative-caret-position="300">
|
41
|
+
<caret line="20" column="37" selection-start-line="20" selection-start-column="37" selection-end-line="20" selection-end-column="37" />
|
42
|
+
<folding />
|
43
|
+
</state>
|
44
|
+
</provider>
|
45
|
+
</entry>
|
46
|
+
</file>
|
47
|
+
<file leaf-file-name="arb-dict" pinned="false" current-in-tab="false">
|
48
|
+
<entry file="file://$PROJECT_DIR$/bin/arb-dict">
|
49
|
+
<provider selected="true" editor-type-id="text-editor">
|
50
|
+
<state relative-caret-position="15">
|
51
|
+
<caret line="2" column="7" selection-start-line="2" selection-start-column="7" selection-end-line="2" selection-end-column="7" />
|
52
|
+
<folding />
|
53
|
+
</state>
|
54
|
+
</provider>
|
55
|
+
</entry>
|
56
|
+
</file>
|
57
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
58
|
+
<entry file="file://$PROJECT_DIR$/lib/arb/dict/version.rb">
|
59
|
+
<provider selected="true" editor-type-id="text-editor">
|
60
|
+
<state relative-caret-position="30">
|
61
|
+
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
62
|
+
<folding />
|
63
|
+
</state>
|
64
|
+
</provider>
|
65
|
+
</entry>
|
66
|
+
</file>
|
67
|
+
</leaf>
|
68
|
+
</component>
|
69
|
+
<component name="Git.Settings">
|
70
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
71
|
+
</component>
|
72
|
+
<component name="IdeDocumentHistory">
|
73
|
+
<option name="CHANGED_PATHS">
|
74
|
+
<list>
|
75
|
+
<option value="$PROJECT_DIR$/arb-dict.gemspec" />
|
76
|
+
<option value="$PROJECT_DIR$/bin/arb-dict" />
|
77
|
+
<option value="$PROJECT_DIR$/lib/arb/dict/version.rb" />
|
78
|
+
</list>
|
79
|
+
</option>
|
80
|
+
</component>
|
81
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
82
|
+
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
83
|
+
<component name="JsGulpfileManager">
|
84
|
+
<detection-done>true</detection-done>
|
85
|
+
<sorting>DEFINITION_ORDER</sorting>
|
86
|
+
</component>
|
87
|
+
<component name="ProjectFrameBounds">
|
88
|
+
<option name="x" value="53" />
|
89
|
+
<option name="y" value="24" />
|
90
|
+
<option name="width" value="1313" />
|
91
|
+
<option name="height" value="744" />
|
92
|
+
</component>
|
93
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
94
|
+
<OptionsSetting value="true" id="Add" />
|
95
|
+
<OptionsSetting value="true" id="Remove" />
|
96
|
+
<OptionsSetting value="true" id="Checkout" />
|
97
|
+
<OptionsSetting value="true" id="Update" />
|
98
|
+
<OptionsSetting value="true" id="Status" />
|
99
|
+
<OptionsSetting value="true" id="Edit" />
|
100
|
+
<ConfirmationsSetting value="0" id="Add" />
|
101
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
102
|
+
</component>
|
103
|
+
<component name="ProjectView">
|
104
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
105
|
+
<flattenPackages />
|
106
|
+
<showMembers />
|
107
|
+
<showModules />
|
108
|
+
<showLibraryContents />
|
109
|
+
<hideEmptyPackages />
|
110
|
+
<abbreviatePackageNames />
|
111
|
+
<autoscrollToSource />
|
112
|
+
<autoscrollFromSource />
|
113
|
+
<sortByType />
|
114
|
+
<manualOrder />
|
115
|
+
<foldersAlwaysOnTop value="true" />
|
116
|
+
</navigator>
|
117
|
+
<panes>
|
118
|
+
<pane id="Scratches" />
|
119
|
+
<pane id="ProjectPane">
|
120
|
+
<subPane>
|
121
|
+
<PATH>
|
122
|
+
<PATH_ELEMENT>
|
123
|
+
<option name="myItemId" value="arb-dict" />
|
124
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
125
|
+
</PATH_ELEMENT>
|
126
|
+
</PATH>
|
127
|
+
<PATH>
|
128
|
+
<PATH_ELEMENT>
|
129
|
+
<option name="myItemId" value="arb-dict" />
|
130
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
131
|
+
</PATH_ELEMENT>
|
132
|
+
<PATH_ELEMENT>
|
133
|
+
<option name="myItemId" value="arb-dict" />
|
134
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
135
|
+
</PATH_ELEMENT>
|
136
|
+
</PATH>
|
137
|
+
<PATH>
|
138
|
+
<PATH_ELEMENT>
|
139
|
+
<option name="myItemId" value="arb-dict" />
|
140
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
141
|
+
</PATH_ELEMENT>
|
142
|
+
<PATH_ELEMENT>
|
143
|
+
<option name="myItemId" value="arb-dict" />
|
144
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
145
|
+
</PATH_ELEMENT>
|
146
|
+
<PATH_ELEMENT>
|
147
|
+
<option name="myItemId" value="lib" />
|
148
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
149
|
+
</PATH_ELEMENT>
|
150
|
+
<PATH_ELEMENT>
|
151
|
+
<option name="myItemId" value="arb" />
|
152
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
153
|
+
</PATH_ELEMENT>
|
154
|
+
</PATH>
|
155
|
+
<PATH>
|
156
|
+
<PATH_ELEMENT>
|
157
|
+
<option name="myItemId" value="arb-dict" />
|
158
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
159
|
+
</PATH_ELEMENT>
|
160
|
+
<PATH_ELEMENT>
|
161
|
+
<option name="myItemId" value="arb-dict" />
|
162
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
163
|
+
</PATH_ELEMENT>
|
164
|
+
<PATH_ELEMENT>
|
165
|
+
<option name="myItemId" value="lib" />
|
166
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
167
|
+
</PATH_ELEMENT>
|
168
|
+
<PATH_ELEMENT>
|
169
|
+
<option name="myItemId" value="arb" />
|
170
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
171
|
+
</PATH_ELEMENT>
|
172
|
+
<PATH_ELEMENT>
|
173
|
+
<option name="myItemId" value="dict" />
|
174
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
175
|
+
</PATH_ELEMENT>
|
176
|
+
</PATH>
|
177
|
+
<PATH>
|
178
|
+
<PATH_ELEMENT>
|
179
|
+
<option name="myItemId" value="arb-dict" />
|
180
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
181
|
+
</PATH_ELEMENT>
|
182
|
+
<PATH_ELEMENT>
|
183
|
+
<option name="myItemId" value="arb-dict" />
|
184
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
185
|
+
</PATH_ELEMENT>
|
186
|
+
<PATH_ELEMENT>
|
187
|
+
<option name="myItemId" value="bin" />
|
188
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
189
|
+
</PATH_ELEMENT>
|
190
|
+
</PATH>
|
191
|
+
</subPane>
|
192
|
+
</pane>
|
193
|
+
<pane id="Scope" />
|
194
|
+
</panes>
|
195
|
+
</component>
|
196
|
+
<component name="PropertiesComponent">
|
197
|
+
<property name="settings.editor.selected.configurable" value="sshConsole" />
|
198
|
+
<property name="settings.editor.splitter.proportion" value="0.2" />
|
199
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$/../arb-xmu-course" />
|
200
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
201
|
+
</component>
|
202
|
+
<component name="RunManager" selected="Ruby.arb-dict">
|
203
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
204
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
205
|
+
<module name="" />
|
206
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
207
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
208
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
209
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
210
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
211
|
+
<envs />
|
212
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
213
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
214
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
215
|
+
<COVERAGE_PATTERN ENABLED="true">
|
216
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
217
|
+
</COVERAGE_PATTERN>
|
218
|
+
</EXTENSION>
|
219
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
220
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
221
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
222
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
223
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
224
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
225
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
226
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
227
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
228
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
229
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
230
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
231
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
232
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
233
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
234
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
235
|
+
<method />
|
236
|
+
</configuration>
|
237
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
238
|
+
<method />
|
239
|
+
</configuration>
|
240
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
241
|
+
<module name="" />
|
242
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
243
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
244
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
245
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
246
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
247
|
+
<envs />
|
248
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
249
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
250
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
251
|
+
<COVERAGE_PATTERN ENABLED="true">
|
252
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
253
|
+
</COVERAGE_PATTERN>
|
254
|
+
</EXTENSION>
|
255
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
256
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
257
|
+
<method />
|
258
|
+
</configuration>
|
259
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
260
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
261
|
+
<module name="" />
|
262
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
263
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
264
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
265
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
266
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
267
|
+
<envs />
|
268
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
269
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
270
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
271
|
+
<COVERAGE_PATTERN ENABLED="true">
|
272
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
273
|
+
</COVERAGE_PATTERN>
|
274
|
+
</EXTENSION>
|
275
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
276
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
277
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
278
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
279
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
280
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
281
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
282
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
283
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
284
|
+
<method />
|
285
|
+
</configuration>
|
286
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
287
|
+
<node-interpreter>project</node-interpreter>
|
288
|
+
<node-options />
|
289
|
+
<gulpfile />
|
290
|
+
<tasks />
|
291
|
+
<arguments />
|
292
|
+
<envs />
|
293
|
+
<method />
|
294
|
+
</configuration>
|
295
|
+
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
296
|
+
<command value="run-script" />
|
297
|
+
<scripts />
|
298
|
+
<node-interpreter value="project" />
|
299
|
+
<envs />
|
300
|
+
<method />
|
301
|
+
</configuration>
|
302
|
+
<list size="1">
|
303
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.arb-dict" />
|
304
|
+
</list>
|
305
|
+
</component>
|
306
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
307
|
+
<option name="remove_strategy" value="false" />
|
308
|
+
</component>
|
309
|
+
<component name="SvnConfiguration">
|
310
|
+
<configuration />
|
311
|
+
</component>
|
312
|
+
<component name="TaskManager">
|
313
|
+
<task active="true" id="Default" summary="Default task">
|
314
|
+
<changelist id="7df2479f-b303-403c-9058-2f358ddfac2f" name="Default" comment="" />
|
315
|
+
<created>1471613387706</created>
|
316
|
+
<option name="number" value="Default" />
|
317
|
+
<option name="presentableId" value="Default" />
|
318
|
+
<updated>1471613387706</updated>
|
319
|
+
<workItem from="1471613388893" duration="1266000" />
|
320
|
+
<workItem from="1471614676952" duration="79000" />
|
321
|
+
<workItem from="1471614779907" duration="11518000" />
|
322
|
+
<workItem from="1471668776930" duration="4772000" />
|
323
|
+
<workItem from="1471754655471" duration="287000" />
|
324
|
+
</task>
|
325
|
+
<servers />
|
326
|
+
</component>
|
327
|
+
<component name="TimeTrackingManager">
|
328
|
+
<option name="totallyTimeSpent" value="17922000" />
|
329
|
+
</component>
|
330
|
+
<component name="ToolWindowManager">
|
331
|
+
<frame x="53" y="24" width="1313" height="744" extended-state="6" />
|
332
|
+
<editor active="false" />
|
333
|
+
<layout>
|
334
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2715075" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
335
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
336
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
337
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
338
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
339
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
340
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
341
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
342
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
343
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
344
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
345
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
346
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.54573643" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
347
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
348
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
349
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
350
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
351
|
+
</layout>
|
352
|
+
</component>
|
353
|
+
<component name="Vcs.Log.UiProperties">
|
354
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
355
|
+
<collection />
|
356
|
+
</option>
|
357
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
358
|
+
<collection />
|
359
|
+
</option>
|
360
|
+
</component>
|
361
|
+
<component name="VcsContentAnnotationSettings">
|
362
|
+
<option name="myLimit" value="2678400000" />
|
363
|
+
</component>
|
364
|
+
<component name="XDebuggerManager">
|
365
|
+
<breakpoint-manager />
|
366
|
+
<watches-manager />
|
367
|
+
</component>
|
368
|
+
<component name="editorHistoryManager">
|
369
|
+
<entry file="file://$PROJECT_DIR$/arb-dict.gemspec">
|
370
|
+
<provider selected="true" editor-type-id="text-editor">
|
371
|
+
<state relative-caret-position="0">
|
372
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
373
|
+
<folding />
|
374
|
+
</state>
|
375
|
+
</provider>
|
376
|
+
</entry>
|
377
|
+
<entry file="file://$PROJECT_DIR$/bin/arb-dict">
|
378
|
+
<provider selected="true" editor-type-id="text-editor">
|
379
|
+
<state relative-caret-position="345">
|
380
|
+
<caret line="23" column="30" selection-start-line="23" selection-start-column="30" selection-end-line="23" selection-end-column="30" />
|
381
|
+
<folding />
|
382
|
+
</state>
|
383
|
+
</provider>
|
384
|
+
</entry>
|
385
|
+
<entry file="file://$PROJECT_DIR$/arb-dict.gemspec">
|
386
|
+
<provider selected="true" editor-type-id="text-editor">
|
387
|
+
<state relative-caret-position="300">
|
388
|
+
<caret line="20" column="37" selection-start-line="20" selection-start-column="37" selection-end-line="20" selection-end-column="37" />
|
389
|
+
<folding />
|
390
|
+
</state>
|
391
|
+
</provider>
|
392
|
+
</entry>
|
393
|
+
<entry file="file://$PROJECT_DIR$/bin/arb-dict">
|
394
|
+
<provider selected="true" editor-type-id="text-editor">
|
395
|
+
<state relative-caret-position="0">
|
396
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
397
|
+
<folding />
|
398
|
+
</state>
|
399
|
+
</provider>
|
400
|
+
</entry>
|
401
|
+
<entry file="file://$PROJECT_DIR$/arb-dict.gemspec">
|
402
|
+
<provider selected="true" editor-type-id="text-editor">
|
403
|
+
<state relative-caret-position="255">
|
404
|
+
<caret line="17" column="32" selection-start-line="17" selection-start-column="32" selection-end-line="17" selection-end-column="32" />
|
405
|
+
<folding />
|
406
|
+
</state>
|
407
|
+
</provider>
|
408
|
+
</entry>
|
409
|
+
<entry file="file://$PROJECT_DIR$/bin/arb-dict">
|
410
|
+
<provider selected="true" editor-type-id="text-editor">
|
411
|
+
<state relative-caret-position="0">
|
412
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
413
|
+
<folding />
|
414
|
+
</state>
|
415
|
+
</provider>
|
416
|
+
</entry>
|
417
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
418
|
+
<provider selected="true" editor-type-id="text-editor">
|
419
|
+
<state relative-caret-position="0">
|
420
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
421
|
+
</state>
|
422
|
+
</provider>
|
423
|
+
</entry>
|
424
|
+
<entry file="file://$PROJECT_DIR$/lib/arb/dict.rb">
|
425
|
+
<provider selected="true" editor-type-id="text-editor">
|
426
|
+
<state relative-caret-position="0">
|
427
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
428
|
+
</state>
|
429
|
+
</provider>
|
430
|
+
</entry>
|
431
|
+
<entry file="file://$PROJECT_DIR$/arb-dict.gemspec">
|
432
|
+
<provider selected="true" editor-type-id="text-editor">
|
433
|
+
<state relative-caret-position="255">
|
434
|
+
<caret line="17" column="32" selection-start-line="17" selection-start-column="32" selection-end-line="17" selection-end-column="32" />
|
435
|
+
<folding />
|
436
|
+
</state>
|
437
|
+
</provider>
|
438
|
+
</entry>
|
439
|
+
<entry file="file://$PROJECT_DIR$/bin/arb-dict">
|
440
|
+
<provider selected="true" editor-type-id="text-editor">
|
441
|
+
<state relative-caret-position="0">
|
442
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
443
|
+
<folding />
|
444
|
+
</state>
|
445
|
+
</provider>
|
446
|
+
</entry>
|
447
|
+
<entry file="file://$PROJECT_DIR$/lib/arb/dict.rb">
|
448
|
+
<provider selected="true" editor-type-id="text-editor">
|
449
|
+
<state relative-caret-position="0">
|
450
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
451
|
+
</state>
|
452
|
+
</provider>
|
453
|
+
</entry>
|
454
|
+
<entry file="file://$PROJECT_DIR$/lib/arb/dict.rb">
|
455
|
+
<provider selected="true" editor-type-id="text-editor">
|
456
|
+
<state relative-caret-position="0">
|
457
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
458
|
+
</state>
|
459
|
+
</provider>
|
460
|
+
</entry>
|
461
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
462
|
+
<provider selected="true" editor-type-id="text-editor">
|
463
|
+
<state relative-caret-position="0">
|
464
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
465
|
+
</state>
|
466
|
+
</provider>
|
467
|
+
</entry>
|
468
|
+
<entry file="file://$PROJECT_DIR$/arb-dict.gemspec">
|
469
|
+
<provider selected="true" editor-type-id="text-editor">
|
470
|
+
<state relative-caret-position="300">
|
471
|
+
<caret line="20" column="37" selection-start-line="20" selection-start-column="37" selection-end-line="20" selection-end-column="37" />
|
472
|
+
<folding />
|
473
|
+
</state>
|
474
|
+
</provider>
|
475
|
+
</entry>
|
476
|
+
<entry file="file://$PROJECT_DIR$/bin/arb-dict">
|
477
|
+
<provider selected="true" editor-type-id="text-editor">
|
478
|
+
<state relative-caret-position="15">
|
479
|
+
<caret line="2" column="7" selection-start-line="2" selection-start-column="7" selection-end-line="2" selection-end-column="7" />
|
480
|
+
<folding />
|
481
|
+
</state>
|
482
|
+
</provider>
|
483
|
+
</entry>
|
484
|
+
<entry file="file://$PROJECT_DIR$/lib/arb/dict/version.rb">
|
485
|
+
<provider selected="true" editor-type-id="text-editor">
|
486
|
+
<state relative-caret-position="30">
|
487
|
+
<caret line="2" column="20" selection-start-line="2" selection-start-column="20" selection-end-line="2" selection-end-column="20" />
|
488
|
+
<folding />
|
489
|
+
</state>
|
490
|
+
</provider>
|
491
|
+
</entry>
|
492
|
+
</component>
|
493
|
+
</project>
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2016 arybin-cn
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Arb::Dict
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/arb/dict`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'arb-dict'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install arb-dict
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/arb-dict.
|
36
|
+
|
data/Rakefile
ADDED
data/arb-dict.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'arb/dict/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "arb-dict"
|
8
|
+
spec.version = Arb::Dict::VERSION
|
9
|
+
spec.authors = ["arybin"]
|
10
|
+
spec.email = ["arybin@163.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Dictionary Base On Ruby (With The Help Of YouDao API)}
|
13
|
+
spec.description = %q{Dictionary Base On Ruby (With The Help Of YouDao API)}
|
14
|
+
spec.homepage = 'https://github.com/arybin-cn/arb-dict'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = 'bin'
|
18
|
+
spec.executables = 'arb-dict'
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency 'slop', '4.3.0'
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
end
|
data/bin/arb-dict
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'csv'
|
3
|
+
require 'slop'
|
4
|
+
require 'json'
|
5
|
+
require 'open-uri'
|
6
|
+
|
7
|
+
|
8
|
+
define_method :fmt_json do |main_hash|
|
9
|
+
puts main_hash.to_json
|
10
|
+
end
|
11
|
+
|
12
|
+
define_method :fmt_csv do |main_hash|
|
13
|
+
tmp_arr = [main_hash[:entity], main_hash[:phonetic_us], main_hash[:phonetic_uk]]
|
14
|
+
main_hash[:translation].each do |translation|
|
15
|
+
tmp_arr<<translation
|
16
|
+
end
|
17
|
+
main_hash[:sentences].each do |sentence|
|
18
|
+
tmp_arr<<sentence[:entity]<<sentence[:translation]
|
19
|
+
end
|
20
|
+
puts tmp_arr.to_csv
|
21
|
+
end
|
22
|
+
|
23
|
+
define_method :fmt_raw do |main_hash|
|
24
|
+
puts main_hash[:entity], ''
|
25
|
+
puts "US[#{main_hash[:phonetic_us]}]" if main_hash[:phonetic_us].size>0
|
26
|
+
puts "UK[#{main_hash[:phonetic_uk]}]" if main_hash[:phonetic_uk].size>0
|
27
|
+
puts '' if (main_hash[:phonetic_us].size>0 || main_hash[:phonetic_uk].size>0)
|
28
|
+
puts main_hash[:translation]
|
29
|
+
if main_hash[:sentences].size>0
|
30
|
+
puts ''
|
31
|
+
main_hash[:sentences].each do |sentence|
|
32
|
+
puts sentence[:entity], sentence[:translation], ''
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
begin
|
39
|
+
opts = Slop.parse do |o|
|
40
|
+
o.bool *%w{-s --sentence}, 'show sentences'
|
41
|
+
o.string *%w{-f --format}, 'available choices: json,csv,raw(default)', default: 'raw'
|
42
|
+
end
|
43
|
+
rescue Slop::MissingArgument
|
44
|
+
puts 'Missing arguments!'
|
45
|
+
rescue Slop::UnknownOption
|
46
|
+
puts 'Unknown options!'
|
47
|
+
end
|
48
|
+
|
49
|
+
if opts
|
50
|
+
entity = opts.args.first
|
51
|
+
if entity
|
52
|
+
tmp_hash = JSON.parse(open("http://dict.youdao.com/jsonresult?q=#{entity}&type=1").read)
|
53
|
+
main_hash = {
|
54
|
+
entity: entity,
|
55
|
+
phonetic_us: (tmp_hash['sm'] rescue 'No US Phonetic'),
|
56
|
+
phonetic_uk: (tmp_hash['uksm'] rescue 'No UK Phonetic'),
|
57
|
+
translation: (tmp_hash['basic'] rescue 'No Translation')
|
58
|
+
}
|
59
|
+
main_hash[:sentences]=[]
|
60
|
+
if opts.sentence?
|
61
|
+
JSON.parse(open("http://dict.youdao.com/jsonapi?q=#{entity}").read)['blng_sents_part']['sentence-pair'].each do |inner_hash|
|
62
|
+
main_hash[:sentences] << {
|
63
|
+
entity: inner_hash['sentence'],
|
64
|
+
translation: inner_hash['sentence-translation']
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
send "fmt_#{opts[:format]}", main_hash
|
69
|
+
else
|
70
|
+
puts 'Missing target, please specify a word or phrase!'
|
71
|
+
exit
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
|
76
|
+
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "arb/dict"
|
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
data/lib/arb/dict.rb
ADDED
metadata
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: arb-dict
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- arybin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: slop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.3.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.3.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description: Dictionary Base On Ruby (With The Help Of YouDao API)
|
56
|
+
email:
|
57
|
+
- arybin@163.com
|
58
|
+
executables:
|
59
|
+
- arb-dict
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- ".idea/.rakeTasks"
|
65
|
+
- ".idea/arb-dict.iml"
|
66
|
+
- ".idea/misc.xml"
|
67
|
+
- ".idea/modules.xml"
|
68
|
+
- ".idea/runConfigurations/arb_dict.xml"
|
69
|
+
- ".idea/vcs.xml"
|
70
|
+
- ".idea/workspace.xml"
|
71
|
+
- Gemfile
|
72
|
+
- LICENSE
|
73
|
+
- README.md
|
74
|
+
- Rakefile
|
75
|
+
- arb-dict.gemspec
|
76
|
+
- bin/arb-dict
|
77
|
+
- bin/console
|
78
|
+
- bin/setup
|
79
|
+
- lib/arb/dict.rb
|
80
|
+
- lib/arb/dict/version.rb
|
81
|
+
homepage: https://github.com/arybin-cn/arb-dict
|
82
|
+
licenses: []
|
83
|
+
metadata: {}
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubyforge_project:
|
100
|
+
rubygems_version: 2.4.8
|
101
|
+
signing_key:
|
102
|
+
specification_version: 4
|
103
|
+
summary: Dictionary Base On Ruby (With The Help Of YouDao API)
|
104
|
+
test_files: []
|