bozo-scripts 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/bozo/hooks/build_number_version.rb +11 -11
- data/lib/bozo/hooks/git_commit_hashes.rb +1 -1
- data/lib/bozo/preparers/common_assembly_info.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmZmOWY0Nzg4NWNlMzVmYTdmNTUxYTVmZWNjYmQwNDljODFkNDAxYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTAxYWY0YjYzNDM1NzAxOTdjNDY1YmQ4NWY3YWFhMTc3ZTYzNmRlZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTA2YzU5OWIzNWE0NzZmMjcxNTk1NTkxZjExYjU0OTg3Zjg4N2JlNzc2Yjcz
|
10
|
+
MDQxM2NmMzg1NjE2ZWMyYWY3MGFiYTc2ZWNhYjQyNjUxYTc1ODhhYjlkODg4
|
11
|
+
MTNkMjNkODEzMzM1YTAxMDkyNDUwM2FlNDcwOGQ4ZDQxYjlkMzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmIxZTBiNjc1MDJlNGVkN2VhZDBiYjMzZGI4YmVmM2U5NjMzODNmN2JhYjQ5
|
14
|
+
MDUzYmIzZGNkMWM0ZTVkNjM4ODc5ZTMzMTU3ZWQwYThhZjc0ZDU4OWNkMDk0
|
15
|
+
OTQ4MzVjZDAyYzRhZDFkMzU4ZjA5MjRmZjU0ZTQ4OGM3NGNhZjU=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
@@ -2,22 +2,22 @@ module Bozo::Hooks
|
|
2
2
|
|
3
3
|
class BuildNumberVersion
|
4
4
|
|
5
|
-
|
5
|
+
def pre_prepare
|
6
6
|
env['GIT_HASH_FULL'] = `git log -1 --format="%H"`.strip
|
7
|
-
env['BUILD_VERSION']= build_version
|
7
|
+
env['BUILD_VERSION'] = build_version
|
8
8
|
build_version.write_to_file "NEW_VERSION"
|
9
9
|
end
|
10
10
|
|
11
|
-
|
11
|
+
private
|
12
|
+
|
13
|
+
def build_version
|
14
|
+
if env['BUILD_NUMBER']
|
15
|
+
Bozo::Versioning::Version.new(version.major, version.minor, env['BUILD_NUMBER'])
|
16
|
+
else
|
17
|
+
version
|
18
|
+
end
|
19
|
+
end
|
12
20
|
|
13
|
-
def build_version
|
14
|
-
if env['BUILD_NUMBER']
|
15
|
-
Bozo::Versioning::Version.new(version.major, version.minor, env['BUILD_NUMBER'])
|
16
|
-
else
|
17
|
-
version
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
21
|
end
|
22
22
|
|
23
23
|
end
|
@@ -13,8 +13,9 @@ module Bozo::Preparers
|
|
13
13
|
computer_name = env['COMPUTERNAME']
|
14
14
|
trademark = computer_name ? "#{computer_name} #{git_hash}" : git_hash
|
15
15
|
path = File.expand_path(File.join('build', 'CommonAssemblyInfo.cs'))
|
16
|
+
build_version = env['BUILD_VERSION']
|
16
17
|
|
17
|
-
log_debug "Version: #{
|
18
|
+
log_debug "Version: #{build_version}"
|
18
19
|
log_debug "Commit hash: #{git_hash}"
|
19
20
|
log_debug "Computer name: #{computer_name}" if computer_name
|
20
21
|
log_debug "Path: #{path}"
|
@@ -23,8 +24,8 @@ module Bozo::Preparers
|
|
23
24
|
f << "using System.Reflection;\n"
|
24
25
|
f << "\n"
|
25
26
|
f << "[assembly: AssemblyCompany(\"#{@company_name}\")]\n"
|
26
|
-
f << "[assembly: AssemblyVersion(\"#{
|
27
|
-
f << "[assembly: AssemblyFileVersion(\"#{
|
27
|
+
f << "[assembly: AssemblyVersion(\"#{build_version}\")]\n"
|
28
|
+
f << "[assembly: AssemblyFileVersion(\"#{build_version}\")]\n"
|
28
29
|
f << "[assembly: AssemblyTrademark(\"#{trademark}\")]"
|
29
30
|
end
|
30
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bozo-scripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garry Shutler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|