dev 2.1.14 → 2.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tasks/build.rb +88 -68
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a901357ecb52beb7b56b7cadbf14cff3efea3136
|
4
|
+
data.tar.gz: 0cbddd05011a5dcd280533feccf067348edacf24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaea13f2fa9004128e83cc096ac9951940b0225bc5dfdea1015c4c925d224be0ef908a8049e256f0b7f95c83479c2eaa523f77854293af5e6453c19b41844867
|
7
|
+
data.tar.gz: 74cf01196952818d78248296e8a218086892f4933e51a0985b1f270f127bccb13ef222c60f508dc9cc1599d5dc8912a4ed78979262c3c42dbeafbaaec5e209fd
|
data/lib/tasks/build.rb
CHANGED
@@ -8,81 +8,101 @@ task :build do Tasks.execute_task :build;end
|
|
8
8
|
SLN_FILES=FileList.new('*.sln','*/*.sln','*/*/*.sln')
|
9
9
|
NUGET_FILES=FileList.new('**/*.nuspec')
|
10
10
|
WXS_FILES=FileList.new('**/*.wxs')
|
11
|
+
SMARTASSEMBLY_FILES=FileList.new('**/*.saproj')
|
11
12
|
|
12
13
|
class Build < Array
|
13
14
|
def update
|
15
|
+
update_gemspec
|
16
|
+
update_sln if Environment.windows?
|
17
|
+
update_smartassembly if Environment.windows?
|
18
|
+
update_nuget if Environment.windows?
|
19
|
+
update_wix if Environment.windows?
|
20
|
+
update_xcode if Environment.mac?
|
21
|
+
end
|
22
|
+
|
23
|
+
def update_gemspec
|
24
|
+
puts "Build scanning for gemspec files" if Environment.default.debug?
|
25
|
+
Dir.glob('*.gemspec'){|gemspec|
|
26
|
+
add_quiet("gem build #{gemspec}") if !File.exist?(Gemspec.gemfile gemspec)
|
27
|
+
}
|
28
|
+
end
|
14
29
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
puts " build command #{c} discovered." if Environment.default.debug?
|
31
|
-
add_quiet(c)
|
32
|
-
}
|
33
|
-
else
|
34
|
-
puts " no build command discovered." if Environment.default.debug?
|
35
|
-
end
|
36
|
-
}
|
30
|
+
def update_sln
|
31
|
+
puts "Build scanning for sln files" if Environment.default.debug?
|
32
|
+
SLN_FILES.each{|sln_file|
|
33
|
+
puts " #{sln_file}" if Environment.default.debug?
|
34
|
+
build_commands = MSBuild.get_build_commands sln_file
|
35
|
+
if(!build_commands.nil?)
|
36
|
+
build_commands.each{|c|
|
37
|
+
puts " build command #{c} discovered." if Environment.default.debug?
|
38
|
+
add_quiet(c)
|
39
|
+
}
|
40
|
+
else
|
41
|
+
puts " no build command discovered." if Environment.default.debug?
|
42
|
+
end
|
43
|
+
}
|
44
|
+
end
|
37
45
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
46
|
+
def update_smartassembly
|
47
|
+
puts "Build scanning for sa (smart assembly) files" if Environment.default.debug?
|
48
|
+
sa = 'C:/Program Files/Red Gate/SmartAssembly 6/SmartAssembly.com'
|
49
|
+
SMARTASSEMBLY_FILES.each{|saproj_file|
|
50
|
+
puts " #{saproj_file}" if Environment.default.debug?
|
51
|
+
if(!File.exists?(sa))
|
52
|
+
puts "warning: #{sa} does not exist, skipping build command for #{saproj_file}"
|
53
|
+
else
|
54
|
+
add_quiet("#{sa} /build #{saproj_file}")
|
55
|
+
end
|
56
|
+
}
|
57
|
+
end
|
47
58
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
+
def update_nuget
|
60
|
+
puts "Build scanning for nuget files" if Environment.default.debug?
|
61
|
+
NUGET_FILES.each{|nuget_file|
|
62
|
+
build_commands = Nuget.get_build_commands nuget_file
|
63
|
+
if(!build_commands.nil?)
|
64
|
+
build_commands.each{|c|
|
65
|
+
add_quiet(c)
|
66
|
+
}
|
67
|
+
end
|
68
|
+
}
|
69
|
+
end
|
59
70
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
71
|
+
def update_wix
|
72
|
+
puts "Build scanning for wxs <Product> files" if Environment.default.debug?
|
73
|
+
WXS_FILES.each{|wxs_file|
|
74
|
+
if(IO.read(wxs_file).include?('<Product'))
|
75
|
+
build_commands = Wix.get_build_commands wxs_file
|
76
|
+
if(!build_commands.nil?)
|
77
|
+
build_commands.each{|c|
|
78
|
+
add_quiet(c)
|
79
|
+
}
|
80
|
+
end
|
81
|
+
end
|
82
|
+
}
|
72
83
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
84
|
+
puts "Build scanning for wxs <Bundle> files" if Environment.default.debug?
|
85
|
+
WXS_FILES.each{|wxs_file|
|
86
|
+
if(IO.read(wxs_file).include?('<Bundle'))
|
87
|
+
build_commands = Wix.get_build_commands wxs_file
|
88
|
+
if(!build_commands.nil?)
|
89
|
+
build_commands.each{|c|
|
90
|
+
add_quiet(c)
|
91
|
+
}
|
92
|
+
end
|
93
|
+
end
|
94
|
+
}
|
95
|
+
end
|
96
|
+
def update_xcode
|
97
|
+
puts "Build scanning for xcodeproj folders" if Environment.default.debug?
|
98
|
+
Dir.glob('**/*.xcodeproj').each{|dir|
|
99
|
+
puts dir if Environment.default.debug?
|
100
|
+
build_commands = XCodeBuild.get_build_commands dir
|
101
|
+
if(!build_commands.nil?)
|
102
|
+
build_commands.each{|c|
|
103
|
+
build_commands << c
|
104
|
+
}
|
105
|
+
end
|
106
|
+
}
|
87
107
|
end
|
88
108
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|