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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75e483470a7f2806450acb00a5d5ce7b048e2977
4
- data.tar.gz: 7145b814e89e709405452a85f46b2d1808576595
3
+ metadata.gz: 1a7bbef147ab52328c6440249d3cab4fa3eef1d4
4
+ data.tar.gz: e8b74b30331d526f1937f292ca09a9863635947d
5
5
  SHA512:
6
- metadata.gz: 01c534d9849f761e5cc158ef398de47cfe2bcd249b97c9096199844d4d1ed5184ba30d012145932d6c84bed013e6787044f53c7d4c20491fb6686739eab97839
7
- data.tar.gz: 4cd43fba309cf6b7e6c8382a67c7b1fa2e0360709cdd1cd7f061f4a8b2abb17ea504886df89e3e88ed6dcbb27a2755be074c294484fbc84848da018566fd69ba
6
+ metadata.gz: 5329d541bdba55ac92745f8bd7b08773caaa227bf755d10d8b1b5d3531c00f5c4709cbce3fe49542e1d260f90bd2ef0e8b9cacff8648263389c30a8208595c01
7
+ data.tar.gz: 64f9533ebd14a4b271ee5821fe67d2bf6abbe7ae03f1623b351b5dd7c5f9eaa47976c4be7d2ae829b726131a578d3bcaf8b5ad328cac01cfe3895bf678644eee
@@ -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
- if image_or_save_path.is_a? String
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Monet
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2014-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake