scribal 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +49 -0
- data/Rakefile +20 -0
- data/lib/scribal.rb +9 -0
- data/lib/scribal/version.rb +3 -0
- data/scribal.gemspec +43 -0
- data/spec/scribal/scribal_spec.rb +7 -0
- data/spec/spec_helper.rb +18 -0
- metadata +118 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a25e8b23dfebf3ac90d498b58537ff9deec34ce5
|
4
|
+
data.tar.gz: 34a177e25fcd77a64c4bb37679e26ef31d5d4026
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 803db9f336e539a55da8653ad15c4c62b5989bb005dab1844b595fbf6c277cc8c77f0fa7eb8a068237d575b63769c2c79ee9939b80f1715f849af2bea49e0ff8
|
7
|
+
data.tar.gz: bad06731b8a7e24149a85c83f8af1f8ccf17c2ea1524b77d23e54575de6e6b3de21707efa6207590d4bb04d7146640b42f106462faa63fc41cd6d6eeaedee06f
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Jeff Nyman
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Scribal
|
2
|
+
|
3
|
+
Scribal is a Description Language specification and execution engine. The Description Language can be considered a TDL (Test Description Language) or BDL (Business Description Language). These the terms to indicate a language where elaborated requirements and tests become largely the same artifact.
|
4
|
+
|
5
|
+
Scribal uses [Gherkin](https://github.com/cucumber/cucumber/wiki/Gherkin) to process test specifications similar to solutions like [Cucumber](http://cukes.info/) and [Spinach](https://github.com/codegram/spinach). Scribal is a direct clone of [Turnip](https://github.com/jnicklas/turnip).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'scribal'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install scribal
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Scribal uses RSpec as a test runner which means you execute Scribal tests by creating a `spec` directory that contains test specification files.
|
26
|
+
|
27
|
+
To allow RSpec to utilize the Scribal execution mechanism, you can create an `.rspec` file in your project directory and add the following line:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
-r scribal/rspec
|
31
|
+
```
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
To work on Scribal:
|
36
|
+
|
37
|
+
1. [Fork the project](http://gun.io/blog/how-to-github-fork-branch-and-pull-request/).
|
38
|
+
2. Create a feature branch. (`git checkout -b my-new-feature`)
|
39
|
+
3. Commit your changes. (`git commit -am 'new feature'`)
|
40
|
+
4. Push the branch. (`git push origin my-new-feature`)
|
41
|
+
5. Create a new [pull request](https://help.github.com/articles/using-pull-requests).
|
42
|
+
|
43
|
+
## Author
|
44
|
+
|
45
|
+
* [Jeff Nyman](http://testerstories.com)
|
46
|
+
|
47
|
+
## License
|
48
|
+
|
49
|
+
Scribal is distributed under the [MIT](http://www.opensource.org/licenses/MIT) license.
|
data/Rakefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
require 'rspec/core/rake_task'
|
4
|
+
|
5
|
+
namespace :spec do
|
6
|
+
desc 'Clean all generated reports'
|
7
|
+
task :clean do
|
8
|
+
system('rm -rf spec/reports')
|
9
|
+
end
|
10
|
+
|
11
|
+
RSpec::Core::RakeTask.new(:all => :clean) do |config|
|
12
|
+
options = %w(--color)
|
13
|
+
options += %w(--format documentation)
|
14
|
+
options += %w(--format html --out spec/reports/unit-test-report.html)
|
15
|
+
|
16
|
+
config.rspec_opts = options
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
task default: %w(spec:all)
|
data/lib/scribal.rb
ADDED
data/scribal.gemspec
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'scribal/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'scribal'
|
8
|
+
spec.version = Scribal::VERSION
|
9
|
+
spec.authors = ['Jeff Nyman']
|
10
|
+
spec.email = ['jeffnyman@gmail.com']
|
11
|
+
spec.summary = %q{Description Language Specification and Execution Engine}
|
12
|
+
spec.description = %q{
|
13
|
+
Lucid is a test framework that is designed to treat testing as a
|
14
|
+
design activity by allowing requirements to be defined as tests.
|
15
|
+
Those tests can then be executed via an automation layer. This is
|
16
|
+
the basis of creating executable specifications.
|
17
|
+
}
|
18
|
+
spec.homepage = 'https://github.com/jnyman/scribal'
|
19
|
+
spec.license = 'MIT'
|
20
|
+
|
21
|
+
spec.files = `git ls-files -z`.split("\x0")
|
22
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
23
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
24
|
+
spec.require_paths = %w(MIT)
|
25
|
+
spec.requirements << 'Gherkin, RSpec'
|
26
|
+
|
27
|
+
spec.required_ruby_version = '>= 2.0.0'
|
28
|
+
spec.required_rubygems_version = '>= 1.8.29'
|
29
|
+
|
30
|
+
spec.add_development_dependency 'bundler', '~> 1.7'
|
31
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
32
|
+
|
33
|
+
spec.add_runtime_dependency 'gherkin', '~> 2.12'
|
34
|
+
spec.add_runtime_dependency 'rspec', '~> 3.1'
|
35
|
+
|
36
|
+
spec.post_install_message = %{
|
37
|
+
(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
38
|
+
|
39
|
+
Scribal #{Scribal::VERSION} has been installed.
|
40
|
+
|
41
|
+
(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
42
|
+
}
|
43
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'coveralls'
|
3
|
+
|
4
|
+
Coveralls.wear!
|
5
|
+
|
6
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
7
|
+
SimpleCov::Formatter::HTMLFormatter,
|
8
|
+
Coveralls::SimpleCov::Formatter
|
9
|
+
]
|
10
|
+
|
11
|
+
SimpleCov.start do
|
12
|
+
add_filter '/spec/'
|
13
|
+
coverage_dir "#{SimpleCov.root}/spec/reports/coverage"
|
14
|
+
minimum_coverage 90
|
15
|
+
maximum_coverage_drop 5
|
16
|
+
end
|
17
|
+
|
18
|
+
require 'scribal'
|
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: scribal
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeff Nyman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: gherkin
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.12'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.12'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.1'
|
69
|
+
description: "\n Lucid is a test framework that is designed to treat testing as
|
70
|
+
a\n design activity by allowing requirements to be defined as tests.\n Those
|
71
|
+
tests can then be executed via an automation layer. This is\n the basis of creating
|
72
|
+
executable specifications.\n "
|
73
|
+
email:
|
74
|
+
- jeffnyman@gmail.com
|
75
|
+
executables: []
|
76
|
+
extensions: []
|
77
|
+
extra_rdoc_files: []
|
78
|
+
files:
|
79
|
+
- ".gitignore"
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- lib/scribal.rb
|
85
|
+
- lib/scribal/version.rb
|
86
|
+
- scribal.gemspec
|
87
|
+
- spec/scribal/scribal_spec.rb
|
88
|
+
- spec/spec_helper.rb
|
89
|
+
homepage: https://github.com/jnyman/scribal
|
90
|
+
licenses:
|
91
|
+
- MIT
|
92
|
+
metadata: {}
|
93
|
+
post_install_message: "\n(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n\n
|
94
|
+
\ Scribal 0.0.1 has been installed.\n\n(::) (::) (::) (::) (::) (::) (::) (::) (::)
|
95
|
+
(::) (::) (::)\n "
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- MIT
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.0.0
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.8.29
|
109
|
+
requirements:
|
110
|
+
- Gherkin, RSpec
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 2.2.2
|
113
|
+
signing_key:
|
114
|
+
specification_version: 4
|
115
|
+
summary: Description Language Specification and Execution Engine
|
116
|
+
test_files:
|
117
|
+
- spec/scribal/scribal_spec.rb
|
118
|
+
- spec/spec_helper.rb
|