Skip to content

Commit

Permalink
Merge pull request #433 from deivid-rodriguez/remove_unnecessary_chec…
Browse files Browse the repository at this point in the history
…k_on_version

Remove unnecessary check on version
  • Loading branch information
tenderlove authored May 8, 2020
2 parents 91709b7 + a3fc819 commit d2deaa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/psych/versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true
module Psych
# The version of Psych you are using
VERSION = '3.1.0' unless defined?(::Psych::VERSION)
VERSION = '3.1.0'

if RUBY_ENGINE == 'jruby'
DEFAULT_SNAKEYAML_VERSION = '1.23'.freeze
Expand Down
10 changes: 4 additions & 6 deletions psych.gemspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- encoding: utf-8 -*-
# frozen_string_literal: true

begin
require_relative 'lib/psych/versions'
rescue LoadError
# for Ruby core repository
require_relative 'versions'
end
lib_path = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift lib_path if File.exist?(lib_path)

require 'psych/versions'

Gem::Specification.new do |s|
s.name = "psych"
Expand Down

0 comments on commit d2deaa9

Please sign in to comment.