splinter 0.1.1 → 0.1.2

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: 4a52c49f01533aa71ae9e36110497563526bbd80
4
- data.tar.gz: a767dc83dc2c300e7cb4ed7a15523a339dbcf2b2
3
+ metadata.gz: ebea3ca698017ea1d5d3df695da907db0a020dfd
4
+ data.tar.gz: 8e7f5afe08fc7104f15912e2afb3120c8e970dde
5
5
  SHA512:
6
- metadata.gz: 6e5bb933a33b61524d07a8fd17e5a5e26dc96d812a97fa2ddebb4cb944a9bf6544ef38e7a67c4052feb5f4af891cf214f4aed9c7e878dd7f63547746f17e9000
7
- data.tar.gz: f369b1958bfceb973d95f7e430778c169c7907d1aac4c02c0e9f510c8d00be838e735b34552d326b6df007ae43b8adbcd77564bc97f7efc454472fe8b10dfcc1
6
+ metadata.gz: 12160470d164023ad863da4e3404b52097c641f67b9ca36d9e7e72b9fd71e5c5f5388f290a511fe89996f222b24ac11ffb8b2fcf505095a57eaf780e46d70682
7
+ data.tar.gz: 2b3ccc1b8bf3ea19f5cee28a079d082d0952d3c82413e3232d458b8ae7d77ef1aa9850e0726d586dff550fa396138f2d3c024e323c61d607ce1dcffa4cf90934
@@ -1,5 +1,5 @@
1
1
  module Splinter
2
2
  class << self
3
- attr_accessor :screenshot_directory
3
+ attr_accessor :screenshot_directory, :screenshot_options
4
4
  end
5
5
  end
@@ -15,8 +15,8 @@ module Splinter
15
15
  end
16
16
 
17
17
  if path = Splinter.screenshot_directory
18
- file = File.join(path, "#{name}.png")
19
- page.driver.render(file)
18
+ args = [File.join(path, "#{name}.png"), Splinter.screenshot_options].compact
19
+ page.driver.render(*args)
20
20
  puts "Saved screenshot to #{file}"
21
21
  else
22
22
  warn "Splinter.screenshot_directory doesn't exist!"
@@ -1,3 +1,3 @@
1
1
  module Splinter
2
- VERSION = Version = '0.1.1'
2
+ VERSION = Version = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splinter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Priddle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-22 00:00:00.000000000 Z
11
+ date: 2013-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -90,21 +90,22 @@ files:
90
90
  - Rakefile
91
91
  - README.markdown
92
92
  - lib/splinter.rb
93
- - lib/splinter/capybara.rb
94
- - lib/splinter/rspec/shared_connection.rb
95
- - lib/splinter/rspec/deferred_garbage_collection.rb
96
- - lib/splinter/capybara/form_completer.rb
97
- - lib/splinter/capybara/actions.rb
98
- - lib/splinter/perf/shared_connection.rb
99
93
  - lib/splinter/perf/deferred_garbage_collection.rb
100
- - lib/splinter/rspec.rb
94
+ - lib/splinter/perf/shared_connection.rb
101
95
  - lib/splinter/version.rb
96
+ - lib/splinter/rspec.rb
97
+ - lib/splinter/capybara/actions.rb
98
+ - lib/splinter/capybara/form_completer.rb
99
+ - lib/splinter/capybara.rb
100
+ - lib/splinter/rspec/deferred_garbage_collection.rb
101
+ - lib/splinter/rspec/shared_connection.rb
102
102
  - spec/test_app/views/index.erb
103
103
  - spec/test_app/server.rb
104
- - spec/spec_helper.rb
105
104
  - spec/splinter/capybara/actions_spec.rb
105
+ - spec/spec_helper.rb
106
106
  homepage: https://github.com/site5/splinter
107
- licenses: []
107
+ licenses:
108
+ - MIT
108
109
  metadata: {}
109
110
  post_install_message:
110
111
  rdoc_options:
@@ -123,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
124
  version: '0'
124
125
  requirements: []
125
126
  rubyforge_project:
126
- rubygems_version: 2.0.2
127
+ rubygems_version: 2.1.3
127
128
  signing_key:
128
129
  specification_version: 4
129
130
  summary: Splinter is a Capybara Ninja