lemon 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby +39 -35
- data/.yardopts +7 -0
- data/COPYING.rdoc +33 -0
- data/HISTORY.rdoc +16 -0
- data/PROFILE +27 -0
- data/QED.rdoc +1 -0
- data/README.rdoc +12 -9
- data/VERSION +1 -0
- data/lib/lemon.yml +39 -35
- data/lib/lemon/cli.rb +3 -0
- data/lib/lemon/controller/coverage_analyzer.rb +2 -2
- data/lib/lemon/controller/test_runner.rb +3 -1
- data/lib/lemon/model/snapshot.rb +1 -1
- data/lib/lemon/view/cover_reports/abstract.rb +1 -10
- data/lib/lemon/view/test_reports/abstract.rb +1 -1
- data/lib/lemon/view/test_reports/outline.rb +1 -1
- data/test/fixtures/case_complete.rb +1 -1
- data/test/fixtures/case_inclusion.rb +2 -2
- data/test/fixtures/case_incomplete.rb +1 -1
- metadata +25 -40
- data/APACHE2.txt +0 -206
- data/NOTICE.rdoc +0 -16
data/.ruby
CHANGED
@@ -1,55 +1,59 @@
|
|
1
1
|
---
|
2
|
-
spec_version: 1.0.0
|
3
|
-
replaces: []
|
4
|
-
|
5
|
-
loadpath:
|
6
|
-
- lib
|
7
2
|
name: lemon
|
8
|
-
|
9
|
-
|
10
|
-
conflicts: []
|
11
|
-
|
12
|
-
engine_check: []
|
13
|
-
|
3
|
+
version: 0.8.4
|
14
4
|
title: Lemon
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
5
|
+
summary: Pucker-tight Unit Testing
|
6
|
+
description: Lemon is a unit testing framework that tightly correlates class to test case and method to test unit.
|
7
|
+
loadpath:
|
8
|
+
- lib
|
9
|
+
manifest: MANIFEST
|
21
10
|
requires:
|
22
|
-
-
|
11
|
+
- name: ae
|
12
|
+
version: 0+
|
13
|
+
group: []
|
23
14
|
|
24
|
-
|
15
|
+
- name: ansi
|
16
|
+
version: 1.3+
|
17
|
+
group: []
|
18
|
+
|
19
|
+
- name: detroit
|
25
20
|
version: 0+
|
26
|
-
|
21
|
+
group:
|
27
22
|
- build
|
28
|
-
|
23
|
+
- name: reap
|
29
24
|
version: 0+
|
30
|
-
|
25
|
+
group:
|
31
26
|
- build
|
32
|
-
|
27
|
+
- name: qed
|
33
28
|
version: 0+
|
34
|
-
|
29
|
+
group:
|
35
30
|
- test
|
36
|
-
|
31
|
+
- name: cucumber
|
37
32
|
version: 0+
|
38
|
-
|
33
|
+
group:
|
39
34
|
- test
|
40
|
-
|
35
|
+
- name: aruba
|
41
36
|
version: 0+
|
42
|
-
|
37
|
+
group:
|
43
38
|
- test
|
44
|
-
|
45
|
-
|
39
|
+
conflicts: []
|
40
|
+
|
41
|
+
replaces: []
|
42
|
+
|
43
|
+
engine_check: []
|
44
|
+
|
46
45
|
suite: proutils
|
47
|
-
|
48
|
-
|
46
|
+
contact: trans <transfire@gmail.com>
|
47
|
+
copyright: Copyright 2009 Thomas Sawyer
|
49
48
|
licenses:
|
50
49
|
- Apache 2.0
|
51
|
-
copyright: Copyright 2009 Thomas Sawyer
|
52
50
|
authors:
|
53
51
|
- Thomas Sawyer
|
54
|
-
|
55
|
-
|
52
|
+
maintainers: []
|
53
|
+
|
54
|
+
resources:
|
55
|
+
home: http://proutils.github.com/lemon
|
56
|
+
repository: git://github.com/proutils/lemon.git
|
57
|
+
repositories: {}
|
58
|
+
|
59
|
+
spec_version: 1.0.0
|
data/.yardopts
ADDED
data/COPYING.rdoc
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
= COPYRIGHT NOTICES
|
2
|
+
|
3
|
+
== Lemon
|
4
|
+
|
5
|
+
Copyright:: (c)2009 Thomas Sawyer
|
6
|
+
License:: BSD-2-Clause
|
7
|
+
Website:: http://rubyworks.github.com/lemon
|
8
|
+
|
9
|
+
Copyright 2009 Thomas Sawyer. All rights reserved.
|
10
|
+
|
11
|
+
Redistribution and use in source and binary forms, with or without modification, are
|
12
|
+
permitted provided that the following conditions are met:
|
13
|
+
|
14
|
+
1. Redistributions of source code must retain the above copyright notice, this list of
|
15
|
+
conditions and the following disclaimer.
|
16
|
+
|
17
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list
|
18
|
+
of conditions and the following disclaimer in the documentation and/or other materials
|
19
|
+
provided with the distribution.
|
20
|
+
|
21
|
+
THIS SOFTWARE IS PROVIDED BY Thomas Sawyer ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
22
|
+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Thomas Sawyer OR
|
24
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
25
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
27
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
28
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
29
|
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
+
|
31
|
+
The views and conclusions contained in the software and documentation are those of the
|
32
|
+
authors and should not be interpreted as representing official policies, either expressed
|
33
|
+
or implied, of Thomas Sawyer.
|
data/HISTORY.rdoc
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
= RELEASE HISTORY
|
2
2
|
|
3
|
+
== 0.8.4 / 2011-07-11
|
4
|
+
|
5
|
+
Fix reported issue #6 to get lemon passing it own tests. (Note: the
|
6
|
+
tests need to be run with `test/fixtures` in the loadpath). There was
|
7
|
+
also a typo in the Outline reporter which was fixed. And better support
|
8
|
+
of the newest ANSI gem now lets color be deactivated with the --no-ansi
|
9
|
+
command line option.
|
10
|
+
|
11
|
+
Changes:
|
12
|
+
|
13
|
+
* Fix typo in outline reporter.
|
14
|
+
* Add --no-ansi command line option.
|
15
|
+
* Load ansi/core per the latest ANSI gem.
|
16
|
+
* Lemon can test itself (albeit test are not complete).
|
17
|
+
|
18
|
+
|
3
19
|
== 0.8.3 / 2011-05-19
|
4
20
|
|
5
21
|
Looks like Lemon is pretty damn near 1.0 status. She probably won't get
|
data/PROFILE
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
title : Lemon
|
3
|
+
suite : proutils
|
4
|
+
summary: Pucker-tight Unit Testing
|
5
|
+
authors: Thomas Sawyer
|
6
|
+
contact: trans <transfire@gmail.com>
|
7
|
+
license: Apache 2.0
|
8
|
+
|
9
|
+
description:
|
10
|
+
Lemon is a unit testing framework that tightly correlates
|
11
|
+
class to test case and method to test unit.
|
12
|
+
|
13
|
+
resources:
|
14
|
+
homepage: http://proutils.github.com/lemon
|
15
|
+
repository: git://github.com/proutils/lemon.git
|
16
|
+
|
17
|
+
copyright: Copyright 2009 Thomas Sawyer
|
18
|
+
|
19
|
+
requires:
|
20
|
+
- ae
|
21
|
+
- ansi 1.3+
|
22
|
+
- detroit (build)
|
23
|
+
- reap (build)
|
24
|
+
- qed (test)
|
25
|
+
- cucumber (test)
|
26
|
+
- aruba (test)
|
27
|
+
|
data/QED.rdoc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
|
data/README.rdoc
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
= Lemon
|
2
2
|
|
3
|
-
*
|
4
|
-
*
|
3
|
+
* Homepage[http://rubyworks.github.com/lemon]
|
4
|
+
* Development[http://github.com/rubyworks/lemon]
|
5
|
+
* Issues[http://github.com/rubyworks/lemon/issues]
|
5
6
|
|
6
7
|
|
7
8
|
== DESCRIPTION
|
8
9
|
|
9
10
|
Lemon is a Unit Testing Framework that enforces a test case construction mirroring the class/module and method design of the target system. Arguably this promotes the proper technique for unit testing and helps ensure good test coverage.
|
10
11
|
|
11
|
-
The difference between unit testing and functional testing, and all other forms of testing for that matter,
|
12
|
+
The difference between unit testing and functional testing, and all other forms of testing for that matter, is simply a matter of where the *concern* lies. The concerns of unit testing are the concerns of unit tests -- the individual methods.
|
12
13
|
|
13
14
|
|
14
15
|
== HOW TO USE
|
@@ -32,7 +33,7 @@ The simplest test case would be written as follows:
|
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
35
|
-
The +Covers+ method works just like +require+ with the exception that Lemon records the file for
|
36
|
+
The +Covers+ method works just like +require+ with the exception that Lemon records the file for reference --under certain scenarios it can be used to improve overall test covered.
|
36
37
|
|
37
38
|
As tests grow, we might need to organize them into special concerns. For this Lemon provides a #concern method and a #setup method. Technically the two methods are the same, but #concern is used more for descriptive purposes whereas #setup is used to create an instance of the testcase's target class.
|
38
39
|
|
@@ -48,13 +49,13 @@ As tests grow, we might need to organize them into special concerns. For this Le
|
|
48
49
|
end
|
49
50
|
end
|
50
51
|
|
51
|
-
Notice that the parameter passed to the block of +unit+
|
52
|
+
Notice that the parameter passed to the block of +unit+ method is the instance of +X+ created in the +setup+ block. This block is run for every subsequent +Unit+ until a new concern is defined.
|
52
53
|
|
53
54
|
In conjunction with the #setup methods, there is a #teardown method which can be used "tidy-up" after each unit run if need be.
|
54
55
|
|
55
56
|
Lastly, there are the +before+ and +after+ methods which can be used only once for each testcase. The +before+ method defines a procedure to run before any of the testcase's units are run, and the +after+ method defines a procedure to run after that are all finished.
|
56
57
|
|
57
|
-
That is the bulk of the matter
|
58
|
+
That is the bulk of the matter for writing Lemon tests. There are few other features not mentions here. You can learn more about hose by reading the wiki[http://wiki.github.com/proutils/lemon].
|
58
59
|
|
59
60
|
|
60
61
|
=== Running Tests
|
@@ -93,8 +94,10 @@ There is no special directory for Lemon tests. Since they are unit tests, `test/
|
|
93
94
|
|
94
95
|
== COPYRIGHT
|
95
96
|
|
96
|
-
|
97
|
+
Lemon Unit Testing Framework
|
97
98
|
|
98
|
-
Copyright (c) 2009 Thomas Sawyer
|
99
|
+
Copyright (c) 2009 Thomas Sawyer
|
99
100
|
|
100
|
-
|
101
|
+
BSD 2 Clause License
|
102
|
+
|
103
|
+
See COPYING.rdoc for details.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.8.4
|
data/lib/lemon.yml
CHANGED
@@ -1,55 +1,59 @@
|
|
1
1
|
---
|
2
|
-
spec_version: 1.0.0
|
3
|
-
replaces: []
|
4
|
-
|
5
|
-
loadpath:
|
6
|
-
- lib
|
7
2
|
name: lemon
|
8
|
-
|
9
|
-
|
10
|
-
conflicts: []
|
11
|
-
|
12
|
-
engine_check: []
|
13
|
-
|
3
|
+
version: 0.8.4
|
14
4
|
title: Lemon
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
5
|
+
summary: Pucker-tight Unit Testing
|
6
|
+
description: Lemon is a unit testing framework that tightly correlates class to test case and method to test unit.
|
7
|
+
loadpath:
|
8
|
+
- lib
|
9
|
+
manifest: MANIFEST
|
21
10
|
requires:
|
22
|
-
-
|
11
|
+
- name: ae
|
12
|
+
version: 0+
|
13
|
+
group: []
|
23
14
|
|
24
|
-
|
15
|
+
- name: ansi
|
16
|
+
version: 1.3+
|
17
|
+
group: []
|
18
|
+
|
19
|
+
- name: detroit
|
25
20
|
version: 0+
|
26
|
-
|
21
|
+
group:
|
27
22
|
- build
|
28
|
-
|
23
|
+
- name: reap
|
29
24
|
version: 0+
|
30
|
-
|
25
|
+
group:
|
31
26
|
- build
|
32
|
-
|
27
|
+
- name: qed
|
33
28
|
version: 0+
|
34
|
-
|
29
|
+
group:
|
35
30
|
- test
|
36
|
-
|
31
|
+
- name: cucumber
|
37
32
|
version: 0+
|
38
|
-
|
33
|
+
group:
|
39
34
|
- test
|
40
|
-
|
35
|
+
- name: aruba
|
41
36
|
version: 0+
|
42
|
-
|
37
|
+
group:
|
43
38
|
- test
|
44
|
-
|
45
|
-
|
39
|
+
conflicts: []
|
40
|
+
|
41
|
+
replaces: []
|
42
|
+
|
43
|
+
engine_check: []
|
44
|
+
|
46
45
|
suite: proutils
|
47
|
-
|
48
|
-
|
46
|
+
contact: trans <transfire@gmail.com>
|
47
|
+
copyright: Copyright 2009 Thomas Sawyer
|
49
48
|
licenses:
|
50
49
|
- Apache 2.0
|
51
|
-
copyright: Copyright 2009 Thomas Sawyer
|
52
50
|
authors:
|
53
51
|
- Thomas Sawyer
|
54
|
-
|
55
|
-
|
52
|
+
maintainers: []
|
53
|
+
|
54
|
+
resources:
|
55
|
+
home: http://proutils.github.com/lemon
|
56
|
+
repository: git://github.com/proutils/lemon.git
|
57
|
+
repositories: {}
|
58
|
+
|
59
|
+
spec_version: 1.0.0
|
data/lib/lemon/cli.rb
CHANGED
@@ -258,6 +258,9 @@ module Lemon
|
|
258
258
|
def option_parser
|
259
259
|
@option_parser ||= (
|
260
260
|
OptionParser.new do |opt|
|
261
|
+
opt.on_tail("--[no-]ansi" , 'turn on/off ANIS colors') do |v|
|
262
|
+
$ansi = v
|
263
|
+
end
|
261
264
|
opt.on_tail("--debug" , 'turn on debugging mode') do
|
262
265
|
$DEBUG = true
|
263
266
|
end
|
@@ -61,8 +61,8 @@ module Lemon
|
|
61
61
|
|
62
62
|
# Load in prerequisites
|
63
63
|
def initialize_prerequisites(options)
|
64
|
-
loadpath = options[:loadpath] || []
|
65
|
-
requires = options[:requires] || []
|
64
|
+
loadpath = [options[:loadpath] || []].compact.flatten
|
65
|
+
requires = [options[:requires] || []].compact.flatten
|
66
66
|
|
67
67
|
loadpath.each{ |path| $LOAD_PATH.unshift(path) }
|
68
68
|
requires.each{ |path| require(path) }
|
@@ -190,7 +190,9 @@ module Lemon
|
|
190
190
|
end
|
191
191
|
end
|
192
192
|
rescue => error
|
193
|
-
Kernel.eval
|
193
|
+
Kernel.eval <<-END, unit.procedure.binding
|
194
|
+
raise #{error.class}, "#{unit.target} not tested"
|
195
|
+
END
|
194
196
|
end
|
195
197
|
#Lemon.test_stack << self # hack
|
196
198
|
|
data/lib/lemon/model/snapshot.rb
CHANGED
@@ -45,7 +45,7 @@ module Lemon
|
|
45
45
|
def capture(namespaces=nil)
|
46
46
|
@units = []
|
47
47
|
ObjectSpace.each_object(Module) do |mod|
|
48
|
-
next if mod.name.empty?
|
48
|
+
next if mod.nil? or mod.name.nil? or mod.name.empty?
|
49
49
|
#next if namespaces and !namespaces.any?{ |ns| /^#{ns}(::|$)/ =~ mod.to_s }
|
50
50
|
next if namespaces and !namespaces.any?{ |ns| ns.to_s == mod.to_s }
|
51
51
|
capture_namespace(mod)
|
@@ -2,19 +2,10 @@ module Lemon::CoverReports
|
|
2
2
|
|
3
3
|
class Abstract
|
4
4
|
|
5
|
-
|
6
|
-
ANSI_SUPPORT = (
|
7
|
-
begin
|
8
|
-
require 'ansi/code'
|
9
|
-
true
|
10
|
-
rescue LoadError
|
11
|
-
false
|
12
|
-
end
|
13
|
-
)
|
5
|
+
require 'ansi/core'
|
14
6
|
|
15
7
|
def initialize(coverage)
|
16
8
|
@coverage = coverage
|
17
|
-
@ansicolor = ANSI_SUPPORT
|
18
9
|
end
|
19
10
|
|
20
11
|
#
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 57
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 3
|
10
|
-
version: 0.8.3
|
5
|
+
version: 0.8.4
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Thomas Sawyer
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-
|
13
|
+
date: 2011-07-11 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: ae
|
@@ -25,82 +20,75 @@ dependencies:
|
|
25
20
|
requirements:
|
26
21
|
- - ">="
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
|
-
segments:
|
30
|
-
- 0
|
31
23
|
version: "0"
|
32
24
|
type: :runtime
|
33
25
|
version_requirements: *id001
|
34
26
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
27
|
+
name: ansi
|
36
28
|
prerelease: false
|
37
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
30
|
none: false
|
39
31
|
requirements:
|
40
32
|
- - ">="
|
41
33
|
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
|
44
|
-
- 0
|
45
|
-
version: "0"
|
46
|
-
type: :development
|
34
|
+
version: "1.3"
|
35
|
+
type: :runtime
|
47
36
|
version_requirements: *id002
|
48
37
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
38
|
+
name: detroit
|
50
39
|
prerelease: false
|
51
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
41
|
none: false
|
53
42
|
requirements:
|
54
43
|
- - ">="
|
55
44
|
- !ruby/object:Gem::Version
|
56
|
-
hash: 3
|
57
|
-
segments:
|
58
|
-
- 0
|
59
45
|
version: "0"
|
60
46
|
type: :development
|
61
47
|
version_requirements: *id003
|
62
48
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
49
|
+
name: reap
|
64
50
|
prerelease: false
|
65
51
|
requirement: &id004 !ruby/object:Gem::Requirement
|
66
52
|
none: false
|
67
53
|
requirements:
|
68
54
|
- - ">="
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
hash: 3
|
71
|
-
segments:
|
72
|
-
- 0
|
73
56
|
version: "0"
|
74
57
|
type: :development
|
75
58
|
version_requirements: *id004
|
76
59
|
- !ruby/object:Gem::Dependency
|
77
|
-
name:
|
60
|
+
name: qed
|
78
61
|
prerelease: false
|
79
62
|
requirement: &id005 !ruby/object:Gem::Requirement
|
80
63
|
none: false
|
81
64
|
requirements:
|
82
65
|
- - ">="
|
83
66
|
- !ruby/object:Gem::Version
|
84
|
-
hash: 3
|
85
|
-
segments:
|
86
|
-
- 0
|
87
67
|
version: "0"
|
88
68
|
type: :development
|
89
69
|
version_requirements: *id005
|
90
70
|
- !ruby/object:Gem::Dependency
|
91
|
-
name:
|
71
|
+
name: cucumber
|
92
72
|
prerelease: false
|
93
73
|
requirement: &id006 !ruby/object:Gem::Requirement
|
94
74
|
none: false
|
95
75
|
requirements:
|
96
76
|
- - ">="
|
97
77
|
- !ruby/object:Gem::Version
|
98
|
-
hash: 3
|
99
|
-
segments:
|
100
|
-
- 0
|
101
78
|
version: "0"
|
102
79
|
type: :development
|
103
80
|
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: aruba
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
type: :development
|
91
|
+
version_requirements: *id007
|
104
92
|
description: Lemon is a unit testing framework that tightly correlates class to test case and method to test unit.
|
105
93
|
email: transfire@gmail.com
|
106
94
|
executables:
|
@@ -110,6 +98,7 @@ extensions: []
|
|
110
98
|
extra_rdoc_files:
|
111
99
|
- README.rdoc
|
112
100
|
files:
|
101
|
+
- .yardopts
|
113
102
|
- .ruby
|
114
103
|
- bin/lemon
|
115
104
|
- demo/case_example_error.rb
|
@@ -168,9 +157,11 @@ files:
|
|
168
157
|
- test/fixtures/helper.rb
|
169
158
|
- test/runner
|
170
159
|
- HISTORY.rdoc
|
171
|
-
-
|
160
|
+
- PROFILE
|
172
161
|
- README.rdoc
|
173
|
-
-
|
162
|
+
- QED.rdoc
|
163
|
+
- VERSION
|
164
|
+
- COPYING.rdoc
|
174
165
|
homepage: http://proutils.github.com/lemon
|
175
166
|
licenses:
|
176
167
|
- Apache 2.0
|
@@ -187,18 +178,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
178
|
requirements:
|
188
179
|
- - ">="
|
189
180
|
- !ruby/object:Gem::Version
|
190
|
-
hash: 3
|
191
|
-
segments:
|
192
|
-
- 0
|
193
181
|
version: "0"
|
194
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
183
|
none: false
|
196
184
|
requirements:
|
197
185
|
- - ">="
|
198
186
|
- !ruby/object:Gem::Version
|
199
|
-
hash: 3
|
200
|
-
segments:
|
201
|
-
- 0
|
202
187
|
version: "0"
|
203
188
|
requirements: []
|
204
189
|
|
data/APACHE2.txt
DELETED
@@ -1,206 +0,0 @@
|
|
1
|
-
Lemon is open-source software distributed under the terms of the following license:
|
2
|
-
|
3
|
-
|
4
|
-
Apache License
|
5
|
-
Version 2.0, January 2004
|
6
|
-
http://www.apache.org/licenses/
|
7
|
-
|
8
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
9
|
-
|
10
|
-
1. Definitions.
|
11
|
-
|
12
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
13
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
14
|
-
|
15
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
16
|
-
the copyright owner that is granting the License.
|
17
|
-
|
18
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
19
|
-
other entities that control, are controlled by, or are under common
|
20
|
-
control with that entity. For the purposes of this definition,
|
21
|
-
"control" means (i) the power, direct or indirect, to cause the
|
22
|
-
direction or management of such entity, whether by contract or
|
23
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
24
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
25
|
-
|
26
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
27
|
-
exercising permissions granted by this License.
|
28
|
-
|
29
|
-
"Source" form shall mean the preferred form for making modifications,
|
30
|
-
including but not limited to software source code, documentation
|
31
|
-
source, and configuration files.
|
32
|
-
|
33
|
-
"Object" form shall mean any form resulting from mechanical
|
34
|
-
transformation or translation of a Source form, including but
|
35
|
-
not limited to compiled object code, generated documentation,
|
36
|
-
and conversions to other media types.
|
37
|
-
|
38
|
-
"Work" shall mean the work of authorship, whether in Source or
|
39
|
-
Object form, made available under the License, as indicated by a
|
40
|
-
copyright notice that is included in or attached to the work
|
41
|
-
(an example is provided in the Appendix below).
|
42
|
-
|
43
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
44
|
-
form, that is based on (or derived from) the Work and for which the
|
45
|
-
editorial revisions, annotations, elaborations, or other modifications
|
46
|
-
represent, as a whole, an original work of authorship. For the purposes
|
47
|
-
of this License, Derivative Works shall not include works that remain
|
48
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
49
|
-
the Work and Derivative Works thereof.
|
50
|
-
|
51
|
-
"Contribution" shall mean any work of authorship, including
|
52
|
-
the original version of the Work and any modifications or additions
|
53
|
-
to that Work or Derivative Works thereof, that is intentionally
|
54
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
55
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
56
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
57
|
-
means any form of electronic, verbal, or written communication sent
|
58
|
-
to the Licensor or its representatives, including but not limited to
|
59
|
-
communication on electronic mailing lists, source code control systems,
|
60
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
61
|
-
Licensor for the purpose of discussing and improving the Work, but
|
62
|
-
excluding communication that is conspicuously marked or otherwise
|
63
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
64
|
-
|
65
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
66
|
-
on behalf of whom a Contribution has been received by Licensor and
|
67
|
-
subsequently incorporated within the Work.
|
68
|
-
|
69
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
70
|
-
this License, each Contributor hereby grants to You a perpetual,
|
71
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
72
|
-
copyright license to reproduce, prepare Derivative Works of,
|
73
|
-
publicly display, publicly perform, sublicense, and distribute the
|
74
|
-
Work and such Derivative Works in Source or Object form.
|
75
|
-
|
76
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
77
|
-
this License, each Contributor hereby grants to You a perpetual,
|
78
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
79
|
-
(except as stated in this section) patent license to make, have made,
|
80
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
81
|
-
where such license applies only to those patent claims licensable
|
82
|
-
by such Contributor that are necessarily infringed by their
|
83
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
84
|
-
with the Work to which such Contribution(s) was submitted. If You
|
85
|
-
institute patent litigation against any entity (including a
|
86
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
87
|
-
or a Contribution incorporated within the Work constitutes direct
|
88
|
-
or contributory patent infringement, then any patent licenses
|
89
|
-
granted to You under this License for that Work shall terminate
|
90
|
-
as of the date such litigation is filed.
|
91
|
-
|
92
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
93
|
-
Work or Derivative Works thereof in any medium, with or without
|
94
|
-
modifications, and in Source or Object form, provided that You
|
95
|
-
meet the following conditions:
|
96
|
-
|
97
|
-
(a) You must give any other recipients of the Work or
|
98
|
-
Derivative Works a copy of this License; and
|
99
|
-
|
100
|
-
(b) You must cause any modified files to carry prominent notices
|
101
|
-
stating that You changed the files; and
|
102
|
-
|
103
|
-
(c) You must retain, in the Source form of any Derivative Works
|
104
|
-
that You distribute, all copyright, patent, trademark, and
|
105
|
-
attribution notices from the Source form of the Work,
|
106
|
-
excluding those notices that do not pertain to any part of
|
107
|
-
the Derivative Works; and
|
108
|
-
|
109
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
110
|
-
distribution, then any Derivative Works that You distribute must
|
111
|
-
include a readable copy of the attribution notices contained
|
112
|
-
within such NOTICE file, excluding those notices that do not
|
113
|
-
pertain to any part of the Derivative Works, in at least one
|
114
|
-
of the following places: within a NOTICE text file distributed
|
115
|
-
as part of the Derivative Works; within the Source form or
|
116
|
-
documentation, if provided along with the Derivative Works; or,
|
117
|
-
within a display generated by the Derivative Works, if and
|
118
|
-
wherever such third-party notices normally appear. The contents
|
119
|
-
of the NOTICE file are for informational purposes only and
|
120
|
-
do not modify the License. You may add Your own attribution
|
121
|
-
notices within Derivative Works that You distribute, alongside
|
122
|
-
or as an addendum to the NOTICE text from the Work, provided
|
123
|
-
that such additional attribution notices cannot be construed
|
124
|
-
as modifying the License.
|
125
|
-
|
126
|
-
You may add Your own copyright statement to Your modifications and
|
127
|
-
may provide additional or different license terms and conditions
|
128
|
-
for use, reproduction, or distribution of Your modifications, or
|
129
|
-
for any such Derivative Works as a whole, provided Your use,
|
130
|
-
reproduction, and distribution of the Work otherwise complies with
|
131
|
-
the conditions stated in this License.
|
132
|
-
|
133
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
134
|
-
any Contribution intentionally submitted for inclusion in the Work
|
135
|
-
by You to the Licensor shall be under the terms and conditions of
|
136
|
-
this License, without any additional terms or conditions.
|
137
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
138
|
-
the terms of any separate license agreement you may have executed
|
139
|
-
with Licensor regarding such Contributions.
|
140
|
-
|
141
|
-
6. Trademarks. This License does not grant permission to use the trade
|
142
|
-
names, trademarks, service marks, or product names of the Licensor,
|
143
|
-
except as required for reasonable and customary use in describing the
|
144
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
145
|
-
|
146
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
147
|
-
agreed to in writing, Licensor provides the Work (and each
|
148
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
149
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
150
|
-
implied, including, without limitation, any warranties or conditions
|
151
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
152
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
153
|
-
appropriateness of using or redistributing the Work and assume any
|
154
|
-
risks associated with Your exercise of permissions under this License.
|
155
|
-
|
156
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
157
|
-
whether in tort (including negligence), contract, or otherwise,
|
158
|
-
unless required by applicable law (such as deliberate and grossly
|
159
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
160
|
-
liable to You for damages, including any direct, indirect, special,
|
161
|
-
incidental, or consequential damages of any character arising as a
|
162
|
-
result of this License or out of the use or inability to use the
|
163
|
-
Work (including but not limited to damages for loss of goodwill,
|
164
|
-
work stoppage, computer failure or malfunction, or any and all
|
165
|
-
other commercial damages or losses), even if such Contributor
|
166
|
-
has been advised of the possibility of such damages.
|
167
|
-
|
168
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
169
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
170
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
171
|
-
or other liability obligations and/or rights consistent with this
|
172
|
-
License. However, in accepting such obligations, You may act only
|
173
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
174
|
-
of any other Contributor, and only if You agree to indemnify,
|
175
|
-
defend, and hold each Contributor harmless for any liability
|
176
|
-
incurred by, or claims asserted against, such Contributor by reason
|
177
|
-
of your accepting any such warranty or additional liability.
|
178
|
-
|
179
|
-
END OF TERMS AND CONDITIONS
|
180
|
-
|
181
|
-
APPENDIX: How to apply the Apache License to your work.
|
182
|
-
|
183
|
-
To apply the Apache License to your work, attach the following
|
184
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
185
|
-
replaced with your own identifying information. (Don't include
|
186
|
-
the brackets!) The text should be enclosed in the appropriate
|
187
|
-
comment syntax for the file format. We also recommend that a
|
188
|
-
file or class name and description of purpose be included on the
|
189
|
-
same "printed page" as the copyright notice for easier
|
190
|
-
identification within third-party archives.
|
191
|
-
|
192
|
-
Copyright [yyyy] [name of copyright owner]
|
193
|
-
|
194
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
195
|
-
you may not use this file except in compliance with the License.
|
196
|
-
You may obtain a copy of the License at
|
197
|
-
|
198
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
199
|
-
|
200
|
-
Unless required by applicable law or agreed to in writing, software
|
201
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
202
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
203
|
-
See the License for the specific language governing permissions and
|
204
|
-
limitations under the License.
|
205
|
-
|
206
|
-
|
data/NOTICE.rdoc
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
= COPYRIGHT NOTICES
|
2
|
-
|
3
|
-
== Lemon, Copyright (c)2009 Thomas Sawyer
|
4
|
-
|
5
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
you may not use this file except in compliance with the License.
|
7
|
-
You may obtain a copy of the License at
|
8
|
-
|
9
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
|
11
|
-
Unless required by applicable law or agreed to in writing, software
|
12
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
See the License for the specific language governing permissions and
|
15
|
-
limitations under the License.
|
16
|
-
|