youtube_search_thumbnail 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4028cdd20bd4536750478e2dce00ab40d687a31
4
- data.tar.gz: 40bf5daaefbe390a60546d1ad8b670e3a0d52c79
3
+ metadata.gz: 283d6a7fb3fd4d433b73b758223d5255cba4ad84
4
+ data.tar.gz: bba0dca3bf1ab375b93d658737c3baa10bbdf8fc
5
5
  SHA512:
6
- metadata.gz: 45b9f7b0f2c86c4f5e03ef46b87878223facf9b3da49236b15c5d3a7b870748a6286dc8d001996ce8bf2cd17d00f0f378e75864a0cb14253f7fb12501a529831
7
- data.tar.gz: 58d69c8802cdd7cc2065f52d4fd6f91dafdaaa97ffbb224af91d3fe2a7dd13ad9e5672070e1685297c7278ca10ac2a8e989fa0cc9000f3ae03e1bb404b3ac79c
6
+ metadata.gz: 87ba32bdb5ebf05d4411a65684a8881130de4b17ef52f30b5a2bc10b67e32840ecde77a410e3078f0c67f013663136d80bd8a84f04723e727a18c65d70baa1b2
7
+ data.tar.gz: 9bb7a1f02b3803a7828ffe555e3b49578ede04a904dd45cc9d79500baf6b9a9b83fc3a629c837d4f737d1d997909acdd4b7ea6907bdc32a9f7e5e7fedd2bc545
data/.idea/workspace.xml CHANGED
@@ -1,7 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="8ec480de-4364-4c9f-adfb-d85b4c197a92" name="Default" comment="" />
4
+ <list default="true" id="8ec480de-4364-4c9f-adfb-d85b4c197a92" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ </list>
5
7
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
8
  <option name="TRACKING_ENABLED" value="true" />
7
9
  <option name="SHOW_DIALOG" value="false" />
@@ -14,8 +16,8 @@
14
16
  <file leaf-file-name="youtube_search_thumbnail.rb" pinned="false" current-in-tab="false">
15
17
  <entry file="file://$PROJECT_DIR$/lib/youtube_search_thumbnail.rb">
16
18
  <provider selected="true" editor-type-id="text-editor">
17
- <state relative-caret-position="270">
18
- <caret line="10" column="37" lean-forward="false" selection-start-line="10" selection-start-column="37" selection-end-line="10" selection-end-column="37" />
19
+ <state relative-caret-position="438">
20
+ <caret line="24" column="13" lean-forward="false" selection-start-line="24" selection-start-column="13" selection-end-line="24" selection-end-column="13" />
19
21
  <folding />
20
22
  </state>
21
23
  </provider>
@@ -24,8 +26,8 @@
24
26
  <file leaf-file-name="youtube_search_thumbnail_test.rb" pinned="false" current-in-tab="false">
25
27
  <entry file="file://$PROJECT_DIR$/test/youtube_search_thumbnail_test.rb">
26
28
  <provider selected="true" editor-type-id="text-editor">
27
- <state relative-caret-position="162">
28
- <caret line="6" column="0" lean-forward="true" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
29
+ <state relative-caret-position="108">
30
+ <caret line="4" column="15" lean-forward="true" selection-start-line="4" selection-start-column="15" selection-end-line="4" selection-end-column="15" />
29
31
  <folding />
30
32
  </state>
31
33
  </provider>
@@ -67,8 +69,8 @@
67
69
  <file leaf-file-name="youtube_search_thumbnail.gemspec" pinned="false" current-in-tab="false">
68
70
  <entry file="file://$PROJECT_DIR$/youtube_search_thumbnail.gemspec">
69
71
  <provider selected="true" editor-type-id="text-editor">
70
- <state relative-caret-position="386">
71
- <caret line="29" column="42" lean-forward="false" selection-start-line="29" selection-start-column="42" selection-end-line="29" selection-end-column="42" />
72
+ <state relative-caret-position="810">
73
+ <caret line="29" column="48" lean-forward="false" selection-start-line="29" selection-start-column="48" selection-end-line="29" selection-end-column="48" />
72
74
  <folding />
73
75
  </state>
74
76
  </provider>
@@ -84,8 +86,8 @@
84
86
  <list>
85
87
  <option value="$PROJECT_DIR$/LICENSE.txt" />
86
88
  <option value="$PROJECT_DIR$/README.md" />
87
- <option value="$PROJECT_DIR$/youtube_search_thumbnail.gemspec" />
88
89
  <option value="$PROJECT_DIR$/.gitignore" />
90
+ <option value="$PROJECT_DIR$/youtube_search_thumbnail.gemspec" />
89
91
  <option value="$PROJECT_DIR$/lib/youtube_search_thumbnail.rb" />
90
92
  <option value="$PROJECT_DIR$/test/youtube_search_thumbnail_test.rb" />
91
93
  <option value="$PROJECT_DIR$/lib/youtube_search_thumbnail/version.rb" />
@@ -120,7 +122,6 @@
120
122
  <foldersAlwaysOnTop value="true" />
121
123
  </navigator>
122
124
  <panes>
123
- <pane id="Scratches" />
124
125
  <pane id="ProjectPane">
125
126
  <subPane>
126
127
  <PATH>
@@ -182,6 +183,7 @@
182
183
  </subPane>
183
184
  </pane>
184
185
  <pane id="Scope" />
186
+ <pane id="Scratches" />
185
187
  </panes>
186
188
  </component>
187
189
  <component name="PropertiesComponent">
@@ -202,6 +204,120 @@
202
204
  </list>
203
205
  </option>
204
206
  </component>
207
+ <component name="RunManager">
208
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
209
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
210
+ <module name="" />
211
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
212
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
213
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
214
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
215
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
216
+ <envs />
217
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
218
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
219
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
220
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
221
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
222
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
223
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
224
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
225
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
226
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
227
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
228
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
229
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
230
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
231
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
232
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
233
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
234
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
235
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
236
+ <method />
237
+ </configuration>
238
+ <configuration default="true" type="JavaScriptTestRunnerJest" factoryName="Jest">
239
+ <node-interpreter value="project" />
240
+ <working-dir value="" />
241
+ <envs />
242
+ <scope-kind value="ALL" />
243
+ <method />
244
+ </configuration>
245
+ <configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
246
+ <config-file value="" />
247
+ <node-interpreter value="project" />
248
+ <envs />
249
+ <method />
250
+ </configuration>
251
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
252
+ <method />
253
+ </configuration>
254
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
255
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
256
+ <module name="" />
257
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
258
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
259
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
260
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
261
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
262
+ <envs />
263
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
264
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
265
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
266
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
267
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
268
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
269
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
270
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
271
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
272
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
273
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
274
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
275
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
276
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
277
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
278
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
279
+ <method />
280
+ </configuration>
281
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
282
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
283
+ <module name="" />
284
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
285
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
286
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
287
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
288
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
289
+ <envs />
290
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
291
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
292
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
293
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
294
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
295
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
296
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
297
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
298
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
299
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
300
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
301
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
302
+ <method />
303
+ </configuration>
304
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
305
+ <node-interpreter>project</node-interpreter>
306
+ <node-options />
307
+ <gulpfile />
308
+ <tasks />
309
+ <arguments />
310
+ <envs />
311
+ <method />
312
+ </configuration>
313
+ <configuration default="true" type="js.build_tools.npm" factoryName="npm">
314
+ <command value="run" />
315
+ <scripts />
316
+ <node-interpreter value="project" />
317
+ <envs />
318
+ <method />
319
+ </configuration>
320
+ </component>
205
321
  <component name="ShelveChangesManager" show_recycled="false">
206
322
  <option name="remove_strategy" value="false" />
207
323
  </component>
@@ -214,24 +330,25 @@
214
330
  <option name="presentableId" value="Default" />
215
331
  <updated>1499864650691</updated>
216
332
  <workItem from="1499864651921" duration="2692000" />
217
- <workItem from="1499869954667" duration="252000" />
333
+ <workItem from="1499869954667" duration="327000" />
334
+ <workItem from="1499876985543" duration="1231000" />
218
335
  </task>
219
336
  <servers />
220
337
  </component>
221
338
  <component name="TimeTrackingManager">
222
- <option name="totallyTimeSpent" value="2944000" />
339
+ <option name="totallyTimeSpent" value="4250000" />
223
340
  </component>
224
341
  <component name="ToolWindowManager">
225
342
  <frame x="-8" y="-8" width="1936" height="1096" extended-state="6" />
226
343
  <layout>
227
344
  <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
228
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2524013" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
345
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25506938" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
229
346
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
230
347
  <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
231
- <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
232
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
348
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
349
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
233
350
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
234
- <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.33027524" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
351
+ <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3312946" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
235
352
  <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
236
353
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
237
354
  <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
@@ -255,6 +372,57 @@
255
372
  <watches-manager />
256
373
  </component>
257
374
  <component name="editorHistoryManager">
375
+ <entry file="file://$PROJECT_DIR$/lib/youtube_search_thumbnail.rb">
376
+ <provider selected="true" editor-type-id="text-editor">
377
+ <state relative-caret-position="270">
378
+ <caret line="10" column="37" lean-forward="false" selection-start-line="10" selection-start-column="37" selection-end-line="10" selection-end-column="37" />
379
+ <folding />
380
+ </state>
381
+ </provider>
382
+ </entry>
383
+ <entry file="file://$PROJECT_DIR$/test/youtube_search_thumbnail_test.rb">
384
+ <provider selected="true" editor-type-id="text-editor">
385
+ <state relative-caret-position="162">
386
+ <caret line="6" column="0" lean-forward="true" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
387
+ <folding />
388
+ </state>
389
+ </provider>
390
+ </entry>
391
+ <entry file="file://$PROJECT_DIR$/README.md">
392
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
393
+ <state split_layout="SPLIT">
394
+ <first_editor relative-caret-position="1215">
395
+ <caret line="45" column="84" lean-forward="false" selection-start-line="45" selection-start-column="84" selection-end-line="45" selection-end-column="84" />
396
+ <folding />
397
+ </first_editor>
398
+ <second_editor />
399
+ </state>
400
+ </provider>
401
+ </entry>
402
+ <entry file="file://$PROJECT_DIR$/LICENSE.txt">
403
+ <provider selected="true" editor-type-id="text-editor">
404
+ <state relative-caret-position="297">
405
+ <caret line="11" column="39" lean-forward="false" selection-start-line="11" selection-start-column="39" selection-end-line="11" selection-end-column="39" />
406
+ <folding />
407
+ </state>
408
+ </provider>
409
+ </entry>
410
+ <entry file="file://$PROJECT_DIR$/youtube_search_thumbnail.gemspec">
411
+ <provider selected="true" editor-type-id="text-editor">
412
+ <state relative-caret-position="783">
413
+ <caret line="29" column="42" lean-forward="false" selection-start-line="29" selection-start-column="42" selection-end-line="29" selection-end-column="42" />
414
+ <folding />
415
+ </state>
416
+ </provider>
417
+ </entry>
418
+ <entry file="file://$PROJECT_DIR$/lib/youtube_search_thumbnail/version.rb">
419
+ <provider selected="true" editor-type-id="text-editor">
420
+ <state relative-caret-position="81">
421
+ <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
422
+ <folding />
423
+ </state>
424
+ </provider>
425
+ </entry>
258
426
  <entry file="file://$PROJECT_DIR$/lib/youtube_search_thumbnail.rb">
259
427
  <provider selected="true" editor-type-id="text-editor">
260
428
  <state relative-caret-position="162">
@@ -326,24 +494,24 @@
326
494
  </entry>
327
495
  <entry file="file://$PROJECT_DIR$/youtube_search_thumbnail.gemspec">
328
496
  <provider selected="true" editor-type-id="text-editor">
329
- <state relative-caret-position="386">
330
- <caret line="29" column="42" lean-forward="false" selection-start-line="29" selection-start-column="42" selection-end-line="29" selection-end-column="42" />
497
+ <state relative-caret-position="810">
498
+ <caret line="29" column="48" lean-forward="false" selection-start-line="29" selection-start-column="48" selection-end-line="29" selection-end-column="48" />
331
499
  <folding />
332
500
  </state>
333
501
  </provider>
334
502
  </entry>
335
- <entry file="file://$PROJECT_DIR$/lib/youtube_search_thumbnail.rb">
503
+ <entry file="file://$PROJECT_DIR$/test/youtube_search_thumbnail_test.rb">
336
504
  <provider selected="true" editor-type-id="text-editor">
337
- <state relative-caret-position="270">
338
- <caret line="10" column="37" lean-forward="false" selection-start-line="10" selection-start-column="37" selection-end-line="10" selection-end-column="37" />
505
+ <state relative-caret-position="108">
506
+ <caret line="4" column="15" lean-forward="true" selection-start-line="4" selection-start-column="15" selection-end-line="4" selection-end-column="15" />
339
507
  <folding />
340
508
  </state>
341
509
  </provider>
342
510
  </entry>
343
- <entry file="file://$PROJECT_DIR$/test/youtube_search_thumbnail_test.rb">
511
+ <entry file="file://$PROJECT_DIR$/lib/youtube_search_thumbnail.rb">
344
512
  <provider selected="true" editor-type-id="text-editor">
345
- <state relative-caret-position="162">
346
- <caret line="6" column="0" lean-forward="true" selection-start-line="6" selection-start-column="0" selection-end-line="6" selection-end-column="0" />
513
+ <state relative-caret-position="438">
514
+ <caret line="24" column="13" lean-forward="false" selection-start-line="24" selection-start-column="13" selection-end-line="24" selection-end-column="13" />
347
515
  <folding />
348
516
  </state>
349
517
  </provider>
@@ -9,11 +9,19 @@
9
9
  <orderEntry type="jdk" jdkName="ruby-2.2.4-p230" jdkType="RUBY_SDK" />
10
10
  <orderEntry type="sourceFolder" forTests="false" />
11
11
  <orderEntry type="library" scope="PROVIDED" name="bundler (v1.12.5, ruby-2.2.4-p230) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="celluloid (v0.17.3, ruby-2.2.4-p230) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="celluloid-essentials (v0.20.5, ruby-2.2.4-p230) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="celluloid-extras (v0.20.5, ruby-2.2.4-p230) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="celluloid-fsm (v0.20.5, ruby-2.2.4-p230) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="celluloid-pool (v0.20.5, ruby-2.2.4-p230) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="celluloid-supervision (v0.20.6, ruby-2.2.4-p230) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="hitimes (v1.2.5, ruby-2.2.4-p230) [gem]" level="application" />
12
19
  <orderEntry type="library" scope="PROVIDED" name="json (v2.1.0, ruby-2.2.4-p230) [gem]" level="application" />
13
20
  <orderEntry type="library" scope="PROVIDED" name="mini_portile2 (v2.2.0, ruby-2.2.4-p230) [gem]" level="application" />
14
21
  <orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.2, ruby-2.2.4-p230) [gem]" level="application" />
15
22
  <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.8.0, ruby-2.2.4-p230) [gem]" level="application" />
16
23
  <orderEntry type="library" scope="PROVIDED" name="rake (v10.3.2, ruby-2.2.4-p230) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="timers (v4.1.2, ruby-2.2.4-p230) [gem]" level="application" />
17
25
  <orderEntry type="library" scope="PROVIDED" name="video_thumb (v0.1.4, ruby-2.2.4-p230) [gem]" level="application" />
18
26
  </component>
19
27
  </module>
@@ -2,22 +2,33 @@ require "youtube_search_thumbnail/version"
2
2
  require 'open-uri'
3
3
  require 'nokogiri'
4
4
  require 'video_thumb'
5
+ require 'celluloid\current'
5
6
 
6
7
  module YoutubeSearchThumbnail
7
8
 
8
9
 
9
- def self.get(url,num=1,size="medium")
10
- result=[]
11
- url.delete!("^\u{0000}-\u{007F}")
12
- element = ".yt-lockup-title a"
13
- doc = Nokogiri::HTML(open(url))
14
- doc.css(element).each do |s|
15
- unless s.text.empty? then
16
- result<< "https://www.youtube.com#{s['href']}"
17
- # @songs.push(@stn.format_song(s.text.strip.sub(/^[0-9]./, '').titleize.strip))
10
+ def self.get(url, num=1, size="medium")
11
+ result=[]
12
+ url.delete!("^\u{0000}-\u{007F}")
13
+ element = ".yt-lockup-title a"
14
+ doc = Nokogiri::HTML(open(url))
15
+ doc.css(element).each do |s|
16
+ unless s.text.empty? then
17
+ result<< "https://www.youtube.com#{s['href']}"
18
+ # @songs.push(@stn.format_song(s.text.strip.sub(/^[0-9]./, '').titleize.strip))
19
+ end
18
20
  end
21
+ result[num-1]
22
+ VideoThumb.get(result[num-1], size)
23
+ end
24
+
25
+ class Yst
26
+ include Celluloid
27
+
28
+ def get(url, num=1, size="medium")
29
+ YoutubeSearchThumbnail::get(url,num,size)
30
+ end
31
+
32
+
19
33
  end
20
- result[num-1]
21
- VideoThumb.get(result[num-1],size)
22
- end
23
34
  end
@@ -1,3 +1,3 @@
1
1
  module YoutubeSearchThumbnail
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.add_dependency "nokogiri", "~> 1.8"
30
30
  spec.add_dependency "video_thumb" , "~> 0.1.4"
31
+ spec.add_dependency "celluloid" , "~> 0.17.3"
31
32
 
32
33
  spec.add_development_dependency "bundler", "~> 1.12"
33
34
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youtube_search_thumbnail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - butilities
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.1.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: celluloid
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.17.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.17.3
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement