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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abc4f8eaa14bba95f978a7f864cb0fc5773a59cb4eb7c2ab334092d7fcdf029c
4
- data.tar.gz: f18dfc559f37ee50832ea3874a2a63118137a3c3b995aca86a5bf64833a4bb84
3
+ metadata.gz: 98f47c1e146e775fdf4f9c7edc3f93de21ed388229fb5eb2f030b08e25a6a8b5
4
+ data.tar.gz: 5b71a5a4900a3b0e2e8912152e7570c9e8cebaabfd0d624ec00f76994e8a4847
5
5
  SHA512:
6
- metadata.gz: 90abddf66519a383cb6e704b2e4cf799b17d7ff6eff8f566cd93efd8a3139258b39567ef15ae1856d360ab08c0a3a55116ca23d11db2f7c70fc9fa07d2f762c1
7
- data.tar.gz: 1dc2b06f3c3532dcb2e42c05a4b4a7f721685d4afec4c12ff2757a0913bbea5ffdd041de56eac448f6212d341458c31e9750dff516fd0475790512549d499bf4
6
+ metadata.gz: 41e104c3b17481b69a5ce7f01364103f8bb4c68ff0479fe5ec2d1e06f296fd75a22eebe94b2ddf92f96cddf9173bdf6ba760f343bece6b60a3055d99a16aebd7
7
+ data.tar.gz: 97cedeea15c5b617dacd8292dacd7b38e3852c74c3ad250d7e790f8ea3605529cb5c5f0947d868aabd93c9e80e4f576b8494c63550594f913bd73f1cda90a02c
data/Rakefile CHANGED
@@ -1,5 +1,8 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ require 'stream_ci_ruby_rspec'
4
+
5
+ StreamCi::Ruby::Rspec::Tasks.new.load_tasks
3
6
 
4
7
  RSpec::Core::RakeTask.new(:spec)
5
8
 
@@ -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
@@ -1,7 +1,7 @@
1
1
  module StreamCi
2
2
  module Ruby
3
3
  module Rspec
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
6
6
  end
7
7
  end
@@ -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
- # require 'stream_ci_ruby_rspec/version'
5
-
6
- # a_proc = Proc.new {|a, *b| b.collect {|i| i*a }}
7
- # a_proc.call(9, 1, 2, 3) #=> [9, 18, 27]
8
- # a_proc[9, 1, 2, 3] #=> [9, 18, 27]
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.3.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