airbrussh 0.0.1 → 0.2.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: 66dc41c940b4eac6103d25a09fa19e9fee07a863
4
- data.tar.gz: ad675ee93d5b7e6bcfebbee06e7d9ee5ca384832
3
+ metadata.gz: 571ffc817717abab7b7aa3d6ce859977638e06f9
4
+ data.tar.gz: 92a2bf4c3a242e4c6e8ca59bcc7ad1384b640d9d
5
5
  SHA512:
6
- metadata.gz: fb2efbcfc660c198270768b65126d63efa2a503ff780dce66f59ecaa8b723231b534051c674e00dbef0834edf3b40e97e3fe6255c2877e8f0dbc38c4d5a3496c
7
- data.tar.gz: 2350aacf020830da113e3664402fa95ca20bb2f23681ad8d18720d5ba5a6683842da0ede62b757b7843617a6d4f0241cc2e61e07b1edbb1d5468601b31f682e0
6
+ metadata.gz: d8519da5eb8359c738c2b7d333d00b3abc683c1471e06b423b6a33cbb7ea09cfaf0b0daddc4addd1d6a5f91894c1e462d236d4d27b2deac9fb778d22d2937f2e
7
+ data.tar.gz: 19c6e9e7b29e1deee143603a7cc138d2f7652f335dc110abb5da0f3385885ef36573854eabf611fedfd957b498855efda27d31cf8b1e5b113068e87df867107c
@@ -1,3 +1,7 @@
1
+ ## 0.2.0 (2015-03-02)
2
+
3
+ * Pin SSHKit dependency at `~> 1.6.1` to avoid a [bug in 1.7.0](https://github.com/capistrano/sshkit/issues/226) that causes command exit statuses to be omitted from the log.
4
+
1
5
  ## 0.0.1 (2015-02-19)
2
6
 
3
7
  * Initial release
@@ -1,22 +1,21 @@
1
- Copyright (c) 2015 Matt Brictson
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) 2015 Matt Brictson
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
12
11
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
15
14
 
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -77,7 +77,7 @@ If you are using SSHKit directly, you can use Airbrussh without the Capistrano m
77
77
 
78
78
  ```ruby
79
79
  require "airbrussh"
80
- SSHKit.config.output = Airbrussh::Formatter.new
80
+ SSHKit.config.output = Airbrussh::Formatter.new($stdout)
81
81
  ```
82
82
 
83
83
  When Capistrano is not present, Airbrussh uses a slightly different default configuration:
@@ -101,10 +101,15 @@ Airbrussh needs work! The first priority is to add tests. Once good test coverag
101
101
 
102
102
  If you have ideas for other improvements, please contribute!
103
103
 
104
+ ## Development
105
+
106
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
107
+
108
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
104
109
 
105
110
  ## Contributing
106
111
 
107
- 1. Fork it ( https://github.com/[my-github-username]/airbrussh/fork )
112
+ 1. Fork it ( https://github.com/mattbrictson/airbrussh/fork )
108
113
  2. Create your feature branch (`git checkout -b my-new-feature`)
109
114
  3. Commit your changes (`git commit -am 'Add some feature'`)
110
115
  4. Push to the branch (`git push origin my-new-feature`)
@@ -16,14 +16,14 @@ Gem::Specification.new do |spec|
16
16
  spec.homepage = "https://github.com/mattbrictson/airbrussh"
17
17
  spec.license = "MIT"
18
18
 
19
- spec.files = `git ls-files -z`.split("\x0")
20
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_dependency "sshkit", ">= 1.6.1"
24
+ spec.add_dependency "sshkit", "~> 1.6.1"
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.7"
26
+ spec.add_development_dependency "bundler", "~> 1.8"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
28
  spec.add_development_dependency "minitest"
29
29
  spec.add_development_dependency "minitest-reporters"
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "airbrussh"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/demo.gif CHANGED
Binary file
@@ -3,8 +3,6 @@ require "colorize"
3
3
  require "ostruct"
4
4
  require "sshkit"
5
5
 
6
- # TODO: honor Airbrussh.configuration!
7
-
8
6
  module Airbrussh
9
7
  class Formatter < SSHKit::Formatter::Abstract
10
8
  class << self
@@ -1,3 +1,3 @@
1
1
  module Airbrussh
2
- VERSION = "0.0.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrussh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2015-02-20 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.6.1
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
26
  version: 1.6.1
27
27
  - !ruby/object:Gem::Dependency
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '1.8'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: '1.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -97,6 +97,8 @@ files:
97
97
  - README.md
98
98
  - Rakefile
99
99
  - airbrussh.gemspec
100
+ - bin/console
101
+ - bin/setup
100
102
  - demo.gif
101
103
  - lib/airbrussh.rb
102
104
  - lib/airbrussh/capistrano.rb
@@ -105,8 +107,6 @@ files:
105
107
  - lib/airbrussh/formatter.rb
106
108
  - lib/airbrussh/version.rb
107
109
  - lib/sshkit/formatter/airbrussh.rb
108
- - test/minitest_helper.rb
109
- - test/test_airbrussh.rb
110
110
  homepage: https://github.com/mattbrictson/airbrussh
111
111
  licenses:
112
112
  - MIT
@@ -131,6 +131,4 @@ rubygems_version: 2.4.6
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Airbrussh pretties up your SSHKit and Capistrano output
134
- test_files:
135
- - test/minitest_helper.rb
136
- - test/test_airbrussh.rb
134
+ test_files: []
@@ -1,11 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
- require "airbrussh"
3
-
4
- require "minitest/autorun"
5
- require "minitest/reporters"
6
-
7
- Minitest::Reporters.use!(
8
- Minitest::Reporters::ProgressReporter.new,
9
- ENV,
10
- Minitest.backtrace_filter
11
- )
@@ -1,11 +0,0 @@
1
- require "minitest_helper"
2
-
3
- class TestAirbrussh < MiniTest::Unit::TestCase
4
- def test_that_it_has_a_version_number
5
- refute_nil ::Airbrussh::VERSION
6
- end
7
-
8
- def test_it_does_something_useful
9
- assert false
10
- end
11
- end