rsocial 0.6.1 → 0.6.2

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: b70ae087fb573c0ae71dff19e4c68c3f3575f690
4
- data.tar.gz: 105e4cd1c4f61a504c218a7915c442afd6d29353
3
+ metadata.gz: 7bd9c510d2b1cb3af67c84c2e4d8f795e9ba1402
4
+ data.tar.gz: 0574d26b23472fc4551c6817e6dd3531d4de4eb9
5
5
  SHA512:
6
- metadata.gz: 7f75424b0e0900228eb85eb7051272375534781664c0c3da028382796e06d00fbc51b2d672686666abf1cbf5e6fb722818ef393d7c2031e631af9cd56f758ec2
7
- data.tar.gz: 678f886d5671f6f6f5c8ee10f4aa15aa01bf4be45c825bed2020b47be2a7a928b4fbf80304d506320fbd5f6802604b2d1ccd77cc10cb5f15c8ab8ffaea584a7a
6
+ metadata.gz: 2c10447ab8d5a8147c43fa761caf462fa3bbbbe6168e498879c7b4eadf0c85c84d52a9c4b22f1fd811ce445cd97af5b56960c0536749fce3bd0ceddc9fe4e2b0
7
+ data.tar.gz: cb296f399252cae6fcec148c3896e5c73470665a0e0474ef61f67501e50866760e5a77891086f09d2d387a448ddb34aa6f2586990b6377da4f6386faeb306147
@@ -11,5 +11,5 @@ require 'rsocial/youtube'
11
11
  require 'rsocial/youtube/client'
12
12
 
13
13
  module RSocial
14
- VERSION = '0.6.1'
14
+ VERSION = '0.6.2'
15
15
  end
@@ -5,9 +5,6 @@ module RSocial
5
5
  class Driver
6
6
  include Singleton
7
7
  def firefox
8
- #require 'selenium-webdriver'
9
- #Selenium::WebDriver::Firefox::Binary.path='/usr/bin/firefox/firefox-bin'
10
- #Selenium::WebDriver::Error::WebDriverError: Could not find Firefox binary (os=linux). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path=
11
8
  @firefox ||= Selenium::WebDriver.for :firefox
12
9
  end
13
10
  def chrome
@@ -1,6 +1,6 @@
1
1
  module RSocial
2
2
  module Facebook
3
- def self.client(options={})
3
+ def self.client(options={browser:"firefox"})
4
4
  Facebook::Client.new(options)
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module RSocial
2
2
  module Instagram
3
- def self.client(options={})
3
+ def self.client(options={browser:"firefox"})
4
4
  Instagram::Client.new(options)
5
5
  end
6
6
  end
@@ -3,13 +3,17 @@ require 'headless'
3
3
  module RSocial
4
4
  class Runner < Utils
5
5
  def initialize(options={})
6
+ @options = options
7
+ puts "Runner"
8
+ puts @options
6
9
  end
7
10
 
8
11
  def run(url, injections)
9
12
  begin
10
13
  #Headless::Exception: Xvfb not found on your system
11
14
  Headless.ly do
12
- @wd = Selenium::WebDriver.for :chrome
15
+ #@wd = Selenium::WebDriver.for :chrome
16
+ @wd = Driver.instance.send( @options[:browser] )
13
17
  @wd.navigate.to url
14
18
  inject_each do
15
19
  injections
@@ -1,6 +1,6 @@
1
1
  module RSocial
2
2
  module Twitter
3
- def self.client(options={})
3
+ def self.client(options={browser:"firefox"})
4
4
  Twitter::Client.new(options)
5
5
  end
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module RSocial
2
2
  module Youtube
3
- def self.client(options={})
3
+ def self.client(options={browser:"firefox"})
4
4
  Youtube::Client.new(options)
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsocial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Richards
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-16 00:00:00.000000000 Z
11
+ date: 2016-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake