mina-tail 0.0.2 → 1.0.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: abab3626e455150fbb061b9ef49c646bd4ff926c
4
- data.tar.gz: 740766946974fbb9155e7ce0d494fef3ebe4a3c8
3
+ metadata.gz: 0f5883d2ee075b24b05f89de187d54552cc27744
4
+ data.tar.gz: 4aa7d19971858a0f81c0b9985d21396fc8f8564b
5
5
  SHA512:
6
- metadata.gz: 10138446481c254131bb81f0ad2c55ed96cd16a213c0fe23cc9a8e0f977e586a9b228884a23d01f819798fbe6c609aa885e522cc61f952af7f73e58420766dda
7
- data.tar.gz: 8bc33a16f970c460af74f0e160b4b4a7d9937312c5ad7c557a2b95a3d72fc3b4e135872b2acf725aa0e03d9d0ad2ae4f6532f266be09e5b8d9ca0b31f87f7b2d
6
+ metadata.gz: 64dbcf813ef7a7fb2d44d349b54f72bb0c24e97f5a6bcd66a7ef9dad194e1727862648cec95080c9172e9e2c8840aa9a19ee3b5c097d48c6715e67f813644ffa
7
+ data.tar.gz: accc94a55e053aa3db4f4307c8789c289f8b0df359d3db10006dceafc55d3f23f0fc64e70ac9988881f3210e031d8d19b06fcfdd90943afc7acb3f3388c80a6c
data/README.md CHANGED
@@ -22,6 +22,8 @@ Or install it yourself as:
22
22
  $ gem install mina-tail
23
23
  ```
24
24
 
25
+ _For support of Mina <1.0, stick with version 0.0.3 of this gem._
26
+
25
27
  Require `mina/tail` in your `config/deploy.rb`:
26
28
 
27
29
  ```rb
@@ -1,27 +1,29 @@
1
1
  namespace :tail do
2
- desc "Lists logs available to tail"
2
+ desc 'Lists logs available to tail'
3
3
  task :list => :environment do
4
- in_directory "#{app_path}" do
5
- log_path = "#{deploy_to!}/#{current_path!}/log"
6
- queue %{
4
+ in_path "#{current_path}" do
5
+ log_path = "#{fetch(:current_path)}/log"
6
+ command %{
7
7
  echo "-----> Log files in #{log_path}"
8
8
  #{%[ls #{log_path} | grep log]}
9
9
  }
10
10
  end
11
11
  end
12
- desc "Shows live environment logs"
13
- task :live => :environment do
14
- in_directory "#{app_path}" do
15
- file = ENV['file'] || "#{rails_env}.log"
16
- queue! %[tail -f log/#{file}]
12
+
13
+ desc 'Shows live environment logs'
14
+ task live: :environment do
15
+ in_path "#{fetch(:current_path)}" do
16
+ file = ENV['file'] || "#{fetch(:rails_env)}.log"
17
+ command %[tail -f log/#{file}]
17
18
  end
18
19
  end
20
+
19
21
  desc "Show last lines of the environment logs"
20
22
  task :last => :environment do
21
- in_directory "#{app_path}" do
23
+ in_path "#{fetch(:current_path)}" do
22
24
  lines = ENV['lines'] || 2000
23
- file = ENV['file'] || "#{rails_env}.log"
24
- queue! %[tail -#{lines} log/#{file}]
25
+ file = ENV['file'] || "#{fetch(:rails_env)}.log"
26
+ command %[tail -#{lines} log/#{file}]
25
27
  end
26
28
  end
27
29
  end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Tail
3
- VERSION = "0.0.2"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
data/mina-tail.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "mina", ">= 0.2.1"
21
+ spec.add_dependency "mina", "~> 1.0.0"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.7"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-tail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Senff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-19 00:00:00.000000000 Z
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.1
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.1
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.4.8
119
+ rubygems_version: 2.5.1
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Tasks for tailing Rails log files in a Mina deployment environment.