papertrail 0.11.0 → 0.11.2

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: 19f8502944f2149f181050b434539d27f5a01a72682c787beaad70f07aa3fe60
4
- data.tar.gz: f1c37f9ad6d77dc618174becd614c4c185493fef917d12f74b7df2f050271c22
3
+ metadata.gz: e47ae7a251a62299dac9362dac999348a7c04a4dde2a1583c56984cff19bf8ae
4
+ data.tar.gz: c723010a69cc0a7c505cf6c08e35b2b9ecf06315103c4d54d746d1e7fbc1297b
5
5
  SHA512:
6
- metadata.gz: bffe601811d165aa07ef028bd74304babf322c518e7fbf492d2453974363f7e26ad9a2e73ce2c871f583fbf961765004f2371eceeb5575f762bddf7645d26450
7
- data.tar.gz: 7b43d937751f7cdb8b46dc95dac721b4625b70f3a1fab0019ec3f1ea94ef34d95f7ab2271fea9684477120fe247501ccb3c00483eb43fa682001005a5f5d5dae
6
+ metadata.gz: 7b905214677ed2ec957d71fee883c1bd50118f4855ccc4b3d29acbc3d3fc90c1f5b6d302660704b100f049ad039a0db88e75c99c2a3779d8e280cba74bd393a6
7
+ data.tar.gz: 548d2f5898ddc50309d491b8e5e0f8c746edcc0ce40f249b693332ad38ab47482bde90450abf6b353dffa80c7ba136e2495dc6c8c62a3c5cf1aef48df92d3303
@@ -48,7 +48,8 @@ module Papertrail
48
48
 
49
49
  Papertrail::Connection.new(options).start do |connection|
50
50
  # Bail if group already exists
51
- if connection.show_group(options[:group])
51
+ existing = connection.show_group(options[:group])
52
+ if existing && existing['name'].upcase == options[:group].upcase
52
53
  exit 0
53
54
  end
54
55
 
@@ -86,7 +86,8 @@ module Papertrail
86
86
 
87
87
  Papertrail::Connection.new(options).start do |connection|
88
88
  # Bail if system already exists
89
- if connection.show_source(options[:system])
89
+ existing = connection.show_source(options[:system])
90
+ if existing && existing['name'].upcase == options[:system].upcase
90
91
  exit 0
91
92
  end
92
93
 
@@ -1,10 +1,10 @@
1
1
  module Papertrail
2
2
  module CliHelpers
3
3
  def find_configfile
4
- if File.exists?(path = File.expand_path('.papertrail.yml'))
4
+ if File.exist?(path = File.expand_path('.papertrail.yml'))
5
5
  return path
6
6
  end
7
- if File.exists?(path = File.expand_path('~/.papertrail.yml'))
7
+ if File.exist?(path = File.expand_path('~/.papertrail.yml'))
8
8
  return path
9
9
  end
10
10
  rescue ArgumentError
data/lib/papertrail.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Papertrail
2
- VERSION = '0.11.0'
2
+ VERSION = '0.11.2'
3
3
  end
4
4
 
5
5
  require 'papertrail/connection'
data/papertrail.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
  ## If your rubyforge_project name is different, then edit it and comment out
10
10
  ## the sub! line in the Rakefile
11
11
  s.name = 'papertrail'
12
- s.version = '0.11.0'
13
- s.date = '2018-05-16'
12
+ s.version = '0.11.2'
13
+ s.date = '2023-05-24'
14
14
  s.rubyforge_project = 'papertrail'
15
15
 
16
16
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papertrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Papertrail
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-16 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic
@@ -185,7 +185,7 @@ homepage: http://github.com/papertrail/papertrail-cli
185
185
  licenses:
186
186
  - MIT
187
187
  metadata: {}
188
- post_install_message:
188
+ post_install_message:
189
189
  rdoc_options:
190
190
  - "--charset=UTF-8"
191
191
  require_paths:
@@ -201,9 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
203
  requirements: []
204
- rubyforge_project: papertrail
205
- rubygems_version: 2.7.4
206
- signing_key:
204
+ rubygems_version: 3.4.10
205
+ signing_key:
207
206
  specification_version: 2
208
207
  summary: Command-line client for Papertrail hosted log management service.
209
208
  test_files: