screenshots 0.0.1 → 0.0.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/README.md +6 -1
- data/bin/screenshots +4 -0
- data/lib/screenshots/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3320f79f63da75bd965c5ddf62a3c118ddb85ff
|
4
|
+
data.tar.gz: 1b0ad12931667005fb91cc056b93dce16f53c79c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c116af4cdc234f16027d3a101cacb290148fdb2d2a7bcf4118321d9a197c0f9a8fe2986ce0bc63889c7cbeb020a9e0344d049eb6dd4eb80abd434f1d53d8d81
|
7
|
+
data.tar.gz: 4cb1c0f02a546972463cc1a24a4ec93e7819dd6a336e2cf671e47ec02815183e76667fbbdcb872a1ec2225b4c95d7a4cd3e889d94f46f56079c36c28f7813e5c
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Screenshots
|
2
2
|
|
3
|
-
|
3
|
+
This gem takes a list of URLs, gets the title of each page at those URLs, then builds an HTML string that can be copied-pasted in a blog article to present those web pages.
|
4
|
+
It assumes screenshots of those pages would have been uploaded on the blog.
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
@@ -30,6 +31,10 @@ end
|
|
30
31
|
|
31
32
|
## Usage
|
32
33
|
|
34
|
+
### Directly call the binary
|
35
|
+
|
36
|
+
$ screenshots my-input-file.txt my_output_dir
|
37
|
+
|
33
38
|
### Generate HTML for a single URL
|
34
39
|
|
35
40
|
```ruby
|
data/bin/screenshots
CHANGED
@@ -32,6 +32,10 @@ if urls.empty?
|
|
32
32
|
end
|
33
33
|
|
34
34
|
# Generate the HTML
|
35
|
+
Screenshots.configure do |config|
|
36
|
+
config.blog_assets_url = 'http://www.codeur.com/blog/wp-content/uploads/2014/07'
|
37
|
+
config.image_extension = 'jpg'
|
38
|
+
end
|
35
39
|
html = Screenshots::Processor.generate_list(urls)
|
36
40
|
|
37
41
|
# Print output on disk
|
data/lib/screenshots/version.rb
CHANGED