heroku_buddy 0.0.6 → 0.0.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/h +6 -5
  3. data/lib/heroku_buddy/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d04812fb252e30b51fb4838f6c7c3d52e5e38ee
4
- data.tar.gz: 7ee4f8e5ab20f28be0402f626e7a4abda760d5fd
3
+ metadata.gz: 8569e1e8b1268fb529bc284859c5dee81857bb9c
4
+ data.tar.gz: 55eb676c1612ab740741a72d089a78590a8d793b
5
5
  SHA512:
6
- metadata.gz: ac000ab56446db34ecd838b2c88ad7f1e256d16c186a2c3227a9d7c1e10c94c2e1cc4fe2c25e981e8c327a2dccfe6e64d5ff3f718252cbb61af74926536d5a9c
7
- data.tar.gz: ae5bf5381dca3be092cd7aef2e04f85d3a7f944ee46ac27e4ab9a1c9b2f13dcef28a0ca30f8eb800516d57410c1510694993ae9a6ccc453d00a21bdbf6b9fa4a
6
+ metadata.gz: ae6258cead3eb38f2dc9e913c5986e73e60aac787e1a4cb4d8d643b2ce0f79988b9fdf03a3dc41aa0d774fdffa6c2569d9278cfd67683d8f3f58872c2f5232f3
7
+ data.tar.gz: abd133117b0bbfc246efcaccc573f28e2afeff333d2c5bf9f4115f22fc78eb47add6b0aa455da5cd4d3912a9fd754ded1ecfe71c7b63d2ecd0d056db1a911ab0
data/bin/h CHANGED
@@ -2,12 +2,13 @@
2
2
 
3
3
  require 'json'
4
4
 
5
+ DOT_FILE_NAME = '.h_file'
6
+
5
7
  command = ARGV.shift
6
8
 
7
- config = { 'app_name' => nil }
8
- dot_file_name = '.h_file'
9
- if File.exists?(dot_file_name)
10
- contents = File.open(dot_file_name).read
9
+ config = { 'app_name' =DOT_FILE_NAME> nil }
10
+ if File.exists?(DOT_FILE_NAME)
11
+ contents = File.open(DOT_FILE_NAME).read
11
12
  if contents.size > 0
12
13
  config = JSON.parse contents
13
14
  end
@@ -32,7 +33,7 @@ def set_app
32
33
  config['app_name'] = nil
33
34
  puts "Unset heroku app.\n"
34
35
  end
35
- File.open(dot_file_name, File::WRONLY|File::CREAT) { |file| file.write config.to_json }
36
+ File.open(DOT_FILE_NAME, File::WRONLY|File::CREAT) { |file| file.write config.to_json }
36
37
  end
37
38
 
38
39
  def deploy
@@ -1,3 +1,3 @@
1
1
  module HerokuBuddy
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_buddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Furber