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 +4 -4
- data/lib/generic_app.rb +8 -0
- data/lib/generic_app/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d94c2f676dcb26a024e27fc1d66c09f04b4e9df4
|
4
|
+
data.tar.gz: 93ef76caf9cb69c8090f25312b7ef202e4b6fed2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
data/lib/generic_app/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|