airbrussh 1.0.0.beta1 → 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: f88b5b67607156fb5e37627a35a23339f674090d
4
- data.tar.gz: 221fc6a9042cf7cc2249246ef5d2efa7bbee4463
3
+ metadata.gz: 01eb882bc9f55583a0482ef56741ecb034fa1668
4
+ data.tar.gz: c146d528c8200f85f0288dc749f5ae78cf536320
5
5
  SHA512:
6
- metadata.gz: d447630e02fea68846d1430314f515e42ababbd83ccb35bbc08400269d2c6181c93cd2efc7a41ecfe489a6cce4f09dd46deeb97769ad51f4d3f5b8440dce834f
7
- data.tar.gz: 1477b51b5db6c879015d1334efb8b5d10a0f9bd80515cef749803ceeb615474dbf8532dbb08124fbbb043d9242c7f4b7769ef7fae0c66bd4052d1551bae0ba72
6
+ metadata.gz: d34d086d3dd901944f36ec67159cd5317f30156b74fc76843a9760b3af7ee93268121c0f055ebd4cc250285a9f729b55d8a97cc25475f4fd9ffe11579719d2ca
7
+ data.tar.gz: a141d92036bce8c5a3238e331dc29de44e037bb46219348923dc3b42dbd21f9d8aaba4df13e6995afe043e3a83373edc49ae8bc6ff9c6fcb4d03d53bf734bc37
@@ -1,6 +1,7 @@
1
1
  AllCops:
2
2
  DisplayCopNames: true
3
3
  DisplayStyleGuide: true
4
+ TargetRubyVersion: 1.9
4
5
  Exclude:
5
6
  - "*.gemspec"
6
7
 
@@ -4,6 +4,7 @@ rvm:
4
4
  - 2.0
5
5
  - 2.1
6
6
  - 2.2
7
+ - 2.3.0
7
8
  env:
8
9
  - sshkit="master"
9
10
  - sshkit="= 1.7.1"
@@ -1,13 +1,15 @@
1
1
  # Airbrussh Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
-
5
- Airbrussh is in a pre-1.0 state. This means that its APIs and behavior are subject to breaking changes without deprecation notices. Until 1.0, version numbers will follow a [Semver][]-ish `0.y.z` format, where `y` is incremented when new features or breaking changes are introduced, and `z` is incremented for lesser changes or bug fixes.
3
+ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning][Semver].
6
4
 
7
5
  ## [Unreleased]
8
6
 
9
7
  * Your contribution here!
10
8
 
9
+ ## [1.0.0][] (2016-02-27)
10
+
11
+ * No changes since 1.0.0.beta1.
12
+
11
13
  ## [1.0.0.beta1][] (2015-12-27)
12
14
 
13
15
  * Airbrussh can now be configured with an options Hash passed to the
@@ -87,7 +89,8 @@ There are, however, many behind-the-scenes changes and improvements to overall c
87
89
  * Initial release
88
90
 
89
91
  [Semver]: http://semver.org
90
- [Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.0.0.beta1...HEAD
92
+ [Unreleased]: https://github.com/mattbrictson/airbrussh/compare/v1.0.0...HEAD
93
+ [1.0.0]: https://github.com/mattbrictson/airbrussh/compare/v1.0.0.beta1...v1.0.0
91
94
  [1.0.0.beta1]: https://github.com/mattbrictson/airbrussh/compare/v0.8.0...v1.0.0.beta1
92
95
  [0.8.0]: https://github.com/mattbrictson/airbrussh/compare/v0.7.0...v0.8.0
93
96
  [0.7.0]: https://github.com/mattbrictson/airbrussh/compare/v0.6.0...v0.7.0
@@ -18,10 +18,9 @@ Have a feature idea, bug fix, or refactoring suggestion? Contributions are welco
18
18
 
19
19
  Note that Bundler 1.10 is required for development. Run `gem update bundler` to get the latest version.
20
20
 
21
- After checking out the airbrussh repo, run `bin/setup` to install dependencies.
21
+ After checking out the airbrussh repo, run `bin/setup` to install dependencies. Run `rake` to execute airbrussh's tests and RuboCop checks.
22
22
 
23
- * `rake` executes airbrussh's tests and RuboCop checks
24
- * `bin/test_all.rb` executes the tests against all versions of SSHKit that airbrussh supports
23
+ Airbrussh is designed to work against multiple versions of SSHKit and Ruby. In order to test this, we use the environment variable `sshkit` in order to run the tests against a specific version. The combinations of sshkit and ruby we support are specified in [.travis.yml](.travis.yml). To test all the versions locally, there is a `test_all.rb` bin file. This installs the gems and runs the tests for each sshkit version in [.travis.yml](.travis.yml). *Note: this will update your `Gemfile.lock` as each SSHKit gem version is installed. The gem version is restored to the default when the script exits.*
25
24
 
26
25
  A Guardfile is also present, so if you'd like to use Guard to do a TDD workflow, then:
27
26
 
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Matt Brictson
3
+ Copyright (c) 2016 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -191,15 +191,7 @@ Airbrussh started life as custom logging code within the [capistrano-mb][] colle
191
191
 
192
192
  ## Roadmap
193
193
 
194
- Airbrussh will most likely be integrated as the default formatter in a future release of SSHKit or Capistrano. If you have any suggestions for how to make this migration a smooth one, or if you have other ideas for improvements to Airbrussh, please add your comment to the discussion in [GitHub issue #39](https://github.com/mattbrictson/airbrussh/issues/39).
195
-
196
- ## Development
197
-
198
- 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.
199
-
200
- 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).
201
-
202
- Airbrussh is designed to work against multiple versions of SSHKit and Ruby. In order to test this, we use the environment variable `sshkit` in order to run the tests against a specific version. The combinations of sshkit and ruby we support are specified in [.travis.yml](.travis.yml). To test all the versions locally, there is a `test_all.rb` bin file. This installs the gems and runs the tests for each sshkit version in [.travis.yml](.travis.yml). *Note: this will update your `Gemfile.lock` as each SSHKit gem version is installed. The gem version is restored to the default when the script exits.*
194
+ Airbrussh now has a stable feature set, excellent test coverage, is being used for production deployments, and has reached 1.0.0! Work is [underway](https://github.com/capistrano/capistrano/pull/1541) to integrate Airbrussh with the next Capistrano release. If you have ideas for improvements to Airbrussh, please open a [GitHub issue](https://github.com/mattbrictson/airbrussh/issues/new).
203
195
 
204
196
  ## Contributing
205
197
 
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "minitest"
30
30
  spec.add_development_dependency "minitest-reporters"
31
31
  spec.add_development_dependency "mocha"
32
- spec.add_development_dependency "rubocop", ">= 0.31.0"
32
+ spec.add_development_dependency "rubocop", ">= 0.37.0"
33
33
  end
@@ -5,7 +5,7 @@ require "English"
5
5
  YAML.load_file(".travis.yml")["env"].each do |sshkit_version|
6
6
  puts "\e[0;34;49m== Running tests against #{sshkit_version} ==\e[0m"
7
7
  output = `#{sshkit_version} bundle update`
8
- fail "bundle update failed: #{output}" unless $CHILD_STATUS.success?
8
+ raise "bundle update failed: #{output}" unless $CHILD_STATUS.success?
9
9
  system("#{sshkit_version} bundle exec rake test")
10
10
  end
11
11
 
@@ -47,11 +47,11 @@ module Airbrussh
47
47
  # # => "✘ 01 user@host (see out.log for details) 0.084s"
48
48
  #
49
49
  def exit_message(log_file=nil)
50
- if failure?
51
- message = red(failure_message(log_file))
52
- else
53
- message = green(success_message)
54
- end
50
+ message = if failure?
51
+ red(failure_message(log_file))
52
+ else
53
+ green(success_message)
54
+ end
55
55
  message << " #{gray(runtime)}"
56
56
  end
57
57
 
@@ -35,7 +35,7 @@ module Airbrussh
35
35
  def write(string)
36
36
  output.write(string || "")
37
37
  end
38
- alias_method :<<, :write
38
+ alias << write
39
39
 
40
40
  def truncate_to_console_width(string)
41
41
  string = (string || "").rstrip
@@ -60,7 +60,7 @@ module Airbrussh
60
60
  write_log_message(obj)
61
61
  end
62
62
  end
63
- alias_method :<<, :write
63
+ alias << write
64
64
 
65
65
  private
66
66
 
@@ -11,8 +11,8 @@ module Airbrussh
11
11
  FORWARD_METHODS = %w(
12
12
  fatal error warn info debug log
13
13
  log_command_start log_command_data log_command_exit
14
- )
15
- DUP_AND_FORWARD_METHODS = %w(<< write)
14
+ ).freeze
15
+ DUP_AND_FORWARD_METHODS = %w(<< write).freeze
16
16
 
17
17
  attr_reader :formatters
18
18
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Airbrussh
2
- VERSION = "1.0.0.beta1"
3
+ VERSION = "1.0.0".freeze
3
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrussh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-27 00:00:00.000000000 Z
11
+ date: 2016-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sshkit
@@ -120,14 +120,14 @@ dependencies:
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: 0.31.0
123
+ version: 0.37.0
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: 0.31.0
130
+ version: 0.37.0
131
131
  description: A replacement log formatter for SSHKit that makes Capistrano output much
132
132
  easier on the eyes. Just add Airbrussh to your Capfile and enjoy concise, useful
133
133
  log output that is easy to read.
@@ -183,12 +183,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - ">"
186
+ - - ">="
187
187
  - !ruby/object:Gem::Version
188
- version: 1.3.1
188
+ version: '0'
189
189
  requirements: []
190
190
  rubyforge_project:
191
- rubygems_version: 2.5.1
191
+ rubygems_version: 2.6.0
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Airbrussh pretties up your SSHKit and Capistrano output