bozo-scripts 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5034530b59f4be050e3aef0c1d49b86f829bf347
4
- data.tar.gz: 63599779b972a28af3509c15b241f996b046c067
3
+ metadata.gz: ef9f74375f6f2e23af7a2621da543c8697ff424b
4
+ data.tar.gz: d63a4b0221e53efd90134d9ea5325be3d045f6f5
5
5
  SHA512:
6
- metadata.gz: a8f9594378e20e52c6fc27f5e8e12b55766aba9531482029b3660e7819e5b85401e52e1ce77b33f7efc42bac73b94627529cfc257c0bf1ce4844643b6b6b6eb2
7
- data.tar.gz: 196ea803db2ddb9eaa76b8b4db0ecc8e21723c26556dbea83267baa445bb92630db7ea4254ad67a768960d41b635130a509e6e619c39eb1ad7dfb4f8e2acc46d
6
+ metadata.gz: fb6d3c7775e698e4d492f2142f0cd95514b724cfd0e4ee01cacf61185e4cd4c56243922dbdb6fc66ea3cd15199b86741f5ba139eb34a4dcc8b4ed430f85d1af5
7
+ data.tar.gz: 91cc0be8c2c3bb9d91b37535a2d8c60058128aa5bf0601bd146d49662d968ef48d8edcb55a16fd0c8e033609170a61fac68f808dff313565923b6a1172f076ae
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.17.0
1
+ 0.18.0
@@ -20,7 +20,7 @@ module Bozo::Packagers
20
20
  end
21
21
 
22
22
  def library_with_option(project, opts = {})
23
- @libraries << LibraryPackage.new(project, opts[:extfiles], self, opts[:excluded_references])
23
+ @libraries << LibraryPackage.new(project, opts[:extfiles], self, opts[:excluded_references], opts[:dependency_versions])
24
24
  end
25
25
 
26
26
  def executable(project)
@@ -167,11 +167,12 @@ module Bozo::Packagers
167
167
 
168
168
  class LibraryPackage
169
169
 
170
- def initialize(project, extfiles, nuget, excluded_references = [])
170
+ def initialize(project, extfiles, nuget, excluded_references = [], dependency_versions = {})
171
171
  @name = project
172
172
  @nuget = nuget
173
- @extfiles = extfiles
174
- @excluded_references = excluded_references
173
+ @extfiles = extfiles || {}
174
+ @excluded_references = excluded_references || []
175
+ @dependency_versions = dependency_versions || {}
175
176
  end
176
177
 
177
178
  def name
@@ -214,7 +215,9 @@ module Bozo::Packagers
214
215
  doc = Nokogiri::XML(File.open(package_file))
215
216
 
216
217
  dependencies = doc.xpath('//packages/package').map do |node|
217
- {:id => node[:id], :version => "[#{node[:version]}]"} unless (@excluded_references.include?(node[:id]) || node[:developmentDependency] == "true")
218
+ id = node[:id]
219
+ version = @dependency_versions[id] || "[#{node[:version]}]"
220
+ {:id => id, :version => version} unless (@excluded_references.include?(id) || node[:developmentDependency] == "true")
218
221
  end.compact
219
222
  end
220
223
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bozo-scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garry Shutler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-30 00:00:00.000000000 Z
12
+ date: 2017-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project: bozo-scripts
147
- rubygems_version: 2.6.10
147
+ rubygems_version: 2.4.5.1
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Zopa build system scripts