ohmygems 1.1.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.
- data.tar.gz.sig +0 -0
- data/History.txt +13 -0
- data/Manifest.txt +5 -0
- data/README.txt +70 -0
- data/Rakefile +24 -0
- data/ohmygems +50 -0
- metadata +160 -0
- metadata.gz.sig +3 -0
data.tar.gz.sig
ADDED
Binary file
|
data/History.txt
ADDED
data/Manifest.txt
ADDED
data/README.txt
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
= ohmygems
|
2
|
+
|
3
|
+
home :: https://github.com/seattlerb/ohmygems
|
4
|
+
rdoc :: http://docs.seattlerb.org/ohmygems
|
5
|
+
|
6
|
+
== DESCRIPTION:
|
7
|
+
|
8
|
+
I'm tired of the complications that tools like bundler and rvm inject
|
9
|
+
into my system and my workflow. I don't want 4 billion gems installed
|
10
|
+
globally. I don't want to have `rake` slow down for no good reason. I
|
11
|
+
don't want rvm to regress on undefined variables over and over and
|
12
|
+
over (and I don't want to report it anymore when it does). I want as
|
13
|
+
much simplicity as I can afford and still be able to get my job done.
|
14
|
+
|
15
|
+
I've found pretty good balance using rbenv (only when needed) and by
|
16
|
+
using this 45 line shell function `ohmygems` (aliased to `omg`, of
|
17
|
+
course).
|
18
|
+
|
19
|
+
I still have my system-level gems as my previous GEM_HOME gets moved
|
20
|
+
into GEM_PATH so things like minitest and autotest are always
|
21
|
+
available. But now I have private gems that are incredibly easy to
|
22
|
+
switch around and only rely on simple environment variables to manage.
|
23
|
+
|
24
|
+
To go back to normal, simply run `omg reset`.
|
25
|
+
|
26
|
+
== FEATURES/PROBLEMS:
|
27
|
+
|
28
|
+
* FIX (list of features or problems)
|
29
|
+
|
30
|
+
== SYNOPSIS:
|
31
|
+
|
32
|
+
% cd newproject
|
33
|
+
% omg newproject
|
34
|
+
% gem i bundler
|
35
|
+
% bundle
|
36
|
+
|
37
|
+
== REQUIREMENTS:
|
38
|
+
|
39
|
+
* bash (and probably zsh?)
|
40
|
+
* rubygems
|
41
|
+
|
42
|
+
== INSTALL:
|
43
|
+
|
44
|
+
* sudo gem install ohmygems
|
45
|
+
* Follow the post-install instruction to integrate into your shell.
|
46
|
+
|
47
|
+
== LICENSE:
|
48
|
+
|
49
|
+
(The MIT License)
|
50
|
+
|
51
|
+
Copyright (c) Ryan Davis, seattle.rb
|
52
|
+
|
53
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
54
|
+
a copy of this software and associated documentation files (the
|
55
|
+
'Software'), to deal in the Software without restriction, including
|
56
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
57
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
58
|
+
permit persons to whom the Software is furnished to do so, subject to
|
59
|
+
the following conditions:
|
60
|
+
|
61
|
+
The above copyright notice and this permission notice shall be
|
62
|
+
included in all copies or substantial portions of the Software.
|
63
|
+
|
64
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
65
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
66
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
67
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
68
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
69
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
70
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
require "hoe"
|
5
|
+
|
6
|
+
Hoe.plugin :seattlerb
|
7
|
+
|
8
|
+
Hoe.spec "ohmygems" do
|
9
|
+
developer "Ryan Davis", "ryand-ruby@zenspider.com"
|
10
|
+
|
11
|
+
license "MIT"
|
12
|
+
|
13
|
+
self.version = "1.1.0"
|
14
|
+
|
15
|
+
self.post_install_message = <<-"EOM"
|
16
|
+
|
17
|
+
Add the following to your ~/.bashrc or equivalent:
|
18
|
+
|
19
|
+
source $(gem env gemdir)/gems/ohmygems-#{self.version}/ohmygems
|
20
|
+
|
21
|
+
EOM
|
22
|
+
end
|
23
|
+
|
24
|
+
# vim: syntax=ruby
|
data/ohmygems
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# -*- sh -*-
|
2
|
+
|
3
|
+
ohmygems() {
|
4
|
+
name=${1:-}
|
5
|
+
|
6
|
+
if [ -z "${ORIG_GEM_PATH:-}" ]; then
|
7
|
+
export ORIG_GEM_PATH=${GEM_PATH:-}
|
8
|
+
export ORIG_GEM_HOME=${GEM_HOME:-}
|
9
|
+
export ORIG_PATH=${PATH}
|
10
|
+
fi
|
11
|
+
|
12
|
+
if [ -z "$name" ]; then
|
13
|
+
echo "usage: ohmygems <name or reset>"
|
14
|
+
echo
|
15
|
+
echo " Switches gem home to a (potentially new) named repo."
|
16
|
+
echo " Your previous gems are still visible,"
|
17
|
+
echo " but new gem installs will install into ~/.gems/repos/<name>."
|
18
|
+
echo " Use 'reset' to go back to normal."
|
19
|
+
echo
|
20
|
+
echo "Available repos in ~/.gem/repos:"
|
21
|
+
echo
|
22
|
+
ls ~/.gem/repos | pr -o2 -l1
|
23
|
+
echo
|
24
|
+
return
|
25
|
+
elif [ $name = "reset" ]; then
|
26
|
+
echo Resetting repo
|
27
|
+
|
28
|
+
if [ -z "$ORIG_GEM_HOME" ]; then
|
29
|
+
unset GEM_HOME
|
30
|
+
else
|
31
|
+
GEM_HOME=${ORIG_GEM_HOME}
|
32
|
+
fi
|
33
|
+
|
34
|
+
GEM_PATH=${ORIG_GEM_PATH}
|
35
|
+
PATH=$ORIG_PATH
|
36
|
+
else
|
37
|
+
echo Switching to $name
|
38
|
+
|
39
|
+
export GEM_HOME=~/.gem/repos/${name}
|
40
|
+
export GEM_PATH=${ORIG_GEM_HOME}:${ORIG_GEM_PATH}
|
41
|
+
export PATH=${ORIG_PATH}:${GEM_HOME}/bin
|
42
|
+
fi
|
43
|
+
|
44
|
+
echo
|
45
|
+
echo GEM_PATH=${GEM_PATH:-not set}
|
46
|
+
echo GEM_HOME=${GEM_HOME:-not set}
|
47
|
+
echo PATH=$PATH
|
48
|
+
}
|
49
|
+
|
50
|
+
alias omg=ohmygems
|
metadata
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ohmygems
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 1.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Ryan Davis
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain:
|
17
|
+
- |
|
18
|
+
-----BEGIN CERTIFICATE-----
|
19
|
+
MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
|
20
|
+
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
21
|
+
GRYDY29tMB4XDTA5MDMwNjE4NTMxNVoXDTEwMDMwNjE4NTMxNVowRTETMBEGA1UE
|
22
|
+
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
23
|
+
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
24
|
+
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
25
|
+
taCPaLmfYIaFcHHCSY4hYDJijRQkLxPeB3xbOfzfLoBDbjvx5JxgJxUjmGa7xhcT
|
26
|
+
oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
|
27
|
+
GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
|
28
|
+
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
29
|
+
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
30
|
+
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
|
31
|
+
AQAY59gYvDxqSqgC92nAP9P8dnGgfZgLxP237xS6XxFGJSghdz/nI6pusfCWKM8m
|
32
|
+
vzjjH2wUMSSf3tNudQ3rCGLf2epkcU13/rguI88wO6MrE0wi4ZqLQX+eZQFskJb/
|
33
|
+
w6x9W1ur8eR01s397LSMexySDBrJOh34cm2AlfKr/jokKCTwcM0OvVZnAutaovC0
|
34
|
+
l1SVZ0ecg88bsWHA0Yhh7NFxK1utWoIhtB6AFC/+trM0FQEB/jZkIS8SaNzn96Rl
|
35
|
+
n0sZEf77FLf5peR8TP/PtmIg7Cyqz23sLM4mCOoTGIy5OcZ8TdyiyINUHtb5ej/T
|
36
|
+
FBHgymkyj/AOSqKRIpXPhjC6
|
37
|
+
-----END CERTIFICATE-----
|
38
|
+
|
39
|
+
date: 2013-02-24 00:00:00 Z
|
40
|
+
dependencies:
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
prerelease: false
|
44
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
hash: 23
|
50
|
+
segments:
|
51
|
+
- 4
|
52
|
+
- 6
|
53
|
+
version: "4.6"
|
54
|
+
type: :development
|
55
|
+
version_requirements: *id001
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rdoc
|
58
|
+
prerelease: false
|
59
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ~>
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
hash: 19
|
65
|
+
segments:
|
66
|
+
- 3
|
67
|
+
- 10
|
68
|
+
version: "3.10"
|
69
|
+
type: :development
|
70
|
+
version_requirements: *id002
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: hoe
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ~>
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 13
|
80
|
+
segments:
|
81
|
+
- 3
|
82
|
+
- 5
|
83
|
+
version: "3.5"
|
84
|
+
type: :development
|
85
|
+
version_requirements: *id003
|
86
|
+
description: |-
|
87
|
+
I'm tired of the complications that tools like bundler and rvm inject
|
88
|
+
into my system and my workflow. I don't want 4 billion gems installed
|
89
|
+
globally. I don't want to have `rake` slow down for no good reason. I
|
90
|
+
don't want rvm to regress on undefined variables over and over and
|
91
|
+
over (and I don't want to report it anymore when it does). I want as
|
92
|
+
much simplicity as I can afford and still be able to get my job done.
|
93
|
+
|
94
|
+
I've found pretty good balance using rbenv (only when needed) and by
|
95
|
+
using this 45 line shell function `ohmygems` (aliased to `omg`, of
|
96
|
+
course).
|
97
|
+
|
98
|
+
I still have my system-level gems as my previous GEM_HOME gets moved
|
99
|
+
into GEM_PATH so things like minitest and autotest are always
|
100
|
+
available. But now I have private gems that are incredibly easy to
|
101
|
+
switch around and only rely on simple environment variables to manage.
|
102
|
+
|
103
|
+
To go back to normal, simply run `omg reset`.
|
104
|
+
email:
|
105
|
+
- ryand-ruby@zenspider.com
|
106
|
+
executables: []
|
107
|
+
|
108
|
+
extensions: []
|
109
|
+
|
110
|
+
extra_rdoc_files:
|
111
|
+
- History.txt
|
112
|
+
- Manifest.txt
|
113
|
+
- README.txt
|
114
|
+
files:
|
115
|
+
- History.txt
|
116
|
+
- Manifest.txt
|
117
|
+
- README.txt
|
118
|
+
- Rakefile
|
119
|
+
- ohmygems
|
120
|
+
homepage: https://github.com/seattlerb/ohmygems
|
121
|
+
licenses:
|
122
|
+
- MIT
|
123
|
+
post_install_message: |+
|
124
|
+
|
125
|
+
Add the following to your ~/.bashrc or equivalent:
|
126
|
+
|
127
|
+
source $(gem env gemdir)/gems/ohmygems-1.1.0/ohmygems
|
128
|
+
|
129
|
+
rdoc_options:
|
130
|
+
- --main
|
131
|
+
- README.txt
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
none: false
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
hash: 3
|
140
|
+
segments:
|
141
|
+
- 0
|
142
|
+
version: "0"
|
143
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
none: false
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
hash: 3
|
149
|
+
segments:
|
150
|
+
- 0
|
151
|
+
version: "0"
|
152
|
+
requirements: []
|
153
|
+
|
154
|
+
rubyforge_project: ohmygems
|
155
|
+
rubygems_version: 1.8.25
|
156
|
+
signing_key:
|
157
|
+
specification_version: 3
|
158
|
+
summary: I'm tired of the complications that tools like bundler and rvm inject into my system and my workflow
|
159
|
+
test_files: []
|
160
|
+
|
metadata.gz.sig
ADDED