cspec 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cda46241abf4da89965884153263bde46dca2f2861f260797ae0d7e0dd9112f5
4
- data.tar.gz: c313da5f4b11eba2dc9f666d39377ae2c5d53780dfbf3a7521c97b16d02cd8d0
3
+ metadata.gz: 8614fd567ad97eaea1795b6784a114231372e2a06958ed27ab8159b1826df43d
4
+ data.tar.gz: 8232cd508d0bb084224329b08fdbe9fe036887a293a5441576c0c9abf9481b9c
5
5
  SHA512:
6
- metadata.gz: a31c47d67801b6e6efd5e7ad7903e3bdec312c8df734e84768b27f707f6a89c3b0b14545c14d8450416afc3d331647fe209b3094652a68b690abb02405afcb30
7
- data.tar.gz: 6132fb403d49a14b014ffeade47400dc2c2e1c95e207573e64d50acae0bdfcab40f7fe9e6e2891ae2b563a415bd818177c89a86dce4f97a286cad93efd9cdb7b
6
+ metadata.gz: 831a347acc12b8ac8a5f81af9f426f3bd6a9730818406c5303bb41b2e67b3b21e6354112dd361eae91917db677be0a1499b355b33e1627bab70da13b38bc8887
7
+ data.tar.gz: 10132f08dd3fe64a7f14406adcecee1c3374e5988f94562387ceec35aa7043877c8713761900e2e9a4acb7c87f3aefb0f255282a13406c530478eebbb0511252
@@ -24,9 +24,6 @@ jobs:
24
24
  steps:
25
25
  - uses: actions/checkout@v2
26
26
  - name: Set up Ruby
27
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
- # uses: ruby/setup-ruby@v1
30
27
  uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
31
28
  with:
32
29
  ruby-version: ${{ matrix.ruby-version }}
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cspec (0.1.5)
4
+ cspec (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- cspec (0.1.4)
4
+ cspec (0.2.0)
5
5
 
6
6
  PLATFORMS
7
7
  ruby
@@ -1,2 +1,2 @@
1
1
  class,name,type,method,method_arg_1,method_arg_2,expected
2
- MyClass,my test,instance,greent,Bob,Jones,"Hello, Bo Jones"
2
+ MyClass,my test,instance,greet,Bob,Jones,"Hello, Bob Jones"
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- cspec (0.1.4)
4
+ cspec (0.2.0)
5
5
 
6
6
  PLATFORMS
7
7
  ruby
@@ -1,2 +1,2 @@
1
- class,name,type,method,method_args_1,expected
2
- MyClass,my test,instance,hello,,world
1
+ class,name,type,method,expected
2
+ MyClass,my test,instance,hello,world
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- cspec (0.1.4)
4
+ cspec (0.2.0)
5
5
 
6
6
  PLATFORMS
7
7
  ruby
@@ -1,3 +1,3 @@
1
- class,name,type,method,method_args_1,expected
1
+ class,name,type,method,method_arg_1,expected
2
2
  MyClass,my test,class,hello,,world
3
- MyClass,my test,class,say,Bob,"Hello, Bob"
3
+ MyClass,my test,class,say,"Bob","Hello, Bob"
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- cspec (0.1.4)
4
+ cspec (0.2.0)
5
5
 
6
6
  PLATFORMS
7
7
  ruby
data/lib/cspec/loader.rb CHANGED
@@ -18,7 +18,7 @@ module CSpec
18
18
  def self.process_arg(spec, regex, aggregate_key)
19
19
  spec.merge({
20
20
  aggregate_key => spec.keys
21
- .select { |k| k.match?(regex) }
21
+ .select { |k| k.match?(regex) && spec[k] != nil }
22
22
  .inject([]) { |values, key| values << spec[key] }
23
23
  })
24
24
  end
data/lib/cspec/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cspec
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarrod Folino