capybara-firebug 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,14 +12,17 @@ You'll want to be able to pause the scenario at some point to inspect things
12
12
  in Firebug. A step definition for `Then stop and let me debug` is provided
13
13
  for this purpose. When executed, it breaks in the Ruby debugger.
14
14
 
15
- ## Using Firefox 4 and Firebug 1.7.0
15
+ ## Firefox 3
16
16
 
17
- If you want to use Firefox 4 with Firebug 1.7.0, configure the firebug_version
18
- setting in your `capybara.rb` support file
17
+ By default, this gem uses the Firebug 1.7.x series, and so is compatible with
18
+ Firefox 4 and 5, but not Firefox 3.
19
+
20
+ If you want to use Firefox 3, you need to explicitly specify the firebug_version
21
+ setting in your `capybara.rb` support file:
19
22
 
20
23
  # located in features/support/capybara.rb or similar
21
24
  require 'capybara/firebug'
22
- Selenium::WebDriver::Firefox::Profile.firebug_version = '1.7.0'
25
+ Selenium::WebDriver::Firefox::Profile.firebug_version = '1.6.2'
23
26
 
24
27
  ## Customizing the Profile
25
28
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "capybara-firebug"
5
- s.version = "0.0.6"
5
+ s.version = "0.0.7"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["John Firebaugh"]
8
8
  s.email = ["john.firebaugh@gmail.com"]
Binary file
@@ -2,7 +2,7 @@ require 'selenium/webdriver'
2
2
 
3
3
  class Selenium::WebDriver::Firefox::Profile
4
4
  def self.firebug_version
5
- @firebug_version ||= '1.6.2'
5
+ @firebug_version ||= '1.7.3'
6
6
  end
7
7
 
8
8
  def self.firebug_version=(version)
@@ -1,33 +1,28 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Selenium::WebDriver::Firefox::Profile do
4
- describe ".firebug_version" do
5
- subject { described_class.firebug_version }
4
+ before { described_class.firebug_version = nil } # Reset
6
5
 
7
- it "defaults to 1.6.2" do
8
- should == "1.6.2"
6
+ describe ".firebug_version" do
7
+ it "defaults to 1.7.3" do
8
+ described_class.firebug_version.should == "1.7.3"
9
9
  end
10
10
 
11
- context "when set" do
12
- before { described_class.firebug_version = requested_version }
13
-
14
- let(:requested_version) { '1.7.0' }
15
-
16
- it { should == requested_version }
11
+ it "can be explicitly set" do
12
+ described_class.firebug_version = '1.7.0'
13
+ described_class.firebug_version.should == "1.7.0"
17
14
  end
18
15
  end
19
16
 
20
17
  describe "#enable_firebug" do
21
- before { Selenium::WebDriver::Firefox::Profile.firebug_version = nil }
22
-
23
18
  it "adds the Firebug extension" do
24
- subject.should_receive(:add_extension).with(/firebug-1\.6\.2\.xpi$/)
19
+ subject.should_receive(:add_extension).with(/firebug-1\.7\.3\.xpi$/)
25
20
  subject.enable_firebug
26
21
  end
27
22
 
28
23
  it "honors the configured version" do
29
- Selenium::WebDriver::Firefox::Profile.firebug_version = '1.7.0'
30
- subject.should_receive(:add_extension).with(/firebug-1\.7\.0\.xpi$/)
24
+ Selenium::WebDriver::Firefox::Profile.firebug_version = '1.6.2'
25
+ subject.should_receive(:add_extension).with(/firebug-1\.6\.2\.xpi$/)
31
26
  subject.enable_firebug
32
27
  end
33
28
 
metadata CHANGED
@@ -1,81 +1,59 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: capybara-firebug
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - John Firebaugh
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-06-19 00:00:00 -07:00
12
+ date: 2011-06-27 00:00:00.000000000 -07:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: capybara
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2165886260 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
19
+ requirements:
27
20
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 15
30
- segments:
31
- - 1
32
- - 0
33
- version: "1.0"
21
+ - !ruby/object:Gem::Version
22
+ version: '1.0'
34
23
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rspec
38
24
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2165886260
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &2165885780 !ruby/object:Gem::Requirement
40
29
  none: false
41
- requirements:
30
+ requirements:
42
31
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 2
47
- - 0
48
- version: "2.0"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
49
34
  type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: cucumber
53
35
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2165885780
37
+ - !ruby/object:Gem::Dependency
38
+ name: cucumber
39
+ requirement: &2165885320 !ruby/object:Gem::Requirement
55
40
  none: false
56
- requirements:
41
+ requirements:
57
42
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 55
60
- segments:
61
- - 0
62
- - 10
63
- - 0
43
+ - !ruby/object:Gem::Version
64
44
  version: 0.10.0
65
45
  type: :development
66
- version_requirements: *id003
67
- description: |-
68
- Provides a dead-simple way to run scenarios with Firebug
69
- enabled under the selenium driver.
70
- email:
46
+ prerelease: false
47
+ version_requirements: *2165885320
48
+ description: ! 'Provides a dead-simple way to run scenarios with Firebug
49
+
50
+ enabled under the selenium driver.'
51
+ email:
71
52
  - john.firebaugh@gmail.com
72
53
  executables: []
73
-
74
54
  extensions: []
75
-
76
55
  extra_rdoc_files: []
77
-
78
- files:
56
+ files:
79
57
  - .gitignore
80
58
  - Gemfile
81
59
  - LICENSE
@@ -88,6 +66,7 @@ files:
88
66
  - lib/capybara-firebug.rb
89
67
  - lib/capybara/firebug-1.6.2.xpi
90
68
  - lib/capybara/firebug-1.7.0.xpi
69
+ - lib/capybara/firebug-1.7.3.xpi
91
70
  - lib/capybara/firebug-license.txt
92
71
  - lib/capybara/firebug.rb
93
72
  - spec/enable_firebug_spec.rb
@@ -95,38 +74,29 @@ files:
95
74
  has_rdoc: true
96
75
  homepage: https://github.com/jfirebaugh/capybara-firebug
97
76
  licenses: []
98
-
99
77
  post_install_message:
100
78
  rdoc_options: []
101
-
102
- require_paths:
79
+ require_paths:
103
80
  - lib
104
- required_ruby_version: !ruby/object:Gem::Requirement
81
+ required_ruby_version: !ruby/object:Gem::Requirement
105
82
  none: false
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- hash: 3
110
- segments:
111
- - 0
112
- version: "0"
113
- required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
88
  none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- hash: 3
119
- segments:
120
- - 0
121
- version: "0"
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
122
93
  requirements: []
123
-
124
94
  rubyforge_project: capybara-firebug
125
- rubygems_version: 1.4.2
95
+ rubygems_version: 1.6.2
126
96
  signing_key:
127
97
  specification_version: 3
128
98
  summary: Run selenium with Firebug enabled
129
- test_files:
99
+ test_files:
130
100
  - features/firebug.feature
131
101
  - features/step_definitions/web_steps.rb
132
102
  - features/support/env.rb