bauxite 0.6.16 → 0.6.17

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47066a48c6d91a2f266312e543944562d5643afb
4
- data.tar.gz: e42af8083729ab30450299392e0a9079689abbbf
3
+ metadata.gz: 9ba435f130bd446633c636acf4aec44606e6736f
4
+ data.tar.gz: ab49f98dcf87f7d6d5f7623873213fb1b0e4e115
5
5
  SHA512:
6
- metadata.gz: 955f49ef5a52db41e38b3a000a02b8d76fd0bad99b96b7f639cafb3553e3a4da85bf2776b57397ea409cd2866808b491bfab4d4d6c3d9cdd4a261c01363a7f6b
7
- data.tar.gz: 251eeaf915f35f0a332486588404c28862e79dcb084629790cf7224d381d14e5fa09b05247d677fa136dd42f34d46366585055889c91a9034ddbc9282eefc468
6
+ metadata.gz: ce19503d1bf491b34eac51c776889c0e490ca93c221506a4d562652431213e474bca7416575842953d58874176c8513b27c4f4a2bf79f7e85ffa4e4653405b26
7
+ data.tar.gz: 358dd29ff6d84cfbe35adb08a5666279b25caf485a7ba691e1ebc838eaa8584dbd5e831ab82b173756c7586d5679c8c621f505bb7e9581e15dfc3339515be116
data/README.md CHANGED
@@ -41,6 +41,8 @@ If you don't have Ruby 2.x yet, check the [Installing Ruby](#installing-ruby) se
41
41
 
42
42
  Remember you should probably install [Firefox](http://www.mozilla.org) (unless you want to use other browsers or Selenium server by specifying the `-p` switch to the `bauxite` executable).
43
43
 
44
+ You might also like to try the [bauxite-capture](https://github.com/pzavolinsky/bauxite-capture) Firefox add-on to record Bauxite tests directly from the browser (please note that this extension is still *very* experimental so its not yet hosted in the Mozilla add-ons page).
45
+
44
46
  Hello World
45
47
  -----------
46
48
 
@@ -109,6 +111,11 @@ This section presented a brief introduction into the basic Bauxite concepts. Fo
109
111
  - [Creating new Actions](http://pzavolinsky.github.io/bauxite/Bauxite/Action.html)
110
112
  - [Creating new Selectors](http://pzavolinsky.github.io/bauxite/Bauxite/Selector.html)
111
113
 
114
+ Firefox add-on
115
+ --------------
116
+
117
+ As an alternative method of writing Bauxite tests, you might try the [bauxite-capture](https://github.com/pzavolinsky/bauxite-capture) Firefox add-on to record Bauxite tests directly from the browser (please note that this extension is still *very* experimental so its not yet hosted in the Mozilla add-ons page).
118
+
112
119
  Installing Ruby
113
120
  ---------------
114
121
 
@@ -214,7 +214,7 @@ implementation see the <a href="HtmlLogger.html">HtmlLogger</a> class.</p>
214
214
 
215
215
 
216
216
  <div class="method-source-code" id="finalize-source">
217
- <pre><span class="ruby-comment"># File lib/bauxite/core/logger.rb, line 165</span>
217
+ <pre><span class="ruby-comment"># File lib/bauxite/core/logger.rb, line 166</span>
218
218
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">finalize</span>(<span class="ruby-identifier">ctx</span>)
219
219
  <span class="ruby-keyword">end</span></pre>
220
220
  </div>
@@ -287,6 +287,7 @@ implementation see the <a href="HtmlLogger.html">HtmlLogger</a> class.</p>
287
287
  <span class="ruby-identifier">ret</span> = <span class="ruby-keyword">yield</span> <span class="ruby-operator">||</span> <span class="ruby-keyword">false</span>
288
288
  <span class="ruby-identifier">etime</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">new</span>
289
289
  <span class="ruby-keyword">ensure</span>
290
+ <span class="ruby-identifier">etime</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Time</span>.<span class="ruby-identifier">new</span>
290
291
  <span class="ruby-identifier">status</span> = <span class="ruby-keyword">case</span> <span class="ruby-identifier">ret</span>; <span class="ruby-keyword">when</span> <span class="ruby-keyword">nil</span>; <span class="ruby-value">:error</span>; <span class="ruby-keyword">when</span> <span class="ruby-keyword">false</span>; <span class="ruby-value">:skip</span>; <span class="ruby-keyword">else</span> <span class="ruby-value">:ok</span>; <span class="ruby-keyword">end</span>
291
292
 
292
293
  <span class="ruby-identifier">test_name</span> = <span class="ruby-identifier">action</span>.<span class="ruby-identifier">ctx</span>.<span class="ruby-identifier">variables</span>[<span class="ruby-string">&#39;__TEST__&#39;</span>] <span class="ruby-operator">||</span> <span class="ruby-string">&#39;Main&#39;</span>
data/doc/README_md.html CHANGED
@@ -63,6 +63,7 @@
63
63
  <li><a href="#label-Hello+World">Hello World</a>
64
64
  <li><a href="#label-Command-line+Interface">Command-line Interface</a>
65
65
  <li><a href="#label-The+Bauxite+Language">The Bauxite Language</a>
66
+ <li><a href="#label-Firefox+add-on">Firefox add-on</a>
66
67
  <li><a href="#label-Installing+Ruby">Installing Ruby</a>
67
68
  <li><a href="#label-Implementation">Implementation</a>
68
69
  <li><a href="#label-Extending+Bauxite">Extending Bauxite</a>
@@ -140,6 +141,12 @@ href="http://www.mozilla.org">Firefox</a> (unless you want to use other
140
141
  browsers or Selenium server by specifying the <code>-p</code> switch to the
141
142
  <code>bauxite</code> executable).</p>
142
143
 
144
+ <p>You might also like to try the <a
145
+ href="https://github.com/pzavolinsky/bauxite-capture">bauxite-capture</a>
146
+ Firefox add-on to record <a href="Bauxite.html">Bauxite</a> tests directly
147
+ from the browser (please note that this extension is still <em>very</em>
148
+ experimental so its not yet hosted in the Mozilla add-ons page).</p>
149
+
143
150
  <h2 id="label-Hello+World">Hello World<span><a href="#label-Hello+World">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
144
151
 
145
152
  <p>Paste the following text into <code>hello.bxt</code>:</p>
@@ -247,6 +254,15 @@ href="http://pzavolinsky.github.io/bauxite/Bauxite/Selector.html">Creating
247
254
  new Selectors</a></p>
248
255
  </li></ul>
249
256
 
257
+ <h2 id="label-Firefox+add-on">Firefox add-on<span><a href="#label-Firefox+add-on">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
258
+
259
+ <p>As an alternative method of writing <a href="Bauxite.html">Bauxite</a>
260
+ tests, you might try the <a
261
+ href="https://github.com/pzavolinsky/bauxite-capture">bauxite-capture</a>
262
+ Firefox add-on to record <a href="Bauxite.html">Bauxite</a> tests directly
263
+ from the browser (please note that this extension is still <em>very</em>
264
+ experimental so its not yet hosted in the Mozilla add-ons page).</p>
265
+
250
266
  <h2 id="label-Installing+Ruby">Installing Ruby<span><a href="#label-Installing+Ruby">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
251
267
 
252
268
  <p>I won&#39;t cover all the details of installing Ruby on your system (Google
data/doc/created.rid CHANGED
@@ -1,7 +1,7 @@
1
- Sun, 28 Dec 2014 11:06:40 -0300
2
- README.md Wed, 26 Mar 2014 13:39:30 -0300
1
+ Wed, 31 Dec 2014 18:36:22 -0300
2
+ README.md Sun, 28 Dec 2014 11:09:54 -0300
3
3
  lib/bauxite/selectors/smart.rb Wed, 26 Mar 2014 13:39:30 -0300
4
- lib/bauxite/selectors/json.rb Sun, 28 Dec 2014 10:59:40 -0300
4
+ lib/bauxite/selectors/json.rb Sun, 28 Dec 2014 11:09:54 -0300
5
5
  lib/bauxite/selectors/attr.rb Wed, 26 Mar 2014 13:39:30 -0300
6
6
  lib/bauxite/selectors/frame.rb Wed, 26 Mar 2014 13:39:30 -0300
7
7
  lib/bauxite/selectors/sid.rb Wed, 26 Mar 2014 13:39:30 -0300
@@ -24,7 +24,7 @@ lib/bauxite/actions/alias.rb Wed, 26 Mar 2014 13:39:30 -0300
24
24
  lib/bauxite/actions/write.rb Wed, 26 Mar 2014 13:39:30 -0300
25
25
  lib/bauxite/actions/dounless.rb Thu, 05 Jun 2014 16:39:48 -0300
26
26
  lib/bauxite/actions/select.rb Wed, 26 Mar 2014 13:39:30 -0300
27
- lib/bauxite/actions/failif.rb Sun, 28 Dec 2014 10:37:02 -0300
27
+ lib/bauxite/actions/failif.rb Sun, 28 Dec 2014 11:09:54 -0300
28
28
  lib/bauxite/actions/doif.rb Wed, 26 Mar 2014 13:39:30 -0300
29
29
  lib/bauxite/actions/setif.rb Wed, 26 Mar 2014 13:39:30 -0300
30
30
  lib/bauxite/actions/wait.rb Wed, 26 Mar 2014 13:39:30 -0300
@@ -50,7 +50,7 @@ lib/bauxite/actions/tryload.rb Wed, 26 Mar 2014 13:39:30 -0300
50
50
  lib/bauxite/actions/source.rb Wed, 26 Mar 2014 13:39:30 -0300
51
51
  lib/bauxite/actions/exit.rb Thu, 29 May 2014 14:43:04 -0300
52
52
  lib/bauxite/application.rb Wed, 26 Mar 2014 13:39:30 -0300
53
- lib/bauxite/core/logger.rb Wed, 26 Mar 2014 13:39:30 -0300
53
+ lib/bauxite/core/logger.rb Wed, 31 Dec 2014 18:31:46 -0300
54
54
  lib/bauxite/core/errors.rb Wed, 26 Mar 2014 13:39:30 -0300
55
55
  lib/bauxite/core/selector.rb Wed, 26 Mar 2014 13:39:30 -0300
56
56
  lib/bauxite/core/action.rb Wed, 26 Mar 2014 13:39:30 -0300
data/doc/index.html CHANGED
@@ -174,6 +174,12 @@ href="http://www.mozilla.org">Firefox</a> (unless you want to use other
174
174
  browsers or Selenium server by specifying the <code>-p</code> switch to the
175
175
  <code>bauxite</code> executable).</p>
176
176
 
177
+ <p>You might also like to try the <a
178
+ href="https://github.com/pzavolinsky/bauxite-capture">bauxite-capture</a>
179
+ Firefox add-on to record <a href="Bauxite.html">Bauxite</a> tests directly
180
+ from the browser (please note that this extension is still <em>very</em>
181
+ experimental so its not yet hosted in the Mozilla add-ons page).</p>
182
+
177
183
  <h2 id="label-Hello+World">Hello World<span><a href="#label-Hello+World">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
178
184
 
179
185
  <p>Paste the following text into <code>hello.bxt</code>:</p>
@@ -281,6 +287,15 @@ href="http://pzavolinsky.github.io/bauxite/Bauxite/Selector.html">Creating
281
287
  new Selectors</a></p>
282
288
  </li></ul>
283
289
 
290
+ <h2 id="label-Firefox+add-on">Firefox add-on<span><a href="#label-Firefox+add-on">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
291
+
292
+ <p>As an alternative method of writing <a href="Bauxite.html">Bauxite</a>
293
+ tests, you might try the <a
294
+ href="https://github.com/pzavolinsky/bauxite-capture">bauxite-capture</a>
295
+ Firefox add-on to record <a href="Bauxite.html">Bauxite</a> tests directly
296
+ from the browser (please note that this extension is still <em>very</em>
297
+ experimental so its not yet hosted in the Mozilla add-ons page).</p>
298
+
284
299
  <h2 id="label-Installing+Ruby">Installing Ruby<span><a href="#label-Installing+Ruby">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
285
300
 
286
301
  <p>I won&#39;t cover all the details of installing Ruby on your system (Google
@@ -36,6 +36,7 @@
36
36
  <li><a href="README_md.html#label-Hello+World">Hello World</a>
37
37
  <li><a href="README_md.html#label-Command-line+Interface">Command-line Interface</a>
38
38
  <li><a href="README_md.html#label-The+Bauxite+Language">The Bauxite Language</a>
39
+ <li><a href="README_md.html#label-Firefox+add-on">Firefox add-on</a>
39
40
  <li><a href="README_md.html#label-Installing+Ruby">Installing Ruby</a>
40
41
  <li><a href="README_md.html#label-Implementation">Implementation</a>
41
42
  <li><a href="README_md.html#label-Extending+Bauxite">Extending Bauxite</a>
@@ -132,6 +132,7 @@ module Bauxite
132
132
  ret = yield || false
133
133
  etime = Time.new
134
134
  ensure
135
+ etime ||= Time.new
135
136
  status = case ret; when nil; :error; when false; :skip; else :ok; end
136
137
 
137
138
  test_name = action.ctx.variables['__TEST__'] || 'Main'
data/lib/bauxite.rb CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  #--
24
24
  module Bauxite
25
- VERSION = "0.6.16"
25
+ VERSION = "0.6.17"
26
26
  end
27
27
  #++
28
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bauxite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.16
4
+ version: 0.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Zavolinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-28 00:00:00.000000000 Z
11
+ date: 2014-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver