generic_app 3.0.4 → 3.0.5

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: 22975dffae4434e7e4d4286919ff2592f77ca83c
4
- data.tar.gz: f73322ca443b846d8751c135366de592df9a60aa
3
+ metadata.gz: d94c2f676dcb26a024e27fc1d66c09f04b4e9df4
4
+ data.tar.gz: 93ef76caf9cb69c8090f25312b7ef202e4b6fed2
5
5
  SHA512:
6
- metadata.gz: 0302e1473311ef4d534435b9e0ba688bc18336850fac5b157ba75cb5db289097f3c5e82957634fd76f8a938ea954c9cd846e0f2d44a0cc9dd88c7c1adbc8de4c
7
- data.tar.gz: 1b1b952617a8349140f98be38bf8ff7b6e2e7e9038d322a81c2ec181d04c13ac9fb23d7914c5678f366e1bd6959d271db77b1b9037030798b26991d3473e6a0c
6
+ metadata.gz: 1074242d470b1c59dbd891ccc72603a203ad6ffbddf2b1ff3731ff3b4a258723ecf7f3e475429742557e74c46812ef33fee528c95d01cdab83e5e97bf78d8ab2
7
+ data.tar.gz: 7668c96fcb58db5ac2b11fbb7838693abec2db9f9eeea0a0c745857ab8864e66c2a04b58f443cb2d882bde2dfbe24b8a820355384cf1d2bf9df679b0af41e72d
data/lib/generic_app.rb CHANGED
@@ -4,6 +4,7 @@ require 'generic_app/version'
4
4
  require 'string_in_file'
5
5
  require 'line_containing'
6
6
  require 'remove_double_blank'
7
+ require 'open-uri'
7
8
 
8
9
  #
9
10
  module GenericApp
@@ -12,6 +13,7 @@ module GenericApp
12
13
  t1 = Thread.new { git_clone(subdir_name) }
13
14
  t1.join
14
15
  remove_neutrino(subdir_name)
16
+ update_pg_setup(subdir_name)
15
17
  remove_heroku_name(subdir_name)
16
18
  email_update(subdir_name, email)
17
19
  remove_badges(subdir_name)
@@ -29,6 +31,12 @@ module GenericApp
29
31
  File.delete("#{subdir_name}/neutrino.sh")
30
32
  end
31
33
 
34
+ def self.update_pg_setup(subdir_name)
35
+ open("#{subdir_name}/pg_setup.sh", 'w') do |f|
36
+ f.write open('https://gist.githubusercontent.com/jhsu802701/e4d60a972893f78da0f6906a0beeac06/raw/293bd0e74adbfa6b47c81332aa81b84d89770518/pg_setup.sh').read
37
+ end
38
+ end
39
+
32
40
  def self.git_clone(subdir_name)
33
41
  puts '------------------------------------'
34
42
  puts 'Downloading the Generic App Template'
@@ -1,3 +1,3 @@
1
1
  module GenericApp
2
- VERSION = '3.0.4'.freeze
2
+ VERSION = '3.0.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generic_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Hsu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-02 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler