gem-manage-sources 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +18 -9
- data/Rakefile +2 -2
- data/VERSION +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
= gem-manage-sources
|
2
2
|
|
3
|
-
|
3
|
+
gem-manage-sources is a replacement for the 'gem sources' command that allows you to easily use sources that may not always be available.
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
Imagine you work at a company that hosts its own gem server within the corporate network. At work you need to install and update gems hosted on the corporate
|
6
|
+
server, but when you take your laptop home and try to work on some side projects (that don't use the company gems) all your remote gem commands fail. So, you end up typing 'gem sources -a' and 'gem sources -r' a lot.
|
7
|
+
|
8
|
+
gem-manage-sources solves this problem by maintaining two list of gem servers (active and inactive) and checking whether or not gem servers are available. If a server is unavailable it gets put on the inactive list and removed form your gem sources. When it becomes availabl again it gets re-added to your list of gem sources.
|
7
9
|
|
8
10
|
== Installation
|
9
11
|
|
@@ -11,7 +13,7 @@ a firewall and is not always accessible.
|
|
11
13
|
|
12
14
|
== Usage
|
13
15
|
|
14
|
-
|
16
|
+
Before you use gem-manage-sources you need to initialize the lists of gem sources using:
|
15
17
|
|
16
18
|
gem manage_sources --init
|
17
19
|
|
@@ -19,13 +21,21 @@ Now whenever you switch networks or want to check whether some of your sources a
|
|
19
21
|
|
20
22
|
gem manage_sources --check
|
21
23
|
|
22
|
-
|
24
|
+
gem-manage-sources is effectively a replacement for
|
25
|
+
|
26
|
+
gem sources
|
27
|
+
|
28
|
+
In order to keep your gem sources in sync you should always use
|
29
|
+
|
30
|
+
gem manage_sources --add
|
31
|
+
gem manage_sources --remove
|
23
32
|
|
24
|
-
|
33
|
+
in place of
|
25
34
|
|
26
|
-
|
35
|
+
gem sources -a
|
36
|
+
gem sources -r
|
27
37
|
|
28
|
-
|
38
|
+
I consider monkey-patching all of this functionality into the existing sources command, but that seemed really intrusive, especially before the whole idea has proven out.
|
29
39
|
|
30
40
|
== Links
|
31
41
|
|
@@ -34,7 +44,6 @@ To remove a source
|
|
34
44
|
|
35
45
|
== TODO
|
36
46
|
|
37
|
-
* Documentation
|
38
47
|
* JRuby (and *Ruby) support
|
39
48
|
* Find a better name
|
40
49
|
|
data/Rakefile
CHANGED
@@ -7,11 +7,11 @@ begin
|
|
7
7
|
gem.name = "gem-manage-sources"
|
8
8
|
|
9
9
|
gem.summary = <<-SUMMARY
|
10
|
-
|
10
|
+
A replacement for the 'gem sources' command that allows you to easily use sources that may not always be available (e.g. inside a firewall).
|
11
11
|
SUMMARY
|
12
12
|
|
13
13
|
gem.description = <<-WTF
|
14
|
-
|
14
|
+
gem-manage-sources is a replacement for the 'gem sources' command that allows you to easily use sources that may not always be available.
|
15
15
|
WTF
|
16
16
|
|
17
17
|
gem.email = "britt.v.crawford@gmail.com"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-manage-sources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Britt Crawford
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: "0"
|
34
34
|
version:
|
35
35
|
description: |
|
36
|
-
|
36
|
+
gem-manage-sources is a replacement for the 'gem sources' command that allows you to easily use sources that may not always be available.
|
37
37
|
|
38
38
|
email: britt.v.crawford@gmail.com
|
39
39
|
executables: []
|
@@ -85,7 +85,7 @@ rubyforge_project:
|
|
85
85
|
rubygems_version: 1.3.5
|
86
86
|
signing_key:
|
87
87
|
specification_version: 3
|
88
|
-
summary:
|
88
|
+
summary: A replacement for the 'gem sources' command that allows you to easily use sources that may not always be available (e.g. inside a firewall).
|
89
89
|
test_files:
|
90
90
|
- spec/gem_manage_sources/commands/manage_sources_command_spec.rb
|
91
91
|
- spec/gem_manage_sources/sources_spec.rb
|