webinspector 0.3.0 → 0.3.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.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/web_inspector/page.rb +2 -2
- data/lib/web_inspector/version.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: d9b9b2aa7ef567e5a1c663ddfd817b254df35089
|
|
4
|
+
data.tar.gz: 1afd5d7b87361ac1dad0b5e50f17237db5ca0471
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32d88f52f97682b37a3024c444b6eb31fe8c7178483bfa0c1ea51070133c16e357b3440cb223623b28159cac8d73f2f93a0b4d12b62d5ac5e116676db9cade91
|
|
7
|
+
data.tar.gz: 1f543d568098f33c3d27b186b13f78bea1d40e4fd1b9cce939186d52d502edc4b7b6d23123a512cc276e226ac35fb3efddd743e57679284a1505a7a5945d3bab
|
data/README.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Ruby gem to inspect completely a web page. It scrapes a given URL, and returns you its title, description, meta, links, images and more.
|
|
4
4
|
|
|
5
|
+
## See it in action!
|
|
6
|
+
|
|
7
|
+
You can try WebInspector live at this little demo: [https://scrappet.herokuapp.com](https://scrappet.herokuapp.com)
|
|
5
8
|
## Installation
|
|
6
9
|
|
|
7
10
|
Add this line to your application's Gemfile:
|
|
@@ -56,12 +59,12 @@ page.meta # metatags of the page
|
|
|
56
59
|
```ruby
|
|
57
60
|
page.meta # metatags of the page
|
|
58
61
|
page.meta['description'] # meta description
|
|
59
|
-
page.meta['
|
|
62
|
+
page.meta['keywords'] # meta keywords
|
|
60
63
|
```
|
|
61
64
|
|
|
62
65
|
|
|
63
66
|
## License
|
|
64
|
-
The
|
|
67
|
+
The webinspector GEM is released under the MIT License.
|
|
65
68
|
|
|
66
69
|
## Contributing
|
|
67
70
|
|
data/lib/web_inspector/page.rb
CHANGED
|
@@ -100,7 +100,7 @@ module WebInspector
|
|
|
100
100
|
req.options.open_timeout = @read_timeout
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
@url
|
|
103
|
+
@url = response.env.url.to_s
|
|
104
104
|
|
|
105
105
|
response
|
|
106
106
|
end
|
|
@@ -117,4 +117,4 @@ module WebInspector
|
|
|
117
117
|
Nokogiri::HTML(open(with_default_scheme(@request), allow_redirections: :safe))
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
|
-
end
|
|
120
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webinspector
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Davide Santangelo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|