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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83eb5ffcfa3d8b8b20e4842c0dde8959e31d9664
4
- data.tar.gz: ecf4b7077f0f9d55f9ea24f5b4d52e55fbf5851e
3
+ metadata.gz: 97fa2459299c64d3b9c4ff2619a619eec6f05375
4
+ data.tar.gz: 7280d73cf255b87dfa4748e4d4c0d2cf268b8346
5
5
  SHA512:
6
- metadata.gz: 831bd6fe38287543da56604868ad15715dd1b332aacf111745f46a898f0ec2952f2662367718d6536728cb8284ec8ceb3a445653d5d2d977a9862a1a2c8fc091
7
- data.tar.gz: 2e3e0f9036053cd08a376e1ba1443981897c77ec3f349b319a5d5502dfc14ba46f6166e84e4362bc9f04aa8500dc30de8a7a2927b3dc4b47884e4cd82fb530e0
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? ? '' : ENV.fetch('HEROKU_APP_NAME')[/staging|production/]
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
@@ -1,5 +1,5 @@
1
1
  module Heroku
2
2
  module Stage
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
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.1.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: 2016-12-13 00:00:00.000000000 Z
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.5
141
+ rubygems_version: 2.4.8
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Read stage name from heroku pipelines