albacore 2.5.3 → 2.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/albacore.gemspec +1 -0
- data/lib/albacore/task_types/nugets.rb +8 -0
- data/lib/albacore/task_types/nugets_pack.rb +5 -0
- data/lib/albacore/task_types/nugets_restore.rb +5 -0
- data/lib/albacore/version.rb +1 -1
- data/spec/nugets_find_gem_exe_spec.rb +21 -0
- data/spec/nugets_pack_spec.rb +7 -0
- data/spec/nugets_restore_spec.rb +8 -0
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 037fa6dbedf1e1239b915c4c550ac8f38fb28c13
|
4
|
+
data.tar.gz: 03dd9255fa541cdc7c0aa4233391c3ff02bb5308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fc9fd73a76056b48f398536be3d2a77de5dc69449a0218a6421a660cb2ca971784606b89db8309322992b532500adcaf76e5107004f0dff6f3487473aa3f0c8
|
7
|
+
data.tar.gz: c49f9b56d17b9a554136976c7323297b31763ff027bbe8d000698fa852dde8534df9adfa38509370222be90d7dabbfa12a770c9f4866bf64bb6847e10268d1fb
|
data/albacore.gemspec
CHANGED
@@ -28,6 +28,7 @@ EOF
|
|
28
28
|
|
29
29
|
s.add_development_dependency 'rubygems-tasks', '~>0.2'
|
30
30
|
s.add_development_dependency 'rspec', '~> 3.00'
|
31
|
+
s.add_development_dependency 'nuget', '~> 2.8'
|
31
32
|
|
32
33
|
s.files = `git ls-files`.split("\n").concat(Dir.glob('./resources/**'))
|
33
34
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
@@ -11,6 +11,7 @@ require 'albacore/cross_platform_cmd'
|
|
11
11
|
require 'albacore/project'
|
12
12
|
require 'albacore/logging'
|
13
13
|
require 'albacore/nuget_model'
|
14
|
+
require 'albacore/task_types/nugets'
|
14
15
|
|
15
16
|
module Albacore
|
16
17
|
module NugetsPack
|
@@ -183,6 +184,10 @@ and report a bug to albacore with the full output. Here's the nuget process outp
|
|
183
184
|
@nuget_dependencies = false
|
184
185
|
end
|
185
186
|
|
187
|
+
def nuget_gem_exe
|
188
|
+
@exe = Albacore::Nugets::find_nuget_gem_exe
|
189
|
+
end
|
190
|
+
|
186
191
|
# gets the options specified for the task, used from the task
|
187
192
|
def opts
|
188
193
|
files = @files.respond_to?(:each) ? @files : [@files]
|
@@ -3,6 +3,7 @@ require 'nokogiri'
|
|
3
3
|
require 'albacore/paths'
|
4
4
|
require 'albacore/cmd_config'
|
5
5
|
require 'albacore/cross_platform_cmd'
|
6
|
+
require 'albacore/task_types/nugets'
|
6
7
|
require 'albacore/task_types/nugets_authentication'
|
7
8
|
|
8
9
|
module Albacore
|
@@ -136,6 +137,10 @@ module Albacore
|
|
136
137
|
readd.execute
|
137
138
|
end
|
138
139
|
|
140
|
+
def nuget_gem_exe
|
141
|
+
@exe = Albacore::Nugets::find_nuget_gem_exe
|
142
|
+
end
|
143
|
+
|
139
144
|
def opts_for_pkgcfg pkg
|
140
145
|
pars = parameters.to_a
|
141
146
|
debug "include_official nuget repo: #{include_official}"
|
data/lib/albacore/version.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'albacore'
|
5
|
+
require 'albacore/task_types/nugets'
|
6
|
+
|
7
|
+
|
8
|
+
describe "when trying to find nuget exe in gem" do
|
9
|
+
|
10
|
+
subject do
|
11
|
+
Albacore::Nugets::find_nuget_gem_exe
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should return path to the correct executable" do
|
15
|
+
expect(subject).to end_with('nuget.exe')
|
16
|
+
end
|
17
|
+
|
18
|
+
it "the path should point to something" do
|
19
|
+
expect(File.exists?( subject)).to be true
|
20
|
+
end
|
21
|
+
end
|
data/spec/nugets_pack_spec.rb
CHANGED
@@ -64,6 +64,13 @@ shared_context 'pack_config no symbols' do
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
describe Albacore::NugetsPack::Config, 'when setting #nuget_gem_exe' do
|
68
|
+
it 'should be set to path that exists' do
|
69
|
+
subject.nuget_gem_exe
|
70
|
+
expect(subject.exe).to be_a String
|
71
|
+
expect(File.exists?( subject.exe)).to be true
|
72
|
+
end
|
73
|
+
end
|
67
74
|
# testing the command for nuget
|
68
75
|
|
69
76
|
describe Cmd, "when calling #execute" do
|
data/spec/nugets_restore_spec.rb
CHANGED
@@ -30,6 +30,14 @@ describe Albacore::NugetsRestore::Config, 'when setting #source' do
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
describe Albacore::NugetsRestore::Config, 'when setting #nuget_gem_exe' do
|
34
|
+
it 'should be set to path that exists' do
|
35
|
+
subject.nuget_gem_exe
|
36
|
+
expect(subject.exe).to be_a String
|
37
|
+
expect(File.exists?( subject.exe)).to be true
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
33
41
|
describe Albacore::NugetsRestore::RemoveSourceCmd, 'when calling #execute should remove source' do
|
34
42
|
let(:cmd) { Albacore::NugetsRestore::RemoveSourceCmd.new 'nuget.exe', hafsrc }
|
35
43
|
include_context 'cmd context'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: albacore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrik Feldt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -95,6 +95,20 @@ dependencies:
|
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '3.00'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: nuget
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '2.8'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '2.8'
|
98
112
|
description: |2
|
99
113
|
Easily build your .Net or Mono project using this collection of Rake tasks.
|
100
114
|
Albacore assist you in creating nugets, managing nugets, building your projects,
|
@@ -156,6 +170,7 @@ files:
|
|
156
170
|
- lib/albacore/task_types/asmver/fs.rb
|
157
171
|
- lib/albacore/task_types/asmver/vb.rb
|
158
172
|
- lib/albacore/task_types/build.rb
|
173
|
+
- lib/albacore/task_types/nugets.rb
|
159
174
|
- lib/albacore/task_types/nugets_authentication.rb
|
160
175
|
- lib/albacore/task_types/nugets_pack.rb
|
161
176
|
- lib/albacore/task_types/nugets_restore.rb
|
@@ -186,6 +201,7 @@ files:
|
|
186
201
|
- spec/facts_spec.rb
|
187
202
|
- spec/fpm_app_spec_spec.rb
|
188
203
|
- spec/nuget_model_spec.rb
|
204
|
+
- spec/nugets_find_gem_exe_spec.rb
|
189
205
|
- spec/nugets_pack_spec.rb
|
190
206
|
- spec/nugets_restore_spec.rb
|
191
207
|
- spec/package_repo_spec.rb
|
@@ -424,6 +440,7 @@ test_files:
|
|
424
440
|
- spec/facts_spec.rb
|
425
441
|
- spec/fpm_app_spec_spec.rb
|
426
442
|
- spec/nuget_model_spec.rb
|
443
|
+
- spec/nugets_find_gem_exe_spec.rb
|
427
444
|
- spec/nugets_pack_spec.rb
|
428
445
|
- spec/nugets_restore_spec.rb
|
429
446
|
- spec/package_repo_spec.rb
|