Skip to content

Commit fe8786f

Browse files
committed
Only require dotenv in test env
with commit d3a7239 dotenv became an inherited and implicit hard dependency for any project depending on blockfrost-ruby. Since dotenv is only needed within the test environment, moving it into `spec_helper` releases the dependency for projects depending on blockfrost-ruby and makes sure it only gets required in this library's test environment.
1 parent df2e2b5 commit fe8786f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

lib/blockfrost-ruby.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# require 'blockfrost-ruby'
66
# blockfrost = Blockfrostruby::CardanoMainNet.new()
77

8-
require 'dotenv/load'
9-
108
require_relative 'blockfrostruby/version'
119
require_relative 'blockfrostruby/constants'
1210
require_relative 'blockfrostruby/configuration'

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
require 'dotenv/load'
34
require 'blockfrost-ruby'
45

56
RSpec.configure do |config|

0 commit comments

Comments
 (0)