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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODU0ZTI0MWY5NThlMTRjMmI5NDBkOTYzNWZiYTQwOTFkNGJiODNkZQ==
4
+ NmZmOWY0Nzg4NWNlMzVmYTdmNTUxYTVmZWNjYmQwNDljODFkNDAxYw==
5
5
  data.tar.gz: !binary |-
6
- NmMxMGExNzBkNzkwZmQzZTdhMDE0ZjI0OTFlNjg4NTNiMjY0OWMxMQ==
6
+ NTAxYWY0YjYzNDM1NzAxOTdjNDY1YmQ4NWY3YWFhMTc3ZTYzNmRlZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWY3ZmY2MWYyMzllOTQ4MWJiZWE5ODY4MDdjNWFjYzY0ZTJhZGE2MWExOGJj
10
- YWUyOTc1NTllN2I4ZGE3ODk2MjZlYTkwYTM3OGNmYTU4MjAwYzViZjNmNjQw
11
- MDE0MmRlMjQ3NDI1OGI1YmU1ODM4OWI4NjRmMGVjNjYyNzZmNjc=
9
+ YTA2YzU5OWIzNWE0NzZmMjcxNTk1NTkxZjExYjU0OTg3Zjg4N2JlNzc2Yjcz
10
+ MDQxM2NmMzg1NjE2ZWMyYWY3MGFiYTc2ZWNhYjQyNjUxYTc1ODhhYjlkODg4
11
+ MTNkMjNkODEzMzM1YTAxMDkyNDUwM2FlNDcwOGQ4ZDQxYjlkMzY=
12
12
  data.tar.gz: !binary |-
13
- NzA1ZDM2MWExOTRiZWFkMDE2ZjkyMDBhNDA3OTg2NzYzZjhiYjRjOGI4NjE4
14
- YjFiMDY2NGFiMjMzZDc5YTg0ODc1NDBiZTczY2Q4MzcyZDFhZmM0ZTRhNDBl
15
- MDhhYzM4OWViOGY1MjJmNTljM2RlOGRhMDgzMmFiZDVlM2ZlYjM=
13
+ MmIxZTBiNjc1MDJlNGVkN2VhZDBiYjMzZGI4YmVmM2U5NjMzODNmN2JhYjQ5
14
+ MDUzYmIzZGNkMWM0ZTVkNjM4ODc5ZTMzMTU3ZWQwYThhZjc0ZDU4OWNkMDk0
15
+ OTQ4MzVjZDAyYzRhZDFkMzU4ZjA5MjRmZjU0ZTQ4OGM3NGNhZjU=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -2,22 +2,22 @@ module Bozo::Hooks
2
2
 
3
3
  class BuildNumberVersion
4
4
 
5
- def post_dependencies
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
- private
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
@@ -2,7 +2,7 @@ module Bozo::Hooks
2
2
 
3
3
  class GitCommitHashes
4
4
 
5
- def post_dependencies
5
+ def pre_prepare
6
6
  env['GIT_HASH'] = `git log -1 --format="%h"`.strip
7
7
  env['GIT_HASH_FULL'] = `git log -1 --format="%H"`.strip
8
8
  env['BUILD_VERSION'] = build_version
@@ -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: #{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(\"#{version}\")]\n"
27
- f << "[assembly: AssemblyFileVersion(\"#{version}\")]\n"
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.0
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-08-13 00:00:00.000000000 Z
12
+ date: 2014-09-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri