heroku-stage 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/heroku/stage.rb +2 -1
- data/lib/heroku/stage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97fa2459299c64d3b9c4ff2619a619eec6f05375
|
4
|
+
data.tar.gz: 7280d73cf255b87dfa4748e4d4c0d2cf268b8346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51c5f18c098e15b8f48218c9a1b66f5a57013439a5e941b5ec2cbc6831c8ca2fdd56515e66c5eb4d76a8eef527847c25c445e2d415c92ef4f9c19a62ccfb7a56
|
7
|
+
data.tar.gz: 3d0b7bee07421ec48e468a8f4eeece7c28e95a9c1362bf4634bc8f072290b3f01c04423730379b585b14c3a3d2d710fcbc62db975618fc485a7bba1ee4237cd6
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
### unreleased
|
6
|
+
|
7
|
+
### v0.2.0
|
8
|
+
|
9
|
+
* Adds support to rails test environment
|
10
|
+
|
5
11
|
### v0.1.0
|
6
12
|
|
7
13
|
* Initial release.
|
data/lib/heroku/stage.rb
CHANGED
@@ -16,7 +16,8 @@ module Heroku
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def heroku_pipeline_stage
|
19
|
-
Rails.env.development?
|
19
|
+
dev_or_test = Rails.env.development? || Rails.env.test?
|
20
|
+
dev_or_test ? '' : ENV.fetch('HEROKU_APP_NAME')[/staging|production/]
|
20
21
|
rescue KeyError
|
21
22
|
raise $!, enable_dyno_metadata_message($!), $!.backtrace
|
22
23
|
end
|
data/lib/heroku/stage/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku-stage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platanus
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-01-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.4.
|
141
|
+
rubygems_version: 2.4.8
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Read stage name from heroku pipelines
|