albacore 2.0.0.rc.15 → 2.0.0.rc.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -1
- data/lib/albacore/app_spec.rb +17 -4
- data/lib/albacore/nuget_model.rb +27 -15
- data/lib/albacore/version.rb +1 -1
- data/spec/app_spec_spec.rb +1 -0
- data/spec/nuget_model_spec.rb +2 -2
- metadata +16 -39
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6823d6f1406cace16fb3c048712d34ed91dce0a8
|
4
|
+
data.tar.gz: 3b28345de6fba1e380d473c3561779d6883dce3c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 48a099250203b3664e1d1df889868a4df935dfb43f8666b7cea1fd3bf492818a62583a06626022c3fd5e7483fb33ed514ce6c2e88e651e71d4ad0bbf26932271
|
7
|
+
data.tar.gz: dc4b9de248d57e33e280ec2f5a5f3ce49be2d1e594cfb0b35677ed0c4ff9620aca0b51261f6de8d0a98308ff327831c5c5104ace87003347a0d574c5de8b3a1c
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ numerous builds for us and is free of known bugs. It works on RMI 1.9.3 and RMI
|
|
12
12
|
|
13
13
|
## Getting Started
|
14
14
|
|
15
|
-
|
15
|
+
Install [Chocolatey](http://chocolatey.org) by, in a command prompt, running:
|
16
16
|
|
17
17
|
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
|
18
18
|
|
data/lib/albacore/app_spec.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'albacore/logging'
|
3
|
+
require 'albacore/project'
|
3
4
|
require 'xsemver'
|
4
5
|
|
5
6
|
module Albacore
|
@@ -70,8 +71,12 @@ module Albacore
|
|
70
71
|
|
71
72
|
# title for puppet, title for app, title for process running on server
|
72
73
|
def title
|
73
|
-
|
74
|
-
|
74
|
+
title_raw.downcase
|
75
|
+
end
|
76
|
+
|
77
|
+
# the title as-is without any downcasing
|
78
|
+
def title_raw
|
79
|
+
conf['title'] || proj.title
|
75
80
|
end
|
76
81
|
|
77
82
|
# the description that is used when installing and reading about the package in the
|
@@ -99,13 +104,13 @@ module Albacore
|
|
99
104
|
|
100
105
|
# gets the version with the following priorities:
|
101
106
|
# - semver version passed in c'tor
|
102
|
-
# - ENV['
|
107
|
+
# - ENV['FORMAL_VERSION']
|
103
108
|
# - .appspec's version
|
104
109
|
# - .xxproj's version
|
105
110
|
# - semver from disk
|
106
111
|
# - if all above fails; use '1.0.0'
|
107
112
|
def version
|
108
|
-
semver_version || ENV['
|
113
|
+
semver_version || ENV['FORMAL_VERSION'] || conf['version'] || proj.version || semver_disk_version || '1.0.0'
|
109
114
|
end
|
110
115
|
|
111
116
|
# gets the binary folder, first from .appspec then from proj given a configuration
|
@@ -172,5 +177,13 @@ module Albacore
|
|
172
177
|
rescue SemVerMissingError
|
173
178
|
nil
|
174
179
|
end
|
180
|
+
|
181
|
+
# Listen to all 'getters'
|
182
|
+
#
|
183
|
+
def method_missing name, *args, &block
|
184
|
+
unless name =~ /\w=$/
|
185
|
+
@conf.send(:'[]', *[name.to_s, args].flatten, &block)
|
186
|
+
end
|
187
|
+
end
|
175
188
|
end
|
176
189
|
end
|
data/lib/albacore/nuget_model.rb
CHANGED
@@ -45,16 +45,21 @@ end})
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
# gets or sets the id of this package
|
48
|
+
# REQUIRED: gets or sets the id of this package
|
49
49
|
nuspec_field :id
|
50
|
-
|
51
|
-
# gets or sets the version of this package
|
50
|
+
|
51
|
+
# REQUIRED: gets or sets the version of this package
|
52
52
|
nuspec_field :version
|
53
|
+
|
54
|
+
# The human-friendly title of the package displayed in the Manage NuGet
|
55
|
+
# Packages dialog. If none is specified, the ID is used instead.
|
56
|
+
nuspec_field :title
|
53
57
|
|
54
|
-
# gets or sets the authors of this
|
58
|
+
# REQUIRED: gets or sets a comma-separated string of the authors of this
|
59
|
+
# package
|
55
60
|
nuspec_field :authors
|
56
61
|
|
57
|
-
# gets or sets the description of this package
|
62
|
+
# REQUIRED: gets or sets the description of this package
|
58
63
|
nuspec_field :description
|
59
64
|
|
60
65
|
# gets or sets the summary of this package
|
@@ -66,6 +71,11 @@ end})
|
|
66
71
|
# gets or sets the project url for this package
|
67
72
|
nuspec_field :project_url
|
68
73
|
|
74
|
+
# A URL for the image to use as the icon for the package in the Manage
|
75
|
+
# NuGet Packages dialog box. This should be a 32x32-pixel .png file that
|
76
|
+
# has a transparent background.
|
77
|
+
nuspec_field :icon_url
|
78
|
+
|
69
79
|
# gets or sets the license url for this package
|
70
80
|
nuspec_field :license_url
|
71
81
|
|
@@ -75,8 +85,8 @@ end})
|
|
75
85
|
# gets or sets the owners of this package
|
76
86
|
nuspec_field :owners
|
77
87
|
|
78
|
-
# gets or sets whether this package requires a license acceptance from
|
79
|
-
# hint: don't
|
88
|
+
# gets or sets whether this package requires a license acceptance from
|
89
|
+
# the user hint: don't set it!
|
80
90
|
nuspec_field :require_license_acceptance
|
81
91
|
|
82
92
|
# gets or sets the copyright for this package
|
@@ -251,15 +261,17 @@ end})
|
|
251
261
|
x << md
|
252
262
|
#x.__send__ :insert, md.at_css("metadata")
|
253
263
|
# x << md.at_css("metadata").to_xml(indent: 4)
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
264
|
+
unless @files.empty?
|
265
|
+
x.files {
|
266
|
+
@files.each do |f|
|
267
|
+
if f.exclude
|
268
|
+
x.file src: f.src, target: f.target, exclude: f.exclude
|
269
|
+
else
|
270
|
+
x.file src: f.src, target: f.target
|
271
|
+
end
|
260
272
|
end
|
261
|
-
|
262
|
-
|
273
|
+
}
|
274
|
+
end
|
263
275
|
}
|
264
276
|
end
|
265
277
|
end
|
data/lib/albacore/version.rb
CHANGED
data/spec/app_spec_spec.rb
CHANGED
data/spec/nuget_model_spec.rb
CHANGED
@@ -59,8 +59,8 @@ describe Albacore::NugetModel::Package, "when doing some xml generation" do
|
|
59
59
|
it "should generate default metadata" do
|
60
60
|
subject.to_xml.should include('<metadata')
|
61
61
|
end
|
62
|
-
it "should generate default files" do
|
63
|
-
subject.to_xml.
|
62
|
+
it "should not generate default files" do
|
63
|
+
subject.to_xml.should_not include('<files')
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: albacore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.rc.
|
5
|
-
prerelease: 6
|
4
|
+
version: 2.0.0.rc.17
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Henrik Feldt
|
@@ -10,28 +9,25 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2014-
|
12
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rake
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>'
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '10'
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - '>'
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: '10'
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: map
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: nokogiri
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,7 +56,6 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: facter
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ~>
|
69
61
|
- !ruby/object:Gem::Version
|
@@ -71,7 +63,6 @@ dependencies:
|
|
71
63
|
type: :runtime
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ~>
|
77
68
|
- !ruby/object:Gem::Version
|
@@ -79,7 +70,6 @@ dependencies:
|
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: semver2
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
74
|
- - ~>
|
85
75
|
- !ruby/object:Gem::Version
|
@@ -87,7 +77,6 @@ dependencies:
|
|
87
77
|
type: :runtime
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
81
|
- - ~>
|
93
82
|
- !ruby/object:Gem::Version
|
@@ -95,7 +84,6 @@ dependencies:
|
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: ProcessPilot
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
88
|
- - ~>
|
101
89
|
- !ruby/object:Gem::Version
|
@@ -103,7 +91,6 @@ dependencies:
|
|
103
91
|
type: :runtime
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
95
|
- - ~>
|
109
96
|
- !ruby/object:Gem::Version
|
@@ -111,7 +98,6 @@ dependencies:
|
|
111
98
|
- !ruby/object:Gem::Dependency
|
112
99
|
name: highline
|
113
100
|
requirement: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
101
|
requirements:
|
116
102
|
- - ~>
|
117
103
|
- !ruby/object:Gem::Version
|
@@ -119,7 +105,6 @@ dependencies:
|
|
119
105
|
type: :runtime
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
108
|
requirements:
|
124
109
|
- - ~>
|
125
110
|
- !ruby/object:Gem::Version
|
@@ -127,7 +112,6 @@ dependencies:
|
|
127
112
|
- !ruby/object:Gem::Dependency
|
128
113
|
name: rubygems-tasks
|
129
114
|
requirement: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
115
|
requirements:
|
132
116
|
- - ~>
|
133
117
|
- !ruby/object:Gem::Version
|
@@ -135,7 +119,6 @@ dependencies:
|
|
135
119
|
type: :development
|
136
120
|
prerelease: false
|
137
121
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
122
|
requirements:
|
140
123
|
- - ~>
|
141
124
|
- !ruby/object:Gem::Version
|
@@ -143,24 +126,22 @@ dependencies:
|
|
143
126
|
- !ruby/object:Gem::Dependency
|
144
127
|
name: rspec
|
145
128
|
requirement: !ruby/object:Gem::Requirement
|
146
|
-
none: false
|
147
129
|
requirements:
|
148
|
-
- -
|
130
|
+
- - '>='
|
149
131
|
- !ruby/object:Gem::Version
|
150
132
|
version: '2.13'
|
151
133
|
type: :development
|
152
134
|
prerelease: false
|
153
135
|
version_requirements: !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
136
|
requirements:
|
156
|
-
- -
|
137
|
+
- - '>='
|
157
138
|
- !ruby/object:Gem::Version
|
158
139
|
version: '2.13'
|
159
|
-
description:
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
140
|
+
description: |2
|
141
|
+
Easily build your .Net or Mono project using this collection of Rake tasks.
|
142
|
+
Albacore assist you in creating nugets, managing nugets, building your projects,
|
143
|
+
handling the .Net compilers while making it very easy to integrate your ruby-code
|
144
|
+
with existing dev-ops tools, such as Puppet, Chef, Capistrano or Vagrant/VirtualBox.
|
164
145
|
email: henrik@haf.se
|
165
146
|
executables: []
|
166
147
|
extensions: []
|
@@ -310,30 +291,26 @@ files:
|
|
310
291
|
homepage: http://albacorebuild.net
|
311
292
|
licenses:
|
312
293
|
- MIT
|
294
|
+
metadata: {}
|
313
295
|
post_install_message:
|
314
296
|
rdoc_options: []
|
315
297
|
require_paths:
|
316
298
|
- lib
|
317
299
|
required_ruby_version: !ruby/object:Gem::Requirement
|
318
|
-
none: false
|
319
300
|
requirements:
|
320
|
-
- -
|
301
|
+
- - '>='
|
321
302
|
- !ruby/object:Gem::Version
|
322
303
|
version: '0'
|
323
|
-
segments:
|
324
|
-
- 0
|
325
|
-
hash: -1784303495648256003
|
326
304
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
327
|
-
none: false
|
328
305
|
requirements:
|
329
|
-
- -
|
306
|
+
- - '>'
|
330
307
|
- !ruby/object:Gem::Version
|
331
308
|
version: 1.3.1
|
332
309
|
requirements: []
|
333
310
|
rubyforge_project: albacore
|
334
|
-
rubygems_version:
|
311
|
+
rubygems_version: 2.0.14
|
335
312
|
signing_key:
|
336
|
-
specification_version:
|
313
|
+
specification_version: 4
|
337
314
|
summary: Dolphin-safe and awesome Mono and .Net Rake-tasks
|
338
315
|
test_files:
|
339
316
|
- spec/Rakefile
|