monet 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/monet/capture.rb +2 -6
- data/lib/monet/tasks.rb +5 -2
- data/lib/monet/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: 1a7bbef147ab52328c6440249d3cab4fa3eef1d4
|
4
|
+
data.tar.gz: e8b74b30331d526f1937f292ca09a9863635947d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5329d541bdba55ac92745f8bd7b08773caaa227bf755d10d8b1b5d3531c00f5c4709cbce3fe49542e1d260f90bd2ef0e8b9cacff8648263389c30a8208595c01
|
7
|
+
data.tar.gz: 64f9533ebd14a4b271ee5821fe67d2bf6abbe7ae03f1623b351b5dd7c5f9eaa47976c4be7d2ae829b726131a578d3bcaf8b5ad328cac01cfe3895bf678644eee
|
data/lib/monet/capture.rb
CHANGED
@@ -29,7 +29,7 @@ module Monet
|
|
29
29
|
def capture_all
|
30
30
|
images = []
|
31
31
|
@router.capture_routes.map do |url, paths|
|
32
|
-
visit_once url
|
32
|
+
# visit_once url
|
33
33
|
|
34
34
|
paths.each do |path|
|
35
35
|
images << capture(url, path)
|
@@ -40,11 +40,7 @@ module Monet
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def capture(url, image_or_save_path)
|
43
|
-
|
44
|
-
image = Monet::Image.new image_or_save_path
|
45
|
-
else
|
46
|
-
image = image_or_save_path
|
47
|
-
end
|
43
|
+
image = (image_or_save_path.is_a? String) ? Monet::Image.new(image_or_save_path) : image_or_save_path
|
48
44
|
|
49
45
|
visit_once url
|
50
46
|
|
data/lib/monet/tasks.rb
CHANGED
@@ -27,9 +27,12 @@ namespace :monet do
|
|
27
27
|
Monet::PageLogger.instance.save(savedir)
|
28
28
|
end
|
29
29
|
|
30
|
-
|
31
30
|
desc "Runs the site and grabs baselines"
|
32
|
-
task :baseline => [:clean, :run] do
|
31
|
+
task :baseline => [:clean, :run] do |t, args|
|
32
|
+
config = load_config(args)
|
33
|
+
|
34
|
+
savedir = File.join File.dirname(args[:path]), "spider.txt"
|
35
|
+
Monet::PageLogger.instance.save(savedir)
|
33
36
|
end
|
34
37
|
|
35
38
|
namespace :thumbnail do
|
data/lib/monet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monet
|
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
|
- Luke van der Hoeven
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|