phantom-ruby-browser 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +7 -10
- data/phantom-ruby-browser.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf0de51b3af1dd6fd6275982503d1c9978d0447f
|
4
|
+
data.tar.gz: 5980df0fe50dc57f810e6e283e8abd1c4c4d1f92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcf961296bac6027367366ebb0b32b69b9cd48aa96742309b965dccc6014346151e5ad61687e3f04d779cc4bf64356662cf56446c4c55844c4688481b28d6e4b
|
7
|
+
data.tar.gz: 26f80a11fcf8cc239135eb2801ae85a2c49f4ae28a7beb76b72fce4dc94ee90f627a1f02a6f4b31661660a19fa92163fe1adfc948fd13867755fe0ac3ac156f8
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
phantom-ruby-browser (0.0.
|
5
|
-
phantomjs (~> 1.9.7.1)
|
4
|
+
phantom-ruby-browser (0.0.1)
|
5
|
+
phantomjs (~> 1.9.7.1, >= 1.9.7.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -35,6 +35,6 @@ PLATFORMS
|
|
35
35
|
|
36
36
|
DEPENDENCIES
|
37
37
|
phantom-ruby-browser!
|
38
|
-
pry (~> 0.9.12.2)
|
39
|
-
rake (~> 10.1.0)
|
40
|
-
rspec (~> 3.1.0)
|
38
|
+
pry (~> 0.9.12.2, >= 0.9.12.2)
|
39
|
+
rake (~> 10.1.0, >= 10.1.0)
|
40
|
+
rspec (~> 3.1.0, >= 3.1.0)
|
data/README.md
CHANGED
@@ -7,23 +7,20 @@ Wraps PhantomJS headless browser into Ruby code and provides basic DOM operation
|
|
7
7
|
|
8
8
|
Example
|
9
9
|
-------
|
10
|
-
|
10
|
+
Print DOM of javascript rendered page
|
11
11
|
```ruby
|
12
12
|
browser = PhantomRubyBrowser.new("http://google.com/analytics")
|
13
13
|
puts browser.content
|
14
14
|
```
|
15
15
|
|
16
|
-
|
16
|
+
Open page, click on a link and save DOM
|
17
|
+
```ruby
|
18
|
+
browser = PhantomRubyBrowser.new("http://google.com/analytics")
|
19
|
+
puts browser.content_after_click('a.ga-button')
|
17
20
|
```
|
18
|
-
$ gem install "phantom-ruby-browser"
|
19
|
-
Fetching: phantomjs-1.9.7.1.gem (100%)
|
20
|
-
Successfully installed phantomjs-1.9.7.1
|
21
|
-
Fetching: phantom-ruby-browser-0.0.1.gem (100%)
|
22
|
-
Successfully installed phantom-ruby-browser-0.0.1
|
23
|
-
Installing ri documentation for phantom-ruby-browser-0.0.1
|
24
|
-
Installing ri documentation for phantomjs-1.9.7.1
|
25
|
-
2 gems installed
|
26
21
|
|
22
|
+
Command line example
|
23
|
+
```
|
27
24
|
$ irb
|
28
25
|
1.9.3-p547 :002 > require 'phantom_ruby_browser'
|
29
26
|
=> true
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'phantom-ruby-browser'
|
3
|
-
s.version = '0.0
|
4
|
-
s.date = '2014-10-
|
3
|
+
s.version = '0.1.0'
|
4
|
+
s.date = '2014-10-09'
|
5
5
|
s.summary = "Wraps PhantomJS into Ruby code and provides basic DOM operations."
|
6
6
|
s.description = "Wraps PhantomJS headless browser into Ruby code and provides basic DOM operations like click and get the content."
|
7
7
|
s.authors = ["Marek Aufart"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phantom-ruby-browser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Aufart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phantomjs
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.4.2
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Wraps PhantomJS into Ruby code and provides basic DOM operations.
|