rspec-varys 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7425cfbc4280a048b9281c1c719750a5bff03aef
4
- data.tar.gz: f4760dd53c5a2b1923024ca0fc571d430743c784
3
+ metadata.gz: 8add44ff8c8ddece4c482995cb65d1798a102b60
4
+ data.tar.gz: 9ca6bc274c7969f3f4f22d53e937f1ee85404ffd
5
5
  SHA512:
6
- metadata.gz: 97a1b95809ae7fd39c2f4ed1b2a1fb9ab8e2ca3921cef1d322d96da1bdf16d9794b69d6ed28af090c8409244c338193ec457b4310a7ebea995e716ec4d04340b
7
- data.tar.gz: 9518a21ae90dffdedb497bcdf9278ccfbfd4dc26a0c12e2e1cd862885482e972c93cecbe819702907b65327b291f474ebce69c226f066aac84284240949c8825
6
+ metadata.gz: 4a0a48e1e970fdb09f7be35c3116d5b421b9a3ddfe3e4069e4aec1aa21e2aaece36b2ca234273122286f8db2435a90b46df162bc436dfd29b24ee5fc46b897a8
7
+ data.tar.gz: 95d2d16154f099c218adfe0c6f5c75792411c0b5adfdb9ef4e11179b1b8472b8c42e2a4c95f7bdfc740317bceb06eb2928959cbd580c95f4afc9f1ffdb32ef31
@@ -41,7 +41,7 @@ end
41
41
  # Attempt to recreate the source-code to represent this argument in the setup
42
42
  # for our generated spec.
43
43
  def self.serialize(arg)
44
- if %w(Array Hash Float Fixnum String).include? arg.class.name
44
+ if %w(Array Hash Float Fixnum String NilClass TrueClass FalseClass).include? arg.class.name
45
45
  arg.pretty_inspect.chop
46
46
  else
47
47
  guess_constructor arg
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Varys
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
data/lib/rspec/varys.rb CHANGED
@@ -188,7 +188,7 @@ module RSpec::Varys
188
188
  # Attempt to recreate the source-code to represent this argument in the setup
189
189
  # for our generated spec.
190
190
  def self.serialize(arg)
191
- if %w(Array Hash Float Fixnum String).include? arg.class.name
191
+ if %w(Array Hash Float Fixnum String NilClass TrueClass FalseClass).include? arg.class.name
192
192
  arg.pretty_inspect.chop
193
193
  else
194
194
  guess_constructor arg
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-varys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ritchie Young
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-08 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler