mina-rbenv-addons 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 246db61dee06dca4c209d1355aef148170cf15cc
4
+ data.tar.gz: 147c38766a703fa6f4c9fce4e8350afe5e1d8310
5
+ SHA512:
6
+ metadata.gz: 5b4b8e2fc68736ff250caea51db1d6be671d94d0258f4638ccc6a606d884f7471cf97bd85d805c6e89d0d0bc9a06df3a070f81b3278a2ebcfcb243724bf33154
7
+ data.tar.gz: e255e63257a1f281486fd27201fa0b94feac55f1db1669c9f1aa6545d40ceb27b847c125950be97891d7208f26e3588f8b9b42cf6e1bbd7092a44a44e79f5405
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mina-rbenv-addons.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Stas SUȘCOV
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.
@@ -0,0 +1,43 @@
1
+ # Mina Rbenv Addons
2
+
3
+ This gem adds support for installing and upgrading ruby and rbenv for mina.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'mina-rbenv-addons'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install mina-rbenv-addons
18
+
19
+ ## Usage
20
+
21
+ Add this to your `Minafile` or `config/deploy.rb`
22
+
23
+ require 'mina/rbenv/addons'
24
+
25
+ Use one of the following commands:
26
+
27
+ $ mina rbenv:setup
28
+ $ mina rbenv:upgrade
29
+ $ mina rbenv:install:<RUBY_VERSION>
30
+
31
+ I also added a couple of new options you can set in order to specify the
32
+
33
+ * Ruby version you want: `rbenv_ruby_version`
34
+ * Rbenv git URL to use: `rbenv_git_url`
35
+ * Ruby build git URL to use: `ruby_build_git_url`
36
+
37
+ ## Contributing
38
+
39
+ 1. Fork it
40
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
41
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
42
+ 4. Push to the branch (`git push origin my-new-feature`)
43
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,64 @@
1
+ require 'mina/rbenv'
2
+
3
+ # ### rbenv_ruby_version
4
+ # Is used by *ruby-build* to install a new ruby version.
5
+ #
6
+ # Change it if you want to upgrade or install a new ruby version.
7
+
8
+ set_default :rbenv_ruby_version, "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
9
+
10
+ # ### rbenv_git_url
11
+ # Sets the rbenv git url to clone
12
+ #
13
+ # Change it if you want to use a fork
14
+
15
+ set_default :rbenv_git_url, 'git://github.com/sstephenson/rbenv.git'
16
+
17
+ # ### ruby_build_git_url
18
+ # Sets the ruby-build git url to clone
19
+ #
20
+ # Change it if you want to use a fork
21
+
22
+ set_default :ruby_build_git_url, 'git://github.com/sstephenson/ruby-build.git'
23
+
24
+
25
+ # ## Tasks
26
+
27
+
28
+ # ### rbenv:setup
29
+ # Installs the *rbenv* and *ruby-build* runtime.
30
+
31
+ task :'rbenv:setup' do
32
+ ruby_build_path = "#{rbenv_path}/plugins/ruby-build"
33
+ queue %{
34
+ echo "-----> Installing rbenv..."
35
+ #{echo_cmd %{git clone #{rbenv_git_url} #{rbenv_path}} }
36
+ #{echo_cmd %{git clone #{ruby_build_git_url} #{ruby_build_path}} }
37
+ }
38
+ end
39
+
40
+ # ### rbenv:upgrade
41
+ # Upgrades the *rbenv* and *ruby-build* runtime.
42
+
43
+ task :'rbenv:upgrade' do
44
+ ruby_build_path = "#{rbenv_path}/plugins/ruby-build"
45
+ queue %{
46
+ echo "-----> Upgrading rbenv and ruby-build..."
47
+ #{echo_cmd %{pushd #{rbenv_path}; git pull; popd} }
48
+ #{echo_cmd %{pushd #{ruby_build_path}; git pull; popd} }
49
+ }
50
+ end
51
+
52
+ # ### rbenv:install
53
+ # Installs the ruby version.
54
+
55
+ task :"rbenv:install:#{rbenv_ruby_version}" => :'rbenv:load' do
56
+ queue %{
57
+ echo "-----> Installing ruby-#{rbenv_ruby_version}..."
58
+ #{echo_cmd %{rbenv install #{rbenv_ruby_version}} }
59
+ #{echo_cmd %{rbenv local #{rbenv_ruby_version}} }
60
+ #{echo_cmd %{rbenv rehash} }
61
+ #{echo_cmd %{gem install bundler} }
62
+ #{echo_cmd %{rbenv rehash} }
63
+ }
64
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "mina-rbenv-addons"
7
+ spec.version = '0.1'
8
+ spec.authors = ["Stas SUȘCOV"]
9
+ spec.email = ["stas@nerd.ro"]
10
+ spec.summary = %q{Mina Rbenv addons.}
11
+ spec.description = %q{Use mina to upgrade your ruby/rbenv version.}
12
+ spec.homepage = "https://github.com/stas/mina-rbenv-addons"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_dependency "mina"
21
+
22
+ spec.add_development_dependency "bundler"
23
+ spec.add_development_dependency "rake"
24
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mina-rbenv-addons
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ platform: ruby
6
+ authors:
7
+ - Stas SUȘCOV
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-11-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mina
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '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: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
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
+ description: Use mina to upgrade your ruby/rbenv version.
56
+ email:
57
+ - stas@nerd.ro
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - lib/mina/rbenv/addons.rb
68
+ - mina-rbenv-addons.gemspec
69
+ homepage: https://github.com/stas/mina-rbenv-addons
70
+ licenses:
71
+ - MIT
72
+ metadata: {}
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 2.0.3
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: Mina Rbenv addons.
93
+ test_files: []