jara 2.1.0 → 2.2.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: ce788b9e5d1533e6c4e79b70ec143fdbeec85f7e
4
- data.tar.gz: d718a9cbc873b371ed2ba12d9b1f6c3fe0f3debd
3
+ metadata.gz: 9b49ca235ee38f2f65e1efd145cc2ea4e8804648
4
+ data.tar.gz: 42cb51242bafcd030fd4888342d34a37be9691e5
5
5
  SHA512:
6
- metadata.gz: 92c63984645cf24220f20ba95e009e284074ab4d2831e45d0916bbc3327607429b55a07f5792cf614d1ad89e215bfd4509fb8c4adfe4a56187495183f2f2a0a8
7
- data.tar.gz: c266fc7c5efdbf9a3de77cd180e60ff824acd31713b4d2287369b5eb2ba691a6250686b117bc33ae70e47341935a661cc94171c6096a2fc4f1b0c2c30993b4d8
6
+ metadata.gz: b0f61de31ccaf042bd8c44f5c1d357db4cada20efb4f5ea700266c471f063d978380d3f4260192a49b09ce145c094948a24aedf796c2959cd741a2f4f84d9e39
7
+ data.tar.gz: 1709a98b70e2909eba1489bb521ea9f37a60e1730dbee523ec8a67c161693ad2b64e68b0270eb90fb81748b48cd582c655ecc6cf079a0b24ad00c55ea5f2acce
data/lib/jara/cli.rb CHANGED
@@ -15,6 +15,7 @@ module Jara
15
15
  options = {}
16
16
  options[:archiver] = @archiver if @archiver
17
17
  options[:build_command] = @build_command if @build_command
18
+ options[:branch] = @branch if @branch
18
19
  releaser = Jara::Releaser.new(@environment, @bucket, options)
19
20
  case @command
20
21
  when /help|-h/
@@ -44,6 +45,7 @@ module Jara
44
45
  parser.separator 'Common options:'
45
46
  parser.on('-e', '--environment=ENV', 'Environment to release to (e.g. production, staging)') { |e| @environment = e }
46
47
  parser.on('-a', '--archiver=TYPE', 'Archiver to use (jar or tgz)') { |t| @archiver = t.to_sym }
48
+ parser.on('--branch=BRANCH', 'Branch to release from, if not same as environment (production must be released from master)') { |b| @branch = b }
47
49
  parser.on('-c', '--build-command=COMMAND', 'Command to run before creating the artifact') { |c| @build_command = c }
48
50
  parser.on('-h', '--help', 'Show this message') { @command = 'help' }
49
51
  parser.separator ''
data/lib/jara/releaser.rb CHANGED
@@ -25,7 +25,14 @@ module Jara
25
25
  @file_system = options[:file_system] || FileUtils
26
26
  @s3 = options[:s3]
27
27
  @logger = options[:logger] || IoLogger.new($stderr)
28
- @branch = @environment == 'production' ? 'master' : @environment
28
+ if @environment == 'production'
29
+ if options[:branch]
30
+ raise JaraError, 'Production must be released from master'
31
+ end
32
+ @branch = 'master'
33
+ else
34
+ @branch = options[:branch] || @environment
35
+ end
29
36
  end
30
37
 
31
38
  def build_artifact
data/lib/jara/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Jara
4
- VERSION = '2.1.0'.freeze
4
+ VERSION = '2.2.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.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burt Platform Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-13 00:00:00.000000000 Z
11
+ date: 2016-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
14
+ name: aws-sdk-core
15
+ version_requirements: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - '>='
17
18
  - !ruby/object:Gem::Version
18
19
  version: '0'
19
- name: aws-sdk-core
20
- prerelease: false
21
- type: :runtime
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
22
  - - '>='
25
23
  - !ruby/object:Gem::Version
26
24
  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.
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project:
66
- rubygems_version: 2.2.2
66
+ rubygems_version: 2.4.5
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Builds and publishes project artifacts