page_magic 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.4
1
+ 0.9.5
@@ -1,13 +1,14 @@
1
1
  module PageMagic
2
2
  module Browser
3
+
3
4
  class << self
5
+ attr_writer :default
4
6
  def session
5
7
  @session ||= PageMagic.session(default)
6
8
  end
7
9
 
8
- def default default=nil
9
- return (@default || :firefox) unless default
10
- @default = default
10
+ def default
11
+ @default || :firefox
11
12
  end
12
13
  end
13
14
 
data/page_magic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "page_magic"
8
- s.version = "0.9.4"
8
+ s.version = "0.9.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leon Davis"]
data/spec/browser_spec.rb CHANGED
@@ -30,7 +30,7 @@ describe PageMagic::Browser do
30
30
  it 'should use custom browser' do
31
31
  PageMagic.should_receive(:session).with(:custom_browser)
32
32
 
33
- PageMagic::Browser.default :custom_browser
33
+ PageMagic::Browser.default = :custom_browser
34
34
  app.browser
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page_magic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: 183880895719648639
128
+ hash: 1433970493081870819
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements: