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.
Files changed (4) hide show
  1. data/README.rdoc +18 -9
  2. data/Rakefile +2 -2
  3. data/VERSION +1 -1
  4. metadata +3 -3
data/README.rdoc CHANGED
@@ -1,9 +1,11 @@
1
1
  = gem-manage-sources
2
2
 
3
- Manage your gem sources so that you can use sources that are not always available without having to 'gem sources -a' and 'gem sources -r' all the time.
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
- This is useful if you have a corporate gem server that lives within
6
- a firewall and is not always accessible.
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
- First you have to create a sources.yml file using:
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
- To add a source:
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
- gem manage_sources --add http://source.com
33
+ in place of
25
34
 
26
- To remove a source
35
+ gem sources -a
36
+ gem sources -r
27
37
 
28
- gem manage_sources --remove http://source.com
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
- Manage your gem sources so that you can use sources that are not always available without having to 'gem sources -a' and 'gem sources -r' all the time.
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
- Manage your gem sources so that you can use sources that are not always available without having to 'gem sources -a' and 'gem sources -r' all the time. This is especially useful if you have a gem server that lives within a firewall.
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.4
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
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
- Manage your gem sources so that you can use sources that are not always available without having to 'gem sources -a' and 'gem sources -r' all the time. This is especially useful if you have a gem server that lives within a firewall.
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: Manage your gem sources so that you can use sources that are not always available without having to 'gem sources -a' and 'gem sources -r' all the time.
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