papertrail 0.9.16 → 0.9.17

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: f04302fdf1de7c6976eedfb67db14b946dabef70
4
- data.tar.gz: 16282f57683ca38bab78df8ea8ce0fcefec6f5c6
3
+ metadata.gz: 28ff2f9a9837dba7b3ddc581e56f6424a5bf6eee
4
+ data.tar.gz: a84aa73e9f04e1cb541b6084f38ffbccdb4b64ea
5
5
  SHA512:
6
- metadata.gz: 349938f8a24a49b42e0243f7db076135455b701672436bbe5db998b790a71357688d74164b4dd2f08599ff3b872e4b01f6db0a66b9de774f4b30ce3777e210d0
7
- data.tar.gz: 766203717210fb954466d9c6a61c2ba0fcf18ce94337757b5501e4fe4d16a790d984d0c275ae1972f0d72c57643c3fa68d6395c6794c1194af67904cd3871aac
6
+ metadata.gz: 4b9c4fa624bea8c32dcf8c7d64ba8600f3ad8b49956a7e56afbf53a247bd9f07981da5b6027f363eb2ce4247264f323ab669b554fe06684ecbd9612271e96134
7
+ data.tar.gz: 8388b85e42b23005e16881d232b740600b63170adbaa5a0742b5c2c95dd5663923b6683bd8370af612800163f9d33cec8ddf39f4df0c16296895a3c3643d01e6
data/README.md CHANGED
@@ -244,6 +244,31 @@ To see usage, run any of these commands with `--help`: `papertrail-add-system`,
244
244
  `papertrail-remove-system`, `papertrail-add-group`, `papertrail-join-group`.
245
245
 
246
246
 
247
+ ## Releasing
248
+
249
+ ### Build
250
+
251
+ 1. Bump `VERSION` in `lib/papertrail.rb`
252
+ 2. Build the new gem: `$ rake build`
253
+
254
+ ### Install & Test
255
+
256
+ 1. Install built gem: `$ gem install pkg/papertrail-0.9.17.gem`
257
+ 2. Check version in rubygems: `$ gem list papertrail`
258
+ 4. Verify installed version matches: `$ which papertrail && papertrail --version`
259
+ 4. Test: `$ papertrail test search string`
260
+ 5. Uninstall local gem `$ gem uninstall papertrail`
261
+
262
+ ### Release
263
+
264
+ 1. Release: `$ rake release`
265
+ 2. Check latest published version: `$ gem list --versions --remote papertrail`
266
+ 3. Install release version: `$ gem install papertrail`
267
+ 4. Verify installed version matches: `$ which papertrail && papertrail --version`
268
+ 5. Test: `$ papertrail test search string`
269
+ 6. Party! :tada: :balloon: :confetti_ball:
270
+
271
+
247
272
  ## Contribute
248
273
 
249
274
  Bug report:
data/lib/papertrail.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Papertrail
2
- VERSION = "0.9.16"
2
+ VERSION = "0.9.17"
3
3
  end
4
4
 
5
5
  require 'papertrail/connection'
@@ -120,7 +120,7 @@ module Papertrail
120
120
  @query = search['query']
121
121
  end
122
122
 
123
- @query ||= ARGV[0]
123
+ @query ||= ARGV.join ' '
124
124
 
125
125
  if options[:follow]
126
126
  search_query = connection.query(@query, query_options)
@@ -1,15 +1,13 @@
1
1
  module Papertrail
2
2
  module CliHelpers
3
3
  def find_configfile
4
- begin
5
- if File.exists?(path = File.expand_path('.papertrail.yml'))
6
- return path
7
- end
8
- if File.exists?(path = File.expand_path('~/.papertrail.yml'))
9
- return path
10
- end
11
- rescue ArgumentError => e
4
+ if File.exists?(path = File.expand_path('.papertrail.yml'))
5
+ return path
12
6
  end
7
+ if File.exists?(path = File.expand_path('~/.papertrail.yml'))
8
+ return path
9
+ end
10
+ rescue ArgumentError
13
11
  end
14
12
 
15
13
  def load_configfile(file_path)
data/papertrail.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'papertrail'
16
- s.version = '0.9.16'
17
- s.date = '2016-05-16'
16
+ s.version = '0.9.17'
17
+ s.date = '2016-09-20'
18
18
  s.rubyforge_project = 'papertrail'
19
19
 
20
20
  ## 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.9.16
4
+ version: 0.9.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Papertrail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic
@@ -113,9 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project: papertrail
116
- rubygems_version: 2.4.5.1
116
+ rubygems_version: 2.5.1
117
117
  signing_key:
118
118
  specification_version: 2
119
119
  summary: Command-line client for Papertrail hosted log management service.
120
120
  test_files: []
121
- has_rdoc: