albacore 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/albacore/assemblyinfolanguages/assemblyinfoengine.rb +1 -1
- data/lib/albacore/assemblyinfolanguages/cppcliengine.rb +1 -0
- data/lib/albacore/assemblyinfolanguages/csharpengine.rb +1 -0
- data/lib/albacore/assemblyinfolanguages/fsharpengine.rb +1 -0
- data/lib/albacore/assemblyinfolanguages/vbnetengine.rb +1 -0
- data/lib/version.rb +1 -1
- data/spec/assemblyinfo_spec.rb +7 -6
- metadata +6 -6
data/lib/version.rb
CHANGED
data/spec/assemblyinfo_spec.rb
CHANGED
@@ -195,8 +195,8 @@ end
|
|
195
195
|
|
196
196
|
{ :no => { :engine => nil, :lang => "no", :start_token => "[", :end_token => "]", :using => "using " },
|
197
197
|
:cs => { :engine => CSharpEngine.new, :lang => "the C#", :start_token => "[", :end_token => "]", :using => "using " },
|
198
|
-
:vb => { :engine => VbNetEngine.new, :lang => "the VB.Net", :start_token => "<", :end_token => ">", :using => "Imports " },
|
199
|
-
:fs => { :engine => FSharpEngine.new, :lang => "the F#", :start_token => "[<", :end_token => ">]", :using => "open " },
|
198
|
+
:vb => { :engine => VbNetEngine.new, :lang => "the VB.Net", :start_token => "<", :end_token => ">", :using => "Imports ", :statement_terminator => "" },
|
199
|
+
:fs => { :engine => FSharpEngine.new, :lang => "the F#", :start_token => "[<", :end_token => ">]", :using => "open ", :statement_terminator => "" },
|
200
200
|
:cpp=> { :engine => CppCliEngine.new, :lang => "the C++", :start_token => "[", :end_token => "]", :using => "using namespace ", :nsdelim => "::" }
|
201
201
|
}.each do |key, settings|
|
202
202
|
|
@@ -223,23 +223,24 @@ end
|
|
223
223
|
let(:e) { settings[:end_token] }
|
224
224
|
let(:using) { settings[:using] }
|
225
225
|
let(:d) { settings[:nsdelim] || '.' }
|
226
|
+
let(:t) { settings[:statement_terminator] || ';'}
|
226
227
|
|
227
228
|
subject { @tester.build_and_read_assemblyinfo_file @asm }
|
228
229
|
|
229
230
|
it "should use the system.reflection namespace" do
|
230
|
-
subject.scan(%Q|#{using}System#{d}Reflection|).length.should == 1
|
231
|
+
subject.scan(%Q|#{using}System#{d}Reflection#{t}|).length.should == 1
|
231
232
|
end
|
232
233
|
|
233
234
|
it "should use the system.runtime.interopservices namespace" do
|
234
|
-
subject.scan(%Q|#{using}System#{d}Runtime#{d}InteropServices|).length.should == 1
|
235
|
+
subject.scan(%Q|#{using}System#{d}Runtime#{d}InteropServices#{t}|).length.should == 1
|
235
236
|
end
|
236
237
|
|
237
238
|
it "should use custom namespaces" do
|
238
|
-
subject.scan(%Q|#{using}My#{d}Name#{d}Space|).length.should == 1
|
239
|
+
subject.scan(%Q|#{using}My#{d}Name#{d}Space#{t}|).length.should == 1
|
239
240
|
end
|
240
241
|
|
241
242
|
it "shold be using the other custom namespace, too" do
|
242
|
-
subject.scan(%Q|#{using}Another#{d}Namespace#{d}GoesHere|).length.should == 1
|
243
|
+
subject.scan(%Q|#{using}Another#{d}Namespace#{d}GoesHere#{t}|).length.should == 1
|
243
244
|
end
|
244
245
|
|
245
246
|
it "should contain the specified version information" do
|
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: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-09-
|
13
|
+
date: 2012-09-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubyzip
|
17
|
-
requirement: &
|
17
|
+
requirement: &3215160 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *3215160
|
26
26
|
description: Easily build your .Net or Mono project using this collection of Rake
|
27
27
|
tasks.
|
28
28
|
email: henrik@haf.se
|
@@ -694,7 +694,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
694
694
|
version: '0'
|
695
695
|
segments:
|
696
696
|
- 0
|
697
|
-
hash:
|
697
|
+
hash: 867968397
|
698
698
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
699
699
|
none: false
|
700
700
|
requirements:
|
@@ -703,7 +703,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
703
703
|
version: '0'
|
704
704
|
segments:
|
705
705
|
- 0
|
706
|
-
hash:
|
706
|
+
hash: 867968397
|
707
707
|
requirements: []
|
708
708
|
rubyforge_project: albacore
|
709
709
|
rubygems_version: 1.8.16
|