features 0.2.1 → 0.3.0
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.
Potentially problematic release.
This version of features might be problematic. Click here for more details.
- data/README.markdown +2 -10
- data/Rakefile +2 -2
- data/features.gemspec +4 -4
- data/lib/ObjC/objc_scenario.rb +2 -1
- data/lib/scenario.rb +1 -1
- metadata +4 -4
data/README.markdown
CHANGED
@@ -29,16 +29,8 @@ A Plain Text User Stories Parser that supports native Programming Languages.
|
|
29
29
|
|
30
30
|
### Objective-C
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
$ sudo gem install
|
35
|
-
|
36
|
-
2. Download and install ObjectiveMatchy
|
37
|
-
|
38
|
-
3. ObjectiveMatchy provides Xcode Project Templates that have a Feature Target. Create a new Xcode Project and choose one of the ObjectiveMatchy Templates.
|
39
|
-
|
40
|
-
|
41
|
-
4. ...
|
32
|
+
Use the iphone-bdd-tools installer to install customized Xcode Templates that
|
33
|
+
have a Features Target.
|
42
34
|
|
43
35
|
### More Languages will follow ...
|
44
36
|
|
data/Rakefile
CHANGED
@@ -2,8 +2,8 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('features', '0.
|
6
|
-
p.description = "Plaintext User Stories Parser supporting native programming languages."
|
5
|
+
Echoe.new('features', '0.3.0') do |p|
|
6
|
+
p.description = "Plaintext User Stories Parser supporting native programming languages. Especially Objective-C"
|
7
7
|
p.url = "http://features.rubyforge.org"
|
8
8
|
p.author = "Matthias Hennemeyer"
|
9
9
|
p.email = "mhennemeyer@me.com"
|
data/features.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{features}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.3.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Matthias Hennemeyer"]
|
9
|
-
s.date = %q{2009-
|
10
|
-
s.description = %q{Plaintext User Stories Parser supporting native programming languages.}
|
9
|
+
s.date = %q{2009-10-23}
|
10
|
+
s.description = %q{Plaintext User Stories Parser supporting native programming languages. Especially Objective-C}
|
11
11
|
s.email = %q{mhennemeyer@me.com}
|
12
12
|
s.extra_rdoc_files = ["README.markdown", "lib/ObjC/objc_feature.rb", "lib/ObjC/objc_scenario.rb", "lib/ObjC/objc_step.rb", "lib/ObjC/objc_suite.rb", "lib/Rails/rails_feature.rb", "lib/Rails/rails_scenario.rb", "lib/Rails/rails_step.rb", "lib/Rails/rails_suite.rb", "lib/feature.rb", "lib/features.rb", "lib/objc.rb", "lib/parser.rb", "lib/rails.rb", "lib/scenario.rb", "lib/step.rb", "lib/string_extension.rb", "lib/suite.rb"]
|
13
13
|
s.files = ["Manifest", "README.markdown", "Rakefile", "generators/features/USAGE", "generators/features/features_generator.rb", "generators/features/templates/HelloWorld.feature", "generators/features/templates/custom_steps.rb", "generators/features/templates/features_helper.rb", "generators/features/templates/features_test_case_class.rb", "generators/features/templates/run_features.rb", "generators/features/templates/test_cases_file.rb", "lib/ObjC/objc_feature.rb", "lib/ObjC/objc_scenario.rb", "lib/ObjC/objc_step.rb", "lib/ObjC/objc_suite.rb", "lib/Rails/rails_feature.rb", "lib/Rails/rails_scenario.rb", "lib/Rails/rails_step.rb", "lib/Rails/rails_suite.rb", "lib/feature.rb", "lib/features.rb", "lib/objc.rb", "lib/parser.rb", "lib/rails.rb", "lib/scenario.rb", "lib/step.rb", "lib/string_extension.rb", "lib/suite.rb", "features.gemspec"]
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = %q{features}
|
18
18
|
s.rubygems_version = %q{1.3.5}
|
19
|
-
s.summary = %q{Plaintext User Stories Parser supporting native programming languages.}
|
19
|
+
s.summary = %q{Plaintext User Stories Parser supporting native programming languages. Especially Objective-C}
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
22
22
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
data/lib/ObjC/objc_scenario.rb
CHANGED
@@ -2,7 +2,8 @@ class ObjcScenario < Scenario
|
|
2
2
|
def verify_status(results="")
|
3
3
|
test_case_name = parent.test_case_name
|
4
4
|
#Test Case '-[SayHelloTest testWithABlankObject]' failed (0.001 seconds).
|
5
|
-
|
5
|
+
# ignore "... started."
|
6
|
+
results =~ /Test\sCase\s'-\[#{test_case_name}\s#{test_name}\]'\s(passed|failed)/
|
6
7
|
match = $1
|
7
8
|
if match =~ /failed/
|
8
9
|
@passed = false
|
data/lib/scenario.rb
CHANGED
@@ -62,7 +62,7 @@ class Scenario
|
|
62
62
|
step = ""
|
63
63
|
for line in lines
|
64
64
|
if line =~ follow_up_line_exp
|
65
|
-
args = line.sub(/^\s*#{follow_up_keyword}\s*/, "").split("|").reject {|arg| arg =~ /\A\s*\Z/ }.map {|arg| "'" + arg + "'"}
|
65
|
+
args = line.sub(/^\s*#{follow_up_keyword}\s*/, "").split("|").reject {|arg| arg =~ /\A\s*\Z/ }.map {|arg| "'" + arg.strip + "'"}
|
66
66
|
arr = step.split("'").reject {|elt| elt =~ /\A\s*\Z/ }
|
67
67
|
offset = (step =~ /\A\s*'/) ? 0 : 1
|
68
68
|
new_step = ""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Hennemeyer
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-23 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description: Plaintext User Stories Parser supporting native programming languages.
|
16
|
+
description: Plaintext User Stories Parser supporting native programming languages. Especially Objective-C
|
17
17
|
email: mhennemeyer@me.com
|
18
18
|
executables: []
|
19
19
|
|
@@ -100,6 +100,6 @@ rubyforge_project: features
|
|
100
100
|
rubygems_version: 1.3.5
|
101
101
|
signing_key:
|
102
102
|
specification_version: 3
|
103
|
-
summary: Plaintext User Stories Parser supporting native programming languages.
|
103
|
+
summary: Plaintext User Stories Parser supporting native programming languages. Especially Objective-C
|
104
104
|
test_files: []
|
105
105
|
|