jara 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b49ca235ee38f2f65e1efd145cc2ea4e8804648
4
- data.tar.gz: 42cb51242bafcd030fd4888342d34a37be9691e5
3
+ metadata.gz: 7da9b3dd096331e19b52a5b94b9d2269d1ab45d1
4
+ data.tar.gz: b2d0ff5892ab0fa367b2e386256b93e4932f0f52
5
5
  SHA512:
6
- metadata.gz: b0f61de31ccaf042bd8c44f5c1d357db4cada20efb4f5ea700266c471f063d978380d3f4260192a49b09ce145c094948a24aedf796c2959cd741a2f4f84d9e39
7
- data.tar.gz: 1709a98b70e2909eba1489bb521ea9f37a60e1730dbee523ec8a67c161693ad2b64e68b0270eb90fb81748b48cd582c655ecc6cf079a0b24ad00c55ea5f2acce
6
+ metadata.gz: 671127e4d12ab8ca9d231afe9a299426807fc4b324b3fc01ae2fb2666eda7d93d91ee46fb0c06c5b207ba1def8bde50256838158ce9e5b8cc40e725f8ed2c4f4
7
+ data.tar.gz: 51f0c7f5e55c27cab9f06ae38f9e41f3b471b8ce39034d41bce8d57046c29e4e9639d1f31bc929b75be8343236b3f10bba74f534d487fbe6b362f8450caaf002
data/lib/jara/releaser.rb CHANGED
@@ -127,17 +127,40 @@ module Jara
127
127
  @git_remote ||= @shell.exec('git config --get remote.origin.url')
128
128
  end
129
129
 
130
+ def git_author_name
131
+ @git_author_name ||= @shell.exec('git show %s -s --format=format:"%%aN"' % [@branch_sha])
132
+ end
133
+
134
+ def git_author_email
135
+ @git_author_email ||= @shell.exec('git show %s -s --format=format:"%%aE"' % [@branch_sha])
136
+ end
137
+
138
+ def git_title
139
+ @git_title ||= @shell.exec('git show %s -s --format=format:"%%s"' % [@branch_sha])
140
+ end
141
+
130
142
  def metadata
131
143
  m = {
132
144
  'packaged_by' => "#{ENV['USER']}@#{Socket.gethostname}",
133
145
  'sha' => branch_sha,
134
146
  'remote' => git_remote,
135
147
  }
148
+ m.merge!(git_metadata)
136
149
  m.merge!(@extra_metadata)
137
150
  m.merge!(@archiver.metadata)
138
151
  m
139
152
  end
140
153
 
154
+ def git_metadata
155
+ {
156
+ 'git_sha' => branch_sha,
157
+ 'git_remote' => git_remote,
158
+ 'git_author_name' => git_author_name,
159
+ 'git_author_email' => git_author_email,
160
+ 'git_title' => git_title,
161
+ }
162
+ end
163
+
141
164
  def find_local_artifact
142
165
  candidates = Dir[File.join(project_dir, 'build', @environment, "*.#{@archiver.extension}")]
143
166
  candidates.select! { |path| path.match(/#{app_name}-\w+-\d{14}-#{branch_sha[0, 8]}/) }
data/lib/jara/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Jara
4
- VERSION = '2.2.0'.freeze
4
+ VERSION = '2.3.0'.freeze
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jara
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burt Platform Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
- - - '>='
24
+ - - ">="
23
25
  - !ruby/object:Gem::Version
24
26
  version: '0'
25
- prerelease: false
26
- type: :runtime
27
27
  description: |-
28
28
  Jara is a tool for building artifacts from a Git
29
29
  repository, and can make standalone Jar files for JRuby.
@@ -47,24 +47,24 @@ homepage: http://github.com/burtcorp/jara
47
47
  licenses:
48
48
  - BSD-3-Clause
49
49
  metadata: {}
50
- post_install_message:
50
+ post_install_message:
51
51
  rdoc_options: []
52
52
  require_paths:
53
53
  - lib
54
54
  required_ruby_version: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - '>='
56
+ - - ">="
57
57
  - !ruby/object:Gem::Version
58
58
  version: 1.9.3
59
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  requirements: []
65
- rubyforge_project:
66
- rubygems_version: 2.4.5
67
- signing_key:
65
+ rubyforge_project:
66
+ rubygems_version: 2.4.8
67
+ signing_key:
68
68
  specification_version: 4
69
69
  summary: Builds and publishes project artifacts
70
70
  test_files: []