Skip to content

Commit

Permalink
Follow bundle gem boilerplate for dependency loading
Browse files Browse the repository at this point in the history
  • Loading branch information
avit committed Mar 19, 2017
1 parent da878a8 commit 6db1090
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ice_cube.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
require File.dirname(__FILE__) + '/lib/ice_cube/version'
# encoding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'ice_cube/version'

Gem::Specification.new do |s|
s.name = 'ice_cube'
Expand Down
5 changes: 3 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
require "bundler/setup"
require 'ice_cube'

begin
require 'simplecov'
SimpleCov.start
rescue LoadError
# okay
end

require File.dirname(__FILE__) + '/../lib/ice_cube'

IceCube.compatibility = 12

DAY = Time.utc(2010, 3, 1)
Expand Down

0 comments on commit 6db1090

Please sign in to comment.