lazygem 0.0.1 → 0.0.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.
Files changed (3) hide show
  1. data/README.rdoc +5 -0
  2. data/bin/lazygem +11 -2
  3. metadata +4 -3
data/README.rdoc CHANGED
@@ -13,6 +13,11 @@ Requirements:
13
13
  Ruby (Developed on 1.8.7)
14
14
  RubyGems (Developed on 1.3.5)
15
15
 
16
+ TODO:
17
+
18
+ 1) Add platform detection.
19
+ 2) Check to see if a gem is already installed.
20
+ 3) Need to add tests.
16
21
 
17
22
  LICENSE
18
23
 
data/bin/lazygem CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
- # LazyGem 0.0.1
3
+ # LazyGem 0.0.2
4
4
  # Author: Brian Scott
5
5
  #
6
6
  # Copyright (c) 2010 Brian Scott <brainscott@gmail.com>
@@ -63,6 +63,15 @@ titlesAry = titles.uniq!
63
63
 
64
64
  # Installing subscribed gems
65
65
  titlesAry.each do |title|
66
+
66
67
  puts "Installing #{title}"
67
- system("sudo gem install #{title}")
68
+
69
+ if RUBY_PLATFORM =~ /mswin32/
70
+
71
+ system("gem install #{title}")
72
+
73
+ else system("sudo gem install #{title}")
74
+
75
+ end
68
76
  end
77
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazygem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Scott
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-04 00:00:00 -08:00
12
+ date: 2010-02-08 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -31,6 +31,7 @@ extensions: []
31
31
  extra_rdoc_files:
32
32
  - README.rdoc
33
33
  files:
34
+ - bin/lazygem
34
35
  - README.rdoc
35
36
  has_rdoc: true
36
37
  homepage: http://github.com/brainscott
@@ -64,6 +65,6 @@ rubyforge_project: lazygem
64
65
  rubygems_version: 1.3.5
65
66
  signing_key:
66
67
  specification_version: 3
67
- summary: Auto Installs gems that you are subscribed to on gemcutter.org. Supports MAC OS only but can be modified. Great, if you are moving to a new system and don't want to install each of your favorite gems
68
+ summary: Auto Installs gems that you are subscribed to on gemcutter.org. Great, if you are moving to a new system and don't want to install each of your favorite gems
68
69
  test_files: []
69
70