cldwalker-local_gem 0.1.1 → 0.1.2
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/README.rdoc +14 -8
- data/VERSION.yml +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -30,24 +30,29 @@ which map to gem() and require() respectively. Both methods will attempt
|
|
30
30
|
to load local gems that you have defined. If no gem is found than they resort to default gem/require
|
31
31
|
behavior.
|
32
32
|
|
33
|
-
There are 3 ways to use this library
|
33
|
+
There are 3 ways to use this library, depending on how much you want LocalGem to invade your
|
34
|
+
namespace:
|
35
|
+
|
36
|
+
1. Peace time:
|
34
37
|
|
35
|
-
1. Mild: Call LocalGem with its class methods.
|
36
|
-
|
37
38
|
require 'local_gem'
|
38
|
-
LocalGem.local_gem '
|
39
|
+
LocalGem.local_gem 'mygem'
|
40
|
+
LocalGem.local_require 'anothergem'
|
39
41
|
|
40
|
-
2.
|
42
|
+
2. Diplomacy is fading:
|
41
43
|
|
42
44
|
require 'local_gem'
|
43
45
|
include LocalGem
|
44
|
-
local_gem '
|
46
|
+
local_gem 'mygem'
|
47
|
+
local_require 'anothergem'
|
45
48
|
|
46
|
-
3.
|
49
|
+
3. You're fscked (Don't worry, they should default to their normal behavior, should being the
|
50
|
+
keyword):
|
47
51
|
|
48
52
|
require 'local_gem'
|
49
53
|
require 'local_gem/override'
|
50
|
-
gem '
|
54
|
+
gem 'mygem'
|
55
|
+
require 'anothergem'
|
51
56
|
|
52
57
|
All three ways would add my local alias library to $LOAD_PATH. These three ways
|
53
58
|
also apply to local_require().
|
@@ -57,6 +62,7 @@ also apply to local_require().
|
|
57
62
|
|
58
63
|
Got tired of installing/uninstalling the latest version of a gem I'm actively working on. This
|
59
64
|
also makes it easy to treat any random directory of ruby files as a gem.
|
65
|
+
Explained some more at http://tagaholic.me/2009/02/localgem-loads-your-current-code-now.html
|
60
66
|
|
61
67
|
== Limitations
|
62
68
|
|
data/VERSION.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cldwalker-local_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Horner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-05 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|