rvm_loader 1.0.0

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.
Files changed (3) hide show
  1. data/lib/rvm_loader.rb +18 -0
  2. data/rvm_loader.gemspec +13 -0
  3. metadata +55 -0
@@ -0,0 +1,18 @@
1
+ # Loads the RVM Ruby API or raises an error
2
+ # see http://blog.thefrontiergroup.com.au/2010/12/a-brief-introduction-to-the-rvm-ruby-api/
3
+
4
+ module RvmLoader
5
+ VERSION = '1.0.0'
6
+ end
7
+
8
+ # find or guess rvm path
9
+ rvm_path = File.expand_path(ENV['rvm_path'] || '~/.rvm')
10
+
11
+ # load rvm ruby api
12
+ $LOAD_PATH.unshift File.join(rvm_path, 'lib')
13
+
14
+ begin
15
+ require 'rvm'
16
+ rescue LoadError
17
+ raise LoadError, 'Ruby Version Manager (RVM) must be installed to use this command'
18
+ end
@@ -0,0 +1,13 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require 'rubygems' unless defined? Gem
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'rvm_loader'
6
+ s.version = '1.0.0'
7
+ s.author = "Jan Lelis"
8
+ s.summary = "Loads the RVM Ruby API"
9
+ s.description = "Loads the RVM Ruby API or raises an error: require 'rvm_loader'"
10
+ s.email = "mail@janlelis.de"
11
+ s.files = %w[lib/rvm_loader.rb rvm_loader.gemspec]
12
+ s.homepage = %q[http://blog.thefrontiergroup.com.au/2010/12/a-brief-introduction-to-the-rvm-ruby-api/]
13
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rvm_loader
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.0.0
6
+ platform: ruby
7
+ authors:
8
+ - Jan Lelis
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-05-14 00:00:00 Z
14
+ dependencies: []
15
+
16
+ description: "Loads the RVM Ruby API or raises an error: require 'rvm_loader'"
17
+ email: mail@janlelis.de
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - lib/rvm_loader.rb
26
+ - rvm_loader.gemspec
27
+ homepage: http://blog.thefrontiergroup.com.au/2010/12/a-brief-introduction-to-the-rvm-ruby-api/
28
+ licenses: []
29
+
30
+ post_install_message:
31
+ rdoc_options: []
32
+
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: "0"
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ requirements: []
48
+
49
+ rubyforge_project:
50
+ rubygems_version: 1.8.1
51
+ signing_key:
52
+ specification_version: 3
53
+ summary: Loads the RVM Ruby API
54
+ test_files: []
55
+