bin_install 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -3
- data/README.md +5 -31
- data/Rakefile +1 -1
- data/bin_install.gemspec +8 -6
- data/lib/bin_install/version.rb +1 -1
- data/lib/bin_install.rb +15 -1
- metadata +36 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46a4eafbeee7e282092f2994c6dd0b81f7a18a02ddfa5744ea6b7bc4559a990f
|
4
|
+
data.tar.gz: ac51ae5421b4bdfeb8e9952db1307216fdbf24ab42d5ffafc9c42cf7704e679c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a7851b3ed061d4dfcd1f727aa7ed2612989a9d74e974abe7d227f9f10a4bf0a1d301d22de38f33c02b6d38d925002ca172fa355d360a56b08638f5b37e72790
|
7
|
+
data.tar.gz: c44e84bb3f06a977f1407f9dda89c73bc74cc47ff4e40c0f60833181d1f2a1c345fa43bd1498c2dce0a537765fa3f547b56ffc78ddc703c07c801baf3774784b
|
data/Gemfile
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
3
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
4
|
|
5
|
-
# Specify your gem's dependencies in bin_install.gemspec
|
6
5
|
gemspec
|
data/README.md
CHANGED
@@ -1,43 +1,17 @@
|
|
1
1
|
# BinInstall
|
2
2
|
|
3
|
-
|
3
|
+
Simple DSL for creating install scripts.
|
4
4
|
|
5
|
-
|
5
|
+
It's used at [Deliv](https://www.deliv.co/) to increase developer happiness.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
-
|
12
|
-
gem 'bin_install'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install bin_install
|
11
|
+
gem 'bin_install'
|
22
12
|
|
23
13
|
## Usage
|
24
14
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/bin_install. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
-
|
37
|
-
## License
|
38
|
-
|
39
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
-
|
41
|
-
## Code of Conduct
|
15
|
+
To create a sample install script run:
|
42
16
|
|
43
|
-
|
17
|
+
$ rails generate bin_install:install
|
data/Rakefile
CHANGED
data/bin_install.gemspec
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
|
4
4
|
require 'bin_install/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'bin_install'
|
8
8
|
spec.version = BinInstall::VERSION
|
9
|
-
spec.author
|
9
|
+
spec.author = 'David Singer'
|
10
10
|
spec.email = 'david@ramaboo.com'
|
11
11
|
|
12
|
-
spec.summary = '
|
13
|
-
spec.description = '
|
12
|
+
spec.summary = 'Simple DSL for creating install scripts.'
|
13
|
+
spec.description = 'Simple DSL for creating install scripts.'
|
14
14
|
spec.homepage = 'https://github.com/ramaboo/bin_install'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
@@ -21,8 +21,10 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
|
+
spec.add_runtime_dependency 'awesome_print', '~> 1.8'
|
24
25
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
26
|
+
spec.add_development_dependency 'pry', '>= 0.10.0'
|
25
27
|
spec.add_development_dependency 'rake', '~> 10.0'
|
26
28
|
spec.add_development_dependency 'rspec', '~> 3.6'
|
27
|
-
spec.add_development_dependency '
|
29
|
+
spec.add_development_dependency 'rubocop', '~> 0.56.0'
|
28
30
|
end
|
data/lib/bin_install/version.rb
CHANGED
data/lib/bin_install.rb
CHANGED
@@ -1,5 +1,19 @@
|
|
1
|
+
require 'awesome_print'
|
2
|
+
|
3
|
+
require 'bin_install/brew'
|
4
|
+
require 'bin_install/node'
|
5
|
+
require 'bin_install/postgres'
|
6
|
+
require 'bin_install/rails'
|
1
7
|
require 'bin_install/version'
|
2
8
|
|
3
9
|
module BinInstall
|
4
|
-
|
10
|
+
def self.system!(*args)
|
11
|
+
system(*args) || abort("Command `#{args}` failed!".red)
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.install_gems!
|
15
|
+
puts 'Installing gems...'.white
|
16
|
+
system!('gem install bundler --conservative')
|
17
|
+
system!('bundle install')
|
18
|
+
end
|
5
19
|
end
|
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.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Singer
|
@@ -10,6 +10,20 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: awesome_print
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +38,20 @@ dependencies:
|
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.10.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.0
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rake
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,20 +81,20 @@ dependencies:
|
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: '3.6'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
84
|
+
name: rubocop
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
58
86
|
requirements:
|
59
|
-
- - "
|
87
|
+
- - "~>"
|
60
88
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
89
|
+
version: 0.56.0
|
62
90
|
type: :development
|
63
91
|
prerelease: false
|
64
92
|
version_requirements: !ruby/object:Gem::Requirement
|
65
93
|
requirements:
|
66
|
-
- - "
|
94
|
+
- - "~>"
|
67
95
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
69
|
-
description:
|
96
|
+
version: 0.56.0
|
97
|
+
description: Simple DSL for creating install scripts.
|
70
98
|
email: david@ramaboo.com
|
71
99
|
executables: []
|
72
100
|
extensions: []
|
@@ -108,5 +136,5 @@ rubyforge_project:
|
|
108
136
|
rubygems_version: 2.7.6
|
109
137
|
signing_key:
|
110
138
|
specification_version: 4
|
111
|
-
summary:
|
139
|
+
summary: Simple DSL for creating install scripts.
|
112
140
|
test_files: []
|