Update announcement.gemspec
This commit is contained in:
parent
2f615dfbaa
commit
9774ddc17b
|
@ -11,8 +11,8 @@ puts 'editing files for sassc'
|
||||||
new_gemfile_text = File.read(app_path+'/temp_file/Gemfile')
|
new_gemfile_text = File.read(app_path+'/temp_file/Gemfile')
|
||||||
old_gemfile_text = File.read(env_pwd+'/Gemfile')
|
old_gemfile_text = File.read(env_pwd+'/Gemfile')
|
||||||
check_texts = ['@import "../../bootstrap/variables";',".response-content {\n justify-self: auto;\n}\n"]
|
check_texts = ['@import "../../bootstrap/variables";',".response-content {\n justify-self: auto;\n}\n"]
|
||||||
git_url = Bundler.with_clean_env{%x[cd '#{env_pwd}' && git config --get remote.origin.url].sub("\n",'')}
|
git_url = Bundler.with_clean_env{%x[cd '#{env_pwd}' && git config --get remote.origin.url].split("\n")[0]}
|
||||||
git_remote = Bundler.with_clean_env{%x[cd '#{env_pwd}' && git remote].sub("\n",'')}
|
git_remote = Bundler.with_clean_env{%x[cd '#{env_pwd}' && git remote].split("\n")[0]}
|
||||||
if git_url != 'http://ruling.digital/git'
|
if git_url != 'http://ruling.digital/git'
|
||||||
puts 'changing remote url'
|
puts 'changing remote url'
|
||||||
Bundler.with_clean_env{system("cd #{env_pwd} && git remote set-url #{git_remote} http://ruling.digital/git")}
|
Bundler.with_clean_env{system("cd #{env_pwd} && git remote set-url #{git_remote} http://ruling.digital/git")}
|
||||||
|
|
Loading…
Reference in New Issue