standup 0.3.16 → 0.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.16
1
+ 0.3.17
data/lib/standup.rb CHANGED
@@ -65,7 +65,7 @@ module Standup
65
65
  end
66
66
 
67
67
  def self.run_from_command_line
68
- unless ENV['BUNDLE_GEMFILE']
68
+ if File.exists?('Gemfile') && !ENV['BUNDLE_GEMFILE']
69
69
  Kernel.exec "bundle exec standup #{ARGV.join(' ')}"
70
70
  end
71
71
 
@@ -1,4 +1,4 @@
1
- <% env = "/usr/bin/env PATH=$PATH:/usr/local/bin RAILS_ENV=production" %>
1
+ <% env = "/usr/bin/env PATH=$PATH:/usr/local/bin RAILS_ENV=#{scripts.webapp.params.rails_env}" %>
2
2
  check process delayed_job
3
3
  with pidfile <%= scripts.webapp.app_path %>/tmp/pids/delayed_job.pid
4
4
  start program = "<%= env %> <%= scripts.webapp.app_path %>/script/delayed_job start"
data/scripts/update.rb CHANGED
@@ -18,6 +18,7 @@ Standup.script :node do
18
18
  protected
19
19
 
20
20
  def pull_changes
21
+ exec 'git checkout HEAD .'
21
22
  exec 'git pull'
22
23
  exec "git checkout #{scripts.webapp.params.git_branch}"
23
24
  end
data/scripts/webapp.rb CHANGED
@@ -68,7 +68,12 @@ Standup.script :node do
68
68
  install_gem 'bundler'
69
69
  exec 'bundle install'
70
70
  when :rake_gems
71
- exec "RAILS_ENV=#{params.rails_env} rake gems:install"
71
+ cmd = "RAILS_ENV=#{params.rails_env} rake gems:install"
72
+ output = exec cmd
73
+ if output.match(/Missing the Rails ([\d\.]+) gem/) || output.match(/RubyGem version error: rails\([\d\.]+ not = ([\d\.]+)\)/)
74
+ install_gem 'rails', $1
75
+ exec cmd
76
+ end
72
77
  end
73
78
  end
74
79
  end
data/standup.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{standup}
8
- s.version = "0.3.16"
8
+ s.version = "0.3.17"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilia Ablamonov", "Artem Orlov", "Cloud Castle Inc."]
12
- s.date = %q{2011-01-14}
12
+ s.date = %q{2011-01-27}
13
13
  s.default_executable = %q{standup}
14
14
  s.email = %q{ilia@flamefork.ru}
15
15
  s.executables = ["standup"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standup
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 16
10
- version: 0.3.16
9
+ - 17
10
+ version: 0.3.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilia Ablamonov
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-01-14 00:00:00 +03:00
20
+ date: 2011-01-27 00:00:00 +03:00
21
21
  default_executable: standup
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency