librarianp 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/librarian/dsl.rb +20 -2
- data/librarian.gemspec +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba0b480a24c69d616894564789dedde87e711120
|
4
|
+
data.tar.gz: c59aea592433b7cae32f3f4a4b8cfbe5e40aa463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f1ee150fb236d72793ba05c4d2dba4cfe29364e862e9a8189c2641477a5935610103fcd2f88fd17fe07e00446c34fec9704f486a10490b8e76ea3dd9a1db84e
|
7
|
+
data.tar.gz: c15fc1536c848418fe5aade277508341345abf5dbf36bb752d9af6f3ff9227c25eded6ff4b7c7e1a4cb45acb404eff08fcd5aef4a74baa47e2bb25730b596ec6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.3.0
|
4
|
+
|
5
|
+
* Allow customizing default specfile and receiver downstream
|
6
|
+
|
7
|
+
## 0.2.0
|
8
|
+
|
9
|
+
* Remove highline gem not actually needed
|
10
|
+
* Handle version ranges and 1.x type strings
|
11
|
+
* Handle prerelease versions and semver
|
12
|
+
* Add a logger warn method
|
13
|
+
* Add a better error message if module doesn't exist while resolving dependencies
|
14
|
+
|
3
15
|
## 0.1.2
|
4
16
|
|
5
17
|
* \#153. Mark the license in the gemspec.
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/librarian/dsl.rb
CHANGED
@@ -67,16 +67,34 @@ module Librarian
|
|
67
67
|
self.environment = environment
|
68
68
|
end
|
69
69
|
|
70
|
+
def default_specfile
|
71
|
+
nil
|
72
|
+
end
|
73
|
+
|
74
|
+
def post_process_target(target)
|
75
|
+
nil
|
76
|
+
end
|
77
|
+
|
78
|
+
def receiver(target)
|
79
|
+
Receiver.new(target)
|
80
|
+
end
|
81
|
+
|
70
82
|
def run(specfile = nil, sources = [])
|
71
83
|
specfile, sources = nil, specfile if specfile.kind_of?(Array) && sources.empty?
|
72
84
|
|
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
|
+
|
73
90
|
Target.new(self).tap do |target|
|
74
91
|
target.precache_sources(sources)
|
75
92
|
debug_named_source_cache("Pre-Cached Sources", target)
|
76
93
|
|
77
94
|
specfile ||= Proc.new if block_given?
|
78
|
-
receiver
|
79
|
-
|
95
|
+
receiver(target).run(specfile)
|
96
|
+
|
97
|
+
post_process_target(target)
|
80
98
|
|
81
99
|
debug_named_source_cache("Post-Cached Sources", target)
|
82
100
|
end.to_spec
|
data/librarian.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: librarianp 0.
|
2
|
+
# stub: librarianp 0.3.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.3.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"]
|
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Feldblum
|
@@ -241,3 +241,4 @@ test_files:
|
|
241
241
|
- spec/unit/resolver_spec.rb
|
242
242
|
- spec/unit/source/git_spec.rb
|
243
243
|
- spec/unit/spec_change_set_spec.rb
|
244
|
+
has_rdoc:
|