bin_install 0.0.30 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/build +9 -5
- data/bin/release +13 -9
- data/bin_install.gemspec +2 -2
- data/lib/bin_install/postgres.rb +1 -1
- data/lib/bin_install/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f1b55cfd879b0e355bbd308276d926aa905f9434fdc8ba4f21ab08e277a1ca7
|
4
|
+
data.tar.gz: 18e14e305685fc4488fde22b43b428dfe74ced4272c0ed4896218dc872b8ccd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e94f481695fe1a71e461d6b9edf74080dfb828178460a2122c23aba4707da026907e20e2f190db85f465f9a7ff4a2b2b91050941a4caafc06b4d3af92407d132
|
7
|
+
data.tar.gz: 83713a84d78c110d0d09be838dc2c6c229ecb7efd484a68c555bafe4110b6ed7ce2bbe39d1ce51e1158ea14046b880b441d1243a2625ff23454d6f17f922968e
|
data/bin/build
CHANGED
@@ -4,8 +4,12 @@ require 'bundler/setup'
|
|
4
4
|
require 'awesome_print'
|
5
5
|
require 'bin_install'
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
APP_ROOT = File.expand_path('..', __dir__)
|
8
|
+
|
9
|
+
Dir.chdir(APP_ROOT) do
|
10
|
+
puts "Building bin_install #{BinInstall::VERSION}.".white
|
11
|
+
system('git pull origin master')
|
12
|
+
system('gem build bin_install.gemspec')
|
13
|
+
system("gem install bin_install-#{BinInstall::VERSION}.gem")
|
14
|
+
puts 'Done.'.green
|
15
|
+
end
|
data/bin/release
CHANGED
@@ -4,12 +4,16 @@ require 'bundler/setup'
|
|
4
4
|
require 'awesome_print'
|
5
5
|
require 'bin_install'
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
system('git
|
12
|
-
system('
|
13
|
-
system(
|
14
|
-
system(
|
15
|
-
|
7
|
+
APP_ROOT = File.expand_path('..', __dir__)
|
8
|
+
|
9
|
+
Dir.chdir(APP_ROOT) do
|
10
|
+
puts "Releasing bin_install #{BinInstall::VERSION}.".white
|
11
|
+
system('git pull origin master')
|
12
|
+
system('git add --all')
|
13
|
+
system(%(git commit -am 'Releasing #{BinInstall::VERSION}'))
|
14
|
+
system('git push origin master')
|
15
|
+
system('gem build bin_install.gemspec')
|
16
|
+
system("gem install bin_install-#{BinInstall::VERSION}.gem")
|
17
|
+
system("gem push bin_install-#{BinInstall::VERSION}.gem")
|
18
|
+
puts "Done. bin_install #{BinInstall::VERSION} has been released.".green
|
19
|
+
end
|
data/bin_install.gemspec
CHANGED
@@ -23,9 +23,9 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_runtime_dependency 'awesome_print', '~> 1.8'
|
25
25
|
|
26
|
-
spec.add_development_dependency 'bundler', '~>
|
26
|
+
spec.add_development_dependency 'bundler', '~> 2'
|
27
27
|
spec.add_development_dependency 'pry', '~> 0.11'
|
28
28
|
spec.add_development_dependency 'rake', '~> 12'
|
29
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3.8'
|
30
30
|
spec.add_development_dependency 'rubocop', '~> 0.56.0'
|
31
31
|
end
|
data/lib/bin_install/postgres.rb
CHANGED
@@ -11,7 +11,7 @@ module BinInstall
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.create_superuser(username = 'postgres')
|
14
|
-
puts 'Creating superuser postgres for postgresqlSQL...'.
|
14
|
+
puts 'Creating superuser postgres for postgresqlSQL...'.white
|
15
15
|
system("createuser --superuser #{username}")
|
16
16
|
end
|
17
17
|
|
data/lib/bin_install/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bin_install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Singer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
75
|
+
version: '3.8'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
82
|
+
version: '3.8'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,8 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.7.6
|
166
|
+
rubygems_version: 3.0.2
|
168
167
|
signing_key:
|
169
168
|
specification_version: 4
|
170
169
|
summary: Simple DSL for creating install scripts.
|