bard 0.8.13 → 0.8.14
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bard.gemspec +1 -1
- data/lib/bard.rb +2 -2
- data/lib/bard/check.rb +1 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.14
|
data/bard.gemspec
CHANGED
data/lib/bard.rb
CHANGED
@@ -103,8 +103,8 @@ class Bard < Thor
|
|
103
103
|
ensure_sanity!
|
104
104
|
|
105
105
|
run_crucial "git fetch"
|
106
|
-
run_crucial "git checkout master && git reset --hard origin
|
107
|
-
run_crucial "git checkout integration && reset --hard origin
|
106
|
+
run_crucial "git checkout master && git reset --hard origin/master"
|
107
|
+
run_crucial "git checkout integration && git reset --hard origin/integration"
|
108
108
|
run_crucial "rake bootstrap RAILS_ENV=staging"
|
109
109
|
end
|
110
110
|
|
data/lib/bard/check.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
class Bard < Thor
|
2
2
|
private
|
3
3
|
def auto_update!
|
4
|
-
original_command = [ENV["_"], @_invocations[Bard], ARGV].flatten.join(" ")
|
5
4
|
required = `curl -s http://gemcutter.org/api/v1/gems/bard.json`.match(/"version":"([0-9.]+)"/)[1]
|
6
5
|
if Versionomy.parse(Bard::VERSION) < Versionomy.parse(required)
|
7
6
|
original_command = [ENV["_"], @_invocations[Bard], ARGV].flatten.join(" ")
|
8
7
|
puts "bard gem is out of date... updating to new version"
|
9
|
-
exec "gem install bard &&
|
8
|
+
exec "gem install bard && #{original_command}"
|
10
9
|
end
|
11
10
|
if options.verbose?
|
12
11
|
puts green("#{"bard".ljust(9)} (#{Bard::VERSION})")
|