parliament-utils 0.4.0 → 0.4.1

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: 795764a9bbba4f5338d6062d7b30899743128074
4
- data.tar.gz: '09539ae176e8968d3bcbe22d7ea2098157f6b4c6'
3
+ metadata.gz: eaca2cbd7486b718f90979812c60e0f2833e7299
4
+ data.tar.gz: a4176b3d86d56939891921b4c326206b4478b02e
5
5
  SHA512:
6
- metadata.gz: d417b23d8c431e696573625dec1f65a7d849dfb47465aadb0cb7d399d498b3bf5efeb623fc4a407238783d9cc396f68b4170dfb29d7300e382afd4389fe04c61
7
- data.tar.gz: 05a2a5b4a30b2c46ab802f799ade84f8407dd624efb3bd152f4d75fef8c0a74b00348360417b96e2aaabdb3e340abc2762c3162aec3d3482a44bb1a00347de4e
6
+ metadata.gz: f5889acc132338f9e3bb4950d6b0d53c21a34c6be27ed56a9096f551bbfb1de90cd8c6e1274434134dd6b89259b9a6a75912dc9feffbf4dd27a15a25b6f0d3af
7
+ data.tar.gz: 2c19d01a3c0d4bc0cfa49f01d5532a3ce0a0037c193dbae30689ea5be04b9324dfa244f8294a05a5177506ddcf81229d455dcb9d7025d8be580017fc51a56d45
@@ -2,9 +2,19 @@ module Parliament
2
2
  module Utils
3
3
  module TestHelpers
4
4
  module VCRHelper
5
- require 'vcr'
5
+ begin
6
+ require 'vcr'
7
+
8
+ LOADED_VCR = true
9
+ rescue LoadError
10
+ puts 'VCR Helper could not find VCR. This may be expected in production environments.'
11
+
12
+ LOADED_VCR = false
13
+ end
6
14
 
7
15
  def self.load_rspec_config(config)
16
+ return unless LOADED_VCR
17
+
8
18
  # URIs that appear frequently
9
19
  parliament_uri = 'http://localhost:3030'
10
20
  bandiera_uri = 'http://localhost:5000'
@@ -82,6 +92,8 @@ module Parliament
82
92
  end
83
93
  end
84
94
  end
95
+
96
+ config
85
97
  end
86
98
  end
87
99
  end
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Utils
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.4.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rebecca Appleyard