cspec 0.1.3 → 0.1.4

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: 0e6512690d45aa69b0fd226cb3cbca981c05b5f162abee524553e5f91aefa6d3
4
- data.tar.gz: 86de0ecc3c9ef516fb6826982bd0688dade55354d487a35670df4e868ea99098
3
+ metadata.gz: e427c7b44fa48e7e15dcbbf3e0cb209068c51e9047f6d0e1b8f9a0de5e29fc0a
4
+ data.tar.gz: 19d7e7c056cde836bdd5829bf7393a83eb0bbe1c97f9a09119ce44e7d9be3b30
5
5
  SHA512:
6
- metadata.gz: ecf7e5dbce6382722a9cf26bef10c8d75a940d797dc6ddc23c971131084321a2cc6aa3248a816ab0301fb16d5aef0e62980cc38ca5de7feea1341750719f59f6
7
- data.tar.gz: c2830c4864d15e6861948bf5bd1da88ca11066f676d82cbd0c47865a983cc7f1357c73e55db23551c0f08ef73915c5697ea953111c5c431ae777c824a1e3f54c
6
+ metadata.gz: '0907f02733e13b4123b5347b017f88a2851ffe81cd1428214edddd1671612cd99f03e10295c4c9468e5e51a267c7bf002bcffc9254501b310e9c3885c17cbea3'
7
+ data.tar.gz: 81949fcf736842604f8230caf037682e8743a583be103b37671ada357fca388f5e3a3edc136193bb0f35598c1f581fe527d2917c25c222624877185cb7bb50b0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cspec (0.1.2)
4
+ cspec (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,2 +1,2 @@
1
1
  class,name,type,method,expected
2
- MyClass,my test,instance,hello,worldsds
2
+ MyClass,my test,instance,hello,world
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.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
data/lib/cspec.rb CHANGED
@@ -18,6 +18,14 @@ module CSpec
18
18
  ::CSV.open(filename, headers: :first_row).map(&:to_h)
19
19
  end
20
20
 
21
+ def self.process_args(spec)
22
+ method_arg_keys = spec.keys.select { |k| k.match?(/method\_arg\_\d+/) }
23
+ combined_method_args = method_arg_keys.inject([]) do |values, key|
24
+ values << spec[key]
25
+ end
26
+ spec.merge({"method_args" => combined_method_args})
27
+ end
28
+
21
29
  def self.validate(filename)
22
30
  errors = []
23
31
  headers = CSV.open(filename, &:readline)
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.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarrod Folino