rsocial 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rsocial.rb +1 -1
  3. data/lib/rsocial/runner.rb +3 -11
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0d1515f9bd29a65f80dac02b4328cc9f89b271d
4
- data.tar.gz: c85aa771b621df7fcaae69e27bd37b27200ac077
3
+ metadata.gz: b70ae087fb573c0ae71dff19e4c68c3f3575f690
4
+ data.tar.gz: 105e4cd1c4f61a504c218a7915c442afd6d29353
5
5
  SHA512:
6
- metadata.gz: a8b691f3ba0c8dabcc8e7d8fb9f6ee6c6c1d02aa90e11f76518c03dae8899000a6c86ea480d2d20160d8ef92f13dd3d15ed768394111bebaa12936ea4a83b440
7
- data.tar.gz: 306f355539eb77d6d5b0ae5fc9b436f56dadd6bf6c3df7d288b2f7576b5e7bd93e39460223ea07e1018eb1b00237864b4d435ba2b11347a04b7bae5424ce58a7
6
+ metadata.gz: 7f75424b0e0900228eb85eb7051272375534781664c0c3da028382796e06d00fbc51b2d672686666abf1cbf5e6fb722818ef393d7c2031e631af9cd56f758ec2
7
+ data.tar.gz: 678f886d5671f6f6f5c8ee10f4aa15aa01bf4be45c825bed2020b47be2a7a928b4fbf80304d506320fbd5f6802604b2d1ccd77cc10cb5f15c8ab8ffaea584a7a
@@ -11,5 +11,5 @@ require 'rsocial/youtube'
11
11
  require 'rsocial/youtube/client'
12
12
 
13
13
  module RSocial
14
- VERSION = '0.6.0'
14
+ VERSION = '0.6.1'
15
15
  end
@@ -3,12 +3,13 @@ require 'headless'
3
3
  module RSocial
4
4
  class Runner < Utils
5
5
  def initialize(options={})
6
- @wd = Selenium::WebDriver.for :chrome
7
6
  end
8
7
 
9
8
  def run(url, injections)
10
9
  begin
11
- while_headless do
10
+ #Headless::Exception: Xvfb not found on your system
11
+ Headless.ly do
12
+ @wd = Selenium::WebDriver.for :chrome
12
13
  @wd.navigate.to url
13
14
  inject_each do
14
15
  injections
@@ -23,15 +24,6 @@ module RSocial
23
24
 
24
25
  private
25
26
 
26
- def while_headless
27
- #Headless::Exception: Xvfb not found on your system
28
- headless = Headless.new
29
- headless.start
30
- yield
31
- ensure
32
- headless.destroy
33
- end
34
-
35
27
  def inject_each(&block)
36
28
  results = {}
37
29
  block.call.each do |key, script|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsocial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Richards