make sure window.promot doesn't get called, fixes #106
This commit is contained in:
parent
dfe1bece2c
commit
81f561282a
2
Rakefile
2
Rakefile
@ -14,7 +14,7 @@ require 'jasmine/headless/task'
|
|||||||
|
|
||||||
Jasmine::Headless::Task.new
|
Jasmine::Headless::Task.new
|
||||||
|
|
||||||
PLATFORMS = %w{1.8.7 1.9.2 ree 1.9.3-rc1}
|
PLATFORMS = %w{1.8.7 1.9.2 ree 1.9.3}
|
||||||
|
|
||||||
def rvm_bundle(command = '')
|
def rvm_bundle(command = '')
|
||||||
Bundler.with_clean_env do
|
Bundler.with_clean_env do
|
||||||
|
4
script/hooks/post-commit
Executable file
4
script/hooks/post-commit
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
penchant gemfile remote --switch-back
|
||||||
|
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
OLD_GIT_DIR=$GIT_DIR
|
OLD_GIT_DIR=$GIT_DIR
|
||||||
|
|
||||||
if [ "$(penchant gemfile-env)" != "remote" ]; then
|
if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
|
||||||
unset GIT_DIR
|
unset GIT_DIR
|
||||||
penchant gemfile remote
|
penchant gemfile remote --deployment
|
||||||
GIT_DIR=$OLD_GIT_DIR
|
GIT_DIR=$OLD_GIT_DIR
|
||||||
git add Gemfile*
|
git add Gemfile*
|
||||||
fi
|
fi
|
||||||
|
@ -5,7 +5,7 @@ if File.file?('Gemfile.erb')
|
|||||||
|
|
||||||
Dir.chdir '..' do
|
Dir.chdir '..' do
|
||||||
File.readlines(File.join(pwd, 'Gemfile.erb')).find_all { |line| line[':git'] }.each do |line|
|
File.readlines(File.join(pwd, 'Gemfile.erb')).find_all { |line| line[':git'] }.each do |line|
|
||||||
repo = line[%r{:git => (['"])(.*)\1}, 2]
|
repo = line[%r{:git => (['"])([^'"]+)\1}, 2]
|
||||||
|
|
||||||
puts "Installing #{repo}"
|
puts "Installing #{repo}"
|
||||||
system %{git clone #{repo}}
|
system %{git clone #{repo}}
|
||||||
|
Loading…
Reference in New Issue
Block a user