stream-ci-ruby-rspec 0.3.0 → 0.4.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.
- checksums.yaml +4 -4
- data/Rakefile +5 -2
- data/lib/stream_ci/ruby/rspec/tasks.rb +16 -0
- data/lib/stream_ci/ruby/rspec/version.rb +1 -1
- data/lib/stream_ci_ruby_rspec.rb +7 -41
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98f47c1e146e775fdf4f9c7edc3f93de21ed388229fb5eb2f030b08e25a6a8b5
|
4
|
+
data.tar.gz: 5b71a5a4900a3b0e2e8912152e7570c9e8cebaabfd0d624ec00f76994e8a4847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41e104c3b17481b69a5ce7f01364103f8bb4c68ff0479fe5ec2d1e06f296fd75a22eebe94b2ddf92f96cddf9173bdf6ba760f343bece6b60a3055d99a16aebd7
|
7
|
+
data.tar.gz: 97cedeea15c5b617dacd8292dacd7b38e3852c74c3ad250d7e790f8ea3605529cb5c5f0947d868aabd93c9e80e4f576b8494c63550594f913bd73f1cda90a02c
|
data/Rakefile
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
module StreamCi
|
4
|
+
module Ruby
|
5
|
+
module Rspec
|
6
|
+
class Tasks
|
7
|
+
include ::Rake::DSL
|
8
|
+
|
9
|
+
def load_tasks
|
10
|
+
rake_tasks = "#{StreamCi::Ruby::Rspec.root}/lib/tasks/*.rake"
|
11
|
+
Dir.glob(rake_tasks).each { |rt| import rt }
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/stream_ci_ruby_rspec.rb
CHANGED
@@ -1,44 +1,10 @@
|
|
1
1
|
require 'rake/testtask'
|
2
|
+
require 'stream_ci/ruby/rspec/runner'
|
3
|
+
require 'stream_ci/ruby/rspec/tasks'
|
2
4
|
require 'stream_ci/ruby/rspec/version'
|
3
5
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
# a_proc = lambda {|a,b| a}
|
10
|
-
# a_proc.call(1,2,3)
|
11
|
-
#
|
12
|
-
# # @param args [Array] command-line-supported arguments
|
13
|
-
# # @param err [IO] error stream
|
14
|
-
# # @param out [IO] output stream
|
15
|
-
# # @return [Fixnum] exit status code. 0 if all specs passed,
|
16
|
-
# # or the configured failure exit code (1 by default) if specs
|
17
|
-
# # failed.
|
18
|
-
# def self.run(args, err=$stderr, out=$stdout)
|
19
|
-
# trap_interrupt
|
20
|
-
# options = ConfigurationOptions.new(args)
|
21
|
-
#
|
22
|
-
# if options.options[:runner]
|
23
|
-
# options.options[:runner].call(options, err, out)
|
24
|
-
# else
|
25
|
-
# new(options).run(err, out)
|
26
|
-
# end
|
27
|
-
# end
|
28
|
-
#
|
29
|
-
# class StreamCI::Ruby::Rspec::Runner
|
30
|
-
# def initialize(options); end
|
31
|
-
# end
|
32
|
-
#
|
33
|
-
# args[:runner] = Proc.new do |options, err, out|
|
34
|
-
# StreamCI::Ruby::Rspec::Runner.new(options).run(err, out)
|
35
|
-
# end
|
36
|
-
#
|
37
|
-
|
38
|
-
# `rake streamci:ruby:rspec`
|
39
|
-
#
|
40
|
-
# StreamCI::Ruby::Rspec::Runner.invoke
|
41
|
-
#
|
42
|
-
# class StreamCI::Ruby::Rspec::Runner < Rspec::Core::Runner
|
43
|
-
# # see Apoc::Runner
|
44
|
-
# end
|
6
|
+
module StreamCi::Ruby::Rspec
|
7
|
+
def self.root
|
8
|
+
File.expand_path '../..', __FILE__
|
9
|
+
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stream-ci-ruby-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Conant
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- bin/console
|
146
146
|
- bin/setup
|
147
147
|
- lib/stream_ci/ruby/rspec/runner.rb
|
148
|
+
- lib/stream_ci/ruby/rspec/tasks.rb
|
148
149
|
- lib/stream_ci/ruby/rspec/version.rb
|
149
150
|
- lib/stream_ci_ruby_rspec.rb
|
150
151
|
- lib/tasks/stream_ci.rake
|