heroku_whiz 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 5800f5f32cb8db97a0533705239764f93beda9e9f5bd05440d2e3a29c82e2b68
4
- data.tar.gz: 6e3b4e3ff383822c3c6db9b62f4010f422e3a85cec747f70eba7f4d6e61885e1
3
+ metadata.gz: c3bc391ad209aec5d41a9e32f27ea91fe8c29d58c3e69d3432a41ab7848fc9ee
4
+ data.tar.gz: cf016eb8d4ee4acd39276401d90a82b6eafceb3649c0f4b57bd115f2dceda2c7
5
5
  SHA512:
6
- metadata.gz: '049384d28472b0b534610be275db670e977509be3af49132907ad6f5b6825ea20ae9c13a1f8e6a88196d023e27e1456fccc418ac250f506d89e96e6f7580f507'
7
- data.tar.gz: feef8ec4211b1e8e9d7a790a5ae06c35997b5fb62f2da53eec1d0eb91f68cbef49eee1e3914e8a21a251d22cb30a2e72f00483c4a7f4bbc8e43e217239737546
6
+ metadata.gz: 2d71fbce6a42e1998f6a733bf2ca12bbc6c9bb0eeee2a9e16020128395e0f1374b1dc54a953379afcfce7cddc1eae3920c9fae6f4669dd3947cb52296f31b69c
7
+ data.tar.gz: caf12a507bf4f55ee42ca4705c45acf2a6699434eb4fa2a2cc09edb5906d5e05f6065ea5d9d86b0db1b3bce7e132d59d9cdfc6f1648bed46a8900b5d66713c31
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ��g�5�+ *Vd�6h��0�p����3f��_�r�A��kv����������pr�3"{Չ�T$����(;ci.j�Eb��H�5�AJrhǰ�������ڻ&��no�_�9���* ��t��c�%V��[?t۶|`����p<��ĕ0��~U��Ý�I�es1���
2
- ���Dlw �C�9��o�?m��QA�����;�]E�F@����ftcZ��z�K�P�7��8�?��_FӲ\+w ��I��.ob�ܱѣ���e��-f�=��s�~�{����خ8߯-���c� -���oG�Ek��A�V�s�I��%��.Ir�Yw��eK�B��?#���#�4�5��6�C&�L�x5!۷��
1
+ R�����) ��{�h����D��5�
2
+ 7��2����ȝmF�ٜ�B��� o��.Ѻ�{������0��FFGdˌ2���ﲈF"��(]��U���K�aaq15^~�j
3
+ ���~��G�C�gv�?��V
data/lib/heroku_whiz.rb CHANGED
@@ -3,11 +3,11 @@
3
3
  # file: heroku_whiz.rb
4
4
 
5
5
  # created: 8th March 2022
6
- # description: Handy (experimental) Heroku gem for noobs to create a
6
+ # description: Handy (experimental) Heroku gem for noobs to create a
7
7
  # simple Heroku app in a whiz!
8
8
 
9
- # note: If this gem becomes outdated because of a change in the Heroku app
10
- # setup process, please inform the owner of this project via *Issues*
9
+ # note: If this gem becomes outdated because of a change in the Heroku app
10
+ # setup process, please inform the owner of this project via *Issues*
11
11
  # on GitHub (https://github.com/jrobertson/heroku_whiz).
12
12
 
13
13
 
@@ -24,7 +24,7 @@ require 'clipboard'
24
24
  # Example usage:
25
25
  #
26
26
  # hw = HerokuWhiz.new dir: '/home/james/heroku', template: 'rack', appname: 'hello2', debug: true
27
- #
27
+ #
28
28
  # hw.wipe_clean # removes the previous local app file directory
29
29
  # hw.create # creates the local app file directory
30
30
  # #hw.local_run # runs the web app locally
@@ -35,14 +35,14 @@ require 'clipboard'
35
35
 
36
36
  class HerokuWhiz
37
37
 
38
- def initialize(dir: '.', template: 'rack', appname: 'myapp',
38
+ def initialize(dir: '.', template: 'rack', appname: 'myapp',
39
39
  verbose: true, debug: false)
40
40
 
41
41
  @dir, @template, @appname, @verbose = dir, template, appname, verbose
42
42
 
43
43
  @app_path = File.join(@dir, @appname)
44
44
 
45
-
45
+
46
46
  end
47
47
 
48
48
  def app_url()
@@ -110,10 +110,10 @@ class HerokuWhiz
110
110
 
111
111
  #`heroku create #{@appname}`
112
112
 
113
- # the above statement was commented out because there's a
113
+ # the above statement was commented out because there's a
114
114
  # high probability the appname you have chosen has already been taken
115
115
  # e.g. hello2 => hello2.herokuapp.com
116
-
116
+
117
117
  `heroku create`
118
118
  sleep 2
119
119
 
@@ -135,7 +135,7 @@ class HerokuWhiz
135
135
  sleep 1
136
136
 
137
137
  Process.kill('QUIT', r.pid)
138
-
138
+
139
139
 
140
140
  puts 'SUCCESS! Ready to deploy' if s == "Hello World!\n"
141
141
 
@@ -151,9 +151,9 @@ class HerokuWhiz
151
151
  # write the config.ru file
152
152
  #
153
153
  config = %q(
154
- run lambda do |env|
154
+ run lambda {|env|
155
155
  [200, {'Content-Type'=>'text/plain'}, StringIO.new("Hello World!\n")]
156
- end)
156
+ })
157
157
  File.write File.join(@app_path, 'config.ru'), config
158
158
 
159
159
  # write the Gemfile
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_whiz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file