summaryrefslogtreecommitdiff
path: root/bin/spring
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-05-19 07:55:04 -0700
committermo khan <mo@mokhan.ca>2015-05-21 21:26:10 -0600
commite89bc7cb1467063ce65e3e78d77c8f4635132d0f (patch)
tree4e7664935ebe396ac0b048e0421e15a034f15b61 /bin/spring
parentb769c085489679d362ccacd4e5d514f663379089 (diff)
create a workout record for each recors in the sqlite db.
Diffstat (limited to 'bin/spring')
-rwxr-xr-xbin/spring23
1 files changed, 11 insertions, 12 deletions
diff --git a/bin/spring b/bin/spring
index 38fee6f..7b45d37 100755
--- a/bin/spring
+++ b/bin/spring
@@ -1,16 +1,15 @@
#!/usr/bin/env ruby
-#
-# This file was generated by Bundler.
-#
-# The application 'spring' is installed as part of a gem, and
-# this file is here to facilitate running it.
-#
-require 'pathname'
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
- Pathname.new(__FILE__).realpath)
+# This file loads spring without using Bundler, in order to be fast.
+# It gets overwritten when you run the `spring binstub` command.
-require 'rubygems'
-require 'bundler/setup'
+unless defined?(Spring)
+ require "rubygems"
+ require "bundler"
-load Gem.bin_path('spring', 'spring')
+ if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
+ Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
+ gem "spring", match[1]
+ require "spring/binstub"
+ end
+end