google-translate 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +9 -9
- data/.idea/google-translate.iml +1 -163
- data/.idea/runConfigurations/translate.xml +1 -1
- data/.idea/workspace.xml +159 -271
- data/CHANGES +5 -1
- data/README.md +53 -0
- data/bin/translate +1 -3
- data/bin/ts +5 -0
- data/lib/google_translate/google_translate.rb +11 -11
- data/lib/google_translate/translate_cli.rb +18 -12
- data/lib/google_translate/version.rb +1 -1
- metadata +5 -4
- data/README +0 -14
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YzZkZWJkOGM0MDc0YmExN2VlZjViNTgwYWU5YzZkMDNhZmY1NzhiYg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
NzkwNGFlYmRiNjYxZWY4ZThkMWQwY2MyZjJmOWU2MmYwNGVlYjVhMg==
|
|
7
|
+
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OWRlOTczYzM5NjcyNTNmYWVhZWMyOTEyZmRjZmRmODc4ZDA1MTAyODdmYmU3
|
|
10
|
+
OTUwM2JkNmRjYjY2OTgxOTcxYjIxODc3ZTYzYWZjOGYwMzIxYTNjY2I1Mzk0
|
|
11
|
+
ZTg2OTI5MzQ0ZDNiOGQ1OTFhOTU1YTk2OWNmMGU4ZmI3ODkxMjQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NTE5MTEyOWU3MzgwYzM5YzJmMDYxZGQ3MTZlM2U3ZDMwMWNkYjVkMjY5MDk5
|
|
14
|
+
N2Y2YjRkZTE5NThiZGZjOWI2YzM0NTliOTg4YzBlZDc2YjU0ZTAwYmZiOTUw
|
|
15
|
+
Y2UyYzM0YjY0OGZmZTU5NDRjNzg0ZjdmMDBiNjQ3Mjg2OWM2OTM=
|
data/.idea/google-translate.iml
CHANGED
|
@@ -54,146 +54,6 @@
|
|
|
54
54
|
</requirement>
|
|
55
55
|
</component>
|
|
56
56
|
<component name="ModuleRunConfigurationManager">
|
|
57
|
-
<configuration default="false" name="Unnamed" type="RSpecRunConfigurationType" factoryName="RSpec">
|
|
58
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
59
|
-
<module name="google-translate" />
|
|
60
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
61
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
62
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
63
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
64
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
65
|
-
<envs />
|
|
66
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
|
67
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
68
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
69
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
70
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
71
|
-
</COVERAGE_PATTERN>
|
|
72
|
-
</EXTENSION>
|
|
73
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
74
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
75
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
76
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
|
|
77
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
78
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
79
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
80
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
81
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
82
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
83
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
84
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
85
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
86
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
87
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
88
|
-
<method />
|
|
89
|
-
</configuration>
|
|
90
|
-
<configuration default="false" name="Translator should translate test string from one language to another" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
91
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
92
|
-
<module name="google-translate" />
|
|
93
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
94
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$/spec" />
|
|
95
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
96
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
97
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
98
|
-
<envs>
|
|
99
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
|
100
|
-
</envs>
|
|
101
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
102
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
103
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
104
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
105
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
106
|
-
</COVERAGE_PATTERN>
|
|
107
|
-
</EXTENSION>
|
|
108
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
109
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
110
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
111
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
|
|
112
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
113
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Translator should translate test string from one language to another" />
|
|
114
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
115
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
116
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
117
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
118
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
119
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
120
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
121
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
122
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
123
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
124
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
125
|
-
<method />
|
|
126
|
-
</configuration>
|
|
127
|
-
<configuration default="false" name="Translator should translate test string from one language to another with autodetect" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
128
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
129
|
-
<module name="google-translate" />
|
|
130
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
131
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
132
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
133
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
134
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
135
|
-
<envs>
|
|
136
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
|
137
|
-
</envs>
|
|
138
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
139
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
140
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
141
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
142
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
143
|
-
</COVERAGE_PATTERN>
|
|
144
|
-
</EXTENSION>
|
|
145
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
146
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
147
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
148
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
|
|
149
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
150
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Translator should translate test string from one language to another with autodetect" />
|
|
151
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
152
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
153
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
154
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
155
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
156
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
157
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
158
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
159
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
160
|
-
<method />
|
|
161
|
-
</configuration>
|
|
162
|
-
<configuration default="false" name="google_translate_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
163
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
164
|
-
<module name="google-translate" />
|
|
165
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
166
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
167
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
168
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
169
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
170
|
-
<envs>
|
|
171
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
|
172
|
-
</envs>
|
|
173
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
174
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
175
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
176
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
177
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
178
|
-
</COVERAGE_PATTERN>
|
|
179
|
-
</EXTENSION>
|
|
180
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
181
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
182
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
183
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
|
|
184
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
185
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
186
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
187
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
188
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
189
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
190
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
191
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
192
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
193
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
194
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
195
|
-
<method />
|
|
196
|
-
</configuration>
|
|
197
57
|
<configuration default="false" name="translate" type="RubyRunConfigurationType" factoryName="Ruby">
|
|
198
58
|
<module name="google-translate" />
|
|
199
59
|
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
@@ -211,35 +71,13 @@
|
|
|
211
71
|
</EXTENSION>
|
|
212
72
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
213
73
|
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/bin/translate" />
|
|
214
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="en
|
|
74
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="en how are you?" />
|
|
215
75
|
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
216
76
|
<RunnerSettings RunnerId="RubyRunner" />
|
|
217
77
|
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
218
78
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
219
79
|
<method />
|
|
220
80
|
</configuration>
|
|
221
|
-
<configuration default="false" name="google_translate_spec" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
|
222
|
-
<module name="google-translate" />
|
|
223
|
-
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
224
|
-
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/spec" />
|
|
225
|
-
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
226
|
-
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
227
|
-
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
228
|
-
<envs />
|
|
229
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
230
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
231
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
232
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
233
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
234
|
-
</COVERAGE_PATTERN>
|
|
235
|
-
</EXTENSION>
|
|
236
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
237
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
238
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
239
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
240
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
241
|
-
<method />
|
|
242
|
-
</configuration>
|
|
243
81
|
</component>
|
|
244
82
|
<component name="NewModuleRootManager">
|
|
245
83
|
<content url="file://$MODULE_DIR$">
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</EXTENSION>
|
|
17
17
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
18
18
|
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/bin/translate" />
|
|
19
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="en
|
|
19
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="en how are you?" />
|
|
20
20
|
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
21
21
|
<RunnerSettings RunnerId="RubyRunner" />
|
|
22
22
|
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
data/.idea/workspace.xml
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
|
-
<list default="true" id="27826e27-f211-4f38-bd71-88309e7ed342" name="Default" comment="
|
|
5
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/
|
|
6
|
-
<change type="
|
|
7
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.ruby-version" afterPath="$PROJECT_DIR$/.ruby-version" />
|
|
4
|
+
<list default="true" id="27826e27-f211-4f38-bd71-88309e7ed342" name="Default" comment="">
|
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/ts" />
|
|
6
|
+
<change type="MOVED" beforePath="$PROJECT_DIR$/README" afterPath="$PROJECT_DIR$/README.md" />
|
|
8
7
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
|
|
9
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile.lock" afterPath="$PROJECT_DIR$/Gemfile.lock" />
|
|
10
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
|
11
8
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/google-translate.iml" afterPath="$PROJECT_DIR$/.idea/google-translate.iml" />
|
|
12
9
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate/google_translate.rb" afterPath="$PROJECT_DIR$/lib/google_translate/google_translate.rb" />
|
|
13
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR
|
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/runConfigurations/translate.xml" afterPath="$PROJECT_DIR$/.idea/runConfigurations/translate.xml" />
|
|
14
11
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/translate" afterPath="$PROJECT_DIR$/bin/translate" />
|
|
15
12
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate/translate_cli.rb" afterPath="$PROJECT_DIR$/lib/google_translate/translate_cli.rb" />
|
|
16
13
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate/version.rb" afterPath="$PROJECT_DIR$/lib/google_translate/version.rb" />
|
|
@@ -28,7 +25,7 @@
|
|
|
28
25
|
</component>
|
|
29
26
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
|
30
27
|
<component name="CoverageDataManager">
|
|
31
|
-
<SUITE FILE_PATH="coverage/google-translate@translate.coverage" NAME="translate Coverage Results" MODIFIED="
|
|
28
|
+
<SUITE FILE_PATH="coverage/google-translate@translate.coverage" NAME="translate Coverage Results" MODIFIED="1384011598930" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bin" MODULE_NAME="google-translate" />
|
|
32
29
|
</component>
|
|
33
30
|
<component name="CreatePatchCommitExecutor">
|
|
34
31
|
<option name="PATCH_PATH" value="" />
|
|
@@ -45,16 +42,79 @@
|
|
|
45
42
|
<file leaf-file-name="google_translate.rb" pinned="false" current="false" current-in-tab="false">
|
|
46
43
|
<entry file="file://$PROJECT_DIR$/lib/google_translate/google_translate.rb">
|
|
47
44
|
<provider selected="true" editor-type-id="text-editor">
|
|
48
|
-
<state line="
|
|
45
|
+
<state line="9" column="25" selection-start="183" selection-end="183" vertical-scroll-proportion="-5.1923075" vertical-offset="0" max-vertical-offset="1875">
|
|
49
46
|
<folding />
|
|
50
47
|
</state>
|
|
51
48
|
</provider>
|
|
52
49
|
</entry>
|
|
53
50
|
</file>
|
|
54
|
-
<file leaf-file-name="
|
|
51
|
+
<file leaf-file-name="translate" pinned="false" current="false" current-in-tab="false">
|
|
52
|
+
<entry file="file://$PROJECT_DIR$/bin/translate">
|
|
53
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
54
|
+
<state line="8" column="52" selection-start="199" selection-end="199" vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="735">
|
|
55
|
+
<folding />
|
|
56
|
+
</state>
|
|
57
|
+
</provider>
|
|
58
|
+
</entry>
|
|
59
|
+
</file>
|
|
60
|
+
<file leaf-file-name="t.bat" pinned="false" current="false" current-in-tab="false">
|
|
61
|
+
<entry file="file://$PROJECT_DIR$/bin/t.bat">
|
|
62
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
63
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
|
|
64
|
+
<folding />
|
|
65
|
+
</state>
|
|
66
|
+
</provider>
|
|
67
|
+
</entry>
|
|
68
|
+
</file>
|
|
69
|
+
<file leaf-file-name="translate_cli.rb" pinned="false" current="false" current-in-tab="false">
|
|
55
70
|
<entry file="file://$PROJECT_DIR$/lib/google_translate/translate_cli.rb">
|
|
56
71
|
<provider selected="true" editor-type-id="text-editor">
|
|
57
|
-
<state line="
|
|
72
|
+
<state line="9" column="53" selection-start="235" selection-end="235" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1260">
|
|
73
|
+
<folding />
|
|
74
|
+
</state>
|
|
75
|
+
</provider>
|
|
76
|
+
</entry>
|
|
77
|
+
</file>
|
|
78
|
+
<file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
|
|
79
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
|
80
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
81
|
+
<state line="65" column="16" selection-start="951" selection-end="951" vertical-scroll-proportion="0.0" vertical-offset="453" max-vertical-offset="1095">
|
|
82
|
+
<folding />
|
|
83
|
+
</state>
|
|
84
|
+
</provider>
|
|
85
|
+
</entry>
|
|
86
|
+
</file>
|
|
87
|
+
<file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
|
|
88
|
+
<entry file="file://$PROJECT_DIR$/lib/google_translate/version.rb">
|
|
89
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
90
|
+
<state line="1" column="18" selection-start="40" selection-end="40" vertical-scroll-proportion="0.025041737" vertical-offset="0" max-vertical-offset="599">
|
|
91
|
+
<folding />
|
|
92
|
+
</state>
|
|
93
|
+
</provider>
|
|
94
|
+
</entry>
|
|
95
|
+
</file>
|
|
96
|
+
<file leaf-file-name="t" pinned="false" current="false" current-in-tab="false">
|
|
97
|
+
<entry file="file://$PROJECT_DIR$/bin/t">
|
|
98
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
99
|
+
<state line="0" column="0" selection-start="0" selection-end="63" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
|
100
|
+
<folding />
|
|
101
|
+
</state>
|
|
102
|
+
</provider>
|
|
103
|
+
</entry>
|
|
104
|
+
</file>
|
|
105
|
+
<file leaf-file-name="ts" pinned="false" current="false" current-in-tab="false">
|
|
106
|
+
<entry file="file://$PROJECT_DIR$/bin/ts">
|
|
107
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
108
|
+
<state line="2" column="0" selection-start="21" selection-end="31" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
|
109
|
+
<folding />
|
|
110
|
+
</state>
|
|
111
|
+
</provider>
|
|
112
|
+
</entry>
|
|
113
|
+
</file>
|
|
114
|
+
<file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
|
|
115
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
|
116
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
117
|
+
<state line="30" column="128" selection-start="390" selection-end="390" vertical-scroll-proportion="0.0" vertical-offset="243" max-vertical-offset="885">
|
|
58
118
|
<folding />
|
|
59
119
|
</state>
|
|
60
120
|
</provider>
|
|
@@ -98,30 +158,30 @@
|
|
|
98
158
|
<component name="IdeDocumentHistory">
|
|
99
159
|
<option name="changedFiles">
|
|
100
160
|
<list>
|
|
101
|
-
<option value="$PROJECT_DIR$/spec/translator_spec.rb" />
|
|
102
|
-
<option value="$PROJECT_DIR$/lib/google_translate/language.rb" />
|
|
103
|
-
<option value="$PROJECT_DIR$/lib/google_translate.rb" />
|
|
104
161
|
<option value="$PROJECT_DIR$/google-translate.gemspec" />
|
|
105
162
|
<option value="$PROJECT_DIR$/spec/google_translate_spec.rb" />
|
|
106
163
|
<option value="$PROJECT_DIR$/Rakefile" />
|
|
107
164
|
<option value="$PROJECT_DIR$/google-translate.gemspec.erb" />
|
|
108
165
|
<option value="$PROJECT_DIR$/.ruby-version" />
|
|
109
|
-
<option value="$PROJECT_DIR$/lib/google_translate/version.rb" />
|
|
110
|
-
<option value="$PROJECT_DIR$/CHANGES" />
|
|
111
166
|
<option value="$PROJECT_DIR$/LICENSE" />
|
|
112
167
|
<option value="$PROJECT_DIR$/bin/t" />
|
|
113
|
-
<option value="$PROJECT_DIR$/bin/translate" />
|
|
114
168
|
<option value="$PROJECT_DIR$/Gemfile" />
|
|
115
169
|
<option value="$PROJECT_DIR$/lib/google_translate/google_translate.rb" />
|
|
170
|
+
<option value="$PROJECT_DIR$/README" />
|
|
171
|
+
<option value="$PROJECT_DIR$/bin/ts" />
|
|
172
|
+
<option value="$PROJECT_DIR$/bin/translate" />
|
|
173
|
+
<option value="$PROJECT_DIR$/README.md" />
|
|
116
174
|
<option value="$PROJECT_DIR$/lib/google_translate/translate_cli.rb" />
|
|
175
|
+
<option value="$PROJECT_DIR$/CHANGES" />
|
|
176
|
+
<option value="$PROJECT_DIR$/lib/google_translate/version.rb" />
|
|
117
177
|
</list>
|
|
118
178
|
</option>
|
|
119
179
|
</component>
|
|
120
180
|
<component name="ProjectFrameBounds">
|
|
121
|
-
<option name="x" value="
|
|
122
|
-
<option name="y" value="
|
|
123
|
-
<option name="width" value="
|
|
124
|
-
<option name="height" value="
|
|
181
|
+
<option name="x" value="44" />
|
|
182
|
+
<option name="y" value="22" />
|
|
183
|
+
<option name="width" value="1636" />
|
|
184
|
+
<option name="height" value="1028" />
|
|
125
185
|
</component>
|
|
126
186
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
|
127
187
|
<OptionsSetting value="true" id="Add" />
|
|
@@ -149,7 +209,6 @@
|
|
|
149
209
|
<sortByType />
|
|
150
210
|
</navigator>
|
|
151
211
|
<panes>
|
|
152
|
-
<pane id="Scope" />
|
|
153
212
|
<pane id="ProjectPane">
|
|
154
213
|
<subPane>
|
|
155
214
|
<PATH>
|
|
@@ -157,64 +216,6 @@
|
|
|
157
216
|
<option name="myItemId" value="google-translate" />
|
|
158
217
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
159
218
|
</PATH_ELEMENT>
|
|
160
|
-
<PATH_ELEMENT>
|
|
161
|
-
<option name="myItemId" value="External Libraries" />
|
|
162
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
|
163
|
-
</PATH_ELEMENT>
|
|
164
|
-
<PATH_ELEMENT>
|
|
165
|
-
<option name="myItemId" value="thor (v0.18.1, RVM: ruby-1.9.3-p448 [google-translate]) [gem]" />
|
|
166
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
|
|
167
|
-
</PATH_ELEMENT>
|
|
168
|
-
<PATH_ELEMENT>
|
|
169
|
-
<option name="myItemId" value="lib" />
|
|
170
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
171
|
-
</PATH_ELEMENT>
|
|
172
|
-
</PATH>
|
|
173
|
-
<PATH>
|
|
174
|
-
<PATH_ELEMENT>
|
|
175
|
-
<option name="myItemId" value="google-translate" />
|
|
176
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
177
|
-
</PATH_ELEMENT>
|
|
178
|
-
<PATH_ELEMENT>
|
|
179
|
-
<option name="myItemId" value="External Libraries" />
|
|
180
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
|
181
|
-
</PATH_ELEMENT>
|
|
182
|
-
<PATH_ELEMENT>
|
|
183
|
-
<option name="myItemId" value="thor (v0.18.1, RVM: ruby-1.9.3-p448 [google-translate]) [gem]" />
|
|
184
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
|
|
185
|
-
</PATH_ELEMENT>
|
|
186
|
-
<PATH_ELEMENT>
|
|
187
|
-
<option name="myItemId" value="lib" />
|
|
188
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
189
|
-
</PATH_ELEMENT>
|
|
190
|
-
<PATH_ELEMENT>
|
|
191
|
-
<option name="myItemId" value="thor" />
|
|
192
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
193
|
-
</PATH_ELEMENT>
|
|
194
|
-
</PATH>
|
|
195
|
-
<PATH>
|
|
196
|
-
<PATH_ELEMENT>
|
|
197
|
-
<option name="myItemId" value="google-translate" />
|
|
198
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
199
|
-
</PATH_ELEMENT>
|
|
200
|
-
<PATH_ELEMENT>
|
|
201
|
-
<option name="myItemId" value="External Libraries" />
|
|
202
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
|
203
|
-
</PATH_ELEMENT>
|
|
204
|
-
<PATH_ELEMENT>
|
|
205
|
-
<option name="myItemId" value="thor (v0.18.1, RVM: ruby-1.9.3-p448 [google-translate]) [gem]" />
|
|
206
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
|
|
207
|
-
</PATH_ELEMENT>
|
|
208
|
-
</PATH>
|
|
209
|
-
<PATH>
|
|
210
|
-
<PATH_ELEMENT>
|
|
211
|
-
<option name="myItemId" value="google-translate" />
|
|
212
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
213
|
-
</PATH_ELEMENT>
|
|
214
|
-
<PATH_ELEMENT>
|
|
215
|
-
<option name="myItemId" value="External Libraries" />
|
|
216
|
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
|
217
|
-
</PATH_ELEMENT>
|
|
218
219
|
</PATH>
|
|
219
220
|
<PATH>
|
|
220
221
|
<PATH_ELEMENT>
|
|
@@ -288,6 +289,7 @@
|
|
|
288
289
|
</PATH>
|
|
289
290
|
</subPane>
|
|
290
291
|
</pane>
|
|
292
|
+
<pane id="Scope" />
|
|
291
293
|
<pane id="Favorites" />
|
|
292
294
|
</panes>
|
|
293
295
|
</component>
|
|
@@ -295,7 +297,7 @@
|
|
|
295
297
|
<property name="options.splitter.main.proportions" value="0.3" />
|
|
296
298
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
297
299
|
<property name="recentsLimit" value="5" />
|
|
298
|
-
<property name="options.lastSelected" value="
|
|
300
|
+
<property name="options.lastSelected" value="preferences.fileTypes" />
|
|
299
301
|
<property name="FullScreen" value="false" />
|
|
300
302
|
<property name="options.searchVisible" value="true" />
|
|
301
303
|
<property name="options.splitter.details.proportions" value="0.2" />
|
|
@@ -308,135 +310,6 @@
|
|
|
308
310
|
</key>
|
|
309
311
|
</component>
|
|
310
312
|
<component name="RunManager" selected="Ruby.translate">
|
|
311
|
-
<configuration default="false" name="Translator should translate test string from one language to another" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
312
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
313
|
-
<module name="google-translate" />
|
|
314
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
315
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$/spec" />
|
|
316
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
317
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
318
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
319
|
-
<envs>
|
|
320
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
|
321
|
-
</envs>
|
|
322
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
323
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
324
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
325
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
326
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
327
|
-
</COVERAGE_PATTERN>
|
|
328
|
-
</EXTENSION>
|
|
329
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
330
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
331
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
332
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
|
|
333
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
334
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Translator should translate test string from one language to another" />
|
|
335
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
336
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
337
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
338
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
339
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
340
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
341
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
342
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
|
343
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
344
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
|
345
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
346
|
-
<method />
|
|
347
|
-
</configuration>
|
|
348
|
-
<configuration default="false" name="Translator should translate test string from one language to another with autodetect" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
349
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
350
|
-
<module name="google-translate" />
|
|
351
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
352
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
353
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
354
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
355
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
356
|
-
<envs>
|
|
357
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
|
358
|
-
</envs>
|
|
359
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
360
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
361
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
362
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
363
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
364
|
-
</COVERAGE_PATTERN>
|
|
365
|
-
</EXTENSION>
|
|
366
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
367
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
368
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
369
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
|
|
370
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
371
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Translator should translate test string from one language to another with autodetect" />
|
|
372
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
373
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
374
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
375
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
376
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
377
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
378
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
379
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
380
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
381
|
-
<method />
|
|
382
|
-
</configuration>
|
|
383
|
-
<configuration default="false" name="google_translate_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
384
|
-
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
|
385
|
-
<module name="google-translate" />
|
|
386
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
387
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
388
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
389
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
390
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
391
|
-
<envs>
|
|
392
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
|
393
|
-
</envs>
|
|
394
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
395
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
396
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
397
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
398
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
399
|
-
</COVERAGE_PATTERN>
|
|
400
|
-
</EXTENSION>
|
|
401
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
402
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
403
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
404
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
|
|
405
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
406
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
407
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
408
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
409
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
410
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
411
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
|
412
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
|
413
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
414
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
415
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
416
|
-
<method />
|
|
417
|
-
</configuration>
|
|
418
|
-
<configuration default="false" name="google_translate_spec" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
|
419
|
-
<module name="google-translate" />
|
|
420
|
-
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
|
|
421
|
-
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/spec" />
|
|
422
|
-
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
423
|
-
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
424
|
-
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
|
425
|
-
<envs />
|
|
426
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
|
427
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
|
428
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
|
|
429
|
-
<COVERAGE_PATTERN ENABLED="true">
|
|
430
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
431
|
-
</COVERAGE_PATTERN>
|
|
432
|
-
</EXTENSION>
|
|
433
|
-
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
|
434
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/google_translate_spec.rb" />
|
|
435
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
|
436
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
|
437
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
|
438
|
-
<method />
|
|
439
|
-
</configuration>
|
|
440
313
|
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" singleton="true" config-file="">
|
|
441
314
|
<envs />
|
|
442
315
|
<method />
|
|
@@ -522,10 +395,6 @@
|
|
|
522
395
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
|
523
396
|
<method />
|
|
524
397
|
</configuration>
|
|
525
|
-
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
|
|
526
|
-
<browser start="false" url="" with-js-debugger="false" />
|
|
527
|
-
<method />
|
|
528
|
-
</configuration>
|
|
529
398
|
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
|
530
399
|
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
|
531
400
|
<module name="" />
|
|
@@ -562,22 +431,9 @@
|
|
|
562
431
|
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
|
563
432
|
<method />
|
|
564
433
|
</configuration>
|
|
565
|
-
<list size="
|
|
566
|
-
<item index="0" class="java.lang.String" itemvalue="
|
|
567
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another" />
|
|
568
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another with autodetect" />
|
|
569
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.google_translate_spec" />
|
|
570
|
-
<item index="4" class="java.lang.String" itemvalue="Ruby.translate" />
|
|
571
|
-
<item index="5" class="java.lang.String" itemvalue="Ruby.google_translate_spec" />
|
|
434
|
+
<list size="1">
|
|
435
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.translate" />
|
|
572
436
|
</list>
|
|
573
|
-
<recent_temporary>
|
|
574
|
-
<list size="4">
|
|
575
|
-
<item index="0" class="java.lang.String" itemvalue="Ruby.google_translate_spec" />
|
|
576
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.google_translate_spec" />
|
|
577
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another with autodetect" />
|
|
578
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another" />
|
|
579
|
-
</list>
|
|
580
|
-
</recent_temporary>
|
|
581
437
|
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda">
|
|
582
438
|
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
|
583
439
|
<module name="" />
|
|
@@ -632,35 +488,66 @@
|
|
|
632
488
|
<created>1284473756960</created>
|
|
633
489
|
<updated>1284473756960</updated>
|
|
634
490
|
</task>
|
|
491
|
+
<task id="LOCAL-00001" summary="adding new features">
|
|
492
|
+
<created>1383951723430</created>
|
|
493
|
+
<updated>1383951723430</updated>
|
|
494
|
+
</task>
|
|
495
|
+
<option name="localTasksCounter" value="2" />
|
|
635
496
|
<servers />
|
|
636
497
|
</component>
|
|
637
498
|
<component name="ToolWindowManager">
|
|
638
|
-
<frame x="
|
|
499
|
+
<frame x="44" y="22" width="1636" height="1028" extended-state="0" />
|
|
639
500
|
<editor active="true" />
|
|
640
501
|
<layout>
|
|
641
|
-
<window_info id="
|
|
502
|
+
<window_info id="Dilbert" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
503
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3265306" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
642
504
|
<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="8" side_tool="false" content_ui="tabs" />
|
|
643
|
-
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
644
|
-
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
645
505
|
<window_info id="Heroku" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
|
646
|
-
<window_info id="
|
|
647
|
-
<window_info id="
|
|
648
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.30722278" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
649
|
-
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
506
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
507
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.30612245" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
650
508
|
<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="8" side_tool="true" content_ui="tabs" />
|
|
651
|
-
<window_info id="
|
|
509
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
652
510
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32858595" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
511
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
512
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
|
|
513
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.15974844" sideWeight="0.671066" order="0" side_tool="false" content_ui="combo" />
|
|
514
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32867885" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
653
515
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
654
516
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
655
517
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
656
518
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32858595" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
657
|
-
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
|
519
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32858595" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
658
520
|
<window_info id="Code Outline" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
659
521
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
660
522
|
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
661
523
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
662
524
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
663
525
|
</layout>
|
|
526
|
+
<layout-to-restore>
|
|
527
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
528
|
+
<window_info id="Dilbert" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
529
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32756868" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
|
530
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
531
|
+
<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="12" side_tool="false" content_ui="tabs" />
|
|
532
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32858595" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
533
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
534
|
+
<window_info id="Heroku" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="13" side_tool="false" content_ui="tabs" />
|
|
535
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
536
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.30653805" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
537
|
+
<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="14" side_tool="true" content_ui="tabs" />
|
|
538
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
539
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32858595" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
|
|
540
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32858595" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
|
|
541
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
542
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
|
|
543
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
544
|
+
<window_info id="Code Outline" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
545
|
+
<window_info id="Dependency Viewer" 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" />
|
|
546
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.15974844" sideWeight="0.671066" order="0" side_tool="false" content_ui="combo" />
|
|
547
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
548
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
549
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32858595" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
550
|
+
</layout-to-restore>
|
|
664
551
|
</component>
|
|
665
552
|
<component name="VcsContentAnnotationSettings">
|
|
666
553
|
<option name="myLimit" value="2678400000" />
|
|
@@ -677,7 +564,8 @@
|
|
|
677
564
|
<MESSAGE value="Updated gitignore file (should not commit .bundle or .DS_Store-file) Removed .DS_Store as well as .bundle-folder (cherry picked from commit 85553a62030d5aba8cba6ae75432671c38379351) " />
|
|
678
565
|
<MESSAGE value="Updated specs to use updated RSpec methods (cherry picked from commit 6d540e66602149bad0cb4a739d889bf1b170bc77) " />
|
|
679
566
|
<MESSAGE value="Updated translate and detect-methods to use HTTParty. (cherry picked from commit 56b09b5aeebe695e4b57451dd87f3237a2b61fa0) " />
|
|
680
|
-
<
|
|
567
|
+
<MESSAGE value="adding new features" />
|
|
568
|
+
<option name="LAST_COMMIT_MESSAGE" value="adding new features" />
|
|
681
569
|
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
|
|
682
570
|
</component>
|
|
683
571
|
<component name="XDebuggerManager">
|
|
@@ -694,20 +582,15 @@
|
|
|
694
582
|
<option name="timeStamp" value="4" />
|
|
695
583
|
</line-breakpoint>
|
|
696
584
|
<line-breakpoint enabled="true" type="ruby-line">
|
|
697
|
-
<url>file://$PROJECT_DIR$/lib/google_translate/
|
|
698
|
-
<line>
|
|
699
|
-
<option name="timeStamp" value="
|
|
585
|
+
<url>file://$PROJECT_DIR$/lib/google_translate/translate_cli.rb</url>
|
|
586
|
+
<line>59</line>
|
|
587
|
+
<option name="timeStamp" value="25" />
|
|
700
588
|
</line-breakpoint>
|
|
701
589
|
</breakpoints>
|
|
702
|
-
<option name="time" value="
|
|
590
|
+
<option name="time" value="26" />
|
|
703
591
|
</breakpoint-manager>
|
|
704
592
|
</component>
|
|
705
593
|
<component name="editorHistoryManager">
|
|
706
|
-
<entry file="file://$PROJECT_DIR$/README">
|
|
707
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
708
|
-
<state line="14" column="48" selection-start="458" selection-end="458" vertical-scroll-proportion="0.23455498" vertical-offset="0" max-vertical-offset="955" />
|
|
709
|
-
</provider>
|
|
710
|
-
</entry>
|
|
711
594
|
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
712
595
|
<provider selected="true" editor-type-id="text-editor">
|
|
713
596
|
<state line="9" column="123" selection-start="272" selection-end="272" vertical-scroll-proportion="0.15078534" vertical-offset="0" max-vertical-offset="955" />
|
|
@@ -733,70 +616,75 @@
|
|
|
733
616
|
<state line="6" column="64" selection-start="212" selection-end="250" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="560" />
|
|
734
617
|
</provider>
|
|
735
618
|
</entry>
|
|
736
|
-
<entry file="file://$PROJECT_DIR$/
|
|
619
|
+
<entry file="file://$PROJECT_DIR$/lib/google_translate.rb">
|
|
737
620
|
<provider selected="true" editor-type-id="text-editor">
|
|
738
|
-
<state line="
|
|
739
|
-
<folding />
|
|
740
|
-
</state>
|
|
621
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="490" />
|
|
741
622
|
</provider>
|
|
742
623
|
</entry>
|
|
743
|
-
<entry file="file://$
|
|
624
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
625
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
626
|
+
<state line="14" column="20" selection-start="204" selection-end="204" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="464" />
|
|
627
|
+
</provider>
|
|
628
|
+
</entry>
|
|
629
|
+
<entry file="file://$PROJECT_DIR$/lib/google_translate/google_translate.rb">
|
|
744
630
|
<provider selected="true" editor-type-id="text-editor">
|
|
745
|
-
<state line="
|
|
631
|
+
<state line="9" column="25" selection-start="183" selection-end="183" vertical-scroll-proportion="-5.1923075" vertical-offset="0" max-vertical-offset="1875">
|
|
746
632
|
<folding />
|
|
747
633
|
</state>
|
|
748
634
|
</provider>
|
|
749
635
|
</entry>
|
|
750
|
-
<entry file="file://$
|
|
636
|
+
<entry file="file://$PROJECT_DIR$/bin/ts">
|
|
751
637
|
<provider selected="true" editor-type-id="text-editor">
|
|
752
|
-
<state line="
|
|
638
|
+
<state line="2" column="0" selection-start="21" selection-end="31" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
|
753
639
|
<folding />
|
|
754
640
|
</state>
|
|
755
641
|
</provider>
|
|
756
642
|
</entry>
|
|
757
|
-
<entry file="file://$PROJECT_DIR$/
|
|
643
|
+
<entry file="file://$PROJECT_DIR$/bin/t">
|
|
758
644
|
<provider selected="true" editor-type-id="text-editor">
|
|
759
|
-
<state line="0" column="
|
|
645
|
+
<state line="0" column="0" selection-start="0" selection-end="63" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="150">
|
|
760
646
|
<folding />
|
|
761
647
|
</state>
|
|
762
648
|
</provider>
|
|
763
649
|
</entry>
|
|
764
|
-
<entry file="file://$PROJECT_DIR$/bin/t">
|
|
650
|
+
<entry file="file://$PROJECT_DIR$/bin/t.bat">
|
|
765
651
|
<provider selected="true" editor-type-id="text-editor">
|
|
766
|
-
<state line="
|
|
652
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="597">
|
|
653
|
+
<folding />
|
|
654
|
+
</state>
|
|
767
655
|
</provider>
|
|
768
656
|
</entry>
|
|
769
|
-
<entry file="file://$PROJECT_DIR$/
|
|
657
|
+
<entry file="file://$PROJECT_DIR$/bin/translate">
|
|
770
658
|
<provider selected="true" editor-type-id="text-editor">
|
|
771
|
-
<state line="
|
|
659
|
+
<state line="8" column="52" selection-start="199" selection-end="199" vertical-scroll-proportion="0.0" vertical-offset="120" max-vertical-offset="735">
|
|
772
660
|
<folding />
|
|
773
661
|
</state>
|
|
774
662
|
</provider>
|
|
775
663
|
</entry>
|
|
776
|
-
<entry file="file://$PROJECT_DIR$/
|
|
664
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
|
777
665
|
<provider selected="true" editor-type-id="text-editor">
|
|
778
|
-
<state line="
|
|
666
|
+
<state line="30" column="128" selection-start="390" selection-end="390" vertical-scroll-proportion="0.0" vertical-offset="243" max-vertical-offset="885">
|
|
779
667
|
<folding />
|
|
780
668
|
</state>
|
|
781
669
|
</provider>
|
|
782
670
|
</entry>
|
|
783
|
-
<entry file="file://$PROJECT_DIR$/
|
|
671
|
+
<entry file="file://$PROJECT_DIR$/lib/google_translate/translate_cli.rb">
|
|
784
672
|
<provider selected="true" editor-type-id="text-editor">
|
|
785
|
-
<state line="
|
|
673
|
+
<state line="9" column="53" selection-start="235" selection-end="235" vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1260">
|
|
786
674
|
<folding />
|
|
787
675
|
</state>
|
|
788
676
|
</provider>
|
|
789
677
|
</entry>
|
|
790
|
-
<entry file="file://$PROJECT_DIR$/
|
|
678
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
|
791
679
|
<provider selected="true" editor-type-id="text-editor">
|
|
792
|
-
<state line="
|
|
680
|
+
<state line="65" column="16" selection-start="951" selection-end="951" vertical-scroll-proportion="0.0" vertical-offset="453" max-vertical-offset="1095">
|
|
793
681
|
<folding />
|
|
794
682
|
</state>
|
|
795
683
|
</provider>
|
|
796
684
|
</entry>
|
|
797
|
-
<entry file="file://$PROJECT_DIR$/lib/google_translate/
|
|
685
|
+
<entry file="file://$PROJECT_DIR$/lib/google_translate/version.rb">
|
|
798
686
|
<provider selected="true" editor-type-id="text-editor">
|
|
799
|
-
<state line="
|
|
687
|
+
<state line="1" column="18" selection-start="40" selection-end="40" vertical-scroll-proportion="0.025041737" vertical-offset="0" max-vertical-offset="599">
|
|
800
688
|
<folding />
|
|
801
689
|
</state>
|
|
802
690
|
</provider>
|
data/CHANGES
CHANGED
data/README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Google-Translate
|
|
2
|
+
|
|
3
|
+
Client for Google Translate API
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Add this line to your application's Gemfile:
|
|
8
|
+
|
|
9
|
+
gem 'google-translate'
|
|
10
|
+
|
|
11
|
+
And then execute:
|
|
12
|
+
|
|
13
|
+
$ bundle
|
|
14
|
+
|
|
15
|
+
Or install it yourself as:
|
|
16
|
+
|
|
17
|
+
$ gem install google-translate
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Displays the version:
|
|
23
|
+
|
|
24
|
+
$ t -v
|
|
25
|
+
|
|
26
|
+
Displays the list of supported languages:
|
|
27
|
+
|
|
28
|
+
$ t list
|
|
29
|
+
|
|
30
|
+
Translates from English to Russian language:
|
|
31
|
+
|
|
32
|
+
$ t en:ru hello world
|
|
33
|
+
|
|
34
|
+
Translates to Russian from auto-detected language:
|
|
35
|
+
|
|
36
|
+
$ t ru hello world
|
|
37
|
+
|
|
38
|
+
Translates and tries to say it:
|
|
39
|
+
|
|
40
|
+
$ t -s ru hello world
|
|
41
|
+
|
|
42
|
+
or
|
|
43
|
+
|
|
44
|
+
$ ts ru hello world
|
|
45
|
+
|
|
46
|
+
## Contributing
|
|
47
|
+
|
|
48
|
+
1. Fork it
|
|
49
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
50
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
51
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
52
|
+
5. Create new Pull Request
|
|
53
|
+
|
data/bin/translate
CHANGED
|
@@ -4,8 +4,6 @@ $:.unshift(File::join(File::dirname(File::dirname(__FILE__)), "lib"))
|
|
|
4
4
|
|
|
5
5
|
require 'google_translate/translate_cli'
|
|
6
6
|
|
|
7
|
-
index = 0
|
|
8
|
-
|
|
9
7
|
if ARGV.size == 0
|
|
10
8
|
puts TranslateCLI::USAGE
|
|
11
9
|
elsif ARGV.size == 1
|
|
@@ -16,7 +14,7 @@ elsif ARGV.size == 1
|
|
|
16
14
|
end
|
|
17
15
|
else
|
|
18
16
|
params = []
|
|
19
|
-
say = false
|
|
17
|
+
say = ENV['say'] ? (ENV['say'] == 'true') : false
|
|
20
18
|
|
|
21
19
|
index = 0
|
|
22
20
|
|
data/bin/ts
ADDED
|
@@ -31,7 +31,7 @@ class GoogleTranslate
|
|
|
31
31
|
def say lang, text
|
|
32
32
|
speech_content = call_speech_service(lang, text)
|
|
33
33
|
|
|
34
|
-
file = Tempfile.new('.google_translate_speech')
|
|
34
|
+
file = Tempfile.new('.google_translate_speech-')
|
|
35
35
|
|
|
36
36
|
file.write(speech_content)
|
|
37
37
|
|
|
@@ -52,16 +52,6 @@ class GoogleTranslate
|
|
|
52
52
|
"#{GOOGLE_TRANSLATE_SERVICE_URL}/translate_tts?tl=#{lang}&ie=UTF-8&oe=UTF-8"
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
def call_service url, text=nil
|
|
56
|
-
uri = URI.parse(URI.escape(url))
|
|
57
|
-
|
|
58
|
-
http = Net::HTTP.new(uri.host, uri.port)
|
|
59
|
-
request = Net::HTTP::Post.new(uri.request_uri)
|
|
60
|
-
request.set_form_data(text: text)
|
|
61
|
-
|
|
62
|
-
http.request(request)
|
|
63
|
-
end
|
|
64
|
-
|
|
65
55
|
def call_translate_service from_lang, to_lang, text
|
|
66
56
|
url = translate_url(from_lang, to_lang)
|
|
67
57
|
|
|
@@ -78,6 +68,16 @@ class GoogleTranslate
|
|
|
78
68
|
response.body
|
|
79
69
|
end
|
|
80
70
|
|
|
71
|
+
def call_service url, text=nil
|
|
72
|
+
uri = URI.parse(URI.escape(url))
|
|
73
|
+
|
|
74
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
|
75
|
+
request = Net::HTTP::Post.new(uri.request_uri)
|
|
76
|
+
request.set_form_data(text: text)
|
|
77
|
+
|
|
78
|
+
http.request(request)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
81
|
def collect_languages buffer, index, tag_name, tag_id
|
|
82
82
|
languages = []
|
|
83
83
|
|
|
@@ -7,10 +7,12 @@ class TranslateCLI < Thor
|
|
|
7
7
|
Simple client for Google Translate API.
|
|
8
8
|
|
|
9
9
|
Usage:
|
|
10
|
-
translate
|
|
11
|
-
translate
|
|
12
|
-
translate
|
|
13
|
-
translate ru
|
|
10
|
+
translate # displays usage
|
|
11
|
+
translate -v # displays the version
|
|
12
|
+
translate list # displays the list of supported languages
|
|
13
|
+
translate en:ru Hello world # translates from English to Russian
|
|
14
|
+
translate ru Hello world # translates to Russian from auto-detected language
|
|
15
|
+
translate -s ru Hello world # translates and tries to say it
|
|
14
16
|
LONGDESC
|
|
15
17
|
|
|
16
18
|
desc "version", "displays version"
|
|
@@ -38,29 +40,33 @@ class TranslateCLI < Thor
|
|
|
38
40
|
|
|
39
41
|
translation = result[0][0][0]
|
|
40
42
|
translit = result[0][0][2]
|
|
41
|
-
synonyms = result[5][0]
|
|
42
43
|
|
|
43
44
|
puts "Translation: #{translation}"
|
|
45
|
+
puts "Translit: #{translit}" unless translit.size == 0
|
|
44
46
|
|
|
45
|
-
display_synonyms(
|
|
47
|
+
display_synonyms(result)
|
|
46
48
|
|
|
47
49
|
say = options[:say] ? (options[:say] == 'true') : false
|
|
48
50
|
|
|
49
51
|
if say and !!(RUBY_PLATFORM =~ /darwin/i)
|
|
50
52
|
translator.say(from_lang, text)
|
|
51
|
-
translator.say(
|
|
53
|
+
translator.say(to_lang, translation)
|
|
52
54
|
end
|
|
53
55
|
end
|
|
54
56
|
|
|
55
57
|
private
|
|
56
58
|
|
|
57
|
-
def display_synonyms
|
|
58
|
-
|
|
59
|
+
def display_synonyms result
|
|
60
|
+
if result[5].size > 5
|
|
61
|
+
synonyms = result[5][0][2]
|
|
59
62
|
|
|
60
|
-
|
|
63
|
+
if synonyms.size > 1
|
|
64
|
+
puts "Synonyms:"
|
|
61
65
|
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
(1..synonyms.size-1).each do |index|
|
|
67
|
+
puts synonyms[index][0]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
64
70
|
end
|
|
65
71
|
end
|
|
66
72
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-translate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Shvets
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json_pure
|
|
@@ -91,12 +91,13 @@ files:
|
|
|
91
91
|
- Gemfile
|
|
92
92
|
- Gemfile.lock
|
|
93
93
|
- LICENSE
|
|
94
|
-
- README
|
|
94
|
+
- README.md
|
|
95
95
|
- Rakefile
|
|
96
96
|
- bin/t
|
|
97
97
|
- bin/t.bat
|
|
98
98
|
- bin/translate
|
|
99
99
|
- bin/translate.bat
|
|
100
|
+
- bin/ts
|
|
100
101
|
- google-translate.gemspec
|
|
101
102
|
- google-translate.gemspec.erb
|
|
102
103
|
- lib/google_translate.rb
|
|
@@ -126,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
126
127
|
version: '0'
|
|
127
128
|
requirements: []
|
|
128
129
|
rubyforge_project:
|
|
129
|
-
rubygems_version: 2.
|
|
130
|
+
rubygems_version: 2.0.7
|
|
130
131
|
signing_key:
|
|
131
132
|
specification_version: 4
|
|
132
133
|
summary: Simple client for Google Translate API.
|
data/README
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
= Google-Translate -- Client for Google Translate API
|
|
2
|
-
|
|
3
|
-
= Installing Google-Translate
|
|
4
|
-
|
|
5
|
-
== Installing the Gem
|
|
6
|
-
$ gem install google-translate
|
|
7
|
-
|
|
8
|
-
== Usage
|
|
9
|
-
|
|
10
|
-
translate list - displays the list of supported languages
|
|
11
|
-
translate en:ru "hello world" - or
|
|
12
|
-
translate en:ru hello world - translates from en to ru
|
|
13
|
-
translate ru "hello world" - or
|
|
14
|
-
translate ru hello world - translated from auto-detected language to ru
|