albacore 2.0.0.rc.21 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -8
- data/Gemfile +1 -1
- data/README.md +61 -8
- data/Rakefile +9 -9
- data/lib/albacore/version.rb +1 -1
- data/spec/albacore_spec.rb +3 -3
- data/spec/app_spec_spec.rb +5 -1
- data/spec/build_spec.rb +8 -8
- data/spec/dsl_spec.rb +3 -3
- data/spec/fpm_app_spec_spec.rb +15 -15
- data/spec/nugets_pack_spec.rb +3 -3
- data/spec/projectlint_spec.rb +16 -16
- data/spec/shared_contexts.rb +6 -6
- data/spec/spec_helper.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 125d41e32b2bbac2550a2eef4c0da84593bcf8fe
|
4
|
+
data.tar.gz: c850a38572d46972aef5ebdb000d7d363ac4cbdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51eb2096aa4ba6760c580e62c9569d49b36d09d8130827246af393e4e63a21ff456b2446df7bfb87b654aa925e5842985f1fb7c01b72422caf4e583d4509b9e0
|
7
|
+
data.tar.gz: e2f0bde8c465699e804a97501cd8957ba2a849f34281ba6dfc7ac16682d970f7d4fcefc514af5ac1856f8b03797a8f5931c71ca3195f2f969a0ea659884e6f9c
|
data/.travis.yml
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
language: ruby
|
4
4
|
|
5
5
|
install:
|
6
|
-
- sudo bash -c "echo deb http://badgerports.org lucid main >> /etc/apt/sources.list"
|
7
|
-
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E1FAD0C
|
8
|
-
- sudo apt-get update
|
9
|
-
- sudo apt-get install mono-devel mono-gmcs mono-vbnc
|
10
|
-
- sudo apt-get install gettext
|
11
|
-
- sudo wget -q -P "/opt" "http://samples.nancyfx.org/content/mono-3.0.12-x64-bin.tar.bz2"
|
12
|
-
- bundle install
|
6
|
+
- travis_retry sudo bash -c "echo deb http://badgerports.org lucid main >> /etc/apt/sources.list"
|
7
|
+
- travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E1FAD0C
|
8
|
+
- travis_retry sudo apt-get update
|
9
|
+
- travis_retry sudo apt-get install mono-devel mono-gmcs mono-vbnc
|
10
|
+
- travis_retry sudo apt-get install gettext
|
11
|
+
- travis_retry sudo wget -q -P "/opt" "http://samples.nancyfx.org/content/mono-3.0.12-x64-bin.tar.bz2"
|
12
|
+
- travis_retry bundle install
|
13
13
|
- echo set -e >> ./travis.sh
|
14
14
|
- echo set -o pipefail >> ./travis.sh
|
15
15
|
- echo echo Running on Mono 3.x >> ./travis.sh
|
@@ -29,7 +29,7 @@ rvm:
|
|
29
29
|
# - jruby
|
30
30
|
|
31
31
|
branches:
|
32
|
-
only:
|
32
|
+
only: master
|
33
33
|
|
34
34
|
notifications:
|
35
35
|
email: henrik@haf.se
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,14 +1,62 @@
|
|
1
1
|
# Albacore v2.0
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Version ](https://img.shields.io/gem/v/albacore.svg?style=flat)](https://rubygems.org/gems/albacore)
|
4
|
+
[![Build Status](http://img.shields.io/travis/albacore/albacore/master.svg?style=flat)](http://travis-ci.org/Albacore/albacore)
|
5
|
+
[![Gittip ](http://img.shields.io/gittip/haf.svg?style=flat)](http://gittip.com/haf)
|
6
|
+
[![Code Climate](https://img.shields.io/codeclimate/github/albacore/albacore.svg?style=flat)](https://codeclimate.com/github/albacore/albacore)
|
7
|
+
|
8
|
+
Albacore is a suite of tools for the professional .Net or mono developer that
|
9
|
+
make their life easier.
|
10
|
+
|
11
|
+
gem install albacore
|
12
|
+
|
13
|
+
## Main Features
|
14
|
+
|
15
|
+
- Runs .Net and mono builds on OS X, Windows and Linux quick and painless
|
16
|
+
- Actively developed by Henrik Feldt, Software Architect at
|
17
|
+
[Intelliplan](http://intelliplan.se)
|
18
|
+
- Manage xbuild/msbuild transparently
|
19
|
+
- NuGet restore without intrusive .nuget target files in your project files,
|
20
|
+
authentication supported
|
21
|
+
- NuGet pack task types for packaging your code, supports packaging
|
22
|
+
symbols/source and custom nuspecs, getting metadata from context
|
23
|
+
- Declarative Rake syntax makes it easy to read Rakefiles
|
24
|
+
- Most tasks, including the NuGet tasks accept an array of csproj- or fsproj-
|
25
|
+
files and act on all those projects, discovering metadata from their XML.
|
26
|
+
- An improved set APIs for calling operating system processes and managing them
|
27
|
+
from the build script (see DSL below)
|
28
|
+
- Quick and easy to turn on debugging, just set the DEBUG env var
|
29
|
+
- Assembly version generation in C#, F#, C++ and VB
|
30
|
+
- A copy-local test-runner for those of you with Parallels/Fusion needing to
|
31
|
+
shadow-copy assemblies from a 'network drive'
|
32
|
+
- An innovative `.appspec` file lets you construct IIS Site-packages with
|
33
|
+
Chocolatey on Windows, Topshelf services with Chocolatey on Windows and RPM
|
34
|
+
and DEB services on Linux with three lines of code - become the DevOps GOD of
|
35
|
+
your company!
|
36
|
+
- Transparent publish of artifacts to TeamCity with the TC extension
|
37
|
+
- Unit tested, high quality Ruby code
|
4
38
|
|
5
|
-
|
6
|
-
numerous builds for us and is free of known bugs. It works on RMI 1.9.3 and RMI
|
7
|
-
2.0.
|
39
|
+
## Getting Started
|
8
40
|
|
9
|
-
|
41
|
+
Follow along for a quick intro, but if on Windows, see the section 'Installing
|
42
|
+
Ruby' first. Albacore works on both Ruby 1.9.3 and 2.x.
|
10
43
|
|
11
|
-
|
44
|
+
First create `Gemfile` with these contents:
|
45
|
+
|
46
|
+
source 'https://rubygems.org'
|
47
|
+
gem 'albacore', '2.0.0'
|
48
|
+
|
49
|
+
Now you can bundle the dependencies, effectively freezing all gem dependencies
|
50
|
+
that your build depends on.
|
51
|
+
|
52
|
+
bundle install
|
53
|
+
git add Gemfile
|
54
|
+
git add Gemfile.lock
|
55
|
+
git commit -m 'Installed Albacore'
|
56
|
+
|
57
|
+
Now you are ready to continue reading below for your first Rakefile.
|
58
|
+
|
59
|
+
### Installing Ruby on Windows
|
12
60
|
|
13
61
|
Install [Chocolatey](http://chocolatey.org) by, in a command prompt, running:
|
14
62
|
|
@@ -25,12 +73,16 @@ extension points aimed to make your life as a .Net developer easier:
|
|
25
73
|
|
26
74
|
gem install bundler
|
27
75
|
|
76
|
+
Continue below with your first Rakefile.
|
77
|
+
|
78
|
+
## Creating Your First Rakefile
|
79
|
+
|
28
80
|
Bundler is a tool that fetches gems for you. Now, specify what ruby gems your
|
29
81
|
build will use. Create a new file, named `Gemfile`. This file should look like
|
30
82
|
this:
|
31
83
|
|
32
|
-
source '
|
33
|
-
gem 'albacore', '2.0.0
|
84
|
+
source 'https://rubygems.org'
|
85
|
+
gem 'albacore', '2.0.0'
|
34
86
|
|
35
87
|
When setting up your build you need to ensure it is reproducible. Bundler
|
36
88
|
allows you to lock down all gems that albacore depend on to their specific
|
@@ -386,6 +438,7 @@ FORMAL_VERSION uses only the integers 'major', 'minor' and 'patch'.
|
|
386
438
|
Publishes symbol `:build_version`.
|
387
439
|
|
388
440
|
``` ruby
|
441
|
+
require 'albacore/tasks/versionizer'
|
389
442
|
Albacore::Tasks::Versionizer.new :versioning
|
390
443
|
```
|
391
444
|
|
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'bundler/setup'
|
2
|
-
require 'rubygems/tasks'
|
3
|
-
Gem::Tasks.new
|
4
|
-
|
5
|
-
require 'rspec/core/rake_task'
|
6
|
-
RSpec::Core::RakeTask.new(:spec) do |c|
|
7
|
-
c.rspec_opts = ['--color', '--format=doc']
|
8
|
-
end
|
9
|
-
|
10
|
-
task :default => :build
|
2
|
+
require 'rubygems/tasks'
|
3
|
+
Gem::Tasks.new
|
4
|
+
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
RSpec::Core::RakeTask.new(:spec) do |c|
|
7
|
+
c.rspec_opts = ['--color', '--format=doc']
|
8
|
+
end
|
9
|
+
|
10
|
+
task :default => :build
|
data/lib/albacore/version.rb
CHANGED
data/spec/albacore_spec.rb
CHANGED
@@ -7,14 +7,14 @@ describe "pub sub" do
|
|
7
7
|
@got_it = obj
|
8
8
|
end
|
9
9
|
Albacore.publish :pubsub, true
|
10
|
-
@got_it.
|
10
|
+
expect(@got_it).to be true
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'knows if it\'s Windows it\'s running on' do
|
14
|
-
(::Albacore.windows? === true || ::Albacore::windows? === false).
|
14
|
+
expect(::Albacore.windows? === true || ::Albacore::windows? === false).to be true
|
15
15
|
end
|
16
16
|
it 'should not be nil' do
|
17
|
-
::Albacore.windows
|
17
|
+
expect(::Albacore.windows?).to_not be nil
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
data/spec/app_spec_spec.rb
CHANGED
@@ -20,6 +20,10 @@ project_path: spec/testdata/Project/Project.fsproj
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
def teamcity?
|
24
|
+
!!ENV['TEAMCITY_VERSION']
|
25
|
+
end
|
26
|
+
|
23
27
|
it 'should have correct title' do
|
24
28
|
subject.title.should eq 'superapp.now'
|
25
29
|
end
|
@@ -33,7 +37,7 @@ project_path: spec/testdata/Project/Project.fsproj
|
|
33
37
|
end
|
34
38
|
|
35
39
|
it 'should never have nil uri, since we\'re in the albacore git repo and it defaults to the current repo' do
|
36
|
-
subject.uri.should include 'albacore.git'
|
40
|
+
subject.uri.should include 'albacore.git' unless teamcity? # teamcity doesn't keep git folder
|
37
41
|
end
|
38
42
|
|
39
43
|
it 'should have "apps" category, since it\'s not specified anywhere' do
|
data/spec/build_spec.rb
CHANGED
@@ -8,12 +8,12 @@ describe 'build config' do
|
|
8
8
|
Albacore::Build::Config.new
|
9
9
|
end
|
10
10
|
%w[file= sln= target target= logging logging= prop cores cores= tools_version tools_version=].each do |writer|
|
11
|
-
it "should
|
12
|
-
subject.respond_to
|
11
|
+
it "should respond to :#{writer}" do
|
12
|
+
expect(subject).to respond_to(:"#{writer}")
|
13
13
|
end
|
14
14
|
end
|
15
15
|
it 'should not have any property' do
|
16
|
-
subject.respond_to
|
16
|
+
expect(subject).to_not respond_to(:something_nonexistent)
|
17
17
|
end
|
18
18
|
|
19
19
|
describe 'when setting properties' do
|
@@ -22,8 +22,8 @@ describe 'build config' do
|
|
22
22
|
subject.tools_version = '3.5'
|
23
23
|
end
|
24
24
|
it do
|
25
|
-
subject.parameters.
|
26
|
-
subject.parameters.
|
25
|
+
expect(subject.parameters).to include('/verbosity:minimal')
|
26
|
+
expect(subject.parameters).to include('/toolsversion:3.5')
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -51,13 +51,13 @@ describe 'when running with sln' do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
it do
|
54
|
-
subject.executable.
|
54
|
+
expect(subject.executable).to eq('xbuild')
|
55
55
|
end
|
56
56
|
it do
|
57
|
-
subject.parameters.
|
57
|
+
expect(subject.parameters).to eq(%W|/verbosity:minimal #{path 'src/HelloWorld.sln'} /target:Clean;Build|)
|
58
58
|
end
|
59
59
|
it do
|
60
|
-
subject.is_mono_command
|
60
|
+
expect(subject.is_mono_command?).to be false
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
data/spec/dsl_spec.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'albacore/dsl'
|
1
2
|
require 'spec_helper'
|
2
3
|
|
3
4
|
describe "what methods are included by default" do
|
@@ -9,7 +10,6 @@ end
|
|
9
10
|
|
10
11
|
class X
|
11
12
|
include Albacore::DSL
|
12
|
-
def initialize ; end
|
13
13
|
end
|
14
14
|
|
15
15
|
#puts "X has methods: #{X.new.private_methods.inspect}"
|
@@ -21,7 +21,7 @@ end
|
|
21
21
|
X.new
|
22
22
|
end
|
23
23
|
it do
|
24
|
-
subject.
|
24
|
+
expect(subject.method(method)).to_not be nil
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
@@ -34,6 +34,6 @@ describe 'calling dsl method without symbol name' do
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
it 'should be named "build"' do
|
37
|
-
subject.name.
|
37
|
+
expect(subject.name).to eq('build')
|
38
38
|
end
|
39
39
|
end
|
data/spec/fpm_app_spec_spec.rb
CHANGED
@@ -54,51 +54,51 @@ describe ::Albacore::FpmAppSpec, 'when generating command from valid AppSpec' do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
it 'should generate command source' do
|
57
|
-
flags['-s'].
|
57
|
+
expect(flags['-s']).to eq 'dir'
|
58
58
|
end
|
59
59
|
|
60
60
|
it 'should generate command target' do
|
61
|
-
flags['-t'].
|
61
|
+
expect(flags['-t']).to eq 'rpm'
|
62
62
|
end
|
63
63
|
|
64
64
|
it 'should generate command name/title' do
|
65
|
-
flags['--name'].
|
65
|
+
expect(flags['--name']).to eq 'my.app'
|
66
66
|
end
|
67
67
|
|
68
68
|
it 'should generate command description' do
|
69
|
-
flags['--description'].
|
69
|
+
expect(flags['--description']).to eq 'my.app implements much wow'
|
70
70
|
end
|
71
71
|
|
72
72
|
it 'should generate command url' do
|
73
|
-
flags['--url'].
|
73
|
+
expect(flags['--url']).to eq 'https://github.com/Albacore/albacore'
|
74
74
|
end
|
75
75
|
|
76
76
|
it 'should generate command category' do
|
77
|
-
flags['--category'].
|
77
|
+
expect(flags['--category']).to eq 'webserver'
|
78
78
|
end
|
79
79
|
|
80
80
|
it 'should generate command version' do
|
81
|
-
flags['--version'].
|
81
|
+
expect(flags['--version']).to eq '5.6.7'
|
82
82
|
end
|
83
83
|
|
84
84
|
it 'should generate command epoch' do
|
85
|
-
flags['--epoch'].
|
85
|
+
expect(flags['--epoch']).to eq 1
|
86
86
|
end
|
87
87
|
|
88
88
|
it 'should generate command license' do
|
89
|
-
flags['--license'].
|
89
|
+
expect(flags['--license']).to eq 'MIT'
|
90
90
|
end
|
91
91
|
|
92
92
|
it 'should generate command "look in this directory" flag' do
|
93
|
-
flags['-C'].
|
93
|
+
expect(flags['-C']).to eq '/a/b'
|
94
94
|
end
|
95
95
|
|
96
96
|
it 'should generate command depends' do
|
97
|
-
flags['--depends'].
|
97
|
+
expect(flags['--depends']).to eq 'mono'
|
98
98
|
end
|
99
99
|
|
100
100
|
it 'should generate command rpm-digest' do
|
101
|
-
flags['--rpm-digest'].
|
101
|
+
expect(flags['--rpm-digest']).to eq 'sha256'
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
@@ -140,18 +140,18 @@ project_path: spec/testdata/Project/Project.fsproj
|
|
140
140
|
end
|
141
141
|
|
142
142
|
it 'should not have a license' do
|
143
|
-
spec.license.
|
143
|
+
expect(spec.license).to be nil
|
144
144
|
end
|
145
145
|
|
146
146
|
it 'that license should never be a FPM parameter' do
|
147
|
-
subject.generate_flags.has_key?('--license').
|
147
|
+
expect(subject.generate_flags.has_key?('--license')).to be false
|
148
148
|
end
|
149
149
|
end
|
150
150
|
|
151
151
|
describe ::Albacore::FpmAppSpec::Config do
|
152
152
|
%w|files= out= opts no_bundler|.each do |sym|
|
153
153
|
it "should respond_to :#{sym}" do
|
154
|
-
|
154
|
+
expect(subject).to respond_to :"#{sym}"
|
155
155
|
end
|
156
156
|
end
|
157
157
|
end
|
data/spec/nugets_pack_spec.rb
CHANGED
@@ -156,7 +156,7 @@ describe NuspecTask, "when testing public interface" do
|
|
156
156
|
include_context 'path testing'
|
157
157
|
|
158
158
|
it "accepts .nuspec files" do
|
159
|
-
NuspecTask.accept?('some.nuspec').
|
159
|
+
expect(NuspecTask.accept?('some.nuspec')).to be true
|
160
160
|
end
|
161
161
|
|
162
162
|
let (:cmd) do
|
@@ -174,10 +174,10 @@ describe NuspecTask, "when testing public interface" do
|
|
174
174
|
end
|
175
175
|
|
176
176
|
it "should run the correct executable" do
|
177
|
-
subject.mono_command.
|
177
|
+
expect(subject.mono_command).to eq 'NuGet.exe'
|
178
178
|
end
|
179
179
|
it "should give the correct parameters" do
|
180
|
-
subject.mono_parameters.
|
180
|
+
expect(subject.mono_parameters).to eq %W[Pack -OutputDirectory #{path 'spec/testdata/pkg'} ./spec/testdata/example.nuspec]
|
181
181
|
end
|
182
182
|
end
|
183
183
|
|
data/spec/projectlint_spec.rb
CHANGED
@@ -28,21 +28,21 @@ end
|
|
28
28
|
describe "when supplying a csproj file with files added but not present on the filesystem" do
|
29
29
|
before(:all) { @f = project_lint_on(:first, File.join( 'added_but_not_on_filesystem', 'aproject.csproj')) }
|
30
30
|
|
31
|
-
it("should fail") { @f.failed.
|
31
|
+
it("should fail") { expect(@f.failed).to be true }
|
32
32
|
|
33
|
-
it("should report failure") { @f.failure_message.
|
33
|
+
it("should report failure") { expect(@f.failure_message).to include "-" }
|
34
34
|
|
35
|
-
it("should report file.cs") { @f.failure_message.
|
35
|
+
it("should report file.cs") { expect(@f.failure_message).to include 'File.cs' }
|
36
36
|
|
37
|
-
it("should report Image.txt") { @f.failure_message.
|
37
|
+
it("should report Image.txt") { expect(@f.failure_message).to include 'Image.txt' }
|
38
38
|
|
39
|
-
it("should report MyHeavy.heavy") { @f.failure_message.
|
39
|
+
it("should report MyHeavy.heavy") { expect(@f.failure_message).to include 'MyHeavy.heavy' }
|
40
40
|
|
41
|
-
it("should report Schema.xsd") { @f.failure_message.
|
41
|
+
it("should report Schema.xsd") { expect(@f.failure_message).to include 'Schema.xsd' }
|
42
42
|
|
43
|
-
it("should report SubFolder/AnotherFile.cs") { @f.failure_message.
|
43
|
+
it("should report SubFolder/AnotherFile.cs") { expect(@f.failure_message).to include 'AnotherFile.cs' }
|
44
44
|
|
45
|
-
it("should not report linked files") { @f.failure_message.
|
45
|
+
it("should not report linked files") { expect(@f.failure_message).to_not include 'SomeFile.cs' }
|
46
46
|
end
|
47
47
|
|
48
48
|
describe "when supplying a correct csproj file with files added and present on the filesystem" do
|
@@ -50,21 +50,21 @@ describe "when supplying a correct csproj file with files added and present on t
|
|
50
50
|
before(:all) { @f = project_lint_on(:second, File.join( 'correct', 'aproject.csproj')) }
|
51
51
|
|
52
52
|
it("should not fail") {
|
53
|
-
@f.failed.
|
53
|
+
expect(@f.failed).to be false
|
54
54
|
}
|
55
|
-
it("no message") { @f.failure_message.
|
55
|
+
it("no message") { expect(@f.failure_message).to be nil }
|
56
56
|
end
|
57
57
|
|
58
58
|
describe "when supplying a csproj file with files not added but present on the filesystem" do
|
59
59
|
before(:all) { @f = project_lint_on(:third, File.join( 'on_filesystem_but_not_added', 'aproject.csproj')) }
|
60
60
|
|
61
|
-
it("should fail") { @f.failed.
|
61
|
+
it("should fail") { expect(@f.failed).to be true }
|
62
62
|
|
63
|
-
it("should report failure") { @f.failure_message.
|
63
|
+
it("should report failure") { expect(@f.failure_message).to include '+' }
|
64
64
|
|
65
|
-
it("should report file.cs") { @f.failure_message.
|
65
|
+
it("should report file.cs") { expect(@f.failure_message).to include 'File.cs' }
|
66
66
|
|
67
|
-
it("should report Image.txt") { @f.failure_message.
|
67
|
+
it("should report Image.txt") { expect(@f.failure_message).to include 'Image.txt' }
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -73,5 +73,5 @@ describe "when supplying a csproj files with files on filesystem ignored" do
|
|
73
73
|
@f = project_lint_on(:fourth, File.join('on_filesystem_but_not_added', 'aproject.csproj'), [/.*\.txt$/, /.*\.cs$/])
|
74
74
|
}
|
75
75
|
|
76
|
-
it("should not fail") { @f.failed.
|
77
|
-
end
|
76
|
+
it("should not fail") { expect(@f.failed).to be false }
|
77
|
+
end
|
data/spec/shared_contexts.rb
CHANGED
@@ -13,16 +13,16 @@ shared_context 'package_metadata_dsl' do
|
|
13
13
|
|
14
14
|
def self.has_dep name, version
|
15
15
|
it "has dependency on '#{name}'" do
|
16
|
-
m.dependencies.has_key?(name).
|
16
|
+
expect(m.dependencies.has_key?(name)).to be true
|
17
17
|
end
|
18
18
|
it "overrode dependency on '#{name}'" do
|
19
|
-
m.dependencies[name].version.
|
19
|
+
expect(m.dependencies[name].version).to eq version
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.has_not_dep name
|
24
24
|
it "does not have a dependency on #{name}" do
|
25
|
-
m.dependencies.has_key?(name).
|
25
|
+
expect(m.dependencies.has_key?(name)).to be false
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -35,12 +35,12 @@ shared_context 'package_metadata_dsl' do
|
|
35
35
|
# puts "subject.files: #{subject.files}, index of: #{subject.files.find_index { |f| f.src == src }}"
|
36
36
|
# puts "#{f.inspect}"
|
37
37
|
# end
|
38
|
-
file.
|
38
|
+
expect(file).to_not be nil
|
39
39
|
end
|
40
40
|
|
41
41
|
it "has file[#{src}].target == '#{target}'" do
|
42
42
|
file = subject.files.find { |f| f.src == src }
|
43
|
-
file.target.
|
43
|
+
expect(file.target).to eq target
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -48,7 +48,7 @@ shared_context 'package_metadata_dsl' do
|
|
48
48
|
src = norm src
|
49
49
|
it "has not file[#{src}]" do
|
50
50
|
file = subject.files.find { |f| f.src == src }
|
51
|
-
file.
|
51
|
+
expect(file).to be nil
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
data/spec/spec_helper.rb
CHANGED
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.0.0
|
4
|
+
version: 2.0.0
|
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: 2014-08-
|
12
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -375,9 +375,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
375
375
|
version: '0'
|
376
376
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
377
377
|
requirements:
|
378
|
-
- - '
|
378
|
+
- - '>='
|
379
379
|
- !ruby/object:Gem::Version
|
380
|
-
version:
|
380
|
+
version: '0'
|
381
381
|
requirements: []
|
382
382
|
rubyforge_project: albacore
|
383
383
|
rubygems_version: 2.0.14
|