sshkit 1.11.4 → 1.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1be4ae412e0c02545ceaa90409ec6f4d04b8db6e
4
- data.tar.gz: 5f2fa57fbd2d8a7ddd470f6775abc5a2accea2cb
3
+ metadata.gz: ecbcaab38ec3846d9404e17a66d3f7b194934e5f
4
+ data.tar.gz: 89adc14d1a4c2b827b9f059aacad981930e9f11d
5
5
  SHA512:
6
- metadata.gz: 3b85b42a0de7970b0507244a799bea1baa8cba179d3af3e76f2a4d90d43ba11d62099dc9981800d62b38eb4ae38fdcf5b4662835ce3ab4b10bfdc4e5c108b9e4
7
- data.tar.gz: c7776b71095e7ca183db2a96b4e358bd164ee8fce708fdd84d11cd2ddfd8be1570d9d696d82f9d8af47efddd86c3d0aa1e31b54fb41492f7f7ef8e24acd07b54
6
+ metadata.gz: 390afcddc35aebf0a039b31fbe467a0c4d0d964ccb280fea07ac4780c9cd699ddfc474c596c398543335c679e9e5b63554cc76654c61e0c34e83cf18ab427265
7
+ data.tar.gz: f2925bc0750c885668a01462ce43ea3335e4fcd55f7ef369e8a777d0acac2a1c689e9db6da6ba35e99c947ffb3793ad29d09da2958465d879773f98c3252900f
@@ -1,7 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.0
3
+ - 2.3.3
4
4
  - 2.2.4
5
5
  - 2.1.8
6
6
  - 2.0.0
7
+ include:
8
+ # Run Danger only once, on 2.3.3
9
+ - rvm: 2.3.3
10
+ before_script: bundle exec danger
7
11
  script: "rake test:units lint"
@@ -5,8 +5,14 @@ appear at the top.
5
5
 
6
6
  ## [Unreleased][]
7
7
 
8
- * Add your entries below here, remember to credit yourself however you want
9
- to be credited!
8
+ * Your contribution here!
9
+
10
+ ## [1.11.5][] (2016-12-16)
11
+
12
+ ### Bug fixes
13
+
14
+ * Do not prefix `exec` command
15
+ [PR #378](https://github.com/capistrano/sshkit/pull/378) @dreyks
10
16
 
11
17
  ## [1.11.4][] (2016-11-02)
12
18
 
@@ -656,7 +662,8 @@ version `0.0.5`.
656
662
 
657
663
  First release.
658
664
 
659
- [Unreleased]: https://github.com/capistrano/sshkit/compare/v1.11.4...HEAD
665
+ [Unreleased]: https://github.com/capistrano/sshkit/compare/v1.11.5...HEAD
666
+ [1.11.5]: https://github.com/capistrano/sshkit/compare/v1.11.4...v1.11.5
660
667
  [1.11.4]: https://github.com/capistrano/sshkit/compare/v1.11.3...v1.11.4
661
668
  [1.11.3]: https://github.com/capistrano/sshkit/compare/v1.11.2...v1.11.3
662
669
  [1.11.2]: https://github.com/capistrano/sshkit/compare/v1.11.1...v1.11.2
@@ -1,8 +1,20 @@
1
1
  # Contributing to SSHKit
2
2
 
3
+ * Use [Stack Overflow][so] for Capistrano-related how-to questions and support
3
4
  * [**Don't** push your pull request](http://www.igvita.com/2011/12/19/dont-push-your-pull-requests/)
4
5
  * [**Do** write a good commit message](http://365git.tumblr.com/post/3308646748/writing-git-commit-messages)
5
6
 
7
+
8
+ ## Getting help
9
+
10
+ Most users encounter SSHKit primarily by using Capistrano. If you have a question about using
11
+ SSHKit in context of Capistrano, please use the [capistrano tag on Stack Overflow][so].
12
+
13
+ If you are using SSHKit directly, or if you think you've found a bug in SSHKit, please open a
14
+ [GitHub issue](https://github.com/capistrano/sshkit/issues).
15
+
16
+ [so]: http://stackoverflow.com/questions/tagged/capistrano
17
+
6
18
  ## Ruby versions
7
19
 
8
20
  You can see the current ruby versions we support in [.travis.yml](.travis.yml).
@@ -0,0 +1,54 @@
1
+ # Adapted from https://github.com/ruby-grape/danger/blob/master/Dangerfile
2
+ # Q: What is a Dangerfile, anyway? A: See http://danger.systems/
3
+
4
+ # ------------------------------------------------------------------------------
5
+ # Additional pull request data
6
+ # ------------------------------------------------------------------------------
7
+ project_name = github.pr_json["base"]["repo"]["name"]
8
+ pr_number = github.pr_json["number"]
9
+ pr_url = github.pr_json["_links"]["html"]["href"]
10
+
11
+ # ------------------------------------------------------------------------------
12
+ # What changed?
13
+ # ------------------------------------------------------------------------------
14
+ has_lib_changes = !git.modified_files.grep(/^lib/).empty?
15
+ has_test_changes = !git.modified_files.grep(/^test/).empty?
16
+ has_changelog_changes = git.modified_files.include?("CHANGELOG.md")
17
+
18
+ # ------------------------------------------------------------------------------
19
+ # You've made changes to lib, but didn't write any tests?
20
+ # ------------------------------------------------------------------------------
21
+ if has_lib_changes && !has_test_changes
22
+ warn("There are code changes, but no corresponding tests. "\
23
+ "Please include tests if this PR introduces any modifications in "\
24
+ "#{project_name}'s behavior.",
25
+ :sticky => false)
26
+ end
27
+
28
+ # ------------------------------------------------------------------------------
29
+ # Have you updated CHANGELOG.md?
30
+ # ------------------------------------------------------------------------------
31
+ if !has_changelog_changes && has_lib_changes
32
+ markdown <<-MARKDOWN
33
+ Here's an example of a CHANGELOG.md entry (place it immediately under the `* Your contribution here!` line):
34
+
35
+ ```markdown
36
+ * [##{pr_number}](#{pr_url}): #{github.pr_title} - [@#{github.pr_author}](https://github.com/#{github.pr_author}).
37
+ ```
38
+ MARKDOWN
39
+ warn("Please update CHANGELOG.md with a description of your changes. "\
40
+ "If this PR is not a user-facing change (e.g. just refactoring), "\
41
+ "you can disregard this.", :sticky => false)
42
+ end
43
+
44
+ # ------------------------------------------------------------------------------
45
+ # Did you remove the CHANGELOG's "Your contribution here!" line?
46
+ # ------------------------------------------------------------------------------
47
+ if has_changelog_changes
48
+ unless IO.read("CHANGELOG.md") =~ /^\* Your contribution here/i
49
+ fail(
50
+ "Please put the `* Your contribution here!` line back into CHANGELOG.md.",
51
+ :sticky => false
52
+ )
53
+ end
54
+ end
@@ -62,7 +62,7 @@ module SSHKit
62
62
 
63
63
  def defaults
64
64
  Hash.new do |hash, command|
65
- if %w{if test time}.include? command.to_s
65
+ if %w{if test time exec}.include? command.to_s
66
66
  hash[command] = command.to_s
67
67
  else
68
68
  hash[command] = "/usr/bin/env #{command}"
@@ -1,3 +1,3 @@
1
1
  module SSHKit
2
- VERSION = "1.11.4".freeze
2
+ VERSION = "1.11.5".freeze
3
3
  end
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_runtime_dependency('net-ssh', '>= 2.8.0')
21
21
  gem.add_runtime_dependency('net-scp', '>= 1.1.2')
22
22
 
23
+ gem.add_development_dependency('danger')
23
24
  gem.add_development_dependency('minitest', '>= 5.0.0')
24
25
  gem.add_development_dependency('minitest-reporters')
25
26
  gem.add_development_dependency('rake')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.4
4
+ version: 1.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Hambley
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-03 00:00:00.000000000 Z
12
+ date: 2016-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
@@ -39,6 +39,20 @@ dependencies:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: 1.1.2
42
+ - !ruby/object:Gem::Dependency
43
+ name: danger
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: minitest
44
58
  requirement: !ruby/object:Gem::Requirement
@@ -124,6 +138,7 @@ files:
124
138
  - BREAKING_API_WISHLIST.md
125
139
  - CHANGELOG.md
126
140
  - CONTRIBUTING.md
141
+ - Dangerfile
127
142
  - EXAMPLES.md
128
143
  - FAQ.md
129
144
  - Gemfile
@@ -219,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
234
  version: '0'
220
235
  requirements: []
221
236
  rubyforge_project:
222
- rubygems_version: 2.6.7
237
+ rubygems_version: 2.6.8
223
238
  signing_key:
224
239
  specification_version: 4
225
240
  summary: SSHKit makes it easy to write structured, testable SSH commands in Ruby