rbdock 0.0.1
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 +7 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +35 -0
- data/Rakefile +7 -0
- data/Vagrantfile +20 -0
- data/bin/rbdock +4 -0
- data/lib/rbdock.rb +8 -0
- data/lib/rbdock/command.rb +27 -0
- data/lib/rbdock/command/options.rb +102 -0
- data/lib/rbdock/create.rb +142 -0
- data/lib/rbdock/helpers.rb +5 -0
- data/lib/rbdock/version.rb +3 -0
- data/rbdock.gemspec +28 -0
- data/spec/spec_helper.rb +6 -0
- data/templates/bundler.erb +3 -0
- data/templates/centos_base_packages.erb +10 -0
- data/templates/rbenv_bundler.erb +6 -0
- data/templates/rbenv_ruby.erb +14 -0
- data/templates/ruby.erb +5 -0
- data/templates/rvm_bundler.erb +5 -0
- data/templates/rvm_ruby.erb +11 -0
- data/templates/ubuntu_base_packages.erb +9 -0
- metadata +170 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 52c63e7f97f9201d2d34fb4ce3467b15b815d8b9
|
4
|
+
data.tar.gz: 428161b610a7a8202fe9d4f448945c4768b021c6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dea1689fc832bff81f9446f47d442a328faa82357f22930c3a02d8b417b65a21a5a8d36093543391565f3ae036f6d5a53e269099835cd48bd9c6c154f8715890
|
7
|
+
data.tar.gz: 8f96756fed9a1d1b2ed138a669dcded97b337bc43d11636ce2fbeacdad293e071e8d8ecc621543db22f42d24ca491da4f500b88b6691316e7ca51494c53a39c2
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 tcnksm
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# rbdock
|
2
|
+
|
3
|
+
Generate Dockerfile to build ruby ready image.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'rbdock'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install rbdock
|
18
|
+
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
```
|
23
|
+
$ rbdock create 2.0.0-p353
|
24
|
+
$ rbdock create 2.0.0-p353 -i centos
|
25
|
+
$ rbdock create 2.0.0-p353 1.9.3-p484 -i ubuntu
|
26
|
+
```
|
27
|
+
|
28
|
+
|
29
|
+
## Contributing
|
30
|
+
|
31
|
+
1. Fork it ( http://github.com/<my-github-username>/rbdock/fork )
|
32
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
33
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
34
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
35
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/Vagrantfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
DOCKER_URL = "192.168.50.4"
|
5
|
+
DOCKER_PORT = 5422
|
6
|
+
|
7
|
+
Vagrant.configure("2") do |config|
|
8
|
+
config.vm.box = "precise64"
|
9
|
+
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
|
10
|
+
config.vm.network :private_network, ip: DOCKER_URL
|
11
|
+
config.vm.provision :docker do |d|
|
12
|
+
d.pull_images "ubuntu"
|
13
|
+
d.pull_images "centos"
|
14
|
+
end
|
15
|
+
config.vm.provision :shell, :inline => <<-PREPARE
|
16
|
+
sudo sed -i -e 's/DOCKER_OPTS=/DOCKER_OPTS=\"-H 0.0.0.0:#{DOCKER_PORT}\"/g' /etc/init/docker.conf
|
17
|
+
sudo service docker stop
|
18
|
+
sudo service docker start
|
19
|
+
PREPARE
|
20
|
+
end
|
data/bin/rbdock
ADDED
data/lib/rbdock.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
module Rbdock
|
2
|
+
|
3
|
+
class Command
|
4
|
+
autoload :Options, "rbdock/command/options"
|
5
|
+
|
6
|
+
def self.run argv
|
7
|
+
new(argv).execute
|
8
|
+
end
|
9
|
+
|
10
|
+
def initialize argv
|
11
|
+
@argv = argv
|
12
|
+
end
|
13
|
+
|
14
|
+
def execute
|
15
|
+
options = Options.parse!(@argv)
|
16
|
+
sub_command = options.delete(:command)
|
17
|
+
|
18
|
+
case sub_command
|
19
|
+
when 'create'
|
20
|
+
Rbdock::Create.run(options)
|
21
|
+
end
|
22
|
+
rescue => e
|
23
|
+
abort "Error: #{e.message}"
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,102 @@
|
|
1
|
+
require 'optparse'
|
2
|
+
|
3
|
+
module Rbdock
|
4
|
+
class Command
|
5
|
+
module Options
|
6
|
+
|
7
|
+
def self.parse!(argv)
|
8
|
+
options = {}
|
9
|
+
|
10
|
+
command_parser = create_command_parser
|
11
|
+
sub_command_parser = create_sub_command_parser(options)
|
12
|
+
|
13
|
+
begin
|
14
|
+
command_parser.order!(argv)
|
15
|
+
options[:command] = argv.shift
|
16
|
+
sub_command_parser[options[:command]].parse!(argv)
|
17
|
+
ruby_version_perser options, argv
|
18
|
+
rescue OptionParser::MissingArgument, OptionParser::InvalidOption, ArgumentError => e
|
19
|
+
abort e.message
|
20
|
+
end
|
21
|
+
|
22
|
+
options
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.create_command_parser
|
26
|
+
OptionParser.new do |opt|
|
27
|
+
opt.on_head('-v','--version','Show version') {
|
28
|
+
opt.version = Rbdock::VERSION
|
29
|
+
STDERR.puts opt.ver
|
30
|
+
exit
|
31
|
+
}
|
32
|
+
|
33
|
+
opt.banner = "Usage: #{opt.program_name} [-h|--help] [-v|--version] <command> [<args>]"
|
34
|
+
opt.separator ''
|
35
|
+
opt.separator "#{opt.program_name} Available Commands:"
|
36
|
+
sub_command_help.each do |command|
|
37
|
+
opt.separator [opt.summary_indent, command[:name].ljust(40), command[:summary]].join(' ')
|
38
|
+
end
|
39
|
+
opt.on_head('-h','--help','Show this message') {
|
40
|
+
STDERR.puts opt.help
|
41
|
+
exit
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.create_sub_command_parser options
|
47
|
+
parser = Hash.new do |k,v|
|
48
|
+
raise ArgumentError, "'#{v}' is not sub command."
|
49
|
+
end
|
50
|
+
|
51
|
+
parser['create'] = OptionParser.new do |opt|
|
52
|
+
options[:image] = "ubuntu" # default value
|
53
|
+
opt.banner = 'Usage: create <ruby-versions> [<args>]'
|
54
|
+
opt.on('-i name','--image=name', 'Set image name(ubuntu|centos)') { |val|
|
55
|
+
options[:image] = val
|
56
|
+
}
|
57
|
+
opt.on('--rbenv', desc='Use rbenv') {|f| options[:use_rbenv] = true }
|
58
|
+
opt.on('--rvm', desc='Use rvm') {|f| options[:use_rvm] = true }
|
59
|
+
opt.on('-l','--list', 'List all available ruby versions') { list_ruby_versions }
|
60
|
+
opt.on_tail('-h','--help', 'Show this message') { help_sub_command(opt) }
|
61
|
+
end
|
62
|
+
|
63
|
+
parser
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.ruby_version_perser options, argv
|
67
|
+
if options[:command] == 'create'
|
68
|
+
raise ArgumentError, "#{options[:command]} ruby versions not founnd." if argv.empty?
|
69
|
+
check_version_avaiable argv
|
70
|
+
options[:ruby_versions] = argv
|
71
|
+
end
|
72
|
+
options
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.check_version_avaiable argv
|
76
|
+
argv.each do |v|
|
77
|
+
if not Rbdock::Create.ruby_versions.include? v
|
78
|
+
raise ArgumentError, "Definition not found: #{v} \n\nYou can list all available ruby versions with `rbdock create --list'."
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def self.list_ruby_versions
|
84
|
+
STDERR.print "Available versions:\n "
|
85
|
+
STDERR.print Rbdock::Create.ruby_versions.join("\n ")
|
86
|
+
STDERR.puts
|
87
|
+
exit
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.help_sub_command parser
|
91
|
+
STDERR.puts parser.help
|
92
|
+
exit
|
93
|
+
end
|
94
|
+
|
95
|
+
def self.sub_command_help
|
96
|
+
[
|
97
|
+
{name: 'create <ruby-versions> -i <image>', summary: 'Generate Dockerfile which installs <ruby-versions>'}
|
98
|
+
]
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,142 @@
|
|
1
|
+
require "erubis"
|
2
|
+
|
3
|
+
module Rbdock
|
4
|
+
|
5
|
+
class Create
|
6
|
+
|
7
|
+
def self.run options
|
8
|
+
new(options).generate
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize options
|
12
|
+
@image = options[:image]
|
13
|
+
@ruby_versions = options[:ruby_versions]
|
14
|
+
@use_rbenv = options[:use_rbenv]
|
15
|
+
@use_rvm = options[:use_rvm]
|
16
|
+
end
|
17
|
+
|
18
|
+
def generate
|
19
|
+
if @use_rbenv
|
20
|
+
safe_write rbenv_template
|
21
|
+
elsif @use_rvm
|
22
|
+
safe_write rvm_template
|
23
|
+
elsif mutiple_rubies?
|
24
|
+
# Use rbenv for default installing multiple rubies
|
25
|
+
safe_write rbenv_template
|
26
|
+
else
|
27
|
+
safe_write default_template
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def safe_write content
|
32
|
+
if File.exist? 'Dockerfile'
|
33
|
+
STDERR.print "Overwrite Dockerfile? y/n: "
|
34
|
+
if $stdin.gets.chomp == 'y'
|
35
|
+
File.open('Dockerfile','w') do |f|
|
36
|
+
f.puts content
|
37
|
+
end
|
38
|
+
STDERR.puts 'Dockerfile is successfully generated'
|
39
|
+
else
|
40
|
+
puts content
|
41
|
+
end
|
42
|
+
else
|
43
|
+
File.open('Dockerfile','w') do |f|
|
44
|
+
f.puts content
|
45
|
+
end
|
46
|
+
STDERR.puts 'Dockerfile is successfully generated'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def mutiple_rubies?
|
51
|
+
@ruby_versions.length > 1
|
52
|
+
end
|
53
|
+
|
54
|
+
def default_template
|
55
|
+
template_path = Rbdock.source_root.join("templates/#{@image}_base_packages.erb")
|
56
|
+
template = Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
57
|
+
|
58
|
+
template_path = Rbdock.source_root.join("templates/ruby.erb")
|
59
|
+
template << Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
60
|
+
|
61
|
+
template_path = Rbdock.source_root.join("templates/bundler.erb")
|
62
|
+
template << Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
63
|
+
end
|
64
|
+
|
65
|
+
def rbenv_template
|
66
|
+
template_path = Rbdock.source_root.join("templates/#{@image}_base_packages.erb")
|
67
|
+
template = Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
68
|
+
|
69
|
+
template_path = Rbdock.source_root.join("templates/rbenv_ruby.erb")
|
70
|
+
template << Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
71
|
+
|
72
|
+
template_path = Rbdock.source_root.join("templates/rbenv_bundler.erb")
|
73
|
+
template << Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
74
|
+
end
|
75
|
+
|
76
|
+
def rvm_template
|
77
|
+
template_path = Rbdock.source_root.join("templates/#{@image}_base_packages.erb")
|
78
|
+
template = Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
79
|
+
|
80
|
+
template_path = Rbdock.source_root.join("templates/rvm_ruby.erb")
|
81
|
+
template << Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
82
|
+
|
83
|
+
template_path = Rbdock.source_root.join("templates/rvm_bundler.erb")
|
84
|
+
template << Erubis::Eruby.new(template_path.read, trim: true).result(binding)
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.ruby_versions
|
88
|
+
[
|
89
|
+
"1.8.6-p383",
|
90
|
+
"1.8.6-p420",
|
91
|
+
"1.8.7-p249",
|
92
|
+
"1.8.7-p302",
|
93
|
+
"1.8.7-p334",
|
94
|
+
"1.8.7-p352",
|
95
|
+
"1.8.7-p357",
|
96
|
+
"1.8.7-p358",
|
97
|
+
"1.8.7-p370",
|
98
|
+
"1.8.7-p371",
|
99
|
+
"1.8.7-p374",
|
100
|
+
"1.8.7-p375",
|
101
|
+
"1.9.1-p378",
|
102
|
+
"1.9.1-p430",
|
103
|
+
"1.9.2-p0",
|
104
|
+
"1.9.2-p180",
|
105
|
+
"1.9.2-p290",
|
106
|
+
"1.9.2-p318",
|
107
|
+
"1.9.2-p320",
|
108
|
+
"1.9.2-p326",
|
109
|
+
"1.9.3-dev",
|
110
|
+
"1.9.3-p0",
|
111
|
+
"1.9.3-p125",
|
112
|
+
"1.9.3-p194",
|
113
|
+
"1.9.3-p286",
|
114
|
+
"1.9.3-p327",
|
115
|
+
"1.9.3-p362",
|
116
|
+
"1.9.3-p374",
|
117
|
+
"1.9.3-p385",
|
118
|
+
"1.9.3-p392",
|
119
|
+
"1.9.3-p429",
|
120
|
+
"1.9.3-p448",
|
121
|
+
"1.9.3-p484",
|
122
|
+
"1.9.3-preview1",
|
123
|
+
"1.9.3-rc1",
|
124
|
+
"2.0.0-dev",
|
125
|
+
"2.0.0-p0",
|
126
|
+
"2.0.0-p195",
|
127
|
+
"2.0.0-p247",
|
128
|
+
"2.0.0-p353",
|
129
|
+
"2.0.0-preview1",
|
130
|
+
"2.0.0-preview2",
|
131
|
+
"2.0.0-rc1",
|
132
|
+
"2.0.0-rc2",
|
133
|
+
"2.1.0",
|
134
|
+
"2.1.0-dev",
|
135
|
+
"2.1.0-preview1",
|
136
|
+
"2.1.0-preview2",
|
137
|
+
"2.1.0-rc1",
|
138
|
+
"2.2.0-dev"
|
139
|
+
]
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
data/rbdock.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rbdock/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rbdock"
|
8
|
+
spec.version = Rbdock::VERSION
|
9
|
+
spec.authors = ["tcnksm"]
|
10
|
+
spec.email = ["nsd22843@gmail.com"]
|
11
|
+
spec.summary = %q{Generate Dockerfile which install ruby.}
|
12
|
+
spec.description = %q{Generate Dockerfile which install ruby.}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "erubis", "~> 2.7.0"
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
23
|
+
spec.add_development_dependency "rake"
|
24
|
+
spec.add_development_dependency "rspec", ">= 2.13"
|
25
|
+
spec.add_development_dependency "guard-rspec"
|
26
|
+
spec.add_development_dependency "yard", "~> 0.8"
|
27
|
+
spec.add_development_dependency "redcarpet", "~> 2.2"
|
28
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
FROM centos
|
2
|
+
|
3
|
+
# Install basic packages
|
4
|
+
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
|
5
|
+
RUN yum -y update
|
6
|
+
RUN yum install -y make gcc gcc-c++ wget curl git
|
7
|
+
RUN yum install -y openssl-devel zlib-devel readline-devel libffi-devel httpd-devel libyaml-devel
|
8
|
+
RUN yum install -y bzip2 autoconf automake libtool bison iconv-devel
|
9
|
+
RUN yum --enablerepo=epel -y install libyaml-devel
|
10
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Install rbenv and ruby-build
|
2
|
+
RUN git clone https://github.com/sstephenson/rbenv.git /root/.rbenv
|
3
|
+
RUN git clone https://github.com/sstephenson/ruby-build.git /root/.rbenv/plugins/ruby-build
|
4
|
+
RUN ./root/.rbenv/plugins/ruby-build/install.sh
|
5
|
+
ENV PATH /root/.rbenv/bin:$PATH
|
6
|
+
RUN echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh # or /etc/profile
|
7
|
+
RUN echo 'eval "$(rbenv init -)"' >> .bashrc
|
8
|
+
|
9
|
+
# Install multiple versions of ruby
|
10
|
+
ENV CONFIGURE_OPTS --disable-install-doc
|
11
|
+
<% @ruby_versions.each do |v| %>
|
12
|
+
RUN rbenv install <%= v %>
|
13
|
+
<% end %>
|
14
|
+
|
data/templates/ruby.erb
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
# Install ruby
|
2
|
+
RUN wget -P /root/src ftp://ftp.ruby-lang.org/pub/ruby/ruby-<%= @ruby_versions[0] %>.tar.gz
|
3
|
+
RUN cd /root/src; tar xvf ruby-<%= @ruby_versions[0] %>.tar.gz
|
4
|
+
RUN cd /root/src/ruby-<%= @ruby_versions[0] %>; ./configure --disable-install-doc; make install
|
5
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Install rvm
|
2
|
+
RUN curl -L https://get.rvm.io | bash -s stable
|
3
|
+
RUN echo 'source /usr/local/rvm/scripts/rvm' >> /etc/profile.d/rvm.sh
|
4
|
+
RUN echo 'source /usr/local/rvm/scripts/rvm' >> .bashrc
|
5
|
+
|
6
|
+
# Install multiple versions of ruby
|
7
|
+
ENV PATH /usr/local/rvm/bin:$PATH
|
8
|
+
<% @ruby_versions.each do |v| %>
|
9
|
+
RUN rvm install --disable-install-doc <%= v %>
|
10
|
+
<% end %>
|
11
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
FROM ubuntu
|
2
|
+
|
3
|
+
# Install basic packages
|
4
|
+
RUN apt-get update
|
5
|
+
RUN apt-get install -y build-essential wget curl git
|
6
|
+
RUN apt-get install -y zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev
|
7
|
+
RUN apt-get install sqlite3 libsqlite3-dev
|
8
|
+
RUN apt-get clean
|
9
|
+
|
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rbdock
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- tcnksm
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-01-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: erubis
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.7.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.7.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.5'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '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'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.13'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.13'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.8'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.8'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: redcarpet
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.2'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.2'
|
111
|
+
description: Generate Dockerfile which install ruby.
|
112
|
+
email:
|
113
|
+
- nsd22843@gmail.com
|
114
|
+
executables:
|
115
|
+
- rbdock
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- .gitignore
|
120
|
+
- .rspec
|
121
|
+
- Gemfile
|
122
|
+
- Guardfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- Vagrantfile
|
127
|
+
- bin/rbdock
|
128
|
+
- lib/rbdock.rb
|
129
|
+
- lib/rbdock/command.rb
|
130
|
+
- lib/rbdock/command/options.rb
|
131
|
+
- lib/rbdock/create.rb
|
132
|
+
- lib/rbdock/helpers.rb
|
133
|
+
- lib/rbdock/version.rb
|
134
|
+
- rbdock.gemspec
|
135
|
+
- spec/spec_helper.rb
|
136
|
+
- templates/bundler.erb
|
137
|
+
- templates/centos_base_packages.erb
|
138
|
+
- templates/rbenv_bundler.erb
|
139
|
+
- templates/rbenv_ruby.erb
|
140
|
+
- templates/ruby.erb
|
141
|
+
- templates/rvm_bundler.erb
|
142
|
+
- templates/rvm_ruby.erb
|
143
|
+
- templates/ubuntu_base_packages.erb
|
144
|
+
homepage: ''
|
145
|
+
licenses:
|
146
|
+
- MIT
|
147
|
+
metadata: {}
|
148
|
+
post_install_message:
|
149
|
+
rdoc_options: []
|
150
|
+
require_paths:
|
151
|
+
- lib
|
152
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - '>='
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
157
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
requirements: []
|
163
|
+
rubyforge_project:
|
164
|
+
rubygems_version: 2.0.14
|
165
|
+
signing_key:
|
166
|
+
specification_version: 4
|
167
|
+
summary: Generate Dockerfile which install ruby.
|
168
|
+
test_files:
|
169
|
+
- spec/spec_helper.rb
|
170
|
+
has_rdoc:
|