cspec 0.2.6 → 0.2.7

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: 6585f0b209286fd400bb3a5b0060ee7fe4fddaa0c08f0f9414290fc5dd3caeb4
4
- data.tar.gz: df2ad99481481d95c1dd725056f0081d36720ebb831677a28319b98b05bff620
3
+ metadata.gz: 37f5f6e0df55477bdae0f6536656d20887381940916f820469ac28f6743146f8
4
+ data.tar.gz: 7e0de0d51f8af19e40290f8e6fdf7ace494c7ea8f0c1151df13415ee22a52b96
5
5
  SHA512:
6
- metadata.gz: c64fce21bf149f25e96ae6daa3149aeb240629004c5202375afa03d2194d45744b473e1e38b68cb3ae97bde4d853bc5f46099711ab2b3695da08cd05f2c9f7e8
7
- data.tar.gz: 27e351c8aefd2bcc7e930e9c7073412bb8141c856dabe3eeed9568832efb93e66084f5e3cef5dab7154b72cacb231457ed229dbe8d858494724f3c37cf8d9ea5
6
+ metadata.gz: e18e98d574800854437069aa7676f5404e90ef43f6f32958010b47f000b2480d6b90edea9058041ae4417a4569b3bc2eaa313cd14bf069dc8ef7ed26bc23daa8
7
+ data.tar.gz: 14aa6812e2872eae093e3ca5107cb5d09515bddbee07162e51d4d69a9f79f19bcc8274dee4aa617fb73065e7aeb6d9d60392b90d6c4a17c22e494235859ae03e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cspec (0.2.5)
4
+ cspec (0.2.6)
5
5
  colorize (~> 0.8.1)
6
6
 
7
7
  GEM
@@ -1,7 +1,9 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- cspec (0.2.5)
4
+ colorize (0.8.1)
5
+ cspec (0.2.6)
6
+ colorize (~> 0.8.1)
5
7
 
6
8
  PLATFORMS
7
9
  ruby
@@ -3,4 +3,4 @@ MyClass,my test,instance,greet,Bob,Jones,,"Hello, Bob Jones"
3
3
  Calculator,another test,class,add,1,2,,3
4
4
  Calculator,another test,class,multi_subtract,6,2,1,3
5
5
  Util,another test,instance,build_array,6,2,1,"[6, 2, 1]"
6
- Util,another test,instance,sum_array,"[6, 2, 1]",,,9
6
+ Util,another test,instance,sum_array,"[6, 2, 1]",,,91
@@ -1,7 +1,9 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- cspec (0.2.5)
4
+ colorize (0.8.1)
5
+ cspec (0.2.6)
6
+ colorize (~> 0.8.1)
5
7
 
6
8
  PLATFORMS
7
9
  ruby
@@ -13,5 +13,4 @@ class MyClass
13
13
  end
14
14
 
15
15
  result = CSpec::Runner.run!("#{Dir.pwd}/specs.csv")
16
- puts "Success: #{result}"
17
16
  exit result ? 0 : 1
@@ -1,7 +1,9 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- cspec (0.2.5)
4
+ colorize (0.8.1)
5
+ cspec (0.2.6)
6
+ colorize (~> 0.8.1)
5
7
 
6
8
  PLATFORMS
7
9
  ruby
@@ -13,5 +13,4 @@ class MyClass
13
13
  end
14
14
 
15
15
  result = CSpec::Runner.run!("#{Dir.pwd}/specs.csv")
16
- puts "Success: #{result}"
17
16
  exit result ? 0 : 1
@@ -1,7 +1,9 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- cspec (0.2.5)
4
+ colorize (0.8.1)
5
+ cspec (0.2.6)
6
+ colorize (~> 0.8.1)
5
7
 
6
8
  PLATFORMS
7
9
  ruby
@@ -9,5 +9,4 @@ class MyClass
9
9
  end
10
10
 
11
11
  result = CSpec::Runner.run!("#{Dir.pwd}/specs.csv")
12
- puts "Success: #{result}"
13
12
  exit result ? 0 : 1
@@ -3,7 +3,7 @@
3
3
  module CSpec
4
4
  module ResultsOutputter
5
5
  def self.display(results)
6
- results.map(&:to_s).join("\n")
6
+ results.filter { |r| !r.error.nil? }.map(&:to_s).join("\n")
7
7
  end
8
8
  end
9
9
  end
data/lib/cspec/spec.rb CHANGED
@@ -21,12 +21,12 @@ module CSpec
21
21
  end
22
22
 
23
23
  def ==(other)
24
- name == other.name &&
25
- self.class == other.class &&
26
- method == other.method &&
27
- type == other.type &&
28
- method_args == other.method_args &&
29
- initialization_args == other.initialization_args
24
+ name == other&.name &&
25
+ self.class == other&.class &&
26
+ method == other&.method &&
27
+ type == other&.type &&
28
+ method_args == other&.method_args &&
29
+ initialization_args == other&.initialization_args
30
30
  end
31
31
 
32
32
  def error
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.6'
4
+ VERSION = '0.2.7'
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.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarrod Folino