gitlab-mail_room 0.0.2 → 0.0.3

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
  SHA256:
3
- metadata.gz: 83ebaaed437f93cd2df69d48f6542842364fdab407bbf6620347b7a9e0d95199
4
- data.tar.gz: d374aee24abf12a1cd274c3dbc9bd9e9feeb440b0eec314807487163617e9cab
3
+ metadata.gz: 219f2185b18471c72198ed5c0a55a1428139f7b944f90d1f2428bbc9961e95e9
4
+ data.tar.gz: f3fadcc3962ac8325c3c461cda65a81e6c7df40a1b575a303a9073b1773252e9
5
5
  SHA512:
6
- metadata.gz: c76aa09decd47a81ee95f12d9a9c0470f48caabaf1443e461784677c58f8685a394198618498ae61d663819af4a99be4a359d5397e05f6cbab456973b995a3d8
7
- data.tar.gz: f9815fff30eea223d91046f15e84d2fd4f584114c3a18743ba9f54134aa831138bb8f0936747130b5bc8da8f41b30d6e953a14c8ad4b3bc997bdb62d3e5b447e
6
+ metadata.gz: e279af4924d7a87fabedbae769785ed2c5f258091651c2f3089225a0bacb1a2ab54b23931a925304e6b0f9cfaeb88f4d93d97763c663774b27bc0def8fbf1bac
7
+ data.tar.gz: 470d47c934a55ccd789c19da2188e889c6d953e5ebb5ff0be9d70be98db3ab770a3646646faf9596f1296660974d29b1ef02ba7c13fe1b6a1cfb36bc363330d6
@@ -26,7 +26,9 @@ module MailRoom
26
26
  end
27
27
 
28
28
  parser.on('--log-exit-as') do |format|
29
- options[:exit_error_format] = 'json' unless format.nil?
29
+ # accepts 'json' and 'plain'
30
+ # 'plain' is equivalent to no format given
31
+ options[:exit_error_format] = format unless format.nil?
30
32
  end
31
33
 
32
34
  # parser.on("-l", "--log FILE") do |path|
@@ -4,7 +4,7 @@ module MailRoom
4
4
 
5
5
  attr_reader :error, :format
6
6
 
7
- SUPPORTED_FORMATS = %w[json none]
7
+ SUPPORTED_FORMATS = %w[json plain]
8
8
 
9
9
  def initialize(error:, format:)
10
10
  @error = error
@@ -1,4 +1,4 @@
1
1
  module MailRoom
2
2
  # Current version of MailRoom gem
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-mail_room
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Pitale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-25 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake