page_downloader 1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 580f9e97358bc2ab92e3bb8ac42f170b5f390ca9
4
+ data.tar.gz: b0999feac82ed6594cdd4909507191fa40cc4aad
5
+ SHA512:
6
+ metadata.gz: 7b8768eb67f349e17bdeebd4c56926fb1586683fa49153725a1430259ad42535ec693c8d1ab77a3f58a5e914627a604ade764590a7afe10983ee734cfbfa336e
7
+ data.tar.gz: 9656735510decc6efd3581b77a088c70f903765aeebbd8ca7ccc9c6e1dac0b5dc31d43ed391f4b348c6a41dafb47b21f671ca4d358f413120031ba5e9ff56c37
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.scrutinizer.yml ADDED
@@ -0,0 +1,15 @@
1
+ checks:
2
+ ruby:
3
+ code_rating: true
4
+ duplicate_code: true
5
+
6
+ build:
7
+ tests:
8
+ override:
9
+ -
10
+ command: 'bundle exec rake test:scrutinizer'
11
+ environment:
12
+ 'SCRUTINIZER_CC_FILE': 'my-coverage'
13
+ coverage:
14
+ file: 'my-coverage'
15
+ format: 'rb-cc'
data/.travis.yml ADDED
@@ -0,0 +1,23 @@
1
+ language: ruby
2
+ sudo: false
3
+ cache: bundle
4
+ before_install:
5
+ - gem install bundler -v 1.10.6
6
+
7
+ rvm:
8
+ - 1.9.3
9
+ - 2.0
10
+ - 2.1
11
+ - 2.2
12
+
13
+ before_script:
14
+ - bundle install
15
+
16
+ script:
17
+ - rake test
18
+
19
+ gemfile:
20
+ - Gemfile
21
+ - gemfiles/Germfile.nokogiri-1.6
22
+ - gemfiles/Germfile.nokogiri-1.5
23
+ - gemfiles/Germfile.nokogiri-1.0
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in page_downloader.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Marcelo Jacobus
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # PageDownloader
2
+
3
+ Downloads a web page into a file embedding javascript and css into it.
4
+
5
+ [![Build Status](https://travis-ci.org/mjacobus/page_downloader.svg)](https://travis-ci.org/mjacobus/page_downloader)
6
+ [![Code Coverage](https://scrutinizer-ci.com/g/mjacobus/page_downloader/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/mjacobus/page_downloader/?branch=master)
7
+ [![Code Climate](https://codeclimate.com/github/mjacobus/page_downloader/badges/gpa.svg)](https://codeclimate.com/github/mjacobus/page_downloader)
8
+ [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mjacobus/page_downloader/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mjacobus/page_downloader/?branch=master)
9
+ [![Dependency Status](https://gemnasium.com/mjacobus/page_downloader.svg)](https://gemnasium.com/mjacobus/page_downloader)
10
+ [![Gem Version](https://badge.fury.io/rb/page_downloader.svg)](https://badge.fury.io/rb/page_downloader)
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'page_downloader'
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install page_downloader
27
+
28
+ ## Usage
29
+
30
+ ```ruby
31
+ page = "http://mjacobus.github.io/2015/08/28/resolving-github-token-issue-in-composer.html"
32
+
33
+ PageDownloader.new(page).to_file("/tmp/downloaded.html")
34
+ ```
35
+
36
+ On the command line:
37
+
38
+ ```ruby
39
+ download_page "https://foo.com/bar.html" /tmp/my_page.html
40
+ ```
41
+
42
+ ## Development
43
+
44
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
+
46
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
+
48
+ ## Contributing
49
+
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mgjacobus/page_downloader. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
51
+
52
+
53
+ ## License
54
+
55
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
56
+
data/Rakefile ADDED
@@ -0,0 +1,27 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
11
+
12
+ namespace :test do
13
+ task :coveralls do
14
+ ENV["COVERALLS"] = "true"
15
+ Rake::Task["test:coverage"].invoke
16
+ end
17
+
18
+ task :coverage do
19
+ ENV["COVERAGE"] = "true"
20
+ Rake::Task["test"].invoke
21
+ end
22
+
23
+ task :scrutinizer do
24
+ ENV["SCRUTINIZER"] = "true"
25
+ Rake::Task["test"].invoke
26
+ end
27
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "page_downloader"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/download_page ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "page_downloader"
5
+
6
+ page = ARGV[0]
7
+ file = ARGV[1]
8
+
9
+ PageDownloader.new(page).to_file(file)
10
+
11
+ exit 0
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: '..'
4
+
5
+ gem "nokogiri", "~>1.0"
6
+
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: '..'
4
+
5
+ gem "nokogiri", "~>1.5"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: '..'
4
+
5
+ gem "nokogiri", "~>1.6"
@@ -0,0 +1,38 @@
1
+ require "page_downloader/version"
2
+ require "page_downloader/filters"
3
+ require "page_downloader/filters/to_document_object"
4
+ require "page_downloader/filters/document_object_to_string"
5
+ require "page_downloader/filters/embed_script"
6
+ require "page_downloader/filters/embed_style"
7
+ require "page_downloader/remote_content_fetcher"
8
+ require "page_downloader/url_resolver"
9
+
10
+ class PageDownloader
11
+ attr_reader :page, :fetcher, :filters
12
+
13
+ def initialize(page, options = {})
14
+ @page = page
15
+ @fetcher = options.fetch(:fetcher, RemoteContentFetcher.new)
16
+ @filters = options[:filters]
17
+
18
+ unless @filters
19
+ resolver = UrlResolver.new(referer: page)
20
+ options = { fetcher: fetcher, url_resolver: resolver }
21
+
22
+ @filters ||= Filters.new [
23
+ Filters::ToDocumentObject.new,
24
+ Filters::EmbedScript.new(options),
25
+ Filters::EmbedStyle.new(options),
26
+ Filters::DocumentObjectToString.new,
27
+ ]
28
+ end
29
+ end
30
+
31
+ def to_file(destination)
32
+ content = filters.filter(fetcher.fetch(page))
33
+
34
+ File.open(destination, "w") do |f|
35
+ f.puts(content)
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,17 @@
1
+ class PageDownloader
2
+ class Filters
3
+ attr_reader :filters
4
+
5
+ def initialize(filters = [])
6
+ @filters = filters
7
+ end
8
+
9
+ def filter(content)
10
+ filters.each do |filter|
11
+ content = filter.filter(content)
12
+ end
13
+
14
+ content
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,9 @@
1
+ class PageDownloader
2
+ class Filters
3
+ class DocumentObjectToString
4
+ def filter(content)
5
+ content.to_s
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,34 @@
1
+ class PageDownloader
2
+ class Filters
3
+ class EmbedScript
4
+ attr_reader :fetcher
5
+
6
+ def initialize(options = {})
7
+ @fetcher = options.fetch :fetcher
8
+ @url_resolver = options.fetch :url_resolver
9
+ end
10
+
11
+ def filter(content)
12
+ content.css("script").select do |script|
13
+ script.attributes["src"]
14
+ end.each do |script|
15
+ embed(script)
16
+ end
17
+
18
+ content
19
+ end
20
+
21
+ private
22
+
23
+ def embed(script)
24
+ html = fetch_content(script.attributes["src"].value)
25
+ script.remove_attribute("src")
26
+ script.add_child(html)
27
+ end
28
+
29
+ def fetch_content(url)
30
+ fetcher.fetch(@url_resolver.resolve(url))
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,29 @@
1
+ class PageDownloader
2
+ class Filters
3
+ class EmbedStyle < EmbedScript
4
+ def filter(content)
5
+ content.css("link").select do |link|
6
+ stylesheet?(link)
7
+ end.each do |link|
8
+ embed(link)
9
+ end
10
+
11
+ content
12
+ end
13
+
14
+ private
15
+
16
+ def stylesheet?(link)
17
+ rel = link.attributes["rel"]
18
+ rel && rel.value.downcase == "stylesheet"
19
+ end
20
+
21
+ def embed(link)
22
+ content = fetch_content(link.attributes["href"].value)
23
+ html = "<style>#{content}</style>"
24
+ link.parent.add_child(html)
25
+ link.remove
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,11 @@
1
+ require "nokogiri"
2
+
3
+ class PageDownloader
4
+ class Filters
5
+ class ToDocumentObject
6
+ def filter(content)
7
+ Nokogiri::HTML(content)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ require "net/http"
2
+ require "addressable/uri"
3
+
4
+ class PageDownloader
5
+ class RemoteContentFetcher
6
+ def fetch(page_url)
7
+ puts "Fetching: #{page_url}"
8
+ url = Addressable::URI.parse(page_url)
9
+ ssl = url.scheme == "https"
10
+
11
+ Net::HTTP.start(url.host, url.port, use_ssl: ssl) do |http|
12
+ request = Net::HTTP::Get.new(url)
13
+ http.request(request).body
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,52 @@
1
+ class UrlResolver
2
+ def initialize(options = {})
3
+ @options = options
4
+ end
5
+
6
+ def resolve(given_url)
7
+ normal_url(given_url) ||
8
+ url_for_double_dashed(given_url) ||
9
+ slash_based_url(given_url) ||
10
+ non_prefixed_url(given_url) ||
11
+ given_url
12
+ end
13
+
14
+ def base_url
15
+ @base_url ||= base_url_for(referer)
16
+ end
17
+
18
+ private
19
+
20
+ def referer
21
+ @referer ||= @options.fetch(:referer)
22
+ end
23
+
24
+ def base_url_for(url)
25
+ matches = url.match(/(http(s)?:\/\/[^\/]+)/)
26
+ return matches[1] if matches
27
+ end
28
+
29
+ def url_for_double_dashed(url)
30
+ if url.match(/^\/\/[\w]+/)
31
+ "http:#{url}"
32
+ end
33
+ end
34
+
35
+ def slash_based_url(url)
36
+ if url.match(/^\/[\w]+/)
37
+ "#{base_url}#{url}"
38
+ end
39
+ end
40
+
41
+ def normal_url(url)
42
+ is_url = base_url_for(url)
43
+ url if is_url
44
+ end
45
+
46
+ def non_prefixed_url(url)
47
+ expanded = File.expand_path(url, referer)
48
+ expanded = expanded.split("http")
49
+ expanded.shift
50
+ expanded.unshift("").join("http")
51
+ end
52
+ end
@@ -0,0 +1,3 @@
1
+ class PageDownloader
2
+ VERSION = "1.0"
3
+ end
@@ -0,0 +1,42 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require "page_downloader/version"
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "page_downloader"
9
+ spec.version = PageDownloader::VERSION
10
+ spec.authors = ["Marcelo Jacobus"]
11
+ spec.email = ["marcelo.jacobus@gmail.com"]
12
+
13
+ spec.summary = %q{Downloads a page from the internet}
14
+ spec.description = %q{Downloads a page from the internet. External js and css are embeded in the page by default}
15
+ spec.homepage = "https://github.com/mjacobus/page_downloader"
16
+ spec.license = "MIT"
17
+
18
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
19
+ # delete this section to allow pushing this gem to any host.
20
+ if spec.respond_to?(:metadata)
21
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
22
+ else
23
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ spec.bindir = "bin"
28
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_dependency "addressable"
32
+ spec.add_dependency "nokogiri"
33
+
34
+ spec.add_development_dependency "bundler", "~> 1.10"
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+
37
+ spec.add_development_dependency "scrutinizer-ocular"
38
+ spec.add_development_dependency "minitest"
39
+ spec.add_development_dependency "coveralls"
40
+ spec.add_development_dependency "simplecov"
41
+ spec.add_development_dependency "mocha"
42
+ end
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: page_downloader
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ platform: ruby
6
+ authors:
7
+ - Marcelo Jacobus
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: addressable
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: scrutinizer-ocular
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: coveralls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: mocha
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Downloads a page from the internet. External js and css are embeded in
140
+ the page by default
141
+ email:
142
+ - marcelo.jacobus@gmail.com
143
+ executables:
144
+ - console
145
+ - download_page
146
+ - setup
147
+ extensions: []
148
+ extra_rdoc_files: []
149
+ files:
150
+ - ".gitignore"
151
+ - ".scrutinizer.yml"
152
+ - ".travis.yml"
153
+ - CODE_OF_CONDUCT.md
154
+ - Gemfile
155
+ - LICENSE.txt
156
+ - README.md
157
+ - Rakefile
158
+ - bin/console
159
+ - bin/download_page
160
+ - bin/setup
161
+ - gemfiles/Gemfile.nokogiri-1.0
162
+ - gemfiles/Gemfile.nokogiri-1.5
163
+ - gemfiles/Gemfile.nokogiri-1.6
164
+ - lib/page_downloader.rb
165
+ - lib/page_downloader/filters.rb
166
+ - lib/page_downloader/filters/document_object_to_string.rb
167
+ - lib/page_downloader/filters/embed_script.rb
168
+ - lib/page_downloader/filters/embed_style.rb
169
+ - lib/page_downloader/filters/to_document_object.rb
170
+ - lib/page_downloader/remote_content_fetcher.rb
171
+ - lib/page_downloader/url_resolver.rb
172
+ - lib/page_downloader/version.rb
173
+ - page_downloader.gemspec
174
+ homepage: https://github.com/mjacobus/page_downloader
175
+ licenses:
176
+ - MIT
177
+ metadata:
178
+ allowed_push_host: https://rubygems.org
179
+ post_install_message:
180
+ rdoc_options: []
181
+ require_paths:
182
+ - lib
183
+ required_ruby_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ requirements: []
194
+ rubyforge_project:
195
+ rubygems_version: 2.4.6
196
+ signing_key:
197
+ specification_version: 4
198
+ summary: Downloads a page from the internet
199
+ test_files: []
200
+ has_rdoc: