goggles 0.1.2 → 0.1.3

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.
@@ -1,6 +1,5 @@
1
1
  require "goggles/version"
2
2
  require "goggles/comparison"
3
- require "goggles/scripter"
4
3
  require "goggles/error"
5
4
 
6
5
  require "watir-webdriver"
@@ -52,15 +51,16 @@ module Goggles
52
51
 
53
52
  @gg_paths.each do |label, path|
54
53
  @gg_label = label
55
- url = "#{@gg_domain}#{path}"
54
+ @gg_url = "#{@gg_domain}#{path}"
56
55
 
57
56
  if @gg_scripts.nil?
58
- @watir.goto url
57
+ @watir.goto @gg_url
59
58
  grab_screenshot("screenshot")
60
59
  else
61
60
  @gg_scripts.each do |script|
62
61
  script = "#{@gg_script_dir}/#{script}"
63
- execute_script(url, script)
62
+ @watir.goto @gg_url
63
+ eval(File.read(script))
64
64
  end
65
65
  end
66
66
  end
@@ -1,3 +1,3 @@
1
1
  module Goggles
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goggles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-21 00:00:00.000000000 Z
12
+ date: 2014-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -110,7 +110,6 @@ files:
110
110
  - lib/goggles/cli.rb
111
111
  - lib/goggles/comparison.rb
112
112
  - lib/goggles/error.rb
113
- - lib/goggles/scripter.rb
114
113
  - lib/goggles/version.rb
115
114
  - spec/goggles_spec.rb
116
115
  - spec/spec_helper.rb
@@ -1,10 +0,0 @@
1
- module Goggles
2
-
3
- def execute_script(url, script)
4
- @watir.goto url
5
- @watir.cookies.clear
6
- @watir.refresh
7
-
8
- eval(File.read(script))
9
- end
10
- end