lazygem 0.0.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +5 -0
- data/bin/lazygem +10 -8
- metadata +30 -7
data/Gemfile
ADDED
data/bin/lazygem
CHANGED
@@ -26,9 +26,10 @@
|
|
26
26
|
|
27
27
|
# LazyGem installs gems that you are subscribed to on RubyGems.org. Pulls "My Subscriptions" from the dashboard page.
|
28
28
|
|
29
|
-
# $:.unshift File.dirname(__FILE__)
|
30
|
-
|
29
|
+
# $:.unshift File.dirname(__FILE__)
|
31
30
|
require 'rubygems'
|
31
|
+
require 'bundler'
|
32
|
+
Bundler.setup
|
32
33
|
require 'open-uri'
|
33
34
|
require 'nokogiri'
|
34
35
|
require 'mechanize'
|
@@ -40,16 +41,16 @@ subscriptions_re = /^\/[^\/]+\/(.+)$/
|
|
40
41
|
|
41
42
|
# Start of Application
|
42
43
|
puts "Please provide your RubyGems.org login."
|
43
|
-
puts "What is your
|
44
|
-
|
44
|
+
puts "What is your email?"
|
45
|
+
email = gets.chomp
|
45
46
|
puts "What is your password?"
|
46
47
|
password = gets.chomp
|
47
48
|
|
48
49
|
# Logging into RubyGems.org and Parse the Dashboard for subscriptions
|
49
50
|
agent = Mechanize.new
|
50
|
-
agent.get("
|
51
|
+
agent.get("https://rubygems.org/session/new")
|
51
52
|
form = agent.page.forms[1]
|
52
|
-
form['session[
|
53
|
+
form['session[who]'] = email
|
53
54
|
form['session[password]'] = password
|
54
55
|
form.submit
|
55
56
|
agent.page.link_with(:text => "dashboard").click
|
@@ -68,14 +69,15 @@ end
|
|
68
69
|
|
69
70
|
gems.each do |title|
|
70
71
|
|
71
|
-
puts "Installing #{title}"
|
72
|
-
|
73
72
|
if RUBY_PLATFORM =~ /mingw/
|
73
|
+
|
74
|
+
puts "Installing #{title}"
|
74
75
|
|
75
76
|
system("gem install #{title}")
|
76
77
|
|
77
78
|
else system("sudo gem install #{title}")
|
78
79
|
|
79
80
|
end
|
81
|
+
|
80
82
|
end
|
81
83
|
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazygem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
8
|
+
- 2
|
7
9
|
- 0
|
8
|
-
|
9
|
-
version: 0.0.6
|
10
|
+
version: 0.2.0
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Brian Scott
|
@@ -14,32 +15,50 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-11-23 00:00:00 -08:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: mechanize
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
version: "0"
|
30
33
|
type: :runtime
|
31
34
|
version_requirements: *id001
|
32
|
-
|
33
|
-
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: nokogiri
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
description: Auto Installs gems that you are subscribed to on rubygems.org.
|
50
|
+
email: b@bscott.me
|
34
51
|
executables:
|
35
52
|
- lazygem
|
36
53
|
extensions: []
|
37
54
|
|
38
55
|
extra_rdoc_files:
|
39
56
|
- README.rdoc
|
57
|
+
- Gemfile
|
40
58
|
files:
|
41
59
|
- bin/lazygem
|
42
60
|
- README.rdoc
|
61
|
+
- Gemfile
|
43
62
|
has_rdoc: true
|
44
63
|
homepage: http://github.com/brainscott
|
45
64
|
licenses: []
|
@@ -55,25 +74,29 @@ rdoc_options:
|
|
55
74
|
require_paths:
|
56
75
|
- lib
|
57
76
|
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
58
78
|
requirements:
|
59
79
|
- - ">="
|
60
80
|
- !ruby/object:Gem::Version
|
81
|
+
hash: 3
|
61
82
|
segments:
|
62
83
|
- 0
|
63
84
|
version: "0"
|
64
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
65
87
|
requirements:
|
66
88
|
- - ">="
|
67
89
|
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
68
91
|
segments:
|
69
92
|
- 0
|
70
93
|
version: "0"
|
71
94
|
requirements: []
|
72
95
|
|
73
96
|
rubyforge_project: lazygem
|
74
|
-
rubygems_version: 1.3.
|
97
|
+
rubygems_version: 1.3.7
|
75
98
|
signing_key:
|
76
99
|
specification_version: 3
|
77
|
-
summary: Auto Installs gems that you are subscribed to on
|
100
|
+
summary: Auto Installs gems that you are subscribed to on rubygems.org. Great, if you are moving to a new system and don't want to install each of your favorite gems
|
78
101
|
test_files: []
|
79
102
|
|