travis_heroku 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -29,3 +29,10 @@ Add an after_success script to your .travis.yml file:
29
29
  after_success:
30
30
  - travis-heroku
31
31
  ```
32
+
33
+ After deployment, the following Heroku config variables will be set:
34
+
35
+ * DEPLOYED_SHA - the SHA of the git commit that was deployed
36
+ * DEPLOYED_TIME - the time of deployment
37
+
38
+ These are accessible in the application as environment variables.
@@ -18,4 +18,8 @@ end
18
18
 
19
19
  system 'git push heroku master'
20
20
 
21
+ heroku.put_config_vars ENV['HEROKU_APP'],
22
+ 'DEPLOYED_SHA' => `git rev-parse HEAD`,
23
+ 'DEPLOYED_TIME' => Time.now.utc.to_s
24
+
21
25
  heroku.delete_key key_id
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'travis_heroku'
3
- s.version = '0.0.4'
3
+ s.version = '0.0.5'
4
4
  s.summary = 'Easily trigger Heroku deploys from Travis builds.'
5
5
  s.description = s.summary
6
6
  s.homepage = 'https://github.com/mmb/travis-heroku'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis_heroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-02 00:00:00.000000000 Z
12
+ date: 2013-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: heroku-api