google-translate 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 50bd9f0f00eea64c4c85692c668afdc6fd0874b1
4
+ data.tar.gz: bd1abd85071b28de97c0d7dfd66eadb319eec892
5
+ SHA512:
6
+ metadata.gz: 947aa86bb5d67b4466b513aef9e7e1ae2a8da57cfdd12a11b7f0e7d853b64e25022b4676fe35e7ac93d309301d0d9af2b16a26d8e01a572fbcd47a527e0b43be
7
+ data.tar.gz: 14f31016f5805a7ddfbfc1afae140ed425d0fb217624fc8d0cf1b0a1d077b6232ee1c647e0bc6ef79b6231a33e80b6369d0d3bdd08532a6c206033a38e014f47
data/.idea/.rakeTasks CHANGED
@@ -4,4 +4,4 @@ You are allowed to:
4
4
  1. Remove rake task
5
5
  2. Add existing rake tasks
6
6
  To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="build" taksId="build" /><RakeTask description="" fullCmd="install" taksId="install" /><RakeTask description="" fullCmd="release" taksId="release" /></RakeGroup></Settings>
@@ -59,20 +59,16 @@
59
59
  </content>
60
60
  <orderEntry type="inheritedJdk" />
61
61
  <orderEntry type="sourceFolder" forTests="false" />
62
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.1, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
63
- <orderEntry type="library" scope="PROVIDED" name="debugger-ruby_core_source (v1.2.3, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
64
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
65
- <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.6, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
66
- <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
67
- <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.0.5, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
68
- <orderEntry type="library" scope="PROVIDED" name="json_pure (v1.6.5, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
69
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.1.0, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
70
- <orderEntry type="library" scope="PROVIDED" name="rspec (v2.8.0, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
71
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.8.0, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
72
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.8.0, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
73
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.8.0, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
74
- <orderEntry type="library" scope="PROVIDED" name="ruby-debug-base19x (v0.11.30.pre12, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
75
- <orderEntry type="library" scope="PROVIDED" name="ruby-debug-ide (v0.4.17, RVM: ruby-1.9.3-p429 [google-translate]) [gem]" level="application" />
62
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
63
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.4, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
64
+ <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
65
+ <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
66
+ <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.1, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
67
+ <orderEntry type="library" scope="PROVIDED" name="json_pure (v1.8.0, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
68
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
69
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.4, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
70
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.1, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
71
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.3, RVM: ruby-2.0.0-p247 [google-translate]) [gem]" level="application" />
76
72
  </component>
77
73
  </module>
78
74
 
data/.idea/misc.xml CHANGED
@@ -6,7 +6,7 @@
6
6
  <component name="ProjectResources">
7
7
  <default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
8
8
  </component>
9
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p429 [google-translate]" project-jdk-type="RUBY_SDK" />
9
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.0.0-p247 [google-translate]" project-jdk-type="RUBY_SDK" />
10
10
  <component name="SvnBranchConfigurationManager">
11
11
  <option name="mySupportsUserInfoFilter" value="true" />
12
12
  </component>
data/.idea/workspace.xml CHANGED
@@ -2,37 +2,34 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="27826e27-f211-4f38-bd71-88309e7ed342" name="Default" comment="Renamed language lookup methods (to have more descriptive names).&#10;(cherry picked from commit 4a5e9875dc0bda29cc5cdb1e45bfb38a0970db44)&#10;">
5
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.ruby-gemset" />
6
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.ruby-version" />
7
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/google-translate.gemspec.erb" />
8
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/google_translate/google_translate.rb" />
9
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/google_translate.rb" />
10
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/google_translate/language.rb" />
11
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/scopes/scope_settings.xml" />
12
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test.html" />
13
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/google_translate/version.rb" />
14
- <change type="DELETED" beforePath="$PROJECT_DIR$/.rvmrc" afterPath="" />
15
- <change type="DELETED" beforePath="$PROJECT_DIR$/VERSION" afterPath="" />
16
- <change type="DELETED" beforePath="$PROJECT_DIR$/spec/translate_spec.rb" afterPath="" />
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/google_translate/translate_cli.rb" />
6
+ <change type="MOVED" beforePath="$PROJECT_DIR$/spec/google_translate.rb" afterPath="$PROJECT_DIR$/spec/google_translate_spec.rb" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/.rakeTasks" afterPath="$PROJECT_DIR$/.idea/.rakeTasks" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.ruby-version" afterPath="$PROJECT_DIR$/.ruby-version" />
17
9
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
18
10
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile.lock" afterPath="$PROJECT_DIR$/Gemfile.lock" />
19
11
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
20
12
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Rakefile" afterPath="$PROJECT_DIR$/Rakefile" />
13
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/google-translate.gemspec.erb" afterPath="$PROJECT_DIR$/google-translate.gemspec.erb" />
21
14
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/google-translate.gemspec" afterPath="$PROJECT_DIR$/google-translate.gemspec" />
22
15
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/google-translate.iml" afterPath="$PROJECT_DIR$/.idea/google-translate.iml" />
23
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate.rb" afterPath="$PROJECT_DIR$/lib/google_translate.rb" />
24
16
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
25
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/spec_helper.rb" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" />
26
17
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/bin/translate" afterPath="$PROJECT_DIR$/bin/translate" />
18
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate/version.rb" afterPath="$PROJECT_DIR$/lib/google_translate/version.rb" />
27
19
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
28
20
  </list>
29
21
  <list id="8bceb49d-7e0c-4091-bde9-7ac2cd7ef145" name="Translate method now does POSTs rather than GETs (allows you to send up to 5,000 characters) to translate rather than being imposed by the GET query string limits.&#10;(cherry picked from commit c5e221ad627b74ca4afe932cf553196ca0be7c19)&#10;" comment="Translate method now does POSTs rather than GETs (allows you to send up to 5,000 characters) to translate rather than being imposed by the GET query string limits.&#10;(cherry picked from commit c5e221ad627b74ca4afe932cf553196ca0be7c19)&#10;" />
30
22
  <list id="2012fae1-5c1c-46e0-9846-f895b7c7f6dc" name="&#10;&#10;&#10;Translate method now does POSTs rather than GETs (allows you to send up to 5,000 characters) to translate rather than being imposed by the GET query string limits.&#10;(cherry picked from commit c5e221ad627b74ca4afe932cf553196ca0be7c19)" comment="" />
31
23
  <ignored path=".idea/workspace.xml" />
32
24
  <ignored path="google-translate.iws" />
33
- <file path="/Dummy.txt" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1372438745170" ignored="false" />
34
- <file path="/a.dummy" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1372439682768" ignored="false" />
25
+ <file path="/Dummy.txt" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1376340673778" ignored="false" />
26
+ <file path="/a.dummy" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1376339732704" ignored="false" />
35
27
  <file path="/fragment.rb" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1372442051164" ignored="false" />
28
+ <file path="$PROJECT_DIR$/../gemspec_deps_gen/README.md" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1376339776870" ignored="false" />
29
+ <file path="$PROJECT_DIR$/../gemspec_deps_gen/lib/gemspec_deps_gen/gemspec_deps_gen.rb" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1376339819804" ignored="false" />
30
+ <file path="$PROJECT_DIR$/../gemspec_deps_gen/sample/sample.gemspec.erb" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1376339836403" ignored="false" />
31
+ <file path="$PROJECT_DIR$/../gemspec_deps_gen/CHANGES" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1376339908527" ignored="false" />
32
+ <file path="$PROJECT_DIR$/../gemspec_deps_gen/lib/gemspec_deps_gen/version.rb" changelist="27826e27-f211-4f38-bd71-88309e7ed342" time="1376339865439" ignored="false" />
36
33
  <option name="TRACKING_ENABLED" value="true" />
37
34
  <option name="SHOW_DIALOG" value="false" />
38
35
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -61,11 +58,14 @@
61
58
  </provider>
62
59
  </entry>
63
60
  </file>
64
- <file leaf-file-name="spec_helper.rb" pinned="false" current="false" current-in-tab="false">
65
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
61
+ <file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
62
+ <entry file="file://$PROJECT_DIR$/Rakefile">
66
63
  <provider selected="true" editor-type-id="text-editor">
67
- <state line="1" column="0" selection-start="57" selection-end="57" vertical-scroll-proportion="0.0">
68
- <folding />
64
+ <state line="31" column="111" selection-start="725" selection-end="725" vertical-scroll-proportion="0.0">
65
+ <folding>
66
+ <marker date="1376340848000" expanded="true" signature="210:235" placeholder=" ... end" />
67
+ <marker date="1376340848000" expanded="true" signature="250:273" placeholder=" ... end" />
68
+ </folding>
69
69
  </state>
70
70
  </provider>
71
71
  </entry>
@@ -73,7 +73,7 @@
73
73
  <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
74
74
  <entry file="file://$PROJECT_DIR$/Gemfile">
75
75
  <provider selected="true" editor-type-id="text-editor">
76
- <state line="13" column="10" selection-start="174" selection-end="174" vertical-scroll-proportion="0.0">
76
+ <state line="10" column="20" selection-start="141" selection-end="141" vertical-scroll-proportion="0.0">
77
77
  <folding />
78
78
  </state>
79
79
  </provider>
@@ -82,72 +82,66 @@
82
82
  <file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
83
83
  <entry file="file://$PROJECT_DIR$/CHANGES">
84
84
  <provider selected="true" editor-type-id="text-editor">
85
- <state line="49" column="71" selection-start="701" selection-end="770" vertical-scroll-proportion="0.8483412">
85
+ <state line="53" column="2" selection-start="792" selection-end="824" vertical-scroll-proportion="0.84810126">
86
86
  <folding />
87
87
  </state>
88
88
  </provider>
89
89
  </entry>
90
90
  </file>
91
- <file leaf-file-name="google-translate.gemspec" pinned="false" current="false" current-in-tab="false">
92
- <entry file="file://$PROJECT_DIR$/google-translate.gemspec">
91
+ <file leaf-file-name="spec_helper.rb" pinned="false" current="false" current-in-tab="false">
92
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
93
93
  <provider selected="true" editor-type-id="text-editor">
94
- <state line="22" column="6" selection-start="726" selection-end="726" vertical-scroll-proportion="0.0">
94
+ <state line="1" column="0" selection-start="57" selection-end="57" vertical-scroll-proportion="0.0">
95
95
  <folding />
96
96
  </state>
97
97
  </provider>
98
98
  </entry>
99
99
  </file>
100
- <file leaf-file-name="translate.bat" pinned="false" current="false" current-in-tab="false">
101
- <entry file="file://$PROJECT_DIR$/bin/translate.bat">
100
+ <file leaf-file-name="translate" pinned="false" current="false" current-in-tab="false">
101
+ <entry file="file://$PROJECT_DIR$/bin/translate">
102
102
  <provider selected="true" editor-type-id="text-editor">
103
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
103
+ <state line="4" column="40" selection-start="132" selection-end="132" vertical-scroll-proportion="0.0">
104
104
  <folding />
105
105
  </state>
106
106
  </provider>
107
107
  </entry>
108
108
  </file>
109
- <file leaf-file-name="language.rb" pinned="false" current="false" current-in-tab="false">
110
- <entry file="file://$PROJECT_DIR$/lib/google_translate/language.rb">
109
+ <file leaf-file-name="translate_cli.rb" pinned="false" current="false" current-in-tab="false">
110
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/translate_cli.rb">
111
111
  <provider selected="true" editor-type-id="text-editor">
112
- <state line="11" column="0" selection-start="164" selection-end="164" vertical-scroll-proportion="0.0">
112
+ <state line="17" column="5" selection-start="452" selection-end="452" vertical-scroll-proportion="0.0">
113
113
  <folding />
114
114
  </state>
115
115
  </provider>
116
116
  </entry>
117
117
  </file>
118
- <file leaf-file-name="google_translate.rb" pinned="false" current="false" current-in-tab="false">
119
- <entry file="file://$PROJECT_DIR$/spec/google_translate.rb">
118
+ <file leaf-file-name="google-translate.gemspec.erb" pinned="false" current="false" current-in-tab="false">
119
+ <entry file="file://$PROJECT_DIR$/google-translate.gemspec.erb">
120
120
  <provider selected="true" editor-type-id="text-editor">
121
- <state line="6" column="24" selection-start="122" selection-end="122" vertical-scroll-proportion="0.6923077">
121
+ <state line="17" column="0" selection-start="718" selection-end="718" vertical-scroll-proportion="-10.88">
122
122
  <folding>
123
- <marker date="1372443087000" expanded="true" signature="98:1072" placeholder=" ... end" />
124
- <marker date="1372443087000" expanded="true" signature="123:1072" placeholder="do ... end" />
125
- <marker date="1372443087000" expanded="true" signature="188:377" placeholder="do ... end" />
126
- <marker date="1372443087000" expanded="true" signature="202:233" placeholder="{ ... }" />
127
- <marker date="1372443087000" expanded="true" signature="261:292" placeholder="{ ... }" />
128
- <marker date="1372443087000" expanded="true" signature="320:356" placeholder="{ ... }" />
129
- <marker date="1372443087000" expanded="true" signature="444:540" placeholder="do ... end" />
130
- <marker date="1372443087000" expanded="true" signature="721:872" placeholder="#..." />
131
- <marker date="1372443087000" expanded="true" signature="923:1068" placeholder="do ... end" />
123
+ <marker date="1376340321000" expanded="true" signature="134:752" placeholder="do ... end" />
132
124
  </folding>
133
125
  </state>
134
126
  </provider>
135
127
  </entry>
136
128
  </file>
137
- <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
138
- <entry file="file://$PROJECT_DIR$/lib/google_translate/version.rb">
129
+ <file leaf-file-name="google_translate.rb" pinned="false" current="false" current-in-tab="false">
130
+ <entry file="file://$PROJECT_DIR$/lib/google_translate.rb">
139
131
  <provider selected="true" editor-type-id="text-editor">
140
- <state line="1" column="18" selection-start="40" selection-end="40" vertical-scroll-proportion="0.0">
132
+ <state line="0" column="0" selection-start="0" selection-end="79" vertical-scroll-proportion="0.0">
141
133
  <folding />
142
134
  </state>
143
135
  </provider>
144
136
  </entry>
145
137
  </file>
146
- <file leaf-file-name="google_translate.rb" pinned="false" current="false" current-in-tab="false">
147
- <entry file="file://$PROJECT_DIR$/lib/google_translate.rb">
138
+ <file leaf-file-name="google_translate_spec.rb" pinned="false" current="false" current-in-tab="false">
139
+ <entry file="file://$PROJECT_DIR$/spec/google_translate_spec.rb">
148
140
  <provider selected="true" editor-type-id="text-editor">
149
- <state line="0" column="26" selection-start="26" selection-end="26" vertical-scroll-proportion="0.0">
150
- <folding />
141
+ <state line="1" column="36" selection-start="20" selection-end="20" vertical-scroll-proportion="0.0">
142
+ <folding>
143
+ <marker date="1376340934000" expanded="true" signature="791:875" placeholder="do ... end" />
144
+ </folding>
151
145
  </state>
152
146
  </provider>
153
147
  </entry>
@@ -190,22 +184,22 @@
190
184
  <component name="IdeDocumentHistory">
191
185
  <option name="changedFiles">
192
186
  <list>
193
- <option value="$PROJECT_DIR$/.ruby-gemset" />
194
- <option value="$PROJECT_DIR$/.ruby-version" />
195
- <option value="$PROJECT_DIR$/lib/google_translate/version.rb" />
196
- <option value="$PROJECT_DIR$/google-translate.gemspec.erb" />
197
- <option value="$PROJECT_DIR$/Rakefile" />
198
- <option value="$PROJECT_DIR$/test.html" />
199
187
  <option value="$PROJECT_DIR$/spec/translate_spec.rb" />
200
188
  <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
201
189
  <option value="$PROJECT_DIR$/spec/translator_spec.rb" />
202
190
  <option value="$PROJECT_DIR$/lib/google_translate/language.rb" />
203
191
  <option value="$PROJECT_DIR$/lib/google_translate/google_translate.rb" />
204
192
  <option value="$PROJECT_DIR$/lib/google_translate.rb" />
205
- <option value="$PROJECT_DIR$/bin/translate" />
206
- <option value="$PROJECT_DIR$/Gemfile" />
207
193
  <option value="$PROJECT_DIR$/google-translate.gemspec" />
194
+ <option value="$PROJECT_DIR$/lib/google_translate/version.rb" />
195
+ <option value="$PROJECT_DIR$/.ruby-version" />
196
+ <option value="$PROJECT_DIR$/Gemfile" />
197
+ <option value="$PROJECT_DIR$/google-translate.gemspec.erb" />
208
198
  <option value="$PROJECT_DIR$/CHANGES" />
199
+ <option value="$PROJECT_DIR$/bin/translate" />
200
+ <option value="$PROJECT_DIR$/lib/google_translate/translate_cli.rb" />
201
+ <option value="$PROJECT_DIR$/Rakefile" />
202
+ <option value="$PROJECT_DIR$/spec/google_translate_spec.rb" />
209
203
  </list>
210
204
  </option>
211
205
  </component>
@@ -328,50 +322,18 @@
328
322
  <component name="PropertiesComponent">
329
323
  <property name="options.splitter.main.proportions" value="0.3" />
330
324
  <property name="WebServerToolWindowFactoryState" value="false" />
331
- <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
332
325
  <property name="recentsLimit" value="5" />
326
+ <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
333
327
  <property name="FullScreen" value="false" />
334
- <property name="options.splitter.details.proportions" value="0.2" />
335
328
  <property name="options.searchVisible" value="true" />
329
+ <property name="options.splitter.details.proportions" value="0.2" />
336
330
  </component>
337
331
  <component name="RecentsManager">
338
332
  <key name="MoveFile.RECENT_KEYS">
339
333
  <recent name="$PROJECT_DIR$/lib/google_translate" />
340
334
  </key>
341
335
  </component>
342
- <component name="RunManager" selected="RSpec.google_translate">
343
- <configuration default="false" name=" should return list of supported languages" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
344
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
345
- <module name="google-translate" />
346
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
347
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
348
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
349
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
350
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
351
- <envs />
352
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
353
- <EXTENSION ID="JRubyRunConfigurationExtension" />
354
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
355
- <COVERAGE_PATTERN ENABLED="true">
356
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
357
- </COVERAGE_PATTERN>
358
- </EXTENSION>
359
- <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
360
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
361
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate.rb" />
362
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
363
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
364
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE=" should return list of supported languages" />
365
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
366
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
367
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
368
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
369
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
370
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
371
- <RunnerSettings RunnerId="RubyRunner" />
372
- <ConfigurationWrapper RunnerId="RubyRunner" />
373
- <method />
374
- </configuration>
336
+ <component name="RunManager" selected="RSpec.google_translate_spec">
375
337
  <configuration default="false" name="Translator should return list of supported languages" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
376
338
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
377
339
  <module name="google-translate" />
@@ -390,7 +352,7 @@
390
352
  </EXTENSION>
391
353
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
392
354
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
393
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate.rb" />
355
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate_spec.rb" />
394
356
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
395
357
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
396
358
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Translator should return list of supported languages" />
@@ -426,7 +388,7 @@
426
388
  </EXTENSION>
427
389
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
428
390
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
429
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate.rb" />
391
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate_spec.rb" />
430
392
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
431
393
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
432
394
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Translator should translate test string from one language to another" />
@@ -462,7 +424,7 @@
462
424
  </EXTENSION>
463
425
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
464
426
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
465
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate.rb" />
427
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate_spec.rb" />
466
428
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
467
429
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
468
430
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="Translator should translate test string from one language to another with autodetect" />
@@ -476,7 +438,29 @@
476
438
  <ConfigurationWrapper RunnerId="RubyRunner" />
477
439
  <method />
478
440
  </configuration>
479
- <configuration default="false" name="google_translate" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
441
+ <configuration default="false" name="google_translate_spec" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
442
+ <module name="google-translate" />
443
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
444
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
445
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
446
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
447
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
448
+ <envs />
449
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
450
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
451
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
452
+ <COVERAGE_PATTERN ENABLED="true">
453
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
454
+ </COVERAGE_PATTERN>
455
+ </EXTENSION>
456
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
457
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate_spec.rb" />
458
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
459
+ <RunnerSettings RunnerId="RubyRunner" />
460
+ <ConfigurationWrapper RunnerId="RubyRunner" />
461
+ <method />
462
+ </configuration>
463
+ <configuration default="false" name="google_translate_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
480
464
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
481
465
  <module name="google-translate" />
482
466
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
@@ -496,7 +480,7 @@
496
480
  </EXTENSION>
497
481
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
498
482
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
499
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate.rb" />
483
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate_spec.rb" />
500
484
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
501
485
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
502
486
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -586,6 +570,13 @@
586
570
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
587
571
  <method />
588
572
  </configuration>
573
+ <configuration default="true" type="JavascriptDebugSession" factoryName="Remote" singleton="true">
574
+ <JSRemoteDebuggerConfigurationSettings>
575
+ <option name="engineId" value="embedded" />
576
+ <option name="fileUrl" />
577
+ </JSRemoteDebuggerConfigurationSettings>
578
+ <method />
579
+ </configuration>
589
580
  <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
590
581
  <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
591
582
  <module name="" />
@@ -621,13 +612,6 @@
621
612
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
622
613
  <method />
623
614
  </configuration>
624
- <configuration default="true" type="JavascriptDebugSession" factoryName="Remote" singleton="true">
625
- <JSRemoteDebuggerConfigurationSettings>
626
- <option name="engineId" value="embedded" />
627
- <option name="fileUrl" />
628
- </JSRemoteDebuggerConfigurationSettings>
629
- <method />
630
- </configuration>
631
615
  <configuration default="true" type="JavascriptDebugSession" factoryName="Local" singleton="true">
632
616
  <JSDebuggerConfigurationSettings>
633
617
  <option name="engineId" value="embedded" />
@@ -653,7 +637,7 @@
653
637
  </EXTENSION>
654
638
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
655
639
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
656
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate.rb" />
640
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/google_translate_spec.rb" />
657
641
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
658
642
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
659
643
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -669,18 +653,19 @@
669
653
  </configuration>
670
654
  <list size="6">
671
655
  <item index="0" class="java.lang.String" itemvalue="RSpec.Unnamed" />
672
- <item index="1" class="java.lang.String" itemvalue="RSpec. should return list of supported languages" />
673
- <item index="2" class="java.lang.String" itemvalue="RSpec.Translator should return list of supported languages" />
674
- <item index="3" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another" />
675
- <item index="4" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another with autodetect" />
676
- <item index="5" class="java.lang.String" itemvalue="RSpec.google_translate" />
656
+ <item index="1" class="java.lang.String" itemvalue="RSpec.Translator should return list of supported languages" />
657
+ <item index="2" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another" />
658
+ <item index="3" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another with autodetect" />
659
+ <item index="4" class="java.lang.String" itemvalue="Ruby.google_translate_spec" />
660
+ <item index="5" class="java.lang.String" itemvalue="RSpec.google_translate_spec" />
677
661
  </list>
678
662
  <recent_temporary>
679
- <list size="4">
680
- <item index="0" class="java.lang.String" itemvalue="RSpec.google_translate" />
681
- <item index="1" class="java.lang.String" itemvalue="RSpec.Translator should return list of supported languages" />
682
- <item index="2" class="java.lang.String" itemvalue="RSpec.Translator should translate test string from one language to another with autodetect" />
683
- <item index="3" class="java.lang.String" itemvalue="RSpec.translate_spec" />
663
+ <list size="5">
664
+ <item index="0" class="java.lang.String" itemvalue="RSpec.google_translate_spec" />
665
+ <item index="1" class="java.lang.String" itemvalue="RSpec.google_translate_spec" />
666
+ <item index="2" class="java.lang.String" itemvalue="Ruby.google_translate_spec" />
667
+ <item index="3" class="java.lang.String" itemvalue="RSpec.google_translate_spec" />
668
+ <item index="4" class="java.lang.String" itemvalue="RSpec.Translator should return list of supported languages" />
684
669
  </list>
685
670
  </recent_temporary>
686
671
  <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda">
@@ -743,15 +728,15 @@
743
728
  <frame x="111" y="37" width="1704" height="1080" extended-state="0" />
744
729
  <editor active="true" />
745
730
  <layout>
746
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32756868" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
731
+ <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="7" side_tool="false" content_ui="tabs" />
747
732
  <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" />
748
733
  <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" />
749
734
  <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" />
750
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.13751508" sideWeight="0.67243135" order="0" side_tool="false" content_ui="combo" />
735
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.13932449" sideWeight="0.671414" order="0" side_tool="false" content_ui="combo" />
751
736
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4730417" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
752
737
  <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" />
753
738
  <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" />
754
- <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" />
739
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32858595" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
755
740
  <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" />
756
741
  <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" />
757
742
  <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" />
@@ -830,10 +815,6 @@
830
815
  <component name="XDebuggerManager">
831
816
  <breakpoint-manager>
832
817
  <breakpoints>
833
- <line-breakpoint enabled="true" type="ruby-line">
834
- <url>file://$PROJECT_DIR$/Rakefile</url>
835
- <line>14</line>
836
- </line-breakpoint>
837
818
  <line-breakpoint enabled="true" type="ruby-line">
838
819
  <url>file://$PROJECT_DIR$/lib/google_translate/google_translate.rb</url>
839
820
  <line>93</line>
@@ -849,14 +830,23 @@
849
830
  </breakpoint-manager>
850
831
  </component>
851
832
  <component name="editorHistoryManager">
852
- <entry file="file://$PROJECT_DIR$/bin/t.bat">
833
+ <entry file="file://$PROJECT_DIR$/bin/translate.bat">
853
834
  <provider selected="true" editor-type-id="text-editor">
854
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
835
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
836
+ <folding />
837
+ </state>
855
838
  </provider>
856
839
  </entry>
857
- <entry file="file://$PROJECT_DIR$/google-translate.gemspec.erb">
840
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/language.rb">
858
841
  <provider selected="true" editor-type-id="text-editor">
859
- <state line="2" column="72" selection-start="83" selection-end="99" vertical-scroll-proportion="0.0">
842
+ <state line="11" column="0" selection-start="164" selection-end="164" vertical-scroll-proportion="0.0">
843
+ <folding />
844
+ </state>
845
+ </provider>
846
+ </entry>
847
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/version.rb">
848
+ <provider selected="true" editor-type-id="text-editor">
849
+ <state line="1" column="18" selection-start="40" selection-end="40" vertical-scroll-proportion="0.025276462">
860
850
  <folding />
861
851
  </state>
862
852
  </provider>
@@ -868,103 +858,93 @@
868
858
  </state>
869
859
  </provider>
870
860
  </entry>
871
- <entry file="file://$PROJECT_DIR$/Rakefile">
861
+ <entry file="file://$PROJECT_DIR$/google-translate.gemspec">
872
862
  <provider selected="true" editor-type-id="text-editor">
873
- <state line="37" column="7" selection-start="779" selection-end="779" vertical-scroll-proportion="0.0">
863
+ <state line="28" column="0" selection-start="902" selection-end="902" vertical-scroll-proportion="0.7077409">
874
864
  <folding />
875
865
  </state>
876
866
  </provider>
877
867
  </entry>
878
- <entry file="file://$PROJECT_DIR$/test.html">
868
+ <entry file="file://$PROJECT_DIR$/.ruby-version">
879
869
  <provider selected="true" editor-type-id="text-editor">
880
- <state line="261" column="0" selection-start="11508" selection-end="11655" vertical-scroll-proportion="20.588236">
870
+ <state line="0" column="98" selection-start="5" selection-end="5" vertical-scroll-proportion="0.0">
881
871
  <folding />
882
872
  </state>
883
873
  </provider>
884
874
  </entry>
885
- <entry file="file://$PROJECT_DIR$/bin/translate">
875
+ <entry file="file://$PROJECT_DIR$/lib/google_translate.rb">
886
876
  <provider selected="true" editor-type-id="text-editor">
887
- <state line="60" column="58" selection-start="1360" selection-end="1360" vertical-scroll-proportion="0.0">
877
+ <state line="0" column="0" selection-start="0" selection-end="79" vertical-scroll-proportion="0.0">
888
878
  <folding />
889
879
  </state>
890
880
  </provider>
891
881
  </entry>
892
- <entry file="file://$PROJECT_DIR$/bin/translate.bat">
882
+ <entry file="file://$PROJECT_DIR$/google-translate.gemspec.erb">
893
883
  <provider selected="true" editor-type-id="text-editor">
894
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
895
- <folding />
884
+ <state line="17" column="0" selection-start="718" selection-end="718" vertical-scroll-proportion="-10.88">
885
+ <folding>
886
+ <marker date="1376340321000" expanded="true" signature="134:752" placeholder="do ... end" />
887
+ </folding>
896
888
  </state>
897
889
  </provider>
898
890
  </entry>
899
- <entry file="file://$PROJECT_DIR$/lib/google_translate/google_translate.rb">
891
+ <entry file="file://$PROJECT_DIR$/bin/translate">
900
892
  <provider selected="true" editor-type-id="text-editor">
901
- <state line="5" column="14" selection-start="71" selection-end="71" vertical-scroll-proportion="0.0">
893
+ <state line="4" column="40" selection-start="132" selection-end="132" vertical-scroll-proportion="0.0">
902
894
  <folding />
903
895
  </state>
904
896
  </provider>
905
897
  </entry>
906
- <entry file="file://$PROJECT_DIR$/lib/google_translate/language.rb">
898
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/translate_cli.rb">
907
899
  <provider selected="true" editor-type-id="text-editor">
908
- <state line="11" column="0" selection-start="164" selection-end="164" vertical-scroll-proportion="0.0">
900
+ <state line="17" column="5" selection-start="452" selection-end="452" vertical-scroll-proportion="0.0">
909
901
  <folding />
910
902
  </state>
911
903
  </provider>
912
904
  </entry>
913
- <entry file="file://$PROJECT_DIR$/lib/google_translate/version.rb">
905
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
914
906
  <provider selected="true" editor-type-id="text-editor">
915
- <state line="1" column="18" selection-start="40" selection-end="40" vertical-scroll-proportion="0.0">
907
+ <state line="1" column="0" selection-start="57" selection-end="57" vertical-scroll-proportion="0.0">
916
908
  <folding />
917
909
  </state>
918
910
  </provider>
919
911
  </entry>
920
- <entry file="file://$PROJECT_DIR$/lib/google_translate.rb">
912
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/google_translate.rb">
921
913
  <provider selected="true" editor-type-id="text-editor">
922
- <state line="0" column="26" selection-start="26" selection-end="26" vertical-scroll-proportion="0.0">
914
+ <state line="5" column="14" selection-start="71" selection-end="71" vertical-scroll-proportion="0.0">
923
915
  <folding />
924
916
  </state>
925
917
  </provider>
926
918
  </entry>
927
- <entry file="file://$PROJECT_DIR$/spec/google_translate.rb">
919
+ <entry file="file://$PROJECT_DIR$/spec/google_translate_spec.rb">
928
920
  <provider selected="true" editor-type-id="text-editor">
929
- <state line="6" column="24" selection-start="122" selection-end="122" vertical-scroll-proportion="0.6923077">
921
+ <state line="1" column="36" selection-start="20" selection-end="20" vertical-scroll-proportion="0.0">
930
922
  <folding>
931
- <marker date="1372443087000" expanded="true" signature="98:1072" placeholder=" ... end" />
932
- <marker date="1372443087000" expanded="true" signature="123:1072" placeholder="do ... end" />
933
- <marker date="1372443087000" expanded="true" signature="188:377" placeholder="do ... end" />
934
- <marker date="1372443087000" expanded="true" signature="202:233" placeholder="{ ... }" />
935
- <marker date="1372443087000" expanded="true" signature="261:292" placeholder="{ ... }" />
936
- <marker date="1372443087000" expanded="true" signature="320:356" placeholder="{ ... }" />
937
- <marker date="1372443087000" expanded="true" signature="444:540" placeholder="do ... end" />
938
- <marker date="1372443087000" expanded="true" signature="721:872" placeholder="#..." />
939
- <marker date="1372443087000" expanded="true" signature="923:1068" placeholder="do ... end" />
923
+ <marker date="1376340934000" expanded="true" signature="791:875" placeholder="do ... end" />
940
924
  </folding>
941
925
  </state>
942
926
  </provider>
943
927
  </entry>
944
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
928
+ <entry file="file://$PROJECT_DIR$/Rakefile">
945
929
  <provider selected="true" editor-type-id="text-editor">
946
- <state line="1" column="0" selection-start="57" selection-end="57" vertical-scroll-proportion="0.0">
947
- <folding />
930
+ <state line="31" column="111" selection-start="725" selection-end="725" vertical-scroll-proportion="0.0">
931
+ <folding>
932
+ <marker date="1376340848000" expanded="true" signature="210:235" placeholder=" ... end" />
933
+ <marker date="1376340848000" expanded="true" signature="250:273" placeholder=" ... end" />
934
+ </folding>
948
935
  </state>
949
936
  </provider>
950
937
  </entry>
951
938
  <entry file="file://$PROJECT_DIR$/Gemfile">
952
939
  <provider selected="true" editor-type-id="text-editor">
953
- <state line="13" column="10" selection-start="174" selection-end="174" vertical-scroll-proportion="0.0">
954
- <folding />
955
- </state>
956
- </provider>
957
- </entry>
958
- <entry file="file://$PROJECT_DIR$/google-translate.gemspec">
959
- <provider selected="true" editor-type-id="text-editor">
960
- <state line="22" column="6" selection-start="726" selection-end="726" vertical-scroll-proportion="0.0">
940
+ <state line="10" column="20" selection-start="141" selection-end="141" vertical-scroll-proportion="0.0">
961
941
  <folding />
962
942
  </state>
963
943
  </provider>
964
944
  </entry>
965
945
  <entry file="file://$PROJECT_DIR$/CHANGES">
966
946
  <provider selected="true" editor-type-id="text-editor">
967
- <state line="49" column="71" selection-start="701" selection-end="770" vertical-scroll-proportion="0.8483412">
947
+ <state line="53" column="2" selection-start="792" selection-end="824" vertical-scroll-proportion="0.84810126">
968
948
  <folding />
969
949
  </state>
970
950
  </provider>
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-1.9.3
1
+ 2.0.0
data/CHANGES CHANGED
@@ -47,4 +47,8 @@
47
47
 
48
48
  == Version 0.8.6
49
49
 
50
- * Fix auto detect source language; fix countries list; refactoring code
50
+ * Fix auto detect source language; fix countries list; refactoring code
51
+
52
+ == Version 0.8.7
53
+
54
+ * Changes in project configuration
data/Gemfile CHANGED
@@ -13,9 +13,9 @@ group :test do
13
13
  gem "rspec"
14
14
  end
15
15
 
16
- group :debug do
17
- gem "ruby-debug-base19x", "0.11.30.pre12"
18
- gem "ruby-debug-ide", "0.4.17"
19
- end
16
+ #group :debug do
17
+ # gem "ruby-debug-base19x", "0.11.30.pre12"
18
+ # gem "ruby-debug-ide", "0.4.17"
19
+ #end
20
20
 
21
21
 
data/Gemfile.lock CHANGED
@@ -1,27 +1,21 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- debugger-ruby_core_source (1.2.3)
5
- diff-lcs (1.1.3)
6
- file_utils (1.0.6)
4
+ diff-lcs (1.2.4)
5
+ file_utils (1.0.7)
7
6
  gemcutter (0.7.1)
8
- gemspec_deps_gen (1.0.5)
7
+ gemspec_deps_gen (1.1.1)
8
+ bundler
9
9
  file_utils
10
- json_pure (1.6.5)
11
- rake (10.1.0)
12
- rspec (2.8.0)
13
- rspec-core (~> 2.8.0)
14
- rspec-expectations (~> 2.8.0)
15
- rspec-mocks (~> 2.8.0)
16
- rspec-core (2.8.0)
17
- rspec-expectations (2.8.0)
18
- diff-lcs (~> 1.1.2)
19
- rspec-mocks (2.8.0)
20
- ruby-debug-base19x (0.11.30.pre12)
21
- debugger-ruby_core_source (>= 1.1.4)
22
- rake (>= 0.8.1)
23
- ruby-debug-ide (0.4.17)
24
- rake (>= 0.8.1)
10
+ json_pure (1.8.0)
11
+ rspec (2.14.1)
12
+ rspec-core (~> 2.14.0)
13
+ rspec-expectations (~> 2.14.0)
14
+ rspec-mocks (~> 2.14.0)
15
+ rspec-core (2.14.4)
16
+ rspec-expectations (2.14.1)
17
+ diff-lcs (>= 1.1.3, < 2.0)
18
+ rspec-mocks (2.14.3)
25
19
 
26
20
  PLATFORMS
27
21
  ruby
@@ -31,5 +25,3 @@ DEPENDENCIES
31
25
  gemspec_deps_gen
32
26
  json_pure
33
27
  rspec
34
- ruby-debug-base19x (= 0.11.30.pre12)
35
- ruby-debug-ide (= 0.4.17)
data/Rakefile CHANGED
@@ -6,20 +6,16 @@ require "rspec/core/rake_task"
6
6
  require "google_translate/version"
7
7
  require "gemspec_deps_gen/gemspec_deps_gen"
8
8
 
9
- def version
10
- GoogleTranslate::VERSION
11
- end
9
+ version = GoogleTranslate::VERSION
10
+ project_name = File.basename(Dir.pwd)
11
+
12
+ task :gen do
13
+ generator = GemspecDepsGen.new project_name
12
14
 
13
- def project_name
14
- File.basename(Dir.pwd)
15
+ generator.generate_dependencies "spec", "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
15
16
  end
16
17
 
17
18
  task :build do
18
- system "rm #{project_name}.gemspec"
19
- generator = GemspecDepsGen.new
20
-
21
- generator.generate_dependencies "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
22
-
23
19
  system "gem build #{project_name}.gemspec"
24
20
  end
25
21
 
@@ -27,6 +23,10 @@ task :install do
27
23
  system "gem install #{project_name}-#{version}.gem"
28
24
  end
29
25
 
26
+ task :uninstall do
27
+ system "gem uninstall #{project_name}"
28
+ end
29
+
30
30
  task :release => :build do
31
31
  system "gem push #{project_name}-#{version}.gem"
32
32
  end
@@ -35,3 +35,7 @@ RSpec::Core::RakeTask.new do |task|
35
35
  task.pattern = 'spec/**/*_spec.rb'
36
36
  task.verbose = false
37
37
  end
38
+
39
+ task :test do
40
+ puts `bin/t en:ru hello`
41
+ end
data/bin/translate CHANGED
@@ -2,82 +2,8 @@
2
2
 
3
3
  $:.unshift(File::join(File::dirname(File::dirname(__FILE__)), "lib"))
4
4
 
5
- require 'rubygems' unless defined?(Gem)
6
- require 'google_translate'
5
+ require 'google_translate/translate_cli'
7
6
 
8
- #$KCODE='u'
7
+ cli = TranslateCli.new
9
8
 
10
- class Translate
11
-
12
- USAGE= <<-TEXT
13
- Usage:
14
- translate list - displays the list of supported languages
15
- translate en:ru "hello world" - translates from en to ru
16
- translate ru "hello world" - translated from auto-detected language to ru
17
- TEXT
18
-
19
- def initialize
20
- @translator = GoogleTranslate.new
21
- end
22
-
23
- def print_languages list, title
24
- puts title
25
- puts list.join(', ')
26
- end
27
-
28
- def display result
29
- r1, r2 = *result
30
-
31
- if r2.empty?
32
- puts r1
33
- else
34
- puts r1
35
- puts r2
36
- end
37
-
38
- # if RUBY_PLATFORM =~ /mswin32/
39
- # # File.open("temp.txt", "w") {|f| f.write text }
40
- # # %x[notepad temp.txt]
41
- #
42
- # puts (r2.empty? ? r1 : r2)
43
- # else
44
- # puts (r2.empty? ? r1 : r2)
45
- # end
46
- end
47
-
48
- def run
49
- if(ARGV.size == 0)
50
- puts USAGE and return
51
- end
52
-
53
- case ARGV.shift
54
-
55
- when /(-v)|(--version)/ then
56
- puts "Version: #{File.open(File::dirname(__FILE__) + "/../VERSION").readlines().first}"
57
- when 'list' then
58
- hash = @translator.supported_languages
59
-
60
- print_languages hash[:from_languages], "From Languages:"
61
- print_languages hash[:to_languages], "To Languages:"
62
- when /(.*):(.*)/ then
63
- from_text = ARGV.join(' ')
64
- from = $1
65
- to = $2
66
-
67
- display(@translator.translate(from.to_sym, to.to_sym, from_text))
68
- when /(.*)/ then
69
- from_text = ARGV.join(' ')
70
-
71
- from = "auto"
72
- to = $1
73
-
74
- begin
75
- display(@translator.translate(from.to_sym, to.to_sym, from_text))
76
- rescue Exception => e
77
- puts "Error: " + e.message
78
- end
79
- end
80
- end
81
- end
82
-
83
- Translate.new.run
9
+ cli.run ARGV
@@ -15,6 +15,8 @@ Gem::Specification.new do |spec|
15
15
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
16
  spec.require_paths = ["lib"]
17
17
  spec.version = GoogleTranslate::VERSION
18
+
19
+ <%= project_dependencies %>
18
20
  end
19
21
 
20
22
 
@@ -0,0 +1,72 @@
1
+ require 'google_translate'
2
+
3
+ class TranslateCli
4
+ USAGE= <<-TEXT
5
+ Usage:
6
+ translate list - displays the list of supported languages
7
+ translate en:ru "hello world" - translates from en to ru
8
+ translate ru "hello world" - translated from auto-detected language to ru
9
+ TEXT
10
+
11
+ def initialize
12
+ @translator = GoogleTranslate.new
13
+ end
14
+
15
+ def print_languages list, title
16
+ puts title
17
+ puts list.join(', ')
18
+ end
19
+
20
+ def display result
21
+ r1, r2 = *result
22
+
23
+ if r2.empty?
24
+ puts r1
25
+ else
26
+ puts r1
27
+ puts r2
28
+ end
29
+
30
+ # if RUBY_PLATFORM =~ /mswin32/
31
+ # # File.open("temp.txt", "w") {|f| f.write text }
32
+ # # %x[notepad temp.txt]
33
+ #
34
+ # puts (r2.empty? ? r1 : r2)
35
+ # else
36
+ # puts (r2.empty? ? r1 : r2)
37
+ # end
38
+ end
39
+
40
+ def run params
41
+ if(params.size == 0)
42
+ puts USAGE
43
+ else
44
+ case params.shift
45
+ when /(-v)|(--version)/ then
46
+ puts "Version: #{File.open(File::dirname(__FILE__) + "/../VERSION").readlines().first}"
47
+ when 'list' then
48
+ hash = @translator.supported_languages
49
+
50
+ print_languages hash[:from_languages], "From Languages:"
51
+ print_languages hash[:to_languages], "To Languages:"
52
+ when /(.*):(.*)/ then
53
+ from_text = params.join(' ')
54
+ from = $1
55
+ to = $2
56
+
57
+ display(@translator.translate(from.to_sym, to.to_sym, from_text))
58
+ when /(.*)/ then
59
+ from_text = params.join(' ')
60
+
61
+ from = "auto"
62
+ to = $1
63
+
64
+ begin
65
+ display(@translator.translate(from.to_sym, to.to_sym, from_text))
66
+ rescue Exception => e
67
+ puts "Error: " + e.message
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -1,3 +1,3 @@
1
1
  class GoogleTranslate
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.7"
3
3
  end
@@ -26,9 +26,9 @@ describe GoogleTranslate do
26
26
  r.size.should be > 0
27
27
  end
28
28
 
29
- it "should return unreliable flag if language is not recognized" do
30
- subject.detect_language("azafretmkldt")['isReliable'].should be_false
31
- end
29
+ #it "should return unreliable flag if language is not recognized" do
30
+ # subject.detect_language("azafretmkldt")['isReliable'].should be_false
31
+ #end
32
32
 
33
33
  it "should return list of supported languages" do
34
34
  languages = subject.supported_languages
metadata CHANGED
@@ -1,16 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
5
- prerelease:
4
+ version: 0.8.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Alexander Shvets
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-28 00:00:00.000000000 Z
13
- dependencies: []
11
+ date: 2013-08-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json_pure
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: gemspec_deps_gen
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: gemcutter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
14
55
  description: Simple client for Google Translate API.
15
56
  email: alexander.shvets@gmail.com
16
57
  executables:
@@ -45,37 +86,34 @@ files:
45
86
  - lib/google_translate.rb
46
87
  - lib/google_translate/google_translate.rb
47
88
  - lib/google_translate/language.rb
89
+ - lib/google_translate/translate_cli.rb
48
90
  - lib/google_translate/version.rb
49
- - spec/google_translate.rb
91
+ - spec/google_translate_spec.rb
50
92
  - spec/spec_helper.rb
51
93
  - test.html
52
94
  homepage: http://github.com/shvets/google-translate
53
95
  licenses: []
96
+ metadata: {}
54
97
  post_install_message:
55
98
  rdoc_options: []
56
99
  require_paths:
57
100
  - lib
58
101
  required_ruby_version: !ruby/object:Gem::Requirement
59
- none: false
60
102
  requirements:
61
- - - ! '>='
103
+ - - '>='
62
104
  - !ruby/object:Gem::Version
63
105
  version: '0'
64
- segments:
65
- - 0
66
- hash: 1288499260417177790
67
106
  required_rubygems_version: !ruby/object:Gem::Requirement
68
- none: false
69
107
  requirements:
70
- - - ! '>='
108
+ - - '>='
71
109
  - !ruby/object:Gem::Version
72
110
  version: '0'
73
111
  requirements: []
74
112
  rubyforge_project:
75
- rubygems_version: 1.8.25
113
+ rubygems_version: 2.0.5
76
114
  signing_key:
77
- specification_version: 3
115
+ specification_version: 4
78
116
  summary: Simple client for Google Translate API.
79
117
  test_files:
80
- - spec/google_translate.rb
118
+ - spec/google_translate_spec.rb
81
119
  - spec/spec_helper.rb