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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tasks/build.rb +88 -68
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b0a8d0aa2e8be23e56f144911284f80d8aebe9d
4
- data.tar.gz: 3b0e2a0b460de16b014aaa35b80ba66103d8eeab
3
+ metadata.gz: a901357ecb52beb7b56b7cadbf14cff3efea3136
4
+ data.tar.gz: 0cbddd05011a5dcd280533feccf067348edacf24
5
5
  SHA512:
6
- metadata.gz: 987d7e4173be62f8be33d805ea62365b84967835af90f43582a5a41f34286dd007ed4a84b2895ced23bfed76f20d6baff266506c8ac026e7fc112f0dec77128b
7
- data.tar.gz: ed0929441beda1ba2ce75c21e93fb2fd5b224749bab7074ca158f35efd962a977ba89824bba8a154662b7145d2a7a687ddfbd3acea341221945ba57fcf869b4e
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
- #changed = true
16
- #if(changed)
17
- puts "Build scanning for gemspec files" if Environment.default.debug?
18
- Dir.glob('*.gemspec'){|gemspec|
19
- add_quiet("gem build #{gemspec}") if !File.exist?(Gemspec.gemfile gemspec)
20
- }
21
-
22
- # Windows
23
- if(Environment.windows?)
24
- puts "Build scanning for sln files" if Environment.default.debug?
25
- SLN_FILES.each{|sln_file|
26
- puts " #{sln_file}" if Environment.default.debug?
27
- build_commands = MSBuild.get_build_commands sln_file
28
- if(!build_commands.nil?)
29
- build_commands.each{|c|
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
- puts "Build scanning for nuget files" if Environment.default.debug?
39
- NUGET_FILES.each{|nuget_file|
40
- build_commands = Nuget.get_build_commands nuget_file
41
- if(!build_commands.nil?)
42
- build_commands.each{|c|
43
- add_quiet(c)
44
- }
45
- end
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
- puts "Build scanning for wxs <Product> files" if Environment.default.debug?
49
- WXS_FILES.each{|wxs_file|
50
- if(IO.read(wxs_file).include?('<Product'))
51
- build_commands = Wix.get_build_commands wxs_file
52
- if(!build_commands.nil?)
53
- build_commands.each{|c|
54
- add_quiet(c)
55
- }
56
- end
57
- end
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
- puts "Build scanning for wxs <Bundle> files" if Environment.default.debug?
61
- WXS_FILES.each{|wxs_file|
62
- if(IO.read(wxs_file).include?('<Bundle'))
63
- build_commands = Wix.get_build_commands wxs_file
64
- if(!build_commands.nil?)
65
- build_commands.each{|c|
66
- add_quiet(c)
67
- }
68
- end
69
- end
70
- }
71
- end
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
- # Mac
74
- if(Environment.mac?)
75
- puts "Build scanning for xcodeproj folders" if Environment.default.debug?
76
- Dir.glob('**/*.xcodeproj').each{|dir|
77
- puts dir if Environment.default.debug?
78
- build_commands = XCodeBuild.get_build_commands dir
79
- if(!build_commands.nil?)
80
- build_commands.each{|c|
81
- build_commands << c
82
- }
83
- end
84
- }
85
- end
86
- #end
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.14
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-02 00:00:00.000000000 Z
11
+ date: 2016-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake