librarianp 0.4.0 → 0.5.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/librarian/dsl.rb +4 -4
- data/lib/librarian/dsl/receiver.rb +3 -0
- data/lib/librarian/dsl/target.rb +6 -1
- data/lib/librarian/lockfile/parser.rb +7 -7
- data/lib/librarian/manifest.rb +10 -135
- data/lib/librarian/manifest/pre_release_version.rb +64 -0
- data/lib/librarian/manifest/version.rb +78 -0
- data/lib/librarian/resolver/implementation.rb +4 -1
- data/lib/librarian/source/path.rb +3 -4
- data/lib/librarian/spec.rb +4 -3
- data/librarian.gemspec +4 -4
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c9c043a9c095f35be71316fc463fa89963eb09
|
4
|
+
data.tar.gz: d168a71ffbd94a792468e92931935f8db64c1a07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0bcef3eb96ee9f1e87326404780b332ce6fc4a5046740822795008e49177b4d5fd2d582dbc5b3c5647bc99391c62dba487f37cc05ef8f22ba58cd22919e55b4
|
7
|
+
data.tar.gz: 9dff1bdb2f165d2c0f2e649007d81ff02eeba10b24b3d81343594a02472edb6a64d8878c1f24f3cbf36d2a85f56cf44402dd65ba9dfb2472e59322f1c14af0cf
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/lib/librarian/dsl.rb
CHANGED
@@ -82,10 +82,10 @@ module Librarian
|
|
82
82
|
def run(specfile = nil, sources = [])
|
83
83
|
specfile, sources = nil, specfile if specfile.kind_of?(Array) && sources.empty?
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
85
|
+
if specfile.kind_of?(Pathname) and !File.exists?(specfile)
|
86
|
+
specfile = default_specfile
|
87
|
+
debug { "Specfile not found, using defaults: #{specfile}" } unless specfile.nil?
|
88
|
+
end
|
89
89
|
|
90
90
|
Target.new(self).tap do |target|
|
91
91
|
target.precache_sources(sources)
|
@@ -10,6 +10,9 @@ module Librarian
|
|
10
10
|
define_method(target.dependency_name) do |*args, &block|
|
11
11
|
target.dependency(*args, &block)
|
12
12
|
end
|
13
|
+
define_method(:exclusion) do |*args, &block|
|
14
|
+
target.exclusion(*args, &block)
|
15
|
+
end
|
13
16
|
define_method(:source) do |*args, &block|
|
14
17
|
target.source(*args, &block)
|
15
18
|
end
|
data/lib/librarian/dsl/target.rb
CHANGED
@@ -42,6 +42,7 @@ module Librarian
|
|
42
42
|
@source_cache = {}
|
43
43
|
@source_shortcuts = {}
|
44
44
|
@dependencies = []
|
45
|
+
@exclusions = []
|
45
46
|
SCOPABLES.each do |scopable|
|
46
47
|
instance_variable_set(:"@#{scopable}", [])
|
47
48
|
end
|
@@ -51,7 +52,7 @@ module Librarian
|
|
51
52
|
end
|
52
53
|
|
53
54
|
def to_spec
|
54
|
-
Spec.new(@sources, @dependencies)
|
55
|
+
Spec.new(@sources, @dependencies, @exclusions)
|
55
56
|
end
|
56
57
|
|
57
58
|
def dependency(name, *args)
|
@@ -61,6 +62,10 @@ module Librarian
|
|
61
62
|
@dependencies << dep
|
62
63
|
end
|
63
64
|
|
65
|
+
def exclusion(name)
|
66
|
+
@exclusions << name
|
67
|
+
end
|
68
|
+
|
64
69
|
def source(name, param = nil, options = nil, &block)
|
65
70
|
if !(Hash === name) && [Array, Hash, Proc].any?{|c| c === param} && !options && !block
|
66
71
|
define_source_shortcut(name, param)
|
@@ -39,18 +39,18 @@ module Librarian
|
|
39
39
|
source_type_name = lines.shift
|
40
40
|
source[:type] = source_type_names_map[source_type_name]
|
41
41
|
options = {}
|
42
|
-
while lines.first =~ /^ {2}([\w
|
42
|
+
while lines.first =~ /^ {2}([\w\-\/]+):\s+(.+)$/
|
43
43
|
lines.shift
|
44
44
|
options[$1.to_sym] = $2
|
45
45
|
end
|
46
46
|
source[:options] = options
|
47
47
|
lines.shift # specs
|
48
48
|
manifests = {}
|
49
|
-
while lines.first =~ /^ {4}([\w
|
49
|
+
while lines.first =~ /^ {4}([\w\-\/]+) \((.*)\)$/
|
50
50
|
lines.shift
|
51
51
|
name = $1
|
52
52
|
manifests[name] = {:version => $2, :dependencies => {}}
|
53
|
-
while lines.first =~ /^ {6}([\w
|
53
|
+
while lines.first =~ /^ {6}([\w\-\/]+) \((.*)\)$/
|
54
54
|
lines.shift
|
55
55
|
manifests[name][:dependencies][$1] = $2.split(/,\s*/)
|
56
56
|
end
|
@@ -63,10 +63,10 @@ module Librarian
|
|
63
63
|
|
64
64
|
def extract_and_parse_dependencies(lines, manifests_index)
|
65
65
|
dependencies = []
|
66
|
-
while lines.first =~ /^ {2}([\w
|
66
|
+
while lines.first =~ /^ {2}([\w\-\/]+)(?: \((.*)\))?$/
|
67
67
|
lines.shift
|
68
68
|
name, requirement = $1, $2.split(/,\s*/)
|
69
|
-
dependencies <<
|
69
|
+
dependencies << environment.dsl_class.dependency_type.new(name, requirement, manifests_index[name].source)
|
70
70
|
end
|
71
71
|
dependencies
|
72
72
|
end
|
@@ -81,7 +81,7 @@ module Librarian
|
|
81
81
|
source,
|
82
82
|
manifest_name,
|
83
83
|
manifest_ast[:version],
|
84
|
-
manifest_ast[:dependencies].map{|k, v|
|
84
|
+
manifest_ast[:dependencies].map{|k, v| environment.dsl_class.dependency_type.new(k, v, nil)}
|
85
85
|
)
|
86
86
|
end
|
87
87
|
end
|
@@ -92,7 +92,7 @@ module Librarian
|
|
92
92
|
manifests = compile_placeholder_manifests(sources_ast)
|
93
93
|
manifests = manifests.map do |name, manifest|
|
94
94
|
dependencies = manifest.dependencies.map do |d|
|
95
|
-
|
95
|
+
environment.dsl_class.dependency_type.new(d.name, d.requirement, manifests[d.name].source)
|
96
96
|
end
|
97
97
|
real = Manifest.new(manifest.source, manifest.name)
|
98
98
|
real.version = manifest.version
|
data/lib/librarian/manifest.rb
CHANGED
@@ -1,142 +1,10 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'librarian/manifest/version'
|
3
|
+
require 'librarian/manifest/pre_release_version'
|
2
4
|
|
3
5
|
module Librarian
|
4
6
|
class Manifest
|
5
7
|
|
6
|
-
class Version
|
7
|
-
include Comparable
|
8
|
-
|
9
|
-
@@SEMANTIC_VERSION_PATTERN = /^([0-9]+\.[0-9]+(?:\.[0-9]+)?)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/
|
10
|
-
|
11
|
-
attr_reader :prerelease
|
12
|
-
|
13
|
-
def initialize(*args)
|
14
|
-
args = initialize_normalize_args(args)
|
15
|
-
semver = Version.parse_semver(*args)
|
16
|
-
if semver
|
17
|
-
self.backing = Gem::Version.new(semver[:version])
|
18
|
-
@prerelease = semver[:prerelease]
|
19
|
-
@full_version = semver[:full_version]
|
20
|
-
else
|
21
|
-
self.backing = Gem::Version.new(*args)
|
22
|
-
@full_version = to_gem_version.to_s
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def to_gem_version
|
27
|
-
backing
|
28
|
-
end
|
29
|
-
|
30
|
-
def <=>(other)
|
31
|
-
cmp = to_gem_version <=> other.to_gem_version
|
32
|
-
|
33
|
-
# Should compare pre-release versions?
|
34
|
-
if cmp == 0 and not (prerelease.nil? and other.prerelease.nil?)
|
35
|
-
case # Versions without prerelease take precedence
|
36
|
-
when (prerelease.nil? and not other.prerelease.nil?)
|
37
|
-
1
|
38
|
-
when (not prerelease.nil? and other.prerelease.nil?)
|
39
|
-
-1
|
40
|
-
else
|
41
|
-
prerelease <=> other.prerelease
|
42
|
-
end
|
43
|
-
else
|
44
|
-
cmp
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def to_s
|
49
|
-
@full_version
|
50
|
-
end
|
51
|
-
|
52
|
-
def inspect
|
53
|
-
"#<#{self.class} #{to_s}>"
|
54
|
-
end
|
55
|
-
|
56
|
-
def self.parse_semver(version_string)
|
57
|
-
parsed = @@SEMANTIC_VERSION_PATTERN.match(version_string.strip)
|
58
|
-
if parsed
|
59
|
-
{
|
60
|
-
:full_version => parsed[0],
|
61
|
-
:version => parsed[1],
|
62
|
-
:prerelease => (PreReleaseVersion.new(parsed[2]) if parsed[2]),
|
63
|
-
:build => parsed[3]
|
64
|
-
}
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
private
|
69
|
-
|
70
|
-
def initialize_normalize_args(args)
|
71
|
-
args.map do |arg|
|
72
|
-
arg = [arg] if self.class === arg
|
73
|
-
arg
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
attr_accessor :backing
|
78
|
-
end
|
79
|
-
|
80
|
-
class PreReleaseVersion
|
81
|
-
|
82
|
-
# Compares pre-release component ids using Semver 2.0.0 spec
|
83
|
-
def self.compare_components(this_id,other_id)
|
84
|
-
case # Strings have higher precedence than numbers
|
85
|
-
when (this_id.is_a?(Integer) and other_id.is_a?(String))
|
86
|
-
-1
|
87
|
-
when (this_id.is_a?(String) and other_id.is_a?(Integer))
|
88
|
-
1
|
89
|
-
else
|
90
|
-
this_id <=> other_id
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
# Parses pre-release components `a.b.c` into an array ``[a,b,c]`
|
95
|
-
# Converts numeric components into +Integer+
|
96
|
-
def self.parse(prerelease)
|
97
|
-
if prerelease.nil?
|
98
|
-
[]
|
99
|
-
else
|
100
|
-
prerelease.split('.').collect do |id|
|
101
|
-
id = Integer(id) if /^[0-9]+$/ =~ id
|
102
|
-
id
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
include Comparable
|
108
|
-
|
109
|
-
attr_reader :components
|
110
|
-
|
111
|
-
def initialize(prerelease)
|
112
|
-
@prerelease = prerelease
|
113
|
-
@components = PreReleaseVersion.parse(prerelease)
|
114
|
-
end
|
115
|
-
|
116
|
-
def to_s
|
117
|
-
@prerelease
|
118
|
-
end
|
119
|
-
|
120
|
-
def <=>(other)
|
121
|
-
# null-fill zip array to prevent loss of components
|
122
|
-
z = Array.new([components.length,other.components.length])
|
123
|
-
|
124
|
-
# Compare each component against the other
|
125
|
-
comp = z.zip(components,other.components).collect do |ids|
|
126
|
-
case # All components being equal, the version with more of them takes precedence
|
127
|
-
when ids[1].nil? # Self has less elements, other wins
|
128
|
-
-1
|
129
|
-
when ids[2].nil? # Other has less elements, self wins
|
130
|
-
1
|
131
|
-
else
|
132
|
-
PreReleaseVersion.compare_components(ids[1],ids[2])
|
133
|
-
end
|
134
|
-
end
|
135
|
-
# Chose the first non-zero comparison or return 0
|
136
|
-
comp.delete_if {|c| c == 0}[0] || 0
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
8
|
attr_accessor :source, :name, :extra
|
141
9
|
private :source=, :name=, :extra=
|
142
10
|
|
@@ -190,6 +58,13 @@ module Librarian
|
|
190
58
|
end
|
191
59
|
end
|
192
60
|
|
61
|
+
# Remove dependencies excluded, and return them
|
62
|
+
def exclude_dependencies!(exclusions)
|
63
|
+
included, excluded = dependencies.partition { |d| !exclusions.include? d.name }
|
64
|
+
self.dependencies = included
|
65
|
+
excluded
|
66
|
+
end
|
67
|
+
|
193
68
|
def satisfies?(dependency)
|
194
69
|
dependency.requirement.satisfied_by?(version)
|
195
70
|
end
|
@@ -226,7 +101,7 @@ module Librarian
|
|
226
101
|
# with the source of the first one and merged requirements
|
227
102
|
def merge_dependencies(dependencies)
|
228
103
|
requirement = Dependency::Requirement.new(*dependencies.map{|d| d.requirement})
|
229
|
-
|
104
|
+
dependencies.first.class.new(dependencies.first.name, requirement, dependencies.first.source)
|
230
105
|
end
|
231
106
|
|
232
107
|
# Avoid duplicated dependencies with different sources or requirements
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module Librarian
|
2
|
+
class Manifest
|
3
|
+
|
4
|
+
class PreReleaseVersion
|
5
|
+
|
6
|
+
# Compares pre-release component ids using Semver 2.0.0 spec
|
7
|
+
def self.compare_components(this_id,other_id)
|
8
|
+
case # Strings have higher precedence than numbers
|
9
|
+
when (this_id.is_a?(Integer) and other_id.is_a?(String))
|
10
|
+
-1
|
11
|
+
when (this_id.is_a?(String) and other_id.is_a?(Integer))
|
12
|
+
1
|
13
|
+
else
|
14
|
+
this_id <=> other_id
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# Parses pre-release components `a.b.c` into an array ``[a,b,c]`
|
19
|
+
# Converts numeric components into +Integer+
|
20
|
+
def self.parse(prerelease)
|
21
|
+
if prerelease.nil?
|
22
|
+
[]
|
23
|
+
else
|
24
|
+
prerelease.split('.').collect do |id|
|
25
|
+
id = Integer(id) if /^[0-9]+$/ =~ id
|
26
|
+
id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
include Comparable
|
32
|
+
|
33
|
+
attr_reader :components
|
34
|
+
|
35
|
+
def initialize(prerelease)
|
36
|
+
@prerelease = prerelease
|
37
|
+
@components = PreReleaseVersion.parse(prerelease)
|
38
|
+
end
|
39
|
+
|
40
|
+
def to_s
|
41
|
+
@prerelease
|
42
|
+
end
|
43
|
+
|
44
|
+
def <=>(other)
|
45
|
+
# null-fill zip array to prevent loss of components
|
46
|
+
z = Array.new([components.length,other.components.length])
|
47
|
+
|
48
|
+
# Compare each component against the other
|
49
|
+
comp = z.zip(components,other.components).collect do |ids|
|
50
|
+
case # All components being equal, the version with more of them takes precedence
|
51
|
+
when ids[1].nil? # Self has less elements, other wins
|
52
|
+
-1
|
53
|
+
when ids[2].nil? # Other has less elements, self wins
|
54
|
+
1
|
55
|
+
else
|
56
|
+
PreReleaseVersion.compare_components(ids[1],ids[2])
|
57
|
+
end
|
58
|
+
end
|
59
|
+
# Chose the first non-zero comparison or return 0
|
60
|
+
comp.delete_if {|c| c == 0}[0] || 0
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
module Librarian
|
2
|
+
class Manifest
|
3
|
+
|
4
|
+
class Version
|
5
|
+
include Comparable
|
6
|
+
|
7
|
+
@@SEMANTIC_VERSION_PATTERN = /^([0-9]+\.[0-9]+(?:\.[0-9]+)?)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/
|
8
|
+
|
9
|
+
attr_reader :prerelease
|
10
|
+
|
11
|
+
def initialize(*args)
|
12
|
+
args = initialize_normalize_args(args)
|
13
|
+
semver = Version.parse_semver(*args)
|
14
|
+
if semver
|
15
|
+
self.backing = Gem::Version.new(semver[:version])
|
16
|
+
@prerelease = semver[:prerelease]
|
17
|
+
@full_version = semver[:full_version]
|
18
|
+
else
|
19
|
+
self.backing = Gem::Version.new(*args)
|
20
|
+
@full_version = to_gem_version.to_s
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def to_gem_version
|
25
|
+
backing
|
26
|
+
end
|
27
|
+
|
28
|
+
def <=>(other)
|
29
|
+
cmp = to_gem_version <=> other.to_gem_version
|
30
|
+
|
31
|
+
# Should compare pre-release versions?
|
32
|
+
if cmp == 0 and not (prerelease.nil? and other.prerelease.nil?)
|
33
|
+
case # Versions without prerelease take precedence
|
34
|
+
when (prerelease.nil? and not other.prerelease.nil?)
|
35
|
+
1
|
36
|
+
when (not prerelease.nil? and other.prerelease.nil?)
|
37
|
+
-1
|
38
|
+
else
|
39
|
+
prerelease <=> other.prerelease
|
40
|
+
end
|
41
|
+
else
|
42
|
+
cmp
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def to_s
|
47
|
+
@full_version
|
48
|
+
end
|
49
|
+
|
50
|
+
def inspect
|
51
|
+
"#<#{self.class} #{to_s}>"
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.parse_semver(version_string)
|
55
|
+
parsed = @@SEMANTIC_VERSION_PATTERN.match(version_string.strip)
|
56
|
+
if parsed
|
57
|
+
{
|
58
|
+
:full_version => parsed[0],
|
59
|
+
:version => parsed[1],
|
60
|
+
:prerelease => (PreReleaseVersion.new(parsed[2]) if parsed[2]),
|
61
|
+
:build => parsed[3]
|
62
|
+
}
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
private
|
67
|
+
|
68
|
+
def initialize_normalize_args(args)
|
69
|
+
args.map do |arg|
|
70
|
+
arg = [arg] if self.class === arg
|
71
|
+
arg
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
attr_accessor :backing
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -64,6 +64,9 @@ module Librarian
|
|
64
64
|
|
65
65
|
resolving_dependency_map_find_manifests(dependency) do |manifest|
|
66
66
|
check_manifest(state, manifest) or next
|
67
|
+
manifest.exclude_dependencies!(spec.exclusions).each do |d|
|
68
|
+
debug { "Excluding dependency #{d.name} from #{manifest.name}" }
|
69
|
+
end
|
67
70
|
check_manifest_for_cycles(state, manifest) or next unless cyclic
|
68
71
|
|
69
72
|
m = state.manifests.merge(dependency.name => manifest)
|
@@ -139,7 +142,7 @@ module Librarian
|
|
139
142
|
return dependency if dependency.source
|
140
143
|
|
141
144
|
source = dependency_source_map[dependency.name] || default_source
|
142
|
-
|
145
|
+
dependency.class.new(dependency.name, dependency.requirement, source)
|
143
146
|
end
|
144
147
|
|
145
148
|
def sourced_dependencies_for_manifest(manifest)
|
@@ -10,13 +10,12 @@ module Librarian
|
|
10
10
|
lock_name 'PATH'
|
11
11
|
spec_options []
|
12
12
|
|
13
|
-
attr_accessor :environment
|
14
|
-
private :environment=
|
15
|
-
attr_reader :path
|
13
|
+
attr_accessor :environment, :path
|
14
|
+
private :environment=, :path=
|
16
15
|
|
17
16
|
def initialize(environment, path, options)
|
18
17
|
self.environment = environment
|
19
|
-
|
18
|
+
self.path = path
|
20
19
|
end
|
21
20
|
|
22
21
|
def to_s
|
data/lib/librarian/spec.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
module Librarian
|
2
2
|
class Spec
|
3
3
|
|
4
|
-
attr_accessor :sources, :dependencies
|
5
|
-
private :sources=, :dependencies=
|
4
|
+
attr_accessor :sources, :dependencies, :exclusions
|
5
|
+
private :sources=, :dependencies=, :exclusions=
|
6
6
|
|
7
|
-
def initialize(sources, dependencies)
|
7
|
+
def initialize(sources, dependencies, exclusions = [])
|
8
8
|
self.sources = sources
|
9
9
|
self.dependencies = dependencies
|
10
|
+
self.exclusions = exclusions
|
10
11
|
end
|
11
12
|
|
12
13
|
end
|
data/librarian.gemspec
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: librarianp 0.
|
2
|
+
# stub: librarianp 0.5.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "librarianp"
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.5.0"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
10
10
|
s.authors = ["Jay Feldblum", "Carlos Sanchez"]
|
11
|
-
s.date = "2015-02-
|
11
|
+
s.date = "2015-02-27"
|
12
12
|
s.description = "A Framework for Bundlers, used by librarian-puppet."
|
13
13
|
s.email = ["y_feldblum@yahoo.com", "carlos@apache.org"]
|
14
|
-
s.files = [".gitignore", ".rspec", ".travis.yml", "CHANGELOG.md", "Gemfile", "Gemfile.lock", "LICENSE.txt", "README.md", "Rakefile", "VERSION", "lib/librarian.rb", "lib/librarian/action.rb", "lib/librarian/action/base.rb", "lib/librarian/action/clean.rb", "lib/librarian/action/ensure.rb", "lib/librarian/action/install.rb", "lib/librarian/action/persist_resolution_mixin.rb", "lib/librarian/action/resolve.rb", "lib/librarian/action/update.rb", "lib/librarian/algorithms.rb", "lib/librarian/cli.rb", "lib/librarian/cli/manifest_presenter.rb", "lib/librarian/config.rb", "lib/librarian/config/database.rb", "lib/librarian/config/file_source.rb", "lib/librarian/config/hash_source.rb", "lib/librarian/config/source.rb", "lib/librarian/dependency.rb", "lib/librarian/dsl.rb", "lib/librarian/dsl/receiver.rb", "lib/librarian/dsl/target.rb", "lib/librarian/environment.rb", "lib/librarian/environment/runtime_cache.rb", "lib/librarian/error.rb", "lib/librarian/helpers.rb", "lib/librarian/linter/source_linter.rb", "lib/librarian/lockfile.rb", "lib/librarian/lockfile/compiler.rb", "lib/librarian/lockfile/parser.rb", "lib/librarian/logger.rb", "lib/librarian/manifest.rb", "lib/librarian/manifest_set.rb", "lib/librarian/mock.rb", "lib/librarian/mock/cli.rb", "lib/librarian/mock/dsl.rb", "lib/librarian/mock/environment.rb", "lib/librarian/mock/extension.rb", "lib/librarian/mock/source.rb", "lib/librarian/mock/source/mock.rb", "lib/librarian/mock/source/mock/registry.rb", "lib/librarian/mock/version.rb", "lib/librarian/posix.rb", "lib/librarian/resolution.rb", "lib/librarian/resolver.rb", "lib/librarian/resolver/implementation.rb", "lib/librarian/rspec/support/cli_macro.rb", "lib/librarian/source.rb", "lib/librarian/source/basic_api.rb", "lib/librarian/source/git.rb", "lib/librarian/source/git/repository.rb", "lib/librarian/source/local.rb", "lib/librarian/source/path.rb", "lib/librarian/spec.rb", "lib/librarian/spec_change_set.rb", "lib/librarian/specfile.rb", "lib/librarian/support/abstract_method.rb", "lib/librarian/ui.rb", "lib/librarian/version.rb", "librarian.gemspec", "spec/functional/cli_spec.rb", "spec/functional/posix_spec.rb", "spec/functional/source/git/repository_spec.rb", "spec/functional/source/git_spec.rb", "spec/support/fakefs.rb", "spec/support/method_patch_macro.rb", "spec/support/project_path_macro.rb", "spec/support/with_env_macro.rb", "spec/unit/action/base_spec.rb", "spec/unit/action/clean_spec.rb", "spec/unit/action/ensure_spec.rb", "spec/unit/action/install_spec.rb", "spec/unit/algorithms_spec.rb", "spec/unit/config/database_spec.rb", "spec/unit/dependency/requirement_spec.rb", "spec/unit/dependency_spec.rb", "spec/unit/dsl_spec.rb", "spec/unit/environment/runtime_cache_spec.rb", "spec/unit/environment_spec.rb", "spec/unit/lockfile/parser_spec.rb", "spec/unit/lockfile_spec.rb", "spec/unit/manifest/version_spec.rb", "spec/unit/manifest_set_spec.rb", "spec/unit/manifest_spec.rb", "spec/unit/mock/environment_spec.rb", "spec/unit/mock/source/mock_spec.rb", "spec/unit/resolver_spec.rb", "spec/unit/source/git_spec.rb", "spec/unit/spec_change_set_spec.rb"]
|
14
|
+
s.files = [".gitignore", ".rspec", ".travis.yml", "CHANGELOG.md", "Gemfile", "Gemfile.lock", "LICENSE.txt", "README.md", "Rakefile", "VERSION", "lib/librarian.rb", "lib/librarian/action.rb", "lib/librarian/action/base.rb", "lib/librarian/action/clean.rb", "lib/librarian/action/ensure.rb", "lib/librarian/action/install.rb", "lib/librarian/action/persist_resolution_mixin.rb", "lib/librarian/action/resolve.rb", "lib/librarian/action/update.rb", "lib/librarian/algorithms.rb", "lib/librarian/cli.rb", "lib/librarian/cli/manifest_presenter.rb", "lib/librarian/config.rb", "lib/librarian/config/database.rb", "lib/librarian/config/file_source.rb", "lib/librarian/config/hash_source.rb", "lib/librarian/config/source.rb", "lib/librarian/dependency.rb", "lib/librarian/dsl.rb", "lib/librarian/dsl/receiver.rb", "lib/librarian/dsl/target.rb", "lib/librarian/environment.rb", "lib/librarian/environment/runtime_cache.rb", "lib/librarian/error.rb", "lib/librarian/helpers.rb", "lib/librarian/linter/source_linter.rb", "lib/librarian/lockfile.rb", "lib/librarian/lockfile/compiler.rb", "lib/librarian/lockfile/parser.rb", "lib/librarian/logger.rb", "lib/librarian/manifest.rb", "lib/librarian/manifest/pre_release_version.rb", "lib/librarian/manifest/version.rb", "lib/librarian/manifest_set.rb", "lib/librarian/mock.rb", "lib/librarian/mock/cli.rb", "lib/librarian/mock/dsl.rb", "lib/librarian/mock/environment.rb", "lib/librarian/mock/extension.rb", "lib/librarian/mock/source.rb", "lib/librarian/mock/source/mock.rb", "lib/librarian/mock/source/mock/registry.rb", "lib/librarian/mock/version.rb", "lib/librarian/posix.rb", "lib/librarian/resolution.rb", "lib/librarian/resolver.rb", "lib/librarian/resolver/implementation.rb", "lib/librarian/rspec/support/cli_macro.rb", "lib/librarian/source.rb", "lib/librarian/source/basic_api.rb", "lib/librarian/source/git.rb", "lib/librarian/source/git/repository.rb", "lib/librarian/source/local.rb", "lib/librarian/source/path.rb", "lib/librarian/spec.rb", "lib/librarian/spec_change_set.rb", "lib/librarian/specfile.rb", "lib/librarian/support/abstract_method.rb", "lib/librarian/ui.rb", "lib/librarian/version.rb", "librarian.gemspec", "spec/functional/cli_spec.rb", "spec/functional/posix_spec.rb", "spec/functional/source/git/repository_spec.rb", "spec/functional/source/git_spec.rb", "spec/support/fakefs.rb", "spec/support/method_patch_macro.rb", "spec/support/project_path_macro.rb", "spec/support/with_env_macro.rb", "spec/unit/action/base_spec.rb", "spec/unit/action/clean_spec.rb", "spec/unit/action/ensure_spec.rb", "spec/unit/action/install_spec.rb", "spec/unit/algorithms_spec.rb", "spec/unit/config/database_spec.rb", "spec/unit/dependency/requirement_spec.rb", "spec/unit/dependency_spec.rb", "spec/unit/dsl_spec.rb", "spec/unit/environment/runtime_cache_spec.rb", "spec/unit/environment_spec.rb", "spec/unit/lockfile/parser_spec.rb", "spec/unit/lockfile_spec.rb", "spec/unit/manifest/version_spec.rb", "spec/unit/manifest_set_spec.rb", "spec/unit/manifest_spec.rb", "spec/unit/mock/environment_spec.rb", "spec/unit/mock/source/mock_spec.rb", "spec/unit/resolver_spec.rb", "spec/unit/source/git_spec.rb", "spec/unit/spec_change_set_spec.rb"]
|
15
15
|
s.homepage = "https://github.com/carlossg/librarian"
|
16
16
|
s.licenses = ["MIT"]
|
17
17
|
s.rubygems_version = "2.4.3"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librarianp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Feldblum
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -130,6 +130,8 @@ files:
|
|
130
130
|
- lib/librarian/lockfile/parser.rb
|
131
131
|
- lib/librarian/logger.rb
|
132
132
|
- lib/librarian/manifest.rb
|
133
|
+
- lib/librarian/manifest/pre_release_version.rb
|
134
|
+
- lib/librarian/manifest/version.rb
|
133
135
|
- lib/librarian/manifest_set.rb
|
134
136
|
- lib/librarian/mock.rb
|
135
137
|
- lib/librarian/mock/cli.rb
|