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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35ad4fbb29c8d0e688fe89de3b8dd8e800dc86b6
4
- data.tar.gz: ba5c15fdd9e24b591bb2a59782def6fed7f6ba38
3
+ metadata.gz: d3320f79f63da75bd965c5ddf62a3c118ddb85ff
4
+ data.tar.gz: 1b0ad12931667005fb91cc056b93dce16f53c79c
5
5
  SHA512:
6
- metadata.gz: 839343f6244c729307a99ac1afd1c95d2f1764ec21683248cf188aca8432292f612621ba5187312f959253b4629ed3f5da7b1512f0887873a38b8be01c94facf
7
- data.tar.gz: 63d007e8db52d1925a3ae6b8740a8902184018b71a931d3355da50579c8dfc0788c654536882d82ddf2155f30113c14bc37732e5083fb91634e2fcd4f5815c5f
6
+ metadata.gz: 9c116af4cdc234f16027d3a101cacb290148fdb2d2a7bcf4118321d9a197c0f9a8fe2986ce0bc63889c7cbeb020a9e0344d049eb6dd4eb80abd434f1d53d8d81
7
+ data.tar.gz: 4cb1c0f02a546972463cc1a24a4ec93e7819dd6a336e2cf671e47ec02815183e76667fbbdcb872a1ec2225b4c95d7a4cd3e889d94f46f56079c36c28f7813e5c
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Screenshots
2
2
 
3
- TODO: Write a gem description
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
@@ -1,3 +1,3 @@
1
1
  module Screenshots
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screenshots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Goulain