frameworks-capybara 0.2.23 → 0.2.24

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frameworks-capybara (0.2.23)
4
+ frameworks-capybara (0.2.24)
5
5
  capybara (>= 1.0.0)
6
6
  capybara-celerity
7
7
  capybara-mechanize (>= 0.3.0)
data/README.rdoc CHANGED
@@ -79,11 +79,18 @@ Finally this gem contains some useful monkey-patches to core libraries e.g. Capy
79
79
  == Release instructions
80
80
 
81
81
  * Run tests - 'rake'
82
+ * If you have not published with 'gem' before, run 'gem push' to enter your credentials (ignore failed publish error at the end)
82
83
  * Bump version - manually update file in lib/version.rb
83
84
  * Run 'bundle install --binstubs --path vendor/to' bundle pick up new version in Gemfile
84
85
  * Commit 'Gemfile.lock' changes
85
86
  * Release - 'rake release'
86
- * Push new tag to Github 'git push --tags'
87
+
88
+ You should see something like:
89
+
90
+ frameworks-capybara 0.2.23 built to pkg/frameworks-capybara-0.2.23.gem
91
+ Tagged v0.2.23
92
+ Pushed git commits and tags
93
+ Pushed frameworks-capybara 0.2.23 to rubygems.org
87
94
 
88
95
  == Contributing to frameworks-capybara
89
96
 
@@ -27,15 +27,15 @@ module Frameworks
27
27
  @pal_base_url = @sandbox + @bbc_domain
28
28
  @ssl_base_url = @sslsandbox + @bbc_domain
29
29
  @static_base_url = @static_sandbox + @bbc_domain
30
- @mobile_base_url = @mobiledot_prefix + "sandbox.dev.bbc.co.uk"
31
- @m_base_url = @mdot_prefix + "sandbox.dev.bbc.co.uk"
30
+ @mobile_base_url = @mobiledot_prefix + "sandbox.dev" + @bbc_domain
31
+ @m_base_url = @mdot_prefix + "sandbox.dev" + @bbc_domain
32
32
  elsif(environment =='sandbox6')
33
33
  @base_url = @sandbox6 + @bbc_domain
34
34
  @pal_base_url = @sandbox6 + @bbc_domain
35
35
  @ssl_base_url = @sslsandbox6 + @bbc_domain
36
36
  @static_base_url = @static_sandbox6 + @bbc_domain
37
- @mobile_base_url = @mobiledot_prefix + "sandbox.bbc.co.uk"
38
- @m_base_url = @mdot_prefix + "sandbox.bbc.co.uk"
37
+ @mobile_base_url = @mobiledot_prefix + "sandbox" + @bbc_domain
38
+ @m_base_url = @mdot_prefix + "sandbox" + @bbc_domain
39
39
  elsif (environment =='live' && ENV['WWW_LIVE']=='false')
40
40
  @base_url = @www_prefix.chop + @bbc_domain
41
41
  @pal_base_url = @pal_prefix + environment + @bbc_domain
@@ -99,7 +99,7 @@ module Frameworks
99
99
  @ssl_prefix = "https://ssl."
100
100
  @static_prefix = "#{scheme}://static."
101
101
  @open_prefix = "#{scheme}://open."
102
- @bbc_domain = '.bbc.co.uk'
102
+ @bbc_domain = '.' + (ENV['FW_BBC_DOMAIN'] || 'bbc.co.uk')
103
103
  @bbci_domain = '.bbci.co.uk'
104
104
  @sandbox = "#{scheme}://pal.sandbox.dev"
105
105
  @sandbox6 = "#{scheme}://sandbox"
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FrameworksCapybara
2
- VERSION = '0.2.23'
2
+ VERSION = '0.2.24'
3
3
  end
@@ -164,6 +164,53 @@ describe Frameworks::EnvHelper do
164
164
  @proxy_port.should be_nil
165
165
  end
166
166
 
167
+ it "should be able to set a local url with expected domain" do
168
+ ENV['ENVIRONMENT'] = 'sandbox'
169
+ ENV['FW_BBC_DOMAIN'] = 'bbc.com'
170
+ generate_base_urls
171
+ @base_url.should == 'http://pal.sandbox.dev.bbc.com'
172
+ @ssl_base_url.should == 'https://ssl.sandbox.dev.bbc.com'
173
+ @static_base_url.should == 'http://static.sandbox.dev.bbc.com'
174
+ @m_base_url.should == 'http://m.sandbox.dev.bbc.com'
175
+ @mobile_base_url.should == 'http://mobile.sandbox.dev.bbc.com'
176
+ end
177
+
178
+ it "should be able to set a local system6 url with expected domain" do
179
+ ENV['ENVIRONMENT'] = 'sandbox6'
180
+ ENV['FW_BBC_DOMAIN'] = 'bbc.com'
181
+ generate_base_urls
182
+ @base_url.should == 'http://sandbox.bbc.com'
183
+ @ssl_base_url.should == 'https://ssl.sandbox.bbc.com'
184
+ @static_base_url.should == 'http://static.sandbox.bbc.com'
185
+ @m_base_url.should == 'http://m.sandbox.bbc.com'
186
+ @mobile_base_url.should == 'http://mobile.sandbox.bbc.com'
187
+ end
188
+
189
+ it "should be able to set a base url with expected domain" do
190
+ ENV['ENVIRONMENT'] = 'foo'
191
+ ENV['FW_BBC_DOMAIN'] = 'bbc.com'
192
+ generate_base_urls
193
+ @base_url.should == 'http://www.foo.bbc.com'
194
+ @ssl_base_url.should == 'https://ssl.foo.bbc.com'
195
+ @static_base_url.should == 'http://static.foo.bbci.co.uk'
196
+ @open_base_url.should == 'http://open.foo.bbc.com'
197
+ @m_base_url.should == 'http://m.foo.bbc.com'
198
+ @mobile_base_url.should == 'http://mobile.foo.bbc.com'
199
+ end
200
+
201
+ it "should set public facing live domain" do
202
+ ENV['ENVIRONMENT'] = 'live'
203
+ ENV['WWW_LIVE'] = 'false'
204
+ ENV['FW_BBC_DOMAIN'] = 'bbc.com'
205
+ generate_base_urls
206
+ @base_url.should == 'http://www.bbc.com'
207
+ @ssl_base_url.should == 'https://ssl.bbc.com'
208
+ @static_base_url.should == 'http://static.bbci.co.uk'
209
+ @open_base_url.should == 'http://open.bbc.com'
210
+ @m_base_url.should == 'http://m.bbc.com'
211
+ @mobile_base_url.should == 'http://mobile.bbc.com'
212
+ end
213
+
167
214
  =begin
168
215
  #don't want to push proxy addr online
169
216
  it "should be able to validate xhtml online" do
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frameworks-capybara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 2
9
- - 23
10
- version: 0.2.23
8
+ - 24
9
+ version: 0.2.24
11
10
  platform: ruby
12
11
  authors:
13
12
  - matt robbins
@@ -15,142 +14,125 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2013-03-13 00:00:00 Z
17
+ date: 2013-04-11 00:00:00 +01:00
18
+ default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- prerelease: false
22
- name: capybara
21
+ type: :runtime
23
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
23
  requirements:
26
24
  - - ">="
27
25
  - !ruby/object:Gem::Version
28
- hash: 23
29
26
  segments:
30
27
  - 1
31
28
  - 0
32
29
  - 0
33
30
  version: 1.0.0
31
+ name: capybara
34
32
  requirement: *id001
35
- type: :runtime
36
- - !ruby/object:Gem::Dependency
37
33
  prerelease: false
38
- name: capybara-mechanize
34
+ - !ruby/object:Gem::Dependency
35
+ type: :runtime
39
36
  version_requirements: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
37
  requirements:
42
38
  - - ">="
43
39
  - !ruby/object:Gem::Version
44
- hash: 19
45
40
  segments:
46
41
  - 0
47
42
  - 3
48
43
  - 0
49
44
  version: 0.3.0
45
+ name: capybara-mechanize
50
46
  requirement: *id002
51
- type: :runtime
52
- - !ruby/object:Gem::Dependency
53
47
  prerelease: false
54
- name: json
48
+ - !ruby/object:Gem::Dependency
49
+ type: :runtime
55
50
  version_requirements: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
51
  requirements:
58
52
  - - ">="
59
53
  - !ruby/object:Gem::Version
60
- hash: 3
61
54
  segments:
62
55
  - 0
63
56
  version: "0"
57
+ name: json
64
58
  requirement: *id003
65
- type: :runtime
66
- - !ruby/object:Gem::Dependency
67
59
  prerelease: false
68
- name: headless
60
+ - !ruby/object:Gem::Dependency
61
+ type: :runtime
69
62
  version_requirements: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
63
  requirements:
72
64
  - - ">="
73
65
  - !ruby/object:Gem::Version
74
- hash: 3
75
66
  segments:
76
67
  - 0
77
68
  version: "0"
69
+ name: headless
78
70
  requirement: *id004
79
- type: :runtime
80
- - !ruby/object:Gem::Dependency
81
71
  prerelease: false
82
- name: capybara-celerity
72
+ - !ruby/object:Gem::Dependency
73
+ type: :runtime
83
74
  version_requirements: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
75
  requirements:
86
76
  - - ">="
87
77
  - !ruby/object:Gem::Version
88
- hash: 3
89
78
  segments:
90
79
  - 0
91
80
  version: "0"
81
+ name: capybara-celerity
92
82
  requirement: *id005
93
- type: :runtime
94
- - !ruby/object:Gem::Dependency
95
83
  prerelease: false
96
- name: w3c_validators
84
+ - !ruby/object:Gem::Dependency
85
+ type: :runtime
97
86
  version_requirements: &id006 !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
88
  - - ">="
101
89
  - !ruby/object:Gem::Version
102
- hash: 3
103
90
  segments:
104
91
  - 0
105
92
  version: "0"
93
+ name: w3c_validators
106
94
  requirement: *id006
107
- type: :runtime
108
- - !ruby/object:Gem::Dependency
109
95
  prerelease: false
110
- name: cucumber
96
+ - !ruby/object:Gem::Dependency
97
+ type: :runtime
111
98
  version_requirements: &id007 !ruby/object:Gem::Requirement
112
- none: false
113
99
  requirements:
114
100
  - - ">="
115
101
  - !ruby/object:Gem::Version
116
- hash: 61
117
102
  segments:
118
103
  - 0
119
104
  - 10
120
105
  - 5
121
106
  version: 0.10.5
107
+ name: cucumber
122
108
  requirement: *id007
123
- type: :runtime
124
- - !ruby/object:Gem::Dependency
125
109
  prerelease: false
126
- name: rake
110
+ - !ruby/object:Gem::Dependency
111
+ type: :development
127
112
  version_requirements: &id008 !ruby/object:Gem::Requirement
128
- none: false
129
113
  requirements:
130
114
  - - ">="
131
115
  - !ruby/object:Gem::Version
132
- hash: 3
133
116
  segments:
134
117
  - 0
135
118
  version: "0"
119
+ name: rake
136
120
  requirement: *id008
137
- type: :development
138
- - !ruby/object:Gem::Dependency
139
121
  prerelease: false
140
- name: rspec
122
+ - !ruby/object:Gem::Dependency
123
+ type: :development
141
124
  version_requirements: &id009 !ruby/object:Gem::Requirement
142
- none: false
143
125
  requirements:
144
126
  - - ">="
145
127
  - !ruby/object:Gem::Version
146
- hash: 23
147
128
  segments:
148
129
  - 1
149
130
  - 0
150
131
  - 0
151
132
  version: 1.0.0
133
+ name: rspec
152
134
  requirement: *id009
153
- type: :development
135
+ prerelease: false
154
136
  description: Gem to ease the pain of managing capybara driver config and provide a home for common utils and patches
155
137
  email:
156
138
  - mcrobbins@gmail.com
@@ -191,6 +173,7 @@ files:
191
173
  - spec/profiles.ini
192
174
  - spec/spec_helper.rb
193
175
  - spec/unit_test_monkeypatches.rb
176
+ has_rdoc: true
194
177
  homepage:
195
178
  licenses: []
196
179
 
@@ -200,27 +183,23 @@ rdoc_options: []
200
183
  require_paths:
201
184
  - lib
202
185
  required_ruby_version: !ruby/object:Gem::Requirement
203
- none: false
204
186
  requirements:
205
187
  - - ">="
206
188
  - !ruby/object:Gem::Version
207
- hash: 3
208
189
  segments:
209
190
  - 0
210
191
  version: "0"
211
192
  required_rubygems_version: !ruby/object:Gem::Requirement
212
- none: false
213
193
  requirements:
214
194
  - - ">="
215
195
  - !ruby/object:Gem::Version
216
- hash: 3
217
196
  segments:
218
197
  - 0
219
198
  version: "0"
220
199
  requirements: []
221
200
 
222
201
  rubyforge_project:
223
- rubygems_version: 1.8.24
202
+ rubygems_version: 1.3.6
224
203
  signing_key:
225
204
  specification_version: 3
226
205
  summary: Gem to ease the pain of managing capybara driver config and provide a home for common utils and patches