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 +4 -4
- data/lib/rsocial.rb +1 -1
- data/lib/rsocial/driver.rb +0 -3
- data/lib/rsocial/facebook.rb +1 -1
- data/lib/rsocial/instagram.rb +1 -1
- data/lib/rsocial/runner.rb +5 -1
- data/lib/rsocial/twitter.rb +1 -1
- data/lib/rsocial/youtube.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bd9c510d2b1cb3af67c84c2e4d8f795e9ba1402
|
|
4
|
+
data.tar.gz: 0574d26b23472fc4551c6817e6dd3531d4de4eb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c10447ab8d5a8147c43fa761caf462fa3bbbbe6168e498879c7b4eadf0c85c84d52a9c4b22f1fd811ce445cd97af5b56960c0536749fce3bd0ceddc9fe4e2b0
|
|
7
|
+
data.tar.gz: cb296f399252cae6fcec148c3896e5c73470665a0e0474ef61f67501e50866760e5a77891086f09d2d387a448ddb34aa6f2586990b6377da4f6386faeb306147
|
data/lib/rsocial.rb
CHANGED
data/lib/rsocial/driver.rb
CHANGED
|
@@ -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
|
data/lib/rsocial/facebook.rb
CHANGED
data/lib/rsocial/instagram.rb
CHANGED
data/lib/rsocial/runner.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
data/lib/rsocial/twitter.rb
CHANGED
data/lib/rsocial/youtube.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|