summaryrefslogtreecommitdiff
path: root/lib/sync.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sync.gemspec')
-rw-r--r--lib/sync.gemspec7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sync.gemspec b/lib/sync.gemspec
index 5c664657c6..42d40f3e66 100644
--- a/lib/sync.gemspec
+++ b/lib/sync.gemspec
@@ -1,4 +1,9 @@
-require_relative "sync"
+begin
+ require_relative "lib/sync"
+rescue LoadError
+ # for Ruby core repository
+ require_relative "sync"
+end
Gem::Specification.new do |spec|
spec.name = "sync"