datacenter 0.4.2 → 0.4.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
  SHA1:
3
- metadata.gz: b9aa19ec561bf2a1e1f485e0c48dcbd8b96ca1fe
4
- data.tar.gz: 8bece0e6153a1a2581fa176b3f52d15215a14156
3
+ metadata.gz: 019f835ac47e780131ce4a171866b50d070bd9eb
4
+ data.tar.gz: fc334d6b1ac38a447ed9bac873870f5ca0d647ac
5
5
  SHA512:
6
- metadata.gz: 608f893f5f0299ca4badbefa2941bf82520be97d2b39129c09bb5add2b1f69aa1481e8e7704f6a6e8b8d7179b1bb3b15e048e7f3cc9c91eda75a432bef9f942e
7
- data.tar.gz: 86e591ab47dce0ffcb9e970b12767b5cbf0db3d3aaa9489e2979296183e4c8739ddbc1d90478fb9d2a378878f2633f478fd3e94a81f987304277e1c6586415c6
6
+ metadata.gz: 593b837bb8cb9e294df5ddb77aebf64d8e6c8519353b7ef3765407b5da91a965ea4e49321d50c587e7a2d24a483a3e4e42019aa0db1c8d934cdcc8d7605fa738
7
+ data.tar.gz: 3ccd7243885932720d4d38d83ed237f1dab19d7e6833197c83f07afddc4bfdafcd2bcea1b971a63b3c6d60e4f8bf3c30ee788ff8a0472c1f1148501700d4dcc3
data/.travis.yml CHANGED
@@ -1,12 +1,26 @@
1
1
  language: ruby
2
+
2
3
  rvm:
4
+ - 1.9.3
3
5
  - 2.0
4
6
  - 2.1
5
7
  - 2.2
6
8
  - 2.3.0
7
- - jruby
9
+ - 2.4.0
10
+ - 2.5.0
11
+ - jruby-1.7.25
12
+ - jruby-9.1.7.0
13
+ - ruby-head
14
+ - jruby-head
15
+
16
+ matrix:
17
+ fast_finish: true
18
+ allow_failures:
19
+ - rvm: ruby-head
20
+ - rvm: jruby-head
21
+
8
22
  before_install:
9
23
  - gem install bundler
10
24
  - sudo apt-get -y install openssh-server
11
25
  - ssh-keygen -q -t rsa -N "" -f ~/.ssh/id_rsa
12
- - cp $HOME/.ssh/id_rsa.pub $HOME/.ssh/authorized_keys
26
+ - cp $HOME/.ssh/id_rsa.pub $HOME/.ssh/authorized_keys
data/Gemfile CHANGED
@@ -1,8 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in datacenter.gemspec
4
- gemspec
5
-
6
- gem 'tins', '1.6.0', require: false
7
- gem 'coveralls', require: false
8
- gem 'term-ansicolor', '~> 1.3.0', require: false
4
+ gemspec
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Datacenter
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/datacenter.png)](https://rubygems.org/gems/datacenter)
4
- [![Build Status](https://travis-ci.org/gabynaiman/datacenter.png?branch=master)](https://travis-ci.org/gabynaiman/datacenter)
5
- [![Coverage Status](https://coveralls.io/repos/gabynaiman/datacenter/badge.png?branch=master)](https://coveralls.io/r/gabynaiman/datacenter?branch=master)
6
- [![Code Climate](https://codeclimate.com/github/gabynaiman/datacenter.png)](https://codeclimate.com/github/gabynaiman/datacenter)
7
- [![Dependency Status](https://gemnasium.com/gabynaiman/datacenter.png)](https://gemnasium.com/gabynaiman/datacenter)
3
+ [![Gem Version](https://badge.fury.io/rb/datacenter.svg)](https://rubygems.org/gems/datacenter)
4
+ [![Build Status](https://travis-ci.org/gabynaiman/datacenter.svg?branch=master)](https://travis-ci.org/gabynaiman/datacenter)
5
+ [![Coverage Status](https://coveralls.io/repos/gabynaiman/datacenter/badge.svg?branch=master)](https://coveralls.io/r/gabynaiman/datacenter?branch=master)
6
+ [![Code Climate](https://codeclimate.com/github/gabynaiman/datacenter.svg)](https://codeclimate.com/github/gabynaiman/datacenter)
7
+ [![Dependency Status](https://gemnasium.com/gabynaiman/datacenter.svg)](https://gemnasium.com/gabynaiman/datacenter)
8
8
 
9
9
  Manage and monitor servers and processes
10
10
 
data/Rakefile CHANGED
@@ -3,17 +3,23 @@ require 'rake/testtask'
3
3
 
4
4
  Rake::TestTask.new(:spec) do |t|
5
5
  t.libs << 'spec'
6
- t.pattern = 'spec/**/*_spec.rb'
6
+ t.libs << 'lib'
7
+ t.pattern = ENV['DIR'] ? File.join(ENV['DIR'], '**', '*_spec.rb') : 'spec/**/*_spec.rb'
7
8
  t.verbose = false
8
9
  t.warning = false
10
+ t.loader = nil if ENV['TEST']
11
+ ENV['TEST'], ENV['LINE'] = ENV['TEST'].split(':') if ENV['TEST'] && !ENV['LINE']
12
+ t.options = ''
13
+ t.options << "--name=/#{ENV['NAME']}/ " if ENV['NAME']
14
+ t.options << "-l #{ENV['LINE']} " if ENV['LINE'] && ENV['TEST']
9
15
  end
10
16
 
11
- desc 'Console'
17
+ task default: :spec
18
+
19
+ desc 'Pry console'
12
20
  task :console do
21
+ require 'rasti-db'
13
22
  require 'pry'
14
- require 'datacenter'
15
23
  ARGV.clear
16
24
  Pry.start
17
25
  end
18
-
19
- task default: :spec
data/datacenter.gemspec CHANGED
@@ -21,10 +21,12 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'net-ssh', '~> 2.6'
22
22
  spec.add_dependency 'class_config'
23
23
 
24
- spec.add_development_dependency 'bundler', '~> 1.3'
25
- spec.add_development_dependency 'rake'
26
- spec.add_development_dependency 'minitest', '~> 4.7'
27
- spec.add_development_dependency 'turn', '~> 0.9'
28
- spec.add_development_dependency 'simplecov'
29
- spec.add_development_dependency 'pry-nav'
24
+ spec.add_development_dependency 'bundler', '~> 1.12'
25
+ spec.add_development_dependency 'rake', '~> 11.0'
26
+ spec.add_development_dependency 'minitest', '~> 5.0', '< 5.11'
27
+ spec.add_development_dependency 'minitest-colorin', '~> 0.1'
28
+ spec.add_development_dependency 'minitest-line', '~> 0.6'
29
+ spec.add_development_dependency 'simplecov', '~> 0.12'
30
+ spec.add_development_dependency 'coveralls', '~> 0.8'
31
+ spec.add_development_dependency 'pry-nav', '~> 0.2'
30
32
  end
@@ -28,7 +28,7 @@ module Datacenter
28
28
  err: options[:err] || StringIO.new
29
29
  }
30
30
 
31
- if RUBY_ENGINE == 'jruby'
31
+ if RUBY_ENGINE == 'jruby' && JRUBY_VERSION < '9.0.0.0'
32
32
  run_system command, opts
33
33
  else
34
34
  run_open3 command, opts
@@ -1,3 +1,3 @@
1
1
  module Datacenter
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
@@ -1,16 +1,10 @@
1
1
  require 'coverage_helper'
2
2
  require 'minitest/autorun'
3
- require 'turn'
3
+ require 'minitest/colorin'
4
4
  require 'yaml'
5
5
  require 'datacenter'
6
6
  require 'pry-nav'
7
7
 
8
- Turn.config do |c|
9
- c.format = :pretty
10
- c.natural = true
11
- c.ansi = true
12
- end
13
-
14
8
  class Module
15
9
  include Minitest::Spec::DSL
16
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datacenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-23 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -44,84 +44,118 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '1.12'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: '1.12'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '11.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '11.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '4.7'
75
+ version: '5.0'
76
+ - - <
77
+ - !ruby/object:Gem::Version
78
+ version: '5.11'
76
79
  type: :development
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
83
  - - ~>
81
84
  - !ruby/object:Gem::Version
82
- version: '4.7'
85
+ version: '5.0'
86
+ - - <
87
+ - !ruby/object:Gem::Version
88
+ version: '5.11'
83
89
  - !ruby/object:Gem::Dependency
84
- name: turn
90
+ name: minitest-colorin
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
93
  - - ~>
88
94
  - !ruby/object:Gem::Version
89
- version: '0.9'
95
+ version: '0.1'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - ~>
95
101
  - !ruby/object:Gem::Version
96
- version: '0.9'
102
+ version: '0.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: minitest-line
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '0.6'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ~>
115
+ - !ruby/object:Gem::Version
116
+ version: '0.6'
97
117
  - !ruby/object:Gem::Dependency
98
118
  name: simplecov
99
119
  requirement: !ruby/object:Gem::Requirement
100
120
  requirements:
101
- - - '>='
121
+ - - ~>
102
122
  - !ruby/object:Gem::Version
103
- version: '0'
123
+ version: '0.12'
104
124
  type: :development
105
125
  prerelease: false
106
126
  version_requirements: !ruby/object:Gem::Requirement
107
127
  requirements:
108
- - - '>='
128
+ - - ~>
109
129
  - !ruby/object:Gem::Version
110
- version: '0'
130
+ version: '0.12'
131
+ - !ruby/object:Gem::Dependency
132
+ name: coveralls
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ~>
136
+ - !ruby/object:Gem::Version
137
+ version: '0.8'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ~>
143
+ - !ruby/object:Gem::Version
144
+ version: '0.8'
111
145
  - !ruby/object:Gem::Dependency
112
146
  name: pry-nav
113
147
  requirement: !ruby/object:Gem::Requirement
114
148
  requirements:
115
- - - '>='
149
+ - - ~>
116
150
  - !ruby/object:Gem::Version
117
- version: '0'
151
+ version: '0.2'
118
152
  type: :development
119
153
  prerelease: false
120
154
  version_requirements: !ruby/object:Gem::Requirement
121
155
  requirements:
122
- - - '>='
156
+ - - ~>
123
157
  - !ruby/object:Gem::Version
124
- version: '0'
158
+ version: '0.2'
125
159
  description: Manage and monitor servers and processes
126
160
  email:
127
161
  - gabynaiman@gmail.com