aruba-jbb 0.2.6.3 → 0.2.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -14,10 +14,11 @@ tmtags
14
14
  *.swp
15
15
 
16
16
  ## PROJECT::GENERAL
17
+ *.gem
17
18
  coverage
18
19
  rdoc
19
20
  pkg
20
21
 
21
22
  ## PROJECT::SPECIFIC
22
23
  tmp
23
- Gemfile.lock
24
+ Gemfile.lock
data/History.txt CHANGED
@@ -1,5 +1,13 @@
1
+ == 0.2.6.4 jbb
2
+ * Fix for ruby 1.9.2 change in handling StandardError objects as strings
3
+
4
+ == 0.2.6.3 jbb
5
+ * Revised documentation.
6
+ * Added aruba-jbb and aruba_jbb library calls
7
+ * Minor extension of do have syntax - 'do(?;es)? have'
8
+
1
9
  == 0.2.6.2 jbb
2
- * merged aslak aruba-0.2.3
10
+ * Merged aslak aruba-0.2.3
3
11
 
4
12
  == 0.2.6 jbb
5
13
  * Altered rebase method to handle Ruby 1.9 changes to String class. (JBB)
data/README.rdoc CHANGED
@@ -1,14 +1,17 @@
1
1
  = Aruba
2
2
 
3
- aruba-jbb is a fork of http://github.com/aslakhellesoy/aruba
3
+ Aruba-jbb is a fork of http://github.com/aslakhellesoy/aruba and is found
4
+ at http://byrnejb/aruba.
4
5
 
5
- Aruba is a set of api methods and cucumber steps for driving out command
6
- line applications. The command line application can be anything, a compiled
7
- C program, a Java program, a Perl script - anything.
6
+ Aruba-jbb is a set of api methods and cucumber steps for driving out command
7
+ line application behaviours. The command line application can be anything,
8
+ a compiled C program, a Java program, a Perl script - anything.
8
9
 
9
- Aruba may also be used to test complex configuration files for third-party
10
+ Aruba-jbb may also be used to test complex configuration files for third-party
10
11
  applications where the software itself may not be modified.
11
12
 
13
+ Aruba-jbb works with Ruby-1.8.7 and Ruby-1.9.2
14
+
12
15
 
13
16
  == Usage
14
17
 
@@ -39,7 +42,15 @@ If it is desired to alter the awd then this fork provides for setting the
39
42
  working directory to something else via the ARUBA_WORKING_DIR environmental
40
43
  variable. This must be set relative to the user's cwd.
41
44
 
42
- This fork also contains a <tt>rebase</tt> api method which creates soft
45
+ This fork also provides support for a <tt>@no-aruba-tmpdir</tt> tag. Use of
46
+ this tag will cause Aruba to run the test application in the user's cwd
47
+ instead of the awd. When this tag is activated the directory contents are not
48
+ cleared, for obvious reasons. In fact, regardless of the tag, if the awd is
49
+ set to anything outside a directory tree containing a <tt>/tmp/</tt> portion
50
+ then an error is raised when trying to clear the contents. For similar reasons, when this is the case
51
+ the <tt>rebase</tt> method also raises an error.
52
+
53
+ This fork contains a <tt>rebase</tt> api method which creates soft
43
54
  (symbolic) links inside aruba's working directory to directories rooted
44
55
  at the user's own current working directory (cwd). This permits the
45
56
  application to find its configuation and support files in their usual
@@ -55,14 +66,6 @@ This will cause Aruba to create soft links called <tt>./tmp/aruba/bin</tt>,
55
66
  <tt>./tmp/aruba/config</tt> and <tt>./tmp/aruba/lib</tt> each pointing
56
67
  to the corresponding directory in the user's cwd.
57
68
 
58
- This fork also provides support for a <tt>@no-aruba-tmpdir</tt> tag. Use of
59
- this tag will cause Aruba to run the test application in the user's cwd
60
- instead of the awd. When this tag is activated the directory contents are not
61
- cleared, for obvious reasons. In fact, if the awd is set to anything outside
62
- a directory tree containing a <tt>/tmp/</tt> portion then an error is raised
63
- when trying to clear the contents. For similar reasons, when this is the case
64
- the <tt>rebase</tt> method also raises an error.
65
-
66
69
  Upstream addressed the more limtied problem of locating <code>./bin</code>
67
70
  by adding <code>@bin</code> tag which appends <code>./bin</code> to Cucumber's
68
71
  LOADPATH. This technique is supported by Aruba-jbb as well.
@@ -72,12 +75,12 @@ LOADPATH. This technique is supported by Aruba-jbb as well.
72
75
 
73
76
  Aruba once had a couple of step definitions to make it easier to test your
74
77
  Ruby command line program with specific versions of Ruby (regardless of
75
- what Ruby version you're using to invoke Cucumber). These were removed in
78
+ what Ruby version you were using to invoke Cucumber). These were removed in
76
79
  upstream's 0.2.2 version and are no longer present in this fork either.
77
80
  The last version of this fork having them was 0.2.6.
78
81
 
79
82
  To test against specific versions of Ruby using RVM you are advised to use
80
- following idiom:
83
+ following idiom (note the comma between Ruby version numbers):
81
84
 
82
85
  <code>$ rvm 1.9.2,1.8.7 exec cucumber [flags] [arguments] </code>
83
86
 
data/aruba-jbb.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{aruba-jbb}
5
- s.version = "0.2.6.3"
5
+ s.version = "0.2.6.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Aslak Hellesøy", "David Chelimsky", "James B. Byrne"]
data/lib/aruba/api.rb CHANGED
@@ -154,7 +154,7 @@ module Aruba
154
154
  if @interactive
155
155
  interactive_output
156
156
  else
157
- @last_stdout + @last_stderr
157
+ @last_stdout.to_s + @last_stderr.to_s
158
158
  end
159
159
  end
160
160
 
data/lib/aruba-jbb.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'pathname'
2
+ lib_path = Pathname.new(File.dirname(__FILE__)).realpath.to_s + '/'
3
+ require lib_path + 'aruba/cucumber_steps'
data/lib/aruba_jbb.rb ADDED
@@ -0,0 +1,3 @@
1
+ require 'pathname'
2
+ lib_path = Pathname.new(File.dirname(__FILE__)).realpath.to_s + '/'
3
+ require lib_path + 'aruba/cucumber_steps'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aruba-jbb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 65
4
+ hash: 79
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 6
10
- - 3
11
- version: 0.2.6.3
10
+ - 4
11
+ version: 0.2.6.4
12
12
  platform: ruby
13
13
  authors:
14
14
  - "Aslak Helles\xC3\xB8y"
@@ -97,11 +97,13 @@ files:
97
97
  - features/output.feature
98
98
  - features/step_definitions/aruba_dev_steps.rb
99
99
  - features/support/env.rb
100
+ - lib/aruba-jbb.rb
100
101
  - lib/aruba.rb
101
102
  - lib/aruba/api.rb
102
103
  - lib/aruba/aruba_extension_steps.rb
103
104
  - lib/aruba/cucumber.rb
104
105
  - lib/aruba/cucumber_steps.rb
106
+ - lib/aruba_jbb.rb
105
107
  has_rdoc: true
106
108
  homepage: http://github.com/byrnejb/aruba
107
109
  licenses: []