bin_install 0.0.19 → 0.0.20

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f539113eb0dd1752b92b7d6636438a472daf952abdf8cb4f58e7fa12bbad9c86
4
- data.tar.gz: d1caf23400f476dacccb7d93668d93acb3cf89cdfb360d0d67a5651654ddafbf
3
+ metadata.gz: a62b5ae2ce4fecb95185c52b43dea86192700f2dbea10f480471719baf32f235
4
+ data.tar.gz: 7550e53504e74804f3204905b084ad0994f06457c80989f6a4260f13a6b98b75
5
5
  SHA512:
6
- metadata.gz: ec325ef9fc88b650fe9b5ff4ae8d44efafc21f654c19b5ce098528e219e319be7b7f0c7d0847b4bde0cb2a3f370d537c4738ac53a818198b8909f91cfcdf8e20
7
- data.tar.gz: 987b644d71cdef1090d28b79941c1b33273155517013d7aed2f161befa9900a495cacad4158728f06dfb9a20324e184c7faf30f56406ed0a4b79014170d20f20
6
+ metadata.gz: 887c53d589428cf9cee8348212e9404f1ae64933f1a1173d341eb44c8d87afd4f09c623d899859b552f78062c466a229e51a7dd7b07e071454d14d4777406508
7
+ data.tar.gz: 0de80f18edde2ddba2eb7e3dd5e034a6e55d839bff2ecc2029ba5ac62dcc529dca141d45baccc4eba4ace4d1e65d8fd621e81591812714f2f2773998d4d31448
@@ -1,13 +1,13 @@
1
1
  module BinInstall
2
2
  module Rails
3
- def self.db_setup(environment = 'development')
4
- puts 'Preparing database...'.white
5
- rails_or_rake("db:setup RAILS_ENV=#{environment}")
3
+ def self.db_create(environment = 'development')
4
+ puts 'Creating database...'.white
5
+ rails_or_rake("db:create RAILS_ENV=#{environment}")
6
6
  end
7
7
 
8
- def self.db_setup!(environment = 'development')
9
- puts 'Preparing database...'.white
10
- rails_or_rake!("db:setup RAILS_ENV=#{environment}")
8
+ def self.db_create!(environment = 'development')
9
+ puts 'Creating database...'.white
10
+ rails_or_rake!("db:create RAILS_ENV=#{environment}")
11
11
  end
12
12
 
13
13
  def self.db_migrate(environment = 'development')
@@ -30,6 +30,16 @@ module BinInstall
30
30
  rails_or_rake!("db:reset RAILS_ENV=#{environment}")
31
31
  end
32
32
 
33
+ def self.db_setup(environment = 'development')
34
+ puts 'Preparing database...'.white
35
+ rails_or_rake("db:setup RAILS_ENV=#{environment}")
36
+ end
37
+
38
+ def self.db_setup!(environment = 'development')
39
+ puts 'Preparing database...'.white
40
+ rails_or_rake!("db:setup RAILS_ENV=#{environment}")
41
+ end
42
+
33
43
  def self.clear
34
44
  puts 'Removing unnecessary files...'.white
35
45
  rails_or_rake('log:clear')
@@ -21,8 +21,7 @@ module BinInstall
21
21
  require_doctor!
22
22
  end
23
23
 
24
- def self.install_ruby(version = nil)
25
- version ||= Ruby.required_ruby_version
24
+ def self.install_ruby(version = Ruby.required_ruby_version)
26
25
  puts "Installing Ruby #{version}...".white
27
26
 
28
27
  if version
@@ -36,8 +35,7 @@ module BinInstall
36
35
  end
37
36
  end
38
37
 
39
- def self.install_ruby!(version = nil)
40
- version ||= Ruby.required_ruby_version
38
+ def self.install_ruby!(version = Ruby.required_ruby_version)
41
39
  puts "Installing Ruby #{version}...".white
42
40
 
43
41
  if version
@@ -42,12 +42,14 @@ module BinInstall
42
42
  def self.wait(seconds = 10)
43
43
  print 'Please wait: '.purple
44
44
  seconds.downto(1) do |i|
45
- print "#{i}".purple
45
+ print i.to_s.purple
46
46
  3.times do
47
- sleep(1/3.0)
47
+ sleep(0.25)
48
48
  print '.'.purple
49
49
  end
50
+ sleep(0.25)
50
51
  end
52
+ print "\n"
51
53
  end
52
54
  end
53
55
  end
@@ -1,3 +1,3 @@
1
1
  module BinInstall
2
- VERSION = '0.0.19'.freeze
2
+ VERSION = '0.0.20'.freeze
3
3
  end
@@ -5,7 +5,7 @@ APP_ROOT = File.expand_path('..', __dir__)
5
5
 
6
6
  Dir.chdir(APP_ROOT) do
7
7
  BinInstall::Brew.require!
8
- BinInstall::OhMyZsh.install
8
+ BinInstall::Zsh::OhMyZsh.install
9
9
  BinInstall::Ruby.install
10
10
  BinInstall::Postgres.install
11
11
  BinInstall::Postgres.create_superuser('postgres')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bin_install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Singer