compact_index 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/README.md +2 -0
- data/compact_index.gemspec +3 -1
- data/lib/compact_index.rb +30 -1
- data/lib/compact_index/version.rb +1 -1
- data/lib/compact_index/versions_file.rb +1 -1
- metadata +36 -9
- data/versions.list +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057af6bb8ef8c7251c6d7d22fc714db46285cd9e
|
4
|
+
data.tar.gz: 3ef2a4c6081ca4c61e1f730a8b68e6e6081d7ae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d7c04c51b9d424f2aa36d2c8b7d30b130c91d39fca80667ea75e561b03499279bb3e4cd5a264fd725c214712a11638c233ad31ce9c4512b415546152cb94314
|
7
|
+
data.tar.gz: b972136984bfe3e5f3fb5b4d835a0816166d37457c473552ea81e49a9a2b91ddffc8dd182593e8338c32a514e894d7c5e78d6013a9d019113f158292d06cadf0
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/compact_index.gemspec
CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.
|
21
|
+
spec.add_dependency "sequel"
|
22
|
+
spec.add_dependency "pg"
|
22
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3"
|
23
25
|
end
|
data/lib/compact_index.rb
CHANGED
@@ -1,5 +1,34 @@
|
|
1
1
|
require "compact_index/version"
|
2
|
+
require "compact_index/versions_file"
|
3
|
+
require "compact_index/gem_info"
|
2
4
|
|
3
5
|
module CompactIndex
|
4
|
-
|
6
|
+
def self.names(conn)
|
7
|
+
"---\n" + GemInfo.new(conn).names.join("\n") + "\n"
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.versions(conn)
|
11
|
+
VersionsFile.new(conn).with_new_gems
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.info(conn, name)
|
15
|
+
output = "---\n"
|
16
|
+
name = [name] if name.kind_of? String
|
17
|
+
GemInfo.new(conn).deps_for(name).each do |row|
|
18
|
+
output << version_line(row) << "\n"
|
19
|
+
end
|
20
|
+
output
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
def self.version_line(row)
|
25
|
+
deps = row[:dependencies].map do |d|
|
26
|
+
[d.first, d.last.gsub(/, /, "&")].join(":")
|
27
|
+
end
|
28
|
+
|
29
|
+
line = row[:number].to_s
|
30
|
+
line << "-#{row[:platform]}" unless row[:platform] == "ruby"
|
31
|
+
line << " " << deps.join(",") if deps.any?
|
32
|
+
line
|
33
|
+
end
|
5
34
|
end
|
metadata
CHANGED
@@ -1,29 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compact_index
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fotanus@gmail.com
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: sequel
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pg
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,20 @@ dependencies:
|
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3'
|
41
69
|
description:
|
42
70
|
email:
|
43
71
|
- Felipe Tanus
|
@@ -67,7 +95,6 @@ files:
|
|
67
95
|
- lib/compact_index/gem_info.rb
|
68
96
|
- lib/compact_index/version.rb
|
69
97
|
- lib/compact_index/versions_file.rb
|
70
|
-
- versions.list
|
71
98
|
homepage: https://github.com/bundler/compact_index
|
72
99
|
licenses:
|
73
100
|
- MIT
|
data/versions.list
DELETED