google-translate 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MzUyZDU3MDZmOGI2MTk4NDVhM2E5MjY5MDg3OGRiNTAyMmIxZjg1Yg==
5
- data.tar.gz: !binary |-
6
- MTk5Y2JhNmQ1NGQyMDU4M2M3ZTE4MjcyMzI3OWU2MzI1YjU3MWMxNg==
2
+ SHA1:
3
+ metadata.gz: 1f7690515099a14e121420082af91d59843748e7
4
+ data.tar.gz: 43a857cf9f3114d7dfac36f77a3c2ef5bdbb3d48
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MzIzMjE4YmQ5YWUzM2Q1MGE2MzAyM2ExN2I0OTRlZjAxZjEyOGQ0YTVlZWJj
10
- ODc0ZWFiOTI3NDIzYzhlZmYxNGRlZjBmZjMzZWMyMTk2OWI3MTNlNmQ4ZWU2
11
- YjlmM2I2MGJjMjA1NDZmZTE1ZjBlMTk3NTg4NTlkYTU5YmYzODI=
12
- data.tar.gz: !binary |-
13
- NWVlNzhmZDMzNGEyMTNhOWQzNTljMjExMGIxZDYzZWZhYTY5NTg1YjIyZGE5
14
- YzZkMTYwYWJjMGFlZWY0NDliY2M3NzAyYzg2NTlhYzNkMWFjZjYwZGE5ZWYz
15
- NGUyNTA3MTRiMGFlNDRjOGRlZTQ2MzQ0OWM0NjFmODMwZjgzZWM=
6
+ metadata.gz: 10b82b0dc23f0d87706e33465bff399ab6200cb735fba6898e4cba0251d10ee43606d21dd7a483c368f6446bd4640a40b5fb7c0c04e8e6bc44a42907d5e283d0
7
+ data.tar.gz: 11851d99ab2e6755603de5566d694ced8b611b696729f80a06b2ce7e2f88058a33ff177221f232bf72eb130ba17c676c17f6b3cff063d1339d9e842ffcaf5073
@@ -219,21 +219,8 @@
219
219
  <content url="file://$MODULE_DIR$">
220
220
  <excludeFolder url="file://$MODULE_DIR$/.bundle" />
221
221
  </content>
222
- <orderEntry type="jdk" jdkName="RVM: ruby-2.1.4 [google-translate]" jdkType="RUBY_SDK" />
222
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.1.5 [google-translate]" jdkType="RUBY_SDK" />
223
223
  <orderEntry type="sourceFolder" forTests="false" />
224
- <orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.2.0, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
225
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
226
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
227
- <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
228
- <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
229
- <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
230
- <orderEntry type="library" scope="PROVIDED" name="json_pure (v1.8.1, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
231
- <orderEntry type="library" scope="PROVIDED" name="resource_accessor (v1.2.3, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
232
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.0.0, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
233
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.0.4, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
234
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.0.4, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
235
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.0.4, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
236
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.0.4, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
237
- <orderEntry type="library" scope="PROVIDED" name="thor (v0.19.1, RVM: ruby-2.1.4 [google-translate]) [gem]" level="application" />
224
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.6, RVM: ruby-2.1.5 [google-translate]) [gem]" level="application" />
238
225
  </component>
239
226
  </module>
@@ -5,7 +5,8 @@
5
5
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.ruby-version" afterPath="$PROJECT_DIR$/.ruby-version" />
6
6
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
7
7
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/google-translate.iml" afterPath="$PROJECT_DIR$/.idea/google-translate.iml" />
8
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate/google_translate.rb" afterPath="$PROJECT_DIR$/lib/google_translate/google_translate.rb" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate/result_parser.rb" afterPath="$PROJECT_DIR$/lib/google_translate/result_parser.rb" />
9
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate/translate_cli.rb" afterPath="$PROJECT_DIR$/lib/google_translate/translate_cli.rb" />
9
10
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/google_translate/version.rb" afterPath="$PROJECT_DIR$/lib/google_translate/version.rb" />
10
11
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
11
12
  </list>
@@ -23,10 +24,10 @@
23
24
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
24
25
  <component name="CoverageDataManager">
25
26
  <SUITE FILE_PATH="coverage/google-translate@_should_return_list_of_supported_languages__google_translate.coverage" NAME=" should return list of supported languages: google-translate Coverage Results" MODIFIED="1409581320186" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="google-translate" />
26
- <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" />
27
- <SUITE FILE_PATH="coverage/google-translate@_should_translate_test_string_from_one_language_to_another__google_translate.coverage" NAME=" should translate test string from one language to another: google-translate Coverage Results" MODIFIED="1409582946943" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="google-translate" />
28
- <SUITE FILE_PATH="coverage/google-translate@t.coverage" NAME="t Coverage Results" MODIFIED="1409604048092" 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" />
29
27
  <SUITE FILE_PATH="coverage/google-translate@Run_spec__google_translate_spec___google_translate.coverage" NAME="Run spec 'google_translate_spec': google-translate Coverage Results" MODIFIED="1414958430355" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="google-translate" />
28
+ <SUITE FILE_PATH="coverage/google-translate@t.coverage" NAME="t Coverage Results" MODIFIED="1409604048092" 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" />
29
+ <SUITE FILE_PATH="coverage/google-translate@_should_translate_test_string_from_one_language_to_another__google_translate.coverage" NAME=" should translate test string from one language to another: google-translate Coverage Results" MODIFIED="1409582946943" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="google-translate" />
30
+ <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" />
30
31
  </component>
31
32
  <component name="CreatePatchCommitExecutor">
32
33
  <option name="PATCH_PATH" value="" />
@@ -40,21 +41,21 @@
40
41
  </component>
41
42
  <component name="FileEditorManager">
42
43
  <leaf>
43
- <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
44
- <entry file="file://$PROJECT_DIR$/Gemfile">
44
+ <file leaf-file-name=".ruby-version" pinned="false" current-in-tab="false">
45
+ <entry file="file://$PROJECT_DIR$/.ruby-version">
45
46
  <provider selected="true" editor-type-id="text-editor">
46
- <state vertical-scroll-proportion="0.0" vertical-offset="225" max-vertical-offset="450">
47
- <caret line="15" column="21" selection-start-line="15" selection-start-column="21" selection-end-line="15" selection-end-column="21" />
47
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
48
+ <caret line="0" column="3" selection-start-line="0" selection-start-column="3" selection-end-line="0" selection-end-column="3" />
48
49
  <folding />
49
50
  </state>
50
51
  </provider>
51
52
  </entry>
52
53
  </file>
53
- <file leaf-file-name="google_translate.rb" pinned="false" current-in-tab="false">
54
- <entry file="file://$PROJECT_DIR$/lib/google_translate/google_translate.rb">
54
+ <file leaf-file-name="result_parser.rb" pinned="false" current-in-tab="false">
55
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/result_parser.rb">
55
56
  <provider selected="true" editor-type-id="text-editor">
56
- <state vertical-scroll-proportion="-5.1923075" vertical-offset="0" max-vertical-offset="1860">
57
- <caret line="9" column="31" selection-start-line="9" selection-start-column="31" selection-end-line="9" selection-end-column="31" />
57
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1496">
58
+ <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
58
59
  <folding />
59
60
  </state>
60
61
  </provider>
@@ -63,7 +64,7 @@
63
64
  <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
64
65
  <entry file="file://$PROJECT_DIR$/lib/google_translate/version.rb">
65
66
  <provider selected="true" editor-type-id="text-editor">
66
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="120">
67
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="136">
67
68
  <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
68
69
  <folding />
69
70
  </state>
@@ -73,28 +74,18 @@
73
74
  <file leaf-file-name="CHANGES" pinned="false" current-in-tab="true">
74
75
  <entry file="file://$PROJECT_DIR$/CHANGES">
75
76
  <provider selected="true" editor-type-id="text-editor">
76
- <state vertical-scroll-proportion="1.3239436" vertical-offset="467" max-vertical-offset="1215">
77
- <caret line="75" column="9" selection-start-line="75" selection-start-column="9" selection-end-line="75" selection-end-column="9" />
78
- <folding />
79
- </state>
80
- </provider>
81
- </entry>
82
- </file>
83
- <file leaf-file-name="google_translate_spec.rb" pinned="false" current-in-tab="false">
84
- <entry file="file://$PROJECT_DIR$/spec/google_translate_spec.rb">
85
- <provider selected="true" editor-type-id="text-editor">
86
- <state vertical-scroll-proportion="0.0" vertical-offset="90" max-vertical-offset="690">
87
- <caret line="17" column="0" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
77
+ <state vertical-scroll-proportion="1.260177" vertical-offset="597" max-vertical-offset="1445">
78
+ <caret line="77" column="16" selection-start-line="77" selection-start-column="16" selection-end-line="77" selection-end-column="16" />
88
79
  <folding />
89
80
  </state>
90
81
  </provider>
91
82
  </entry>
92
83
  </file>
93
- <file leaf-file-name=".ruby-version" pinned="false" current-in-tab="false">
94
- <entry file="file://$PROJECT_DIR$/.ruby-version">
84
+ <file leaf-file-name="translate_cli.rb" pinned="false" current-in-tab="false">
85
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/translate_cli.rb">
95
86
  <provider selected="true" editor-type-id="text-editor">
96
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="90">
97
- <caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
87
+ <state vertical-scroll-proportion="0.0" vertical-offset="828" max-vertical-offset="1666">
88
+ <caret line="71" column="0" selection-start-line="71" selection-start-column="0" selection-end-line="71" selection-end-column="0" />
98
89
  <folding />
99
90
  </state>
100
91
  </provider>
@@ -135,14 +126,25 @@
135
126
  <MyDateState />
136
127
  </option>
137
128
  </component>
129
+ <component name="IdeDocumentHistory">
130
+ <option name="CHANGED_PATHS">
131
+ <list>
132
+ <option value="$PROJECT_DIR$/.ruby-version" />
133
+ <option value="$PROJECT_DIR$/lib/google_translate/result_parser.rb" />
134
+ <option value="$PROJECT_DIR$/lib/google_translate/translate_cli.rb" />
135
+ <option value="$PROJECT_DIR$/lib/google_translate/version.rb" />
136
+ <option value="$PROJECT_DIR$/CHANGES" />
137
+ </list>
138
+ </option>
139
+ </component>
138
140
  <component name="JsGulpfileManager">
139
141
  <detection-done>true</detection-done>
140
142
  </component>
141
143
  <component name="ProjectFrameBounds">
142
144
  <option name="x" value="161" />
143
145
  <option name="y" value="29" />
144
- <option name="width" value="1279" />
145
- <option name="height" value="871" />
146
+ <option name="width" value="1569" />
147
+ <option name="height" value="995" />
146
148
  </component>
147
149
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
148
150
  <OptionsSetting value="true" id="Add" />
@@ -234,6 +236,20 @@
234
236
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
235
237
  </PATH_ELEMENT>
236
238
  </PATH>
239
+ <PATH>
240
+ <PATH_ELEMENT>
241
+ <option name="myItemId" value="google-translate" />
242
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
243
+ </PATH_ELEMENT>
244
+ <PATH_ELEMENT>
245
+ <option name="myItemId" value="google-translate" />
246
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
247
+ </PATH_ELEMENT>
248
+ <PATH_ELEMENT>
249
+ <option name="myItemId" value="bin" />
250
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
251
+ </PATH_ELEMENT>
252
+ </PATH>
237
253
  </subPane>
238
254
  </pane>
239
255
  <pane id="Scope" />
@@ -500,6 +516,12 @@
500
516
  <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
501
517
  <method />
502
518
  </configuration>
519
+ <configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
520
+ <option name="cucumberJsArguments" value="" />
521
+ <option name="executablePath" />
522
+ <option name="filePath" />
523
+ <method />
524
+ </configuration>
503
525
  <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
504
526
  <node-options />
505
527
  <gulpfile />
@@ -517,10 +539,10 @@
517
539
  </list>
518
540
  <recent_temporary>
519
541
  <list size="4">
520
- <item index="0" class="java.lang.String" itemvalue="RSpec.Run spec 'google_translate_spec': google-translate" />
521
- <item index="1" class="java.lang.String" itemvalue="Ruby.t" />
522
- <item index="2" class="java.lang.String" itemvalue="RSpec. should translate test string from one language to another: google-translate" />
523
- <item index="3" class="java.lang.String" itemvalue="RSpec. should return list of supported languages: google-translate" />
542
+ <item index="0" class="java.lang.String" itemvalue="Ruby.t" />
543
+ <item index="1" class="java.lang.String" itemvalue="RSpec. should translate test string from one language to another: google-translate" />
544
+ <item index="2" class="java.lang.String" itemvalue="RSpec. should return list of supported languages: google-translate" />
545
+ <item index="3" class="java.lang.String" itemvalue="RSpec.Run spec 'google_translate_spec': google-translate" />
524
546
  </list>
525
547
  </recent_temporary>
526
548
  <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda">
@@ -573,7 +595,13 @@
573
595
  <option name="project" value="LOCAL" />
574
596
  <updated>1384012413611</updated>
575
597
  </task>
576
- <option name="localTasksCounter" value="3" />
598
+ <task id="LOCAL-00003" summary="Bug fix">
599
+ <created>1414958499189</created>
600
+ <option name="number" value="00003" />
601
+ <option name="project" value="LOCAL" />
602
+ <updated>1414958499189</updated>
603
+ </task>
604
+ <option name="localTasksCounter" value="4" />
577
605
  <servers />
578
606
  </component>
579
607
  <component name="TodoView" selected-index="0">
@@ -597,33 +625,34 @@
597
625
  </todo-panel>
598
626
  </component>
599
627
  <component name="ToolWindowManager">
600
- <frame x="161" y="29" width="1279" height="871" extended-state="0" />
628
+ <frame x="161" y="29" width="1569" height="995" extended-state="0" />
601
629
  <editor active="false" />
602
630
  <layout>
603
- <window_info id="Changes" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3234536" sideWeight="0.4995958" order="7" side_tool="false" content_ui="tabs" />
604
- <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33118558" sideWeight="0.4995958" order="8" side_tool="false" content_ui="tabs" />
631
+ <window_info id="Changes" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32305935" sideWeight="0.4995958" order="7" side_tool="false" content_ui="tabs" />
632
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4303653" sideWeight="0.4995958" order="8" side_tool="false" content_ui="tabs" />
605
633
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32950193" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
606
634
  <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" />
607
635
  <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" />
608
- <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
609
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.18431689" sideWeight="0.671066" order="0" side_tool="false" content_ui="combo" />
610
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.41251597" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
611
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32603094" sideWeight="0.4995958" order="2" side_tool="false" content_ui="tabs" />
636
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
637
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.15127702" sideWeight="0.671066" order="0" side_tool="false" content_ui="combo" />
612
638
  <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" />
613
639
  <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32603094" sideWeight="0.5004042" order="8" side_tool="true" content_ui="tabs" />
614
640
  <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32822478" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
641
+ <window_info id="Copy/Paste" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
615
642
  <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" />
616
643
  <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" />
617
644
  <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" />
618
645
  <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" />
619
646
  <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" />
620
647
  <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" />
648
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.41251597" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
621
649
  <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" />
622
650
  <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" />
623
651
  <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" />
624
652
  <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" />
625
653
  <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" />
626
654
  <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" />
655
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32603094" sideWeight="0.4995958" order="2" side_tool="false" content_ui="tabs" />
627
656
  </layout>
628
657
  <layout-to-restore>
629
658
  <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" />
@@ -642,13 +671,13 @@
642
671
  <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" />
643
672
  <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
673
  <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" />
645
- <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" />
646
674
  <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" />
647
- <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" />
675
+ <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" />
648
676
  <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" />
649
- <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" />
650
- <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" />
677
+ <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" />
651
678
  <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" />
679
+ <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" />
680
+ <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" />
652
681
  </layout-to-restore>
653
682
  </component>
654
683
  <component name="Vcs.Log.UiProperties">
@@ -677,7 +706,8 @@
677
706
  <MESSAGE value="adding new features" />
678
707
  <MESSAGE value="bug fixes" />
679
708
  <MESSAGE value="Reflects changes in recent google translate service." />
680
- <option name="LAST_COMMIT_MESSAGE" value="Reflects changes in recent google translate service." />
709
+ <MESSAGE value="Bug fix" />
710
+ <option name="LAST_COMMIT_MESSAGE" value="Bug fix" />
681
711
  <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
682
712
  </component>
683
713
  <component name="XDebuggerManager">
@@ -694,6 +724,22 @@
694
724
  <watches-manager />
695
725
  </component>
696
726
  <component name="editorHistoryManager">
727
+ <entry file="file://$PROJECT_DIR$/spec/google_translate_spec.rb">
728
+ <provider selected="true" editor-type-id="text-editor">
729
+ <state vertical-scroll-proportion="0.0" vertical-offset="289" max-vertical-offset="782">
730
+ <caret line="17" column="0" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
731
+ <folding />
732
+ </state>
733
+ </provider>
734
+ </entry>
735
+ <entry file="file://$PROJECT_DIR$/.ruby-version">
736
+ <provider selected="true" editor-type-id="text-editor">
737
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="102">
738
+ <caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
739
+ <folding />
740
+ </state>
741
+ </provider>
742
+ </entry>
697
743
  <entry file="file://$PROJECT_DIR$/Gemfile">
698
744
  <provider selected="true" editor-type-id="text-editor">
699
745
  <state vertical-scroll-proportion="0.0" vertical-offset="225" max-vertical-offset="450">
@@ -973,20 +1019,6 @@
973
1019
  </state>
974
1020
  </provider>
975
1021
  </entry>
976
- <entry file="file://$PROJECT_DIR$/lib/google_translate/result_parser.rb">
977
- <provider selected="true" editor-type-id="text-editor">
978
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1320">
979
- <caret line="81" column="0" selection-start-line="81" selection-start-column="0" selection-end-line="81" selection-end-column="0" />
980
- </state>
981
- </provider>
982
- </entry>
983
- <entry file="file://$PROJECT_DIR$/lib/google_translate/translate_cli.rb">
984
- <provider selected="true" editor-type-id="text-editor">
985
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1615">
986
- <caret line="16" column="0" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="102" />
987
- </state>
988
- </provider>
989
- </entry>
990
1022
  <entry file="file://$PROJECT_DIR$/lib/google_translate.rb">
991
1023
  <provider selected="true" editor-type-id="text-editor">
992
1024
  <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="474">
@@ -1009,26 +1041,50 @@
1009
1041
  </state>
1010
1042
  </provider>
1011
1043
  </entry>
1044
+ <entry file="file://$PROJECT_DIR$/spec/google_translate_spec.rb">
1045
+ <provider selected="true" editor-type-id="text-editor">
1046
+ <state vertical-scroll-proportion="0.0" vertical-offset="90" max-vertical-offset="690">
1047
+ <caret line="17" column="0" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
1048
+ <folding />
1049
+ </state>
1050
+ </provider>
1051
+ </entry>
1052
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/google_translate.rb">
1053
+ <provider selected="true" editor-type-id="text-editor">
1054
+ <state vertical-scroll-proportion="0.0" vertical-offset="153" max-vertical-offset="2108">
1055
+ <caret line="9" column="31" selection-start-line="9" selection-start-column="31" selection-end-line="9" selection-end-column="31" />
1056
+ <folding />
1057
+ </state>
1058
+ </provider>
1059
+ </entry>
1060
+ <entry file="file://$PROJECT_DIR$/.ruby-gemset">
1061
+ <provider selected="true" editor-type-id="text-editor">
1062
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="475">
1063
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
1064
+ <folding />
1065
+ </state>
1066
+ </provider>
1067
+ </entry>
1012
1068
  <entry file="file://$PROJECT_DIR$/.ruby-version">
1013
1069
  <provider selected="true" editor-type-id="text-editor">
1014
- <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="491">
1015
- <caret line="0" column="5" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
1070
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="347">
1071
+ <caret line="0" column="3" selection-start-line="0" selection-start-column="3" selection-end-line="0" selection-end-column="3" />
1016
1072
  <folding />
1017
1073
  </state>
1018
1074
  </provider>
1019
1075
  </entry>
1020
- <entry file="file://$PROJECT_DIR$/spec/google_translate_spec.rb">
1076
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/result_parser.rb">
1021
1077
  <provider selected="true" editor-type-id="text-editor">
1022
- <state vertical-scroll-proportion="0.0" vertical-offset="90" max-vertical-offset="690">
1023
- <caret line="17" column="0" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
1078
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1513">
1079
+ <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
1024
1080
  <folding />
1025
1081
  </state>
1026
1082
  </provider>
1027
1083
  </entry>
1028
- <entry file="file://$PROJECT_DIR$/lib/google_translate/google_translate.rb">
1084
+ <entry file="file://$PROJECT_DIR$/lib/google_translate/translate_cli.rb">
1029
1085
  <provider selected="true" editor-type-id="text-editor">
1030
- <state vertical-scroll-proportion="-5.1923075" vertical-offset="0" max-vertical-offset="1860">
1031
- <caret line="9" column="31" selection-start-line="9" selection-start-column="31" selection-end-line="9" selection-end-column="31" />
1086
+ <state vertical-scroll-proportion="0.0" vertical-offset="828" max-vertical-offset="1666">
1087
+ <caret line="71" column="0" selection-start-line="71" selection-start-column="0" selection-end-line="71" selection-end-column="0" />
1032
1088
  <folding />
1033
1089
  </state>
1034
1090
  </provider>
@@ -1043,8 +1099,8 @@
1043
1099
  </entry>
1044
1100
  <entry file="file://$PROJECT_DIR$/CHANGES">
1045
1101
  <provider selected="true" editor-type-id="text-editor">
1046
- <state vertical-scroll-proportion="1.3239436" vertical-offset="467" max-vertical-offset="1215">
1047
- <caret line="75" column="9" selection-start-line="75" selection-start-column="9" selection-end-line="75" selection-end-column="9" />
1102
+ <state vertical-scroll-proportion="1.260177" vertical-offset="597" max-vertical-offset="1445">
1103
+ <caret line="77" column="16" selection-start-line="77" selection-start-column="16" selection-end-line="77" selection-end-column="16" />
1048
1104
  <folding />
1049
1105
  </state>
1050
1106
  </provider>
@@ -1 +1 @@
1
- 2.1.4
1
+ 2.1
data/CHANGES CHANGED
@@ -73,4 +73,8 @@
73
73
 
74
74
  == Version 1.1.1
75
75
 
76
+ * Bug fix
77
+
78
+ == Version 1.1.2
79
+
76
80
  * Bug fix
@@ -11,7 +11,7 @@ class ResultParser
11
11
  end
12
12
 
13
13
  def translit
14
- result[0][1][2]
14
+ result[0][1][2] if result[0][1]
15
15
  end
16
16
 
17
17
  def nouns
@@ -69,7 +69,10 @@ class TranslateCLI < Thor
69
69
  end
70
70
 
71
71
  puts "Translation: #{result_parser.translation}"
72
- puts "Translit: #{result_parser.translit}" unless result_parser.translit.size == 0
72
+
73
+ if result_parser.translit and result_parser.translit.size > 0
74
+ puts "Translit: #{result_parser.translit}"
75
+ end
73
76
 
74
77
  say = options[:say] ? (options[:say] == 'true') : false
75
78
 
@@ -1,3 +1,3 @@
1
1
  class GoogleTranslate
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-02 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_pure
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: resource_accessor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.19'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.19'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: gemspec_deps_gen
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: gemcutter
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.7'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.7'
83
83
  description: Simple client for Google Translate API.
@@ -88,19 +88,19 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
92
- - .idea/.rakeTasks
93
- - .idea/dictionaries/oshvets.xml
94
- - .idea/encodings.xml
95
- - .idea/google-translate.iml
96
- - .idea/misc.xml
97
- - .idea/modules.xml
98
- - .idea/runConfigurations/translate.xml
99
- - .idea/scopes/scope_settings.xml
100
- - .idea/vcs.xml
101
- - .idea/workspace.xml
102
- - .ruby-gemset
103
- - .ruby-version
91
+ - ".gitignore"
92
+ - ".idea/.rakeTasks"
93
+ - ".idea/dictionaries/oshvets.xml"
94
+ - ".idea/encodings.xml"
95
+ - ".idea/google-translate.iml"
96
+ - ".idea/misc.xml"
97
+ - ".idea/modules.xml"
98
+ - ".idea/runConfigurations/translate.xml"
99
+ - ".idea/scopes/scope_settings.xml"
100
+ - ".idea/vcs.xml"
101
+ - ".idea/workspace.xml"
102
+ - ".ruby-gemset"
103
+ - ".ruby-version"
104
104
  - CHANGES
105
105
  - Gemfile
106
106
  - Gemfile.lock
@@ -132,20 +132,20 @@ require_paths:
132
132
  - lib
133
133
  required_ruby_version: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ! '>='
135
+ - - ">="
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - ! '>='
140
+ - - ">="
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.2.2
145
+ rubygems_version: 2.4.3
146
146
  signing_key:
147
147
  specification_version: 4
148
- summary: ! 'Summary: Simple client for Google Translate API.'
148
+ summary: 'Summary: Simple client for Google Translate API.'
149
149
  test_files:
150
150
  - spec/google_translate_spec.rb
151
151
  - spec/spec_helper.rb