manageheroku 0.0.1 → 0.0.2

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: c2d02b1fdc27479ab5f8ead9f8c101edab42bb43
4
- data.tar.gz: 7dff69b335c0cf9513dd03535b7f047d323a3b5c
3
+ metadata.gz: c8af28afd8a378ba3db9360b88f200f128d98ccb
4
+ data.tar.gz: b5fac04fda4bd793698bca29c908421d136a6d2c
5
5
  SHA512:
6
- metadata.gz: df9ca8c44525386e0d7dc7d08b33691fe866bd12c17660d8d6d89608b59604c1c19763dad007cdd3edac853511fa11084b6762963da7cf3ffc29d81af5eefe59
7
- data.tar.gz: 727ecfb5925da2b619992731a75b65cda0bb6e6ee3a9ab49a419aa6f1ea7ff3868764b100dd5724a6cc82246d5f5472d01dfd86b681480580c56c249aff023e5
6
+ metadata.gz: b1e334fb457f22fb4dd89b93c977b090361a1be2ec0cd5ec04367760d28c26df112d1c3c48b553f2dc5cd887a518e87488159386c7bfca4866bb66d67750adbf
7
+ data.tar.gz: 6f35974bc33580d35ae78b67620fbc43ab2f25fd1a9d4d655d424cd187896fab32ddea1f668c0b11c7362b3f1fffd2add26bdc75e703cffee39a2f27123f4d2b
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem "minitest"
3
4
  # Specify your gem's dependencies in manageheroku.gemspec
4
5
  gemspec
data/README.md CHANGED
@@ -27,3 +27,15 @@ TODO: Write usage instructions here
27
27
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
28
  4. Push to the branch (`git push origin my-new-feature`)
29
29
  5. Create a new Pull Request
30
+
31
+ ## Releases
32
+
33
+ Bundler created the gem boilerplate and can release it for us.
34
+
35
+ Test with
36
+
37
+ `gem build manageheroku.gemspec`
38
+
39
+ For Realz
40
+
41
+ `bundle exec rake release`
@@ -1,9 +1,10 @@
1
1
  require 'yaml'
2
+ require 'erb'
2
3
  module Manageheroku
3
4
  class Conf
4
5
  def initialize(conf_file)
5
6
  @conf_data = {}
6
- @conf_data = YAML.load_file(conf_file)
7
+ @conf_data = YAML.load(ERB.new(Pathname.new(conf_file).read).result)
7
8
  end
8
9
 
9
10
  def oauth_token
@@ -1,3 +1,3 @@
1
1
  module Manageheroku
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/test/conf_test.rb CHANGED
@@ -12,6 +12,12 @@ class ConfTest < MiniTest::Test
12
12
  conf.formations.first.name.must_equal "myapp-development"
13
13
  conf.formations.last.name.must_equal "myapp-performance"
14
14
  end
15
+
16
+ it "supports ERB magic in the config file" do
17
+ ENV["TEST_VAL"] = "erb_is_great"
18
+ conf = Manageheroku::Conf.new(File.join(File.dirname(__FILE__), 'sample_conf.yml'))
19
+ conf.oauth_token.must_equal "erb_is_great"
20
+ end
15
21
  end
16
22
  end
17
23
 
data/test/sample_conf.yml CHANGED
@@ -1,4 +1,4 @@
1
- oauth-token: "the-magic-oauth-token"
1
+ oauth-token: <%= ENV["TEST_VAL"] || "the-magic-oauth-token" %>
2
2
  formations:
3
3
  - name: "myapp-development"
4
4
  procs:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageheroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Cronemeyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2016-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: platform-api