lime 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby +22 -16
- data/HISTORY.md +13 -0
- data/LICENSE.txt +4 -2
- data/README.md +50 -8
- data/lib/lime.rb +20 -2
- data/lib/lime/feature.rb +26 -79
- data/lib/lime/featurette.rb +68 -0
- data/lib/lime/scenario.rb +10 -5
- metadata +31 -54
- data/.gemspec +0 -152
- data/.gitignore +0 -7
- data/Assembly +0 -46
- data/COPYING.rdoc +0 -59
- data/MANIFEST +0 -14
- data/PROFILE +0 -30
- data/VERSION +0 -1
- data/site/assets/images/cut-lime.png +0 -0
- data/site/assets/images/forkme.png +0 -0
- data/site/assets/images/github-logo.png +0 -0
- data/site/assets/images/lemon.jpg +0 -0
- data/site/assets/images/lemon.svg +0 -39
- data/site/assets/images/limes-are-good.png +0 -0
- data/site/assets/images/opensource.png +0 -0
- data/site/assets/images/ruby-logo.png +0 -0
- data/site/assets/images/skin.jpg +0 -0
- data/site/assets/images/skin1.jpg +0 -0
- data/site/assets/images/tap.png +0 -0
- data/site/assets/images/title.png +0 -0
- data/site/assets/styles/reset.css +0 -17
- data/site/assets/styles/site.css +0 -47
- data/site/index.html +0 -157
- data/try/.testrb +0 -3
- data/try/calculator.rb +0 -15
- data/try/feature_example.rb +0 -40
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Trans
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: &
|
15
|
+
name: rubytest
|
16
|
+
requirement: &21038620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *21038620
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
requirement: &
|
26
|
+
name: detroit
|
27
|
+
requirement: &21038040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '0'
|
33
|
-
type: :
|
33
|
+
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *21038040
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement: &
|
37
|
+
name: reap
|
38
|
+
requirement: &21037320 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *21037320
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
requirement: &
|
48
|
+
name: qed
|
49
|
+
requirement: &21036760 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *21036760
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
60
|
-
requirement: &
|
59
|
+
name: ae
|
60
|
+
requirement: &21059140 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,57 +65,34 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
69
|
-
description: Lime is a pure Ruby variation of Cucumber's Gherkin BDD test system
|
70
|
-
|
68
|
+
version_requirements: *21059140
|
69
|
+
description: ! 'Lime is a pure Ruby variation of Cucumber''s Gherkin BDD test system
|
70
|
+
|
71
|
+
that runs on top of RubyTest, a Universal Test Harness for Ruby.'
|
71
72
|
email:
|
72
73
|
- transfire@gmail.com
|
73
74
|
executables: []
|
74
75
|
extensions: []
|
75
76
|
extra_rdoc_files:
|
76
77
|
- LICENSE.txt
|
77
|
-
- COPYING.rdoc
|
78
78
|
- HISTORY.md
|
79
79
|
- README.md
|
80
80
|
files:
|
81
|
-
- .gemspec
|
82
|
-
- .gitignore
|
83
81
|
- .ruby
|
84
82
|
- .yardopts
|
85
|
-
- Assembly
|
86
|
-
- COPYING.rdoc
|
87
|
-
- HISTORY.md
|
88
|
-
- LICENSE.txt
|
89
|
-
- MANIFEST
|
90
|
-
- PROFILE
|
91
|
-
- README.md
|
92
|
-
- VERSION
|
93
|
-
- lib/lime.rb
|
94
83
|
- lib/lime/advice.rb
|
95
84
|
- lib/lime/feature.rb
|
85
|
+
- lib/lime/featurette.rb
|
96
86
|
- lib/lime/scenario.rb
|
97
87
|
- lib/lime/step.rb
|
98
88
|
- lib/lime/world.rb
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
- site/assets/images/lemon.svg
|
104
|
-
- site/assets/images/limes-are-good.png
|
105
|
-
- site/assets/images/opensource.png
|
106
|
-
- site/assets/images/ruby-logo.png
|
107
|
-
- site/assets/images/skin.jpg
|
108
|
-
- site/assets/images/skin1.jpg
|
109
|
-
- site/assets/images/tap.png
|
110
|
-
- site/assets/images/title.png
|
111
|
-
- site/assets/styles/reset.css
|
112
|
-
- site/assets/styles/site.css
|
113
|
-
- site/index.html
|
114
|
-
- try/.testrb
|
115
|
-
- try/calculator.rb
|
116
|
-
- try/feature_example.rb
|
89
|
+
- lib/lime.rb
|
90
|
+
- LICENSE.txt
|
91
|
+
- HISTORY.md
|
92
|
+
- README.md
|
117
93
|
homepage: http://rubyworks.github.com/lime
|
118
|
-
licenses:
|
94
|
+
licenses:
|
95
|
+
- BSD-2-Clause
|
119
96
|
post_install_message:
|
120
97
|
rdoc_options: []
|
121
98
|
require_paths:
|
@@ -134,8 +111,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
111
|
version: '0'
|
135
112
|
requirements: []
|
136
113
|
rubyforge_project:
|
137
|
-
rubygems_version: 1.8.
|
114
|
+
rubygems_version: 1.8.11
|
138
115
|
signing_key:
|
139
116
|
specification_version: 3
|
140
|
-
summary: Gherkin-style Test Framework
|
117
|
+
summary: Pure Ruby Gherkin-style Test Framework
|
141
118
|
test_files: []
|
data/.gemspec
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'yaml'
|
4
|
-
|
5
|
-
Gem::Specification.new do |gemspec|
|
6
|
-
|
7
|
-
manifest = Dir.glob('manifest{,.txt)', File::FNM_CASEFOLD).first
|
8
|
-
|
9
|
-
scm = case
|
10
|
-
when File.directory?('.git')
|
11
|
-
:git
|
12
|
-
end
|
13
|
-
|
14
|
-
files = case
|
15
|
-
when manifest
|
16
|
-
File.readlines(manifest).
|
17
|
-
map{ |line| line.srtip }.
|
18
|
-
reject{ |line| line.empty? || line[0,1] == '#' }
|
19
|
-
when scm == :git
|
20
|
-
`git ls-files -z`.split("\0")
|
21
|
-
else
|
22
|
-
Dir.glob('{**/}{.*,*}') # TODO: be more specific using standard locations ?
|
23
|
-
end.select{ |path| File.file?(path) }
|
24
|
-
|
25
|
-
patterns = {
|
26
|
-
:bin_files => 'bin/*',
|
27
|
-
:lib_files => 'lib/{**/}*.rb',
|
28
|
-
:ext_files => 'ext/{**/}extconf.rb',
|
29
|
-
:doc_files => '*.{txt,rdoc,md,markdown,tt,textile}',
|
30
|
-
:test_files => '{test/{**/}*_test.rb,spec/{**/}*_spec.rb}'
|
31
|
-
}
|
32
|
-
|
33
|
-
glob_files = lambda { |pattern|
|
34
|
-
Dir.glob(pattern).select { |path|
|
35
|
-
File.file?(path) && files.include?(path)
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
#files = glob_files[patterns[:files]]
|
40
|
-
|
41
|
-
executables = glob_files[patterns[:bin_files]].map do |path|
|
42
|
-
File.basename(path)
|
43
|
-
end
|
44
|
-
|
45
|
-
extensions = glob_files[patterns[:ext_files]].map do |path|
|
46
|
-
File.basename(path)
|
47
|
-
end
|
48
|
-
|
49
|
-
metadata = YAML.load_file('.ruby')
|
50
|
-
|
51
|
-
# build-out the gemspec
|
52
|
-
|
53
|
-
case metadata['revision']
|
54
|
-
when 0
|
55
|
-
gemspec.name = metadata['name']
|
56
|
-
gemspec.version = metadata['version']
|
57
|
-
gemspec.summary = metadata['summary']
|
58
|
-
gemspec.description = metadata['description']
|
59
|
-
|
60
|
-
metadata['authors'].each do |author|
|
61
|
-
gemspec.authors << author['name']
|
62
|
-
|
63
|
-
if author.has_key?('email')
|
64
|
-
if gemspec.email
|
65
|
-
gemspec.email << author['email']
|
66
|
-
else
|
67
|
-
gemspec.email = [author['email']]
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
gemspec.licenses = metadata['licenses']
|
73
|
-
|
74
|
-
metadata['requirements'].each do |req|
|
75
|
-
name = req['name']
|
76
|
-
version = req['version']
|
77
|
-
groups = req['groups'] || []
|
78
|
-
|
79
|
-
if md = /^(.*?)([+-~])$/.match(version)
|
80
|
-
version = case md[2]
|
81
|
-
when '+' then ">= #{$1}"
|
82
|
-
when '-' then "< #{$1}"
|
83
|
-
when '~' then "~> #{$1}"
|
84
|
-
else version
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
#development = req['development']
|
89
|
-
#if development
|
90
|
-
# # populate development dependencies
|
91
|
-
# if gemspec.respond_to?(:add_development_dependency)
|
92
|
-
# gemspec.add_development_dependency(name,*version)
|
93
|
-
# else
|
94
|
-
# gemspec.add_dependency(name,*version)
|
95
|
-
# end
|
96
|
-
#else
|
97
|
-
# # populate runtime dependencies
|
98
|
-
# if gemspec.respond_to?(:add_runtime_dependency)
|
99
|
-
# gemspec.add_runtime_dependency(name,*version)
|
100
|
-
# else
|
101
|
-
# gemspec.add_dependency(name,*version)
|
102
|
-
# end
|
103
|
-
#end
|
104
|
-
|
105
|
-
if groups.empty? or groups.include?('runtime')
|
106
|
-
# populate runtime dependencies
|
107
|
-
if gemspec.respond_to?(:add_runtime_dependency)
|
108
|
-
gemspec.add_runtime_dependency(name,*version)
|
109
|
-
else
|
110
|
-
gemspec.add_dependency(name,*version)
|
111
|
-
end
|
112
|
-
else
|
113
|
-
# populate development dependencies
|
114
|
-
if gemspec.respond_to?(:add_development_dependency)
|
115
|
-
gemspec.add_development_dependency(name,*version)
|
116
|
-
else
|
117
|
-
gemspec.add_dependency(name,*version)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
# convert external dependencies into a requirements
|
123
|
-
if metadata['external_dependencies']
|
124
|
-
##gemspec.requirements = [] unless metadata['external_dependencies'].empty?
|
125
|
-
metadata['external_dependencies'].each do |req|
|
126
|
-
gemspec.requirements << req.to_s
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
# determine homepage from resources
|
131
|
-
homepage = metadata['resources'].find{ |key, url| key =~ /^home/ }
|
132
|
-
gemspec.homepage = homepage.last if homepage
|
133
|
-
|
134
|
-
gemspec.require_paths = metadata['load_path'] || ['lib']
|
135
|
-
gemspec.post_install_message = metadata['install_message']
|
136
|
-
|
137
|
-
# RubyGems specific metadata
|
138
|
-
gemspec.files = files
|
139
|
-
gemspec.extensions = extensions
|
140
|
-
gemspec.executables = executables
|
141
|
-
|
142
|
-
if Gem::VERSION < '1.7.'
|
143
|
-
gemspec.default_executable = gemspec.executables.first
|
144
|
-
end
|
145
|
-
|
146
|
-
gemspec.test_files = glob_files[patterns[:test_files]]
|
147
|
-
|
148
|
-
unless gemspec.files.include?('.document')
|
149
|
-
gemspec.extra_rdoc_files = glob_files[patterns[:doc_files]]
|
150
|
-
end
|
151
|
-
end
|
152
|
-
end
|
data/.gitignore
DELETED
data/Assembly
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
---
|
2
|
-
github:
|
3
|
-
active: true
|
4
|
-
|
5
|
-
gem:
|
6
|
-
active: true
|
7
|
-
|
8
|
-
dnote:
|
9
|
-
labels: ~
|
10
|
-
output: log/NOTES.rdoc
|
11
|
-
|
12
|
-
yard:
|
13
|
-
yardopts: true
|
14
|
-
|
15
|
-
qed:
|
16
|
-
files : ~
|
17
|
-
#exclude : ~
|
18
|
-
#loadpath: ~
|
19
|
-
#requires: ~
|
20
|
-
#live : false
|
21
|
-
active : false
|
22
|
-
|
23
|
-
qedoc:
|
24
|
-
files : spec/
|
25
|
-
output: QED.rdoc
|
26
|
-
active: false
|
27
|
-
|
28
|
-
vclog:
|
29
|
-
output: log/ChangeLog.rdoc
|
30
|
-
active: false
|
31
|
-
|
32
|
-
email:
|
33
|
-
service: Email
|
34
|
-
file : ~
|
35
|
-
subject: ~
|
36
|
-
mailto :
|
37
|
-
- ruby-talk@ruby-lang.org
|
38
|
-
- rubyworks-mailinglist@googlegroups.com
|
39
|
-
from : <%= ENV['EMAIL_ACCOUNT'] %>
|
40
|
-
server : <%= ENV['EMAIL_SERVER'] %>
|
41
|
-
port : <%= ENV['EMAIL_PORT'] %>
|
42
|
-
account: <%= ENV['EMAIL_ACCOUNT'] %>
|
43
|
-
domain : <%= ENV['EMAIL_DOMAIN'] %>
|
44
|
-
login : <%= ENV['EMAIL_LOGIN'] %>
|
45
|
-
secure : <%= ENV['EMAIL_SECURE'] %>
|
46
|
-
|
data/COPYING.rdoc
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
= COPYRIGHT NOTICES
|
2
|
-
|
3
|
-
== Lime Test Framework
|
4
|
-
|
5
|
-
Copyright:: (c) 2011 Thomas Sawyer, RubyWorks
|
6
|
-
License:: BSD-2-Clause
|
7
|
-
Website:: http://rubyworks.github.com/ruby-test
|
8
|
-
|
9
|
-
Copyright 2011 Thomas Sawyer. All rights reserved.
|
10
|
-
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
13
|
-
|
14
|
-
1. Redistributions of source code must retain the above copyright notice,
|
15
|
-
this list of conditions and the following disclaimer.
|
16
|
-
|
17
|
-
2. Redistributions in binary form must reproduce the above copyright
|
18
|
-
notice, this list of conditions and the following disclaimer in the
|
19
|
-
documentation and/or other materials provided with the distribution.
|
20
|
-
|
21
|
-
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
22
|
-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
23
|
-
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
24
|
-
COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
25
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
26
|
-
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
27
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
28
|
-
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
29
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
30
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
31
|
-
|
32
|
-
|
33
|
-
== Gherkin
|
34
|
-
|
35
|
-
Copyright:: (c) 2009-2011 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy
|
36
|
-
License:: MIT
|
37
|
-
Website:: https://github.com/cucumber/gherkin
|
38
|
-
|
39
|
-
Copyright (c) 2009-2011 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy
|
40
|
-
|
41
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
42
|
-
a copy of this software and associated documentation files (the
|
43
|
-
"Software"), to deal in the Software without restriction, including
|
44
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
45
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
46
|
-
permit persons to whom the Software is furnished to do so, subject to
|
47
|
-
the following conditions:
|
48
|
-
|
49
|
-
The above copyright notice and this permission notice shall be
|
50
|
-
included in all copies or substantial portions of the Software.
|
51
|
-
|
52
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
53
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
54
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
55
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
56
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
57
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
58
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
59
|
-
|
data/MANIFEST
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!mast .ruby .yaropts bin lib spec test [A-Z][A-Z]*
|
2
|
-
.ruby
|
3
|
-
lib/lime/advice.rb
|
4
|
-
lib/lime/feature.rb
|
5
|
-
lib/lime/scenario.rb
|
6
|
-
lib/lime/step.rb
|
7
|
-
lib/lime/world.rb
|
8
|
-
lib/lime.rb
|
9
|
-
PROFILE
|
10
|
-
LICENSE.txt
|
11
|
-
HISTORY.md
|
12
|
-
README.md
|
13
|
-
VERSION
|
14
|
-
COPYING.rdoc
|
data/PROFILE
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title : Lime
|
3
|
-
suite : RubyWorks
|
4
|
-
summary: Gherkin-style Test Framework
|
5
|
-
authors:
|
6
|
-
- Thomas Sawyer <transfire@gmail.com>
|
7
|
-
|
8
|
-
description:
|
9
|
-
Lime is a pure Ruby variation of Cucumber's Gherkin
|
10
|
-
BDD test system that runs on top of the Ruby
|
11
|
-
Universal Test Harness.
|
12
|
-
|
13
|
-
resources:
|
14
|
-
home: http://rubyworks.github.com/lime
|
15
|
-
code: http://github.com/rubyworks/lime
|
16
|
-
mail: http://groups.google.com/group/rubyworks-mailinglist
|
17
|
-
|
18
|
-
repositories:
|
19
|
-
upstream: git://github.com/proutils/lime.git
|
20
|
-
|
21
|
-
copyrights:
|
22
|
-
- 2011 Thomas Sawyer (BSD-2-Clause)
|
23
|
-
|
24
|
-
requirements:
|
25
|
-
- test
|
26
|
-
- ae
|
27
|
-
- detroit (build)
|
28
|
-
- reap (build)
|
29
|
-
- qed (test)
|
30
|
-
|