gem-list 0.1.0
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.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.rspec +2 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +72 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/bin/gem-list +36 -0
- data/gem-list.gemspec +101 -0
- data/lib/gem-list.rb +21 -0
- data/rdoc/GemList.html +207 -0
- data/rdoc/README_rdoc.html +111 -0
- data/rdoc/created.rid +3 -0
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +78 -0
- data/rdoc/js/darkfish.js +155 -0
- data/rdoc/js/jquery.js +18 -0
- data/rdoc/js/navigation.js +142 -0
- data/rdoc/js/search.js +94 -0
- data/rdoc/js/search_index.js +1 -0
- data/rdoc/js/searcher.js +228 -0
- data/rdoc/rdoc.css +543 -0
- data/rdoc/table_of_contents.html +64 -0
- data/spec/gem-list_spec.rb +14 -0
- data/spec/spec_helper.rb +29 -0
- metadata +165 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e69466569242ccb13ddf90e07772e88fee0bbcd4
|
4
|
+
data.tar.gz: 1253153dfcb07e2c116bc5bbf3785e7a401ae020
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 10689880a20b28cfaa406eb9b53a2ee65a41da99242680665670c0ac85c2fb0dcd0f511d7669c3ace0d4053fff6561aaf0c349961d967b858226148119cb41e6
|
7
|
+
data.tar.gz: 55758deac9f65bae2adaf399503596351d204f10e372570aa76c6d245593d7108626a5d016dc5148d14c1780982c511b1900f9a18cdb4994889cc7a0fe2c7721
|
data/.document
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.8.0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0"
|
12
|
+
gem "jeweler", "~> 2.0.1"
|
13
|
+
gem "simplecov", ">= 0"
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
descendants_tracker (0.0.3)
|
7
|
+
diff-lcs (1.1.3)
|
8
|
+
docile (1.1.3)
|
9
|
+
faraday (0.9.0)
|
10
|
+
multipart-post (>= 1.2, < 3)
|
11
|
+
git (1.2.6)
|
12
|
+
github_api (0.11.2)
|
13
|
+
addressable (~> 2.3)
|
14
|
+
descendants_tracker (~> 0.0.1)
|
15
|
+
faraday (~> 0.8, < 0.10)
|
16
|
+
hashie (>= 1.2)
|
17
|
+
multi_json (>= 1.7.5, < 2.0)
|
18
|
+
nokogiri (~> 1.6.0)
|
19
|
+
oauth2
|
20
|
+
hashie (2.0.5)
|
21
|
+
highline (1.6.20)
|
22
|
+
jeweler (2.0.1)
|
23
|
+
builder
|
24
|
+
bundler (>= 1.0)
|
25
|
+
git (>= 1.2.5)
|
26
|
+
github_api
|
27
|
+
highline (>= 1.6.15)
|
28
|
+
nokogiri (>= 1.5.10)
|
29
|
+
rake
|
30
|
+
rdoc
|
31
|
+
json (1.8.1)
|
32
|
+
jwt (0.1.11)
|
33
|
+
multi_json (>= 1.5)
|
34
|
+
mini_portile (0.5.2)
|
35
|
+
multi_json (1.8.4)
|
36
|
+
multi_xml (0.5.5)
|
37
|
+
multipart-post (2.0.0)
|
38
|
+
nokogiri (1.6.1)
|
39
|
+
mini_portile (~> 0.5.0)
|
40
|
+
oauth2 (0.9.3)
|
41
|
+
faraday (>= 0.8, < 0.10)
|
42
|
+
jwt (~> 0.1.8)
|
43
|
+
multi_json (~> 1.3)
|
44
|
+
multi_xml (~> 0.5)
|
45
|
+
rack (~> 1.2)
|
46
|
+
rack (1.5.2)
|
47
|
+
rake (10.1.1)
|
48
|
+
rdoc (3.12.2)
|
49
|
+
json (~> 1.4)
|
50
|
+
rspec (2.8.0)
|
51
|
+
rspec-core (~> 2.8.0)
|
52
|
+
rspec-expectations (~> 2.8.0)
|
53
|
+
rspec-mocks (~> 2.8.0)
|
54
|
+
rspec-core (2.8.0)
|
55
|
+
rspec-expectations (2.8.0)
|
56
|
+
diff-lcs (~> 1.1.2)
|
57
|
+
rspec-mocks (2.8.0)
|
58
|
+
simplecov (0.8.2)
|
59
|
+
docile (~> 1.1.0)
|
60
|
+
multi_json
|
61
|
+
simplecov-html (~> 0.8.0)
|
62
|
+
simplecov-html (0.8.0)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
bundler (~> 1.0)
|
69
|
+
jeweler (~> 2.0.1)
|
70
|
+
rdoc (~> 3.12)
|
71
|
+
rspec (~> 2.8.0)
|
72
|
+
simplecov
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2014 jatla
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= gem-list
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to gem-list
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2014 jatla. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
+
gem.name = "gem-list"
|
18
|
+
gem.homepage = "http://github.com/jatla/gem-list"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{A gem that hopes to substitute 'gem list' cli.}
|
21
|
+
gem.description = %Q{This requires some thought. isn't it?}
|
22
|
+
gem.email = "jayaprakash.atla@gmail.com"
|
23
|
+
gem.authors = ["jatla"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Code coverage detail"
|
35
|
+
task :simplecov do
|
36
|
+
ENV['COVERAGE'] = "true"
|
37
|
+
Rake::Task['spec'].execute
|
38
|
+
end
|
39
|
+
|
40
|
+
task :default => :spec
|
41
|
+
|
42
|
+
require 'rdoc/task'
|
43
|
+
Rake::RDocTask.new do |rdoc|
|
44
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
+
|
46
|
+
rdoc.rdoc_dir = 'rdoc'
|
47
|
+
rdoc.title = "gem-list #{version}"
|
48
|
+
rdoc.rdoc_files.include('README*')
|
49
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
data/bin/gem-list
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'gem-list'
|
3
|
+
require 'optparse'
|
4
|
+
include GemList
|
5
|
+
|
6
|
+
options = {:l => nil, :i => nil}
|
7
|
+
|
8
|
+
optparse = OptionParser.new do |opts|
|
9
|
+
|
10
|
+
opts.banner = "Usage: gem-list [options] "
|
11
|
+
|
12
|
+
opts.on('-l', '--list', 'List all the gems installed locally') do
|
13
|
+
options[:l] = true
|
14
|
+
end
|
15
|
+
|
16
|
+
opts.on('-i', '--isInstalled', 'Find out if a gem is installed locally or not') do |gemName|
|
17
|
+
options[:i] = true
|
18
|
+
end
|
19
|
+
|
20
|
+
opts.on( '-h', '--help', 'Display this screen' ) do
|
21
|
+
puts opts
|
22
|
+
exit
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
optparse.parse!
|
27
|
+
|
28
|
+
if options[:l] != nil
|
29
|
+
puts list
|
30
|
+
elsif options[:i] != nil
|
31
|
+
ARGV.each do|gemName|
|
32
|
+
puts "#{gemName} : #{isInstalled(gemName) ? :Yes : :No}"
|
33
|
+
end
|
34
|
+
else
|
35
|
+
puts "Not a valid option. See help!"
|
36
|
+
end
|
data/gem-list.gemspec
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "gem-list"
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["jatla"]
|
12
|
+
s.date = "2014-02-18"
|
13
|
+
s.description = "This requires some thought. isn't it?"
|
14
|
+
s.email = "jayaprakash.atla@gmail.com"
|
15
|
+
s.executables = ["gem-list"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE.txt",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
".rspec",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"bin/gem-list",
|
30
|
+
"gem-list.gemspec",
|
31
|
+
"lib/gem-list.rb",
|
32
|
+
"rdoc/GemList.html",
|
33
|
+
"rdoc/README_rdoc.html",
|
34
|
+
"rdoc/created.rid",
|
35
|
+
"rdoc/images/add.png",
|
36
|
+
"rdoc/images/brick.png",
|
37
|
+
"rdoc/images/brick_link.png",
|
38
|
+
"rdoc/images/bug.png",
|
39
|
+
"rdoc/images/bullet_black.png",
|
40
|
+
"rdoc/images/bullet_toggle_minus.png",
|
41
|
+
"rdoc/images/bullet_toggle_plus.png",
|
42
|
+
"rdoc/images/date.png",
|
43
|
+
"rdoc/images/delete.png",
|
44
|
+
"rdoc/images/find.png",
|
45
|
+
"rdoc/images/loadingAnimation.gif",
|
46
|
+
"rdoc/images/macFFBgHack.png",
|
47
|
+
"rdoc/images/package.png",
|
48
|
+
"rdoc/images/page_green.png",
|
49
|
+
"rdoc/images/page_white_text.png",
|
50
|
+
"rdoc/images/page_white_width.png",
|
51
|
+
"rdoc/images/plugin.png",
|
52
|
+
"rdoc/images/ruby.png",
|
53
|
+
"rdoc/images/tag_blue.png",
|
54
|
+
"rdoc/images/tag_green.png",
|
55
|
+
"rdoc/images/transparent.png",
|
56
|
+
"rdoc/images/wrench.png",
|
57
|
+
"rdoc/images/wrench_orange.png",
|
58
|
+
"rdoc/images/zoom.png",
|
59
|
+
"rdoc/index.html",
|
60
|
+
"rdoc/js/darkfish.js",
|
61
|
+
"rdoc/js/jquery.js",
|
62
|
+
"rdoc/js/navigation.js",
|
63
|
+
"rdoc/js/search.js",
|
64
|
+
"rdoc/js/search_index.js",
|
65
|
+
"rdoc/js/searcher.js",
|
66
|
+
"rdoc/rdoc.css",
|
67
|
+
"rdoc/table_of_contents.html",
|
68
|
+
"spec/gem-list_spec.rb",
|
69
|
+
"spec/spec_helper.rb"
|
70
|
+
]
|
71
|
+
s.homepage = "http://github.com/jatla/gem-list"
|
72
|
+
s.licenses = ["MIT"]
|
73
|
+
s.require_paths = ["lib"]
|
74
|
+
s.rubygems_version = "2.0.3"
|
75
|
+
s.summary = "A gem that hopes to substitute 'gem list' cli."
|
76
|
+
|
77
|
+
if s.respond_to? :specification_version then
|
78
|
+
s.specification_version = 4
|
79
|
+
|
80
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
81
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
82
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
83
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
84
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
85
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
86
|
+
else
|
87
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
88
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
89
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
90
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
91
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
92
|
+
end
|
93
|
+
else
|
94
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
95
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
96
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
97
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
98
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
data/lib/gem-list.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
module GemList
|
2
|
+
|
3
|
+
# attr_accessor :list
|
4
|
+
|
5
|
+
# def initialize
|
6
|
+
# @list = []
|
7
|
+
# Gem::Specification.each{|g| @list << g }
|
8
|
+
# end
|
9
|
+
|
10
|
+
def list
|
11
|
+
Gem::Specification.all_names
|
12
|
+
end
|
13
|
+
|
14
|
+
def isInstalled gemName
|
15
|
+
begin
|
16
|
+
Gem::Specification.find_by_name(gemName).is_a?(Gem::Specification)
|
17
|
+
rescue Gem::LoadError
|
18
|
+
false
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/rdoc/GemList.html
ADDED
@@ -0,0 +1,207 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module GemList - gem-list 0.1.0</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/gem-list.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<!-- Method Quickref -->
|
62
|
+
<nav id="method-list-section" class="section">
|
63
|
+
<h3 class="section-header">Methods</h3>
|
64
|
+
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><a href="#method-i-isInstalled">#isInstalled</a>
|
68
|
+
|
69
|
+
<li><a href="#method-i-list">#list</a>
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
</nav>
|
73
|
+
|
74
|
+
</div>
|
75
|
+
|
76
|
+
<div id="project-metadata">
|
77
|
+
<nav id="fileindex-section" class="section project-section">
|
78
|
+
<h3 class="section-header">Pages</h3>
|
79
|
+
|
80
|
+
<ul>
|
81
|
+
|
82
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
83
|
+
|
84
|
+
</ul>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
<nav id="classindex-section" class="section project-section">
|
88
|
+
<h3 class="section-header">Class and Module Index</h3>
|
89
|
+
|
90
|
+
<ul class="link-list">
|
91
|
+
|
92
|
+
<li><a href="./GemList.html">GemList</a>
|
93
|
+
|
94
|
+
</ul>
|
95
|
+
</nav>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
</nav>
|
99
|
+
|
100
|
+
<div id="documentation">
|
101
|
+
<h1 class="module">module GemList</h1>
|
102
|
+
|
103
|
+
<div id="description" class="description">
|
104
|
+
|
105
|
+
</div><!-- description -->
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<!-- Methods -->
|
120
|
+
|
121
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
122
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
123
|
+
|
124
|
+
|
125
|
+
<div id="method-i-isInstalled" class="method-detail ">
|
126
|
+
|
127
|
+
<div class="method-heading">
|
128
|
+
<span class="method-name">isInstalled</span><span
|
129
|
+
class="method-args">(gemName)</span>
|
130
|
+
<span class="method-click-advice">click to toggle source</span>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
|
134
|
+
<div class="method-description">
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
<div class="method-source-code" id="isInstalled-source">
|
141
|
+
<pre><span class="ruby-comment"># File lib/gem-list.rb, line 14</span>
|
142
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">isInstalled</span> <span class="ruby-identifier">gemName</span>
|
143
|
+
<span class="ruby-keyword">begin</span>
|
144
|
+
<span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>.<span class="ruby-identifier">find_by_name</span>(<span class="ruby-identifier">gemName</span>).<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>)
|
145
|
+
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">LoadError</span>
|
146
|
+
<span class="ruby-keyword">false</span>
|
147
|
+
<span class="ruby-keyword">end</span>
|
148
|
+
<span class="ruby-keyword">end</span></pre>
|
149
|
+
</div><!-- isInstalled-source -->
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
</div><!-- isInstalled-method -->
|
157
|
+
|
158
|
+
|
159
|
+
<div id="method-i-list" class="method-detail ">
|
160
|
+
|
161
|
+
<div class="method-heading">
|
162
|
+
<span class="method-name">list</span><span
|
163
|
+
class="method-args">()</span>
|
164
|
+
<span class="method-click-advice">click to toggle source</span>
|
165
|
+
</div>
|
166
|
+
|
167
|
+
|
168
|
+
<div class="method-description">
|
169
|
+
|
170
|
+
<p>def initialize</p>
|
171
|
+
|
172
|
+
<pre class="ruby"><span class="ruby-ivar">@list</span> = []
|
173
|
+
<span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">g</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@list</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">g</span> }
|
174
|
+
</pre>
|
175
|
+
|
176
|
+
<p>end</p>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<div class="method-source-code" id="list-source">
|
181
|
+
<pre><span class="ruby-comment"># File lib/gem-list.rb, line 10</span>
|
182
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">list</span>
|
183
|
+
<span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>.<span class="ruby-identifier">all_names</span>
|
184
|
+
<span class="ruby-keyword">end</span></pre>
|
185
|
+
</div><!-- list-source -->
|
186
|
+
|
187
|
+
</div>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
</div><!-- list-method -->
|
193
|
+
|
194
|
+
|
195
|
+
</section><!-- public-instance-method-details -->
|
196
|
+
|
197
|
+
</section><!-- 5Buntitled-5D -->
|
198
|
+
|
199
|
+
</div><!-- documentation -->
|
200
|
+
|
201
|
+
|
202
|
+
<footer id="validator-badges">
|
203
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
204
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
205
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
206
|
+
</footer>
|
207
|
+
|
@@ -0,0 +1,111 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>README - gem-list 0.1.0</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="project-metadata">
|
47
|
+
<nav id="fileindex-section" class="section project-section">
|
48
|
+
<h3 class="section-header">Pages</h3>
|
49
|
+
|
50
|
+
<ul>
|
51
|
+
|
52
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
53
|
+
|
54
|
+
</ul>
|
55
|
+
</nav>
|
56
|
+
|
57
|
+
<nav id="classindex-section" class="section project-section">
|
58
|
+
<h3 class="section-header">Class and Module Index</h3>
|
59
|
+
|
60
|
+
<ul class="link-list">
|
61
|
+
|
62
|
+
<li><a href="./GemList.html">GemList</a>
|
63
|
+
|
64
|
+
</ul>
|
65
|
+
</nav>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
</nav>
|
69
|
+
|
70
|
+
<div id="documentation" class="description">
|
71
|
+
|
72
|
+
<h1 id="label-gem-list">gem-list</h1>
|
73
|
+
|
74
|
+
<p>Description goes here.</p>
|
75
|
+
|
76
|
+
<h2 id="label-Contributing+to+gem-list">Contributing to gem-list</h2>
|
77
|
+
<ul><li>
|
78
|
+
<p>Check out the latest master to make sure the feature hasn't been
|
79
|
+
implemented or the bug hasn't been fixed yet.</p>
|
80
|
+
</li><li>
|
81
|
+
<p>Check out the issue tracker to make sure someone already hasn't
|
82
|
+
requested it and/or contributed it.</p>
|
83
|
+
</li><li>
|
84
|
+
<p>Fork the project.</p>
|
85
|
+
</li><li>
|
86
|
+
<p>Start a feature/bugfix branch.</p>
|
87
|
+
</li><li>
|
88
|
+
<p>Commit and push until you are happy with your contribution.</p>
|
89
|
+
</li><li>
|
90
|
+
<p>Make sure to add tests for it. This is important so I don't break it in
|
91
|
+
a future version unintentionally.</p>
|
92
|
+
</li><li>
|
93
|
+
<p>Please try not to mess with the Rakefile, version, or history. If you want
|
94
|
+
to have your own version, or is otherwise necessary, that is fine, but
|
95
|
+
please isolate to its own commit so I can cherry-pick around it.</p>
|
96
|
+
</li></ul>
|
97
|
+
|
98
|
+
<h2 id="label-Copyright">Copyright</h2>
|
99
|
+
|
100
|
+
<p>Copyright © 2014 jatla. See LICENSE.txt for further details.</p>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<footer id="validator-badges">
|
107
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
108
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
|
109
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
110
|
+
</footer>
|
111
|
+
|