rehearse 0.0.1
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.
- checksums.yaml +7 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +62 -0
- data/README.rdoc +6 -0
- data/Rakefile +44 -0
- data/bin/rehearse +70 -0
- data/features/rehearse.feature +8 -0
- data/features/step_definitions/rehearse_steps.rb +6 -0
- data/features/support/env.rb +15 -0
- data/lib/rehearse/version.rb +3 -0
- data/lib/rehearse.rb +4 -0
- data/rehearse.gemspec +23 -0
- data/rehearse.rdoc +5 -0
- data/test/default_test.rb +14 -0
- data/test/test_helper.rb +9 -0
- metadata +121 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4d15d561003b1cdf6d48b39db1689d0426dbeab4
|
4
|
+
data.tar.gz: 0531db5a335ad549184aec7ae7f571a18b47a9a7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8dc6d80601b62cdca9d9cc588d511b2866e0a61a77e7a74b2278b6d6ae4edecd3995e4306b5ca11c597eb5d440ecc6c2e7a67700fb13fc71557ec5042b49fd68
|
7
|
+
data.tar.gz: e4dbff4cf9ea2b3e5f3ada08bb2ae0a963b95290017db565efcbc8cb2ab7c80d81b5b36e5da3f82a9625f6e68078623ed90d6a2c00a7dc18965fd49117626b33
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rehearse (0.0.1)
|
5
|
+
gli (= 2.17.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
aruba (0.14.2)
|
11
|
+
childprocess (~> 0.5.6)
|
12
|
+
contracts (~> 0.9)
|
13
|
+
cucumber (>= 1.3.19)
|
14
|
+
ffi (~> 1.9.10)
|
15
|
+
rspec-expectations (>= 2.99)
|
16
|
+
thor (~> 0.19)
|
17
|
+
backports (3.10.3)
|
18
|
+
builder (3.2.3)
|
19
|
+
childprocess (0.5.9)
|
20
|
+
ffi (~> 1.0, >= 1.0.11)
|
21
|
+
contracts (0.16.0)
|
22
|
+
cucumber (3.1.0)
|
23
|
+
builder (>= 2.1.2)
|
24
|
+
cucumber-core (~> 3.1.0)
|
25
|
+
cucumber-expressions (~> 5.0.4)
|
26
|
+
cucumber-wire (~> 0.0.1)
|
27
|
+
diff-lcs (~> 1.3)
|
28
|
+
gherkin (~> 5.0)
|
29
|
+
multi_json (>= 1.7.5, < 2.0)
|
30
|
+
multi_test (>= 0.1.2)
|
31
|
+
cucumber-core (3.1.0)
|
32
|
+
backports (>= 3.8.0)
|
33
|
+
cucumber-tag_expressions (~> 1.1.0)
|
34
|
+
gherkin (>= 5.0.0)
|
35
|
+
cucumber-expressions (5.0.7)
|
36
|
+
cucumber-tag_expressions (1.1.1)
|
37
|
+
cucumber-wire (0.0.1)
|
38
|
+
diff-lcs (1.3)
|
39
|
+
ffi (1.9.18)
|
40
|
+
gherkin (5.0.0)
|
41
|
+
gli (2.17.1)
|
42
|
+
multi_json (1.12.2)
|
43
|
+
multi_test (0.1.2)
|
44
|
+
rake (12.3.0)
|
45
|
+
rdoc (6.0.0)
|
46
|
+
rspec-expectations (3.7.0)
|
47
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
+
rspec-support (~> 3.7.0)
|
49
|
+
rspec-support (3.7.0)
|
50
|
+
thor (0.20.0)
|
51
|
+
|
52
|
+
PLATFORMS
|
53
|
+
ruby
|
54
|
+
|
55
|
+
DEPENDENCIES
|
56
|
+
aruba
|
57
|
+
rake
|
58
|
+
rdoc
|
59
|
+
rehearse!
|
60
|
+
|
61
|
+
BUNDLED WITH
|
62
|
+
1.16.0
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'rake/clean'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'rubygems/package_task'
|
4
|
+
require 'rdoc/task'
|
5
|
+
require 'cucumber'
|
6
|
+
require 'cucumber/rake/task'
|
7
|
+
Rake::RDocTask.new do |rd|
|
8
|
+
rd.main = "README.rdoc"
|
9
|
+
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
|
10
|
+
rd.title = 'Your application title'
|
11
|
+
end
|
12
|
+
|
13
|
+
spec = eval(File.read('rehearse.gemspec'))
|
14
|
+
|
15
|
+
Gem::PackageTask.new(spec) do |pkg|
|
16
|
+
end
|
17
|
+
CUKE_RESULTS = 'results.html'
|
18
|
+
CLEAN << CUKE_RESULTS
|
19
|
+
desc 'Run features'
|
20
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
21
|
+
opts = "features --format html -o #{CUKE_RESULTS} --format progress -x"
|
22
|
+
opts += " --tags #{ENV['TAGS']}" if ENV['TAGS']
|
23
|
+
t.cucumber_opts = opts
|
24
|
+
t.fork = false
|
25
|
+
end
|
26
|
+
|
27
|
+
desc 'Run features tagged as work-in-progress (@wip)'
|
28
|
+
Cucumber::Rake::Task.new('features:wip') do |t|
|
29
|
+
tag_opts = ' --tags ~@pending'
|
30
|
+
tag_opts = ' --tags @wip'
|
31
|
+
t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty -x -s#{tag_opts}"
|
32
|
+
t.fork = false
|
33
|
+
end
|
34
|
+
|
35
|
+
task :cucumber => :features
|
36
|
+
task 'cucumber:wip' => 'features:wip'
|
37
|
+
task :wip => 'features:wip'
|
38
|
+
require 'rake/testtask'
|
39
|
+
Rake::TestTask.new do |t|
|
40
|
+
t.libs << "test"
|
41
|
+
t.test_files = FileList['test/*_test.rb']
|
42
|
+
end
|
43
|
+
|
44
|
+
task :default => [:test,:features]
|
data/bin/rehearse
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'gli'
|
3
|
+
begin # XXX: Remove this begin/rescue before distributing your app
|
4
|
+
require 'rehearse'
|
5
|
+
rescue LoadError
|
6
|
+
STDERR.puts "In development, you need to use `bundle exec bin/rehearse` to run your app"
|
7
|
+
STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
|
8
|
+
STDERR.puts "Feel free to remove this message from bin/rehearse now"
|
9
|
+
exit 64
|
10
|
+
end
|
11
|
+
|
12
|
+
include GLI::App
|
13
|
+
|
14
|
+
program_desc 'Describe your application here'
|
15
|
+
|
16
|
+
version Rehearse::VERSION
|
17
|
+
|
18
|
+
subcommand_option_handling :normal
|
19
|
+
arguments :strict
|
20
|
+
|
21
|
+
desc 'Describe some switch here'
|
22
|
+
switch [:s,:switch]
|
23
|
+
|
24
|
+
desc 'Describe some flag here'
|
25
|
+
default_value 'the default'
|
26
|
+
arg_name 'The name of the argument'
|
27
|
+
flag [:f,:flagname]
|
28
|
+
|
29
|
+
desc 'Describe test here'
|
30
|
+
arg_name 'Describe arguments to test here'
|
31
|
+
command :test do |c|
|
32
|
+
c.desc 'Describe a switch to test'
|
33
|
+
c.switch :s
|
34
|
+
|
35
|
+
c.desc 'Describe a flag to test'
|
36
|
+
c.default_value 'default'
|
37
|
+
c.flag :f
|
38
|
+
c.action do |global_options,options,args|
|
39
|
+
|
40
|
+
# Your command logic here
|
41
|
+
|
42
|
+
# If you have any errors, just raise them
|
43
|
+
# raise "that command made no sense"
|
44
|
+
|
45
|
+
puts "test command ran"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
pre do |global,command,options,args|
|
50
|
+
# Pre logic here
|
51
|
+
# Return true to proceed; false to abort and not call the
|
52
|
+
# chosen command
|
53
|
+
# Use skips_pre before a command to skip this block
|
54
|
+
# on that command only
|
55
|
+
true
|
56
|
+
end
|
57
|
+
|
58
|
+
post do |global,command,options,args|
|
59
|
+
# Post logic here
|
60
|
+
# Use skips_post before a command to skip this
|
61
|
+
# block on that command only
|
62
|
+
end
|
63
|
+
|
64
|
+
on_error do |exception|
|
65
|
+
# Error logic here
|
66
|
+
# return false to skip default error handling
|
67
|
+
true
|
68
|
+
end
|
69
|
+
|
70
|
+
exit run(ARGV)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'aruba/cucumber'
|
2
|
+
|
3
|
+
ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
|
4
|
+
LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib')
|
5
|
+
|
6
|
+
Before do
|
7
|
+
# Using "announce" causes massive warnings on 1.9.2
|
8
|
+
@puts = true
|
9
|
+
@original_rubylib = ENV['RUBYLIB']
|
10
|
+
ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
|
11
|
+
end
|
12
|
+
|
13
|
+
After do
|
14
|
+
ENV['RUBYLIB'] = @original_rubylib
|
15
|
+
end
|
data/lib/rehearse.rb
ADDED
data/rehearse.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Ensure we require the local version and not one we might have installed already
|
2
|
+
require File.join([File.dirname(__FILE__),'lib','rehearse','version.rb'])
|
3
|
+
spec = Gem::Specification.new do |s|
|
4
|
+
s.name = 'rehearse'
|
5
|
+
s.version = Rehearse::VERSION
|
6
|
+
s.author = 'Nicholas Bulmer'
|
7
|
+
s.email = 'n.bulmer@live.co.uk'
|
8
|
+
s.homepage = 'https://github.com/nickbulmer/rehearse'
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.summary = 'A command line utility, to aid the rehearsal of stage plays using actioning.'
|
11
|
+
s.files = `git ls-files`.split("
|
12
|
+
")
|
13
|
+
s.require_paths << 'lib'
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.extra_rdoc_files = ['README.rdoc','rehearse.rdoc']
|
16
|
+
s.rdoc_options << '--title' << 'rehearse' << '--main' << 'README.rdoc' << '-ri'
|
17
|
+
s.bindir = 'bin'
|
18
|
+
s.executables << 'rehearse'
|
19
|
+
s.add_development_dependency('rake')
|
20
|
+
s.add_development_dependency('rdoc')
|
21
|
+
s.add_development_dependency('aruba')
|
22
|
+
s.add_runtime_dependency('gli','2.17.1')
|
23
|
+
end
|
data/rehearse.rdoc
ADDED
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rehearse
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nicholas Bulmer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-12-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: aruba
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: gli
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.17.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.17.1
|
69
|
+
description:
|
70
|
+
email: n.bulmer@live.co.uk
|
71
|
+
executables:
|
72
|
+
- rehearse
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files:
|
75
|
+
- README.rdoc
|
76
|
+
- rehearse.rdoc
|
77
|
+
files:
|
78
|
+
- Gemfile
|
79
|
+
- Gemfile.lock
|
80
|
+
- README.rdoc
|
81
|
+
- Rakefile
|
82
|
+
- bin/rehearse
|
83
|
+
- features/rehearse.feature
|
84
|
+
- features/step_definitions/rehearse_steps.rb
|
85
|
+
- features/support/env.rb
|
86
|
+
- lib/rehearse.rb
|
87
|
+
- lib/rehearse/version.rb
|
88
|
+
- rehearse.gemspec
|
89
|
+
- rehearse.rdoc
|
90
|
+
- test/default_test.rb
|
91
|
+
- test/test_helper.rb
|
92
|
+
homepage: https://github.com/nickbulmer/rehearse
|
93
|
+
licenses: []
|
94
|
+
metadata: {}
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options:
|
97
|
+
- "--title"
|
98
|
+
- rehearse
|
99
|
+
- "--main"
|
100
|
+
- README.rdoc
|
101
|
+
- "-ri"
|
102
|
+
require_paths:
|
103
|
+
- lib
|
104
|
+
- lib
|
105
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
requirements: []
|
116
|
+
rubyforge_project:
|
117
|
+
rubygems_version: 2.6.14
|
118
|
+
signing_key:
|
119
|
+
specification_version: 4
|
120
|
+
summary: A command line utility, to aid the rehearsal of stage plays using actioning.
|
121
|
+
test_files: []
|