mina-rbenv-addons 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 246db61dee06dca4c209d1355aef148170cf15cc
4
- data.tar.gz: 147c38766a703fa6f4c9fce4e8350afe5e1d8310
3
+ metadata.gz: cad37722d41bcda0ef136d020fb33c47b237dba7
4
+ data.tar.gz: c82d7bc873f100916105a64143d25371a1bbce8c
5
5
  SHA512:
6
- metadata.gz: 5b4b8e2fc68736ff250caea51db1d6be671d94d0258f4638ccc6a606d884f7471cf97bd85d805c6e89d0d0bc9a06df3a070f81b3278a2ebcfcb243724bf33154
7
- data.tar.gz: e255e63257a1f281486fd27201fa0b94feac55f1db1669c9f1aa6545d40ceb27b847c125950be97891d7208f26e3588f8b9b42cf6e1bbd7092a44a44e79f5405
6
+ metadata.gz: e2fcb4993e33b8f29a6969bed48cfd4228120a711635142768ab3ba9d57f3ad35bd994f7f0e74db135a5aacf13abcc5b9aa07f97830882d12ac80e8b788d2300
7
+ data.tar.gz: 36914175395f09638c1da59e782332464f5532c08809fa5d25f82f81f3b448577e076c6946260670004e7b0a0978059397542eb0f0fec7dfb80c641952380c21
@@ -5,21 +5,21 @@ require 'mina/rbenv'
5
5
  #
6
6
  # Change it if you want to upgrade or install a new ruby version.
7
7
 
8
- set_default :rbenv_ruby_version, "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
8
+ set :rbenv_ruby_version, "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}".chomp('-p0')
9
9
 
10
10
  # ### rbenv_git_url
11
11
  # Sets the rbenv git url to clone
12
12
  #
13
13
  # Change it if you want to use a fork
14
14
 
15
- set_default :rbenv_git_url, 'git://github.com/sstephenson/rbenv.git'
15
+ set :rbenv_git_url, 'git://github.com/sstephenson/rbenv.git'
16
16
 
17
17
  # ### ruby_build_git_url
18
18
  # Sets the ruby-build git url to clone
19
19
  #
20
20
  # Change it if you want to use a fork
21
21
 
22
- set_default :ruby_build_git_url, 'git://github.com/sstephenson/ruby-build.git'
22
+ set :ruby_build_git_url, 'git://github.com/sstephenson/ruby-build.git'
23
23
 
24
24
 
25
25
  # ## Tasks
@@ -29,11 +29,11 @@ set_default :ruby_build_git_url, 'git://github.com/sstephenson/ruby-build.git'
29
29
  # Installs the *rbenv* and *ruby-build* runtime.
30
30
 
31
31
  task :'rbenv:setup' do
32
- ruby_build_path = "#{rbenv_path}/plugins/ruby-build"
33
- queue %{
32
+ ruby_build_path = "#{fetch(:rbenv_path)}/plugins/ruby-build"
33
+ command %{
34
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}} }
35
+ #{echo_cmd %{git clone #{fetch(:rbenv_git_url)} #{fetch(:rbenv_path)}} }
36
+ #{echo_cmd %{git clone #{fetch(:ruby_build_git_url)} #{ruby_build_path}} }
37
37
  }
38
38
  end
39
39
 
@@ -41,10 +41,10 @@ end
41
41
  # Upgrades the *rbenv* and *ruby-build* runtime.
42
42
 
43
43
  task :'rbenv:upgrade' do
44
- ruby_build_path = "#{rbenv_path}/plugins/ruby-build"
45
- queue %{
44
+ ruby_build_path = "#{fetch(:rbenv_path)}/plugins/ruby-build"
45
+ command %{
46
46
  echo "-----> Upgrading rbenv and ruby-build..."
47
- #{echo_cmd %{pushd #{rbenv_path}; git pull; popd} }
47
+ #{echo_cmd %{pushd #{fetch(:rbenv_path)}; git pull; popd} }
48
48
  #{echo_cmd %{pushd #{ruby_build_path}; git pull; popd} }
49
49
  }
50
50
  end
@@ -52,11 +52,11 @@ end
52
52
  # ### rbenv:install
53
53
  # Installs the ruby version.
54
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}} }
55
+ task :"rbenv:install:#{fetch(:rbenv_ruby_version)}" => :'rbenv:load' do
56
+ command %{
57
+ echo "-----> Installing ruby-#{fetch(:rbenv_ruby_version)}..."
58
+ #{echo_cmd %{rbenv install #{fetch(:rbenv_ruby_version)}} }
59
+ #{echo_cmd %{rbenv local #{fetch(:rbenv_ruby_version)}} }
60
60
  #{echo_cmd %{rbenv rehash} }
61
61
  #{echo_cmd %{gem install bundler} }
62
62
  #{echo_cmd %{rbenv rehash} }
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "mina-rbenv-addons"
7
- spec.version = '0.1'
7
+ spec.version = '0.2'
8
8
  spec.authors = ["Stas SUȘCOV"]
9
9
  spec.email = ["stas@nerd.ro"]
10
10
  spec.summary = %q{Mina Rbenv addons.}
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "mina"
20
+ spec.add_dependency "mina", "~> 1.0.0"
21
21
 
22
22
  spec.add_development_dependency "bundler"
23
23
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-rbenv-addons
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas SUȘCOV
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-15 00:00:00.000000000 Z
11
+ date: 2016-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
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
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Use mina to upgrade your ruby/rbenv version.
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - Gemfile
64
64
  - LICENSE.txt
65
65
  - README.md
@@ -76,17 +76,17 @@ require_paths:
76
76
  - lib
77
77
  required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - '>='
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.0.3
89
+ rubygems_version: 2.5.1
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Mina Rbenv addons.