bard 0.5.7 → 0.5.8

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.5.7
1
+ 0.5.8
data/bard.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bard}
8
- s.version = "0.5.7"
8
+ s.version = "0.5.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Micah Geisel", "Nick Hogle"]
@@ -16,7 +16,7 @@ RAILS_ENV=staging #{ROOT}/bin/bard stage $@
16
16
  BASH
17
17
  f.chmod 0775
18
18
  end
19
- type "cp config/database.yml.sample config/database.yml"
19
+ type "cp config/database.sample.yml config/database.yml"
20
20
  type "git checkout -b integration"
21
21
  end
22
22
  type "cp -R fixtures/repo tmp/submodule"
@@ -26,7 +26,7 @@ BASH
26
26
  @repo = Grit::Repo.new "."
27
27
  type "grb fetch integration"
28
28
  type "git checkout integration"
29
- type "cp config/database.yml.sample config/database.yml"
29
+ type "cp config/database.sample.yml config/database.yml"
30
30
  end
31
31
 
32
32
  When /^I type "([^\"]*)"$/ do |command|
data/lib/bard.rb CHANGED
@@ -160,12 +160,12 @@ class Bard < Thor
160
160
 
161
161
  if ENV['RAILS_ENV'] == "staging"
162
162
  if not File.exist? ".git/hooks/post-receive"
163
- errors << "missing git hook"
163
+ errors << "missing git hook, please complain to micah"
164
164
  else
165
- errors << "unexecutable git hook" unless File.executable? ".git/hooks/post-receive"
166
- errors << "improper git hook" unless File.read(".git/hooks/post-receive").include? "bard stage $@"
165
+ errors << "unexecutable git hook, please complain to micah" unless File.executable? ".git/hooks/post-receive"
166
+ errors << "improper git hook, please complain to micah" unless File.read(".git/hooks/post-receive").include? "bard stage $@"
167
167
  end
168
- errors << "the git config variable receive.denyCurrentBranch is not set to ignore" if `git config receive.denyCurrentBranch`.chomp != "ignore"
168
+ errors << "the git config variable receive.denyCurrentBranch is not set to ignore, please complain to micah" if `git config receive.denyCurrentBranch`.chomp != "ignore"
169
169
  end
170
170
 
171
171
  warnings << "RAILS_ENV is not set, please complain to micah" if ENV['RAILS_ENV'].nil? or ENV['RAILS_ENV'].empty?
@@ -177,6 +177,9 @@ class Bard < Thor
177
177
  warn "#{warnings.length} potential problems detected:\n #{warnings.join("\n ")}"
178
178
  else
179
179
  puts green("No problems detected in project: #{project}")
180
+ if ENV['RAILS_ENV'] != "staging"
181
+ puts "please run it on the staging server by typing `cap shell` and then `bard check [PROJECT_NAME]`"
182
+ end
180
183
  end
181
184
  end
182
185
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel