conan 0.4.9 → 0.4.10

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.
@@ -31,7 +31,13 @@ module Conan
31
31
 
32
32
 
33
33
  def git_log(from, to)
34
- run_locally("git log #{real_revision(from)}..#{real_revision(to)}")
34
+ begin
35
+ run_locally("git log #{real_revision(from)}..#{real_revision(to)}")
36
+ rescue RuntimeError
37
+ #runtime error probably means there is no initial tag and no deploys have been done
38
+ return run_locally("git log #{real_revision(to)}")
39
+ end
40
+
35
41
  end
36
42
 
37
43
  def real_revision(tag)
@@ -1,6 +1,4 @@
1
1
  require "fileutils"
2
- require "rubygems"
3
- require "bundler/setup"
4
2
 
5
3
  module Conan
6
4
  class Initializer
@@ -29,7 +29,7 @@ when :staging
29
29
  set :branch, "master"
30
30
  when :production
31
31
  set :stage, "production"
32
- set :branch, "staging.last-successful-deploy"
32
+ set :branch, "staging.#{application}.last-successful-deploy"
33
33
  end
34
34
 
35
35
  # You probably don't need to edit these
@@ -50,4 +50,13 @@ unless Conan::VERSION == "{{VERSION}}"
50
50
  $stderr.puts "Warning: Conan version mismatch."
51
51
  end
52
52
 
53
+ # Edit your ~/.fog file so it contains:
54
+ #
55
+ # {{APPLICATION}}:
56
+ # :aws_access_key_id: ...
57
+ # :aws_secret_access_key: ...
58
+ #
59
+ require 'fog'
60
+ Fog.credential = application.to_sym
61
+
53
62
  require "conan/capistrano"
@@ -1,3 +1,3 @@
1
1
  module Conan
2
- VERSION = "0.4.9"
2
+ VERSION = "0.4.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-15 00:00:00.000000000 Z
13
+ date: 2012-10-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json