cellophane 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +4 -0
- data/VERSION +1 -1
- data/cellophane.gemspec +60 -0
- data/features/cuke_command.feature +21 -0
- data/lib/cellophane/main.rb +1 -1
- data/lib/cellophane/options.rb +3 -1
- metadata +7 -9
- data/.cellophane.yaml +0 -1
- data/spec/cellophane_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -12
data/README.textile
CHANGED
@@ -150,6 +150,10 @@ requires: [cuke/support, /Users/me/shared/cool_library]
|
|
150
150
|
|
151
151
|
@-r cuke/support -r /Users/me/shared/cool_library@ will be passed to Cucumber.
|
152
152
|
|
153
|
+
Other configurable options:
|
154
|
+
|
155
|
+
@cuke_command@ can be set to whatever command you use to invoke cucumber. By default, it is simply @cucumber@, but you could also use @bundler exec cucumber@, @script/cucumber@, or an alias you might have defined.
|
156
|
+
|
153
157
|
h3. Operation
|
154
158
|
|
155
159
|
Cellophane has the following command line options:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/cellophane.gemspec
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{cellophane}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Phillip Koebbe"]
|
12
|
+
s.date = %q{2011-01-10}
|
13
|
+
s.default_executable = %q{cellophane}
|
14
|
+
s.description = %q{Cellophane is a thin wrapper around Cucumber, making it easier to be creative when running features.}
|
15
|
+
s.email = %q{phillip@livingdoor.net}
|
16
|
+
s.executables = ["cellophane"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.textile"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".cellophane.yaml.sample",
|
23
|
+
".document",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.textile",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"bin/cellophane",
|
29
|
+
"cellophane.gemspec",
|
30
|
+
"features/cuke_command.feature",
|
31
|
+
"features/feature_paths.feature",
|
32
|
+
"features/glob_pattern.feature",
|
33
|
+
"features/project_options.feature",
|
34
|
+
"features/regular_expression_pattern.feature",
|
35
|
+
"features/step_definitions.feature",
|
36
|
+
"features/support/cellophane_methods.rb",
|
37
|
+
"features/support/cellophane_steps.rb",
|
38
|
+
"features/support/env.rb",
|
39
|
+
"features/tags.feature",
|
40
|
+
"lib/cellophane/main.rb",
|
41
|
+
"lib/cellophane/options.rb",
|
42
|
+
"lib/cellophane/parser.rb"
|
43
|
+
]
|
44
|
+
s.homepage = %q{http://github.com/phillipkoebbe/cellophane}
|
45
|
+
s.licenses = ["MIT"]
|
46
|
+
s.require_paths = ["lib"]
|
47
|
+
s.rubygems_version = %q{1.3.7}
|
48
|
+
s.summary = %q{A thin wrapper around Cucumber.}
|
49
|
+
|
50
|
+
if s.respond_to? :specification_version then
|
51
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
52
|
+
s.specification_version = 3
|
53
|
+
|
54
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
55
|
+
else
|
56
|
+
end
|
57
|
+
else
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
Feature: Cuke Command
|
2
|
+
|
3
|
+
@1
|
4
|
+
Scenario: Default to cucumber
|
5
|
+
|
6
|
+
When Cellophane is called with ""
|
7
|
+
Then the command should include "cucumber"
|
8
|
+
|
9
|
+
@2
|
10
|
+
Scenario Outline: Override from project options
|
11
|
+
|
12
|
+
Given a project options file with the following options
|
13
|
+
| option |
|
14
|
+
| cuke_command: <command> |
|
15
|
+
When Cellophane is called with ""
|
16
|
+
Then the command should include "<command>"
|
17
|
+
|
18
|
+
Scenarios:
|
19
|
+
| command |
|
20
|
+
| bundler exec cucumber |
|
21
|
+
| script/cucumber |
|
data/lib/cellophane/main.rb
CHANGED
data/lib/cellophane/options.rb
CHANGED
@@ -65,7 +65,7 @@ module Cellophane
|
|
65
65
|
if File.exist?(Cellophane::PROJECT_OPTIONS_FILE)
|
66
66
|
yaml_options = YAML.load_file(Cellophane::PROJECT_OPTIONS_FILE)
|
67
67
|
|
68
|
-
['cucumber', 'feature_path', 'feature_path_regexp', 'step_path', 'requires'].each do |key|
|
68
|
+
['cucumber', 'cuke_command', 'feature_path', 'feature_path_regexp', 'step_path', 'requires'].each do |key|
|
69
69
|
project_options[key.to_sym] = yaml_options[key] if yaml_options.has_key?(key)
|
70
70
|
end
|
71
71
|
end
|
@@ -77,6 +77,7 @@ module Cellophane
|
|
77
77
|
:regexp => false,
|
78
78
|
:print => false,
|
79
79
|
:cucumber => nil,
|
80
|
+
:cuke_command => 'cucumber',
|
80
81
|
:tags => nil,
|
81
82
|
:feature_path => 'features',
|
82
83
|
:feature_path_regexp => nil,
|
@@ -125,6 +126,7 @@ module Cellophane
|
|
125
126
|
tmp_options[:feature_path] ||= defaults[:feature_path]
|
126
127
|
tmp_options[:step_path] ||= defaults[:step_path]
|
127
128
|
tmp_options[:requires] ||= defaults[:requires]
|
129
|
+
tmp_options[:cuke_command] ||= defaults[:cuke_command]
|
128
130
|
|
129
131
|
# do what needs to be done on the pattern
|
130
132
|
unless tmp_options[:pattern].nil?
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Phillip Koebbe
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-10 00:00:00 -06:00
|
18
18
|
default_executable: cellophane
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -28,7 +28,6 @@ extra_rdoc_files:
|
|
28
28
|
- LICENSE.txt
|
29
29
|
- README.textile
|
30
30
|
files:
|
31
|
-
- .cellophane.yaml
|
32
31
|
- .cellophane.yaml.sample
|
33
32
|
- .document
|
34
33
|
- LICENSE.txt
|
@@ -36,6 +35,8 @@ files:
|
|
36
35
|
- Rakefile
|
37
36
|
- VERSION
|
38
37
|
- bin/cellophane
|
38
|
+
- cellophane.gemspec
|
39
|
+
- features/cuke_command.feature
|
39
40
|
- features/feature_paths.feature
|
40
41
|
- features/glob_pattern.feature
|
41
42
|
- features/project_options.feature
|
@@ -48,8 +49,6 @@ files:
|
|
48
49
|
- lib/cellophane/main.rb
|
49
50
|
- lib/cellophane/options.rb
|
50
51
|
- lib/cellophane/parser.rb
|
51
|
-
- spec/cellophane_spec.rb
|
52
|
-
- spec/spec_helper.rb
|
53
52
|
has_rdoc: true
|
54
53
|
homepage: http://github.com/phillipkoebbe/cellophane
|
55
54
|
licenses:
|
@@ -82,6 +81,5 @@ rubygems_version: 1.3.7
|
|
82
81
|
signing_key:
|
83
82
|
specification_version: 3
|
84
83
|
summary: A thin wrapper around Cucumber.
|
85
|
-
test_files:
|
86
|
-
|
87
|
-
- spec/spec_helper.rb
|
84
|
+
test_files: []
|
85
|
+
|
data/.cellophane.yaml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
cucumber: --format progress --no-profile
|
data/spec/cellophane_spec.rb
DELETED
data/spec/spec_helper.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
-
require 'rspec'
|
4
|
-
require 'cellophane'
|
5
|
-
|
6
|
-
# Requires supporting files with custom matchers and macros, etc,
|
7
|
-
# in ./support/ and its subdirectories.
|
8
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
-
|
10
|
-
RSpec.configure do |config|
|
11
|
-
|
12
|
-
end
|