capistrano-github-releases 0.4.0 → 0.7.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
- SHA1:
3
- metadata.gz: e43a153d10de224faf610816b3f361bb67b00d47
4
- data.tar.gz: d3d40e69685715376e71ef8e6d4edee64d24a18f
2
+ SHA256:
3
+ metadata.gz: f60628fe3ec5cb5d2184f50d15b70599b2d744f2a21042e069746c69757f5544
4
+ data.tar.gz: 601bfb03df0bc8445d46707047bf488b5c222937d87a323dadcd89da5d6ca6b6
5
5
  SHA512:
6
- metadata.gz: 5a8da9c55c985f64369df11ee7bf7a0949092a5b24a7df1c4b683d61ae94ffc73507372d3ce0743d1869e62a9ced88ac4c7eae3236331d5ef7c51157f4f9da2b
7
- data.tar.gz: ae1e5cc5b55bd3aa21686eeca83eab1673675d5e7983d139e4e177687c4b0fec2366acac47dfbc4604e8da28de9d54335c90d49d62a4c5835a05f1c569e31718
6
+ metadata.gz: 4ff576d40072ae1883e91583b806efcca9fb25b2d60f5fc949484717a7a8e9118cdac3c841cd927487f540c26ee62fefa585c5f67893fdef8bce1d1fc48082e8
7
+ data.tar.gz: 0a2366b008aed997fb9520aa46d625ae90aefa3506280e7a44432ca920892cf74350922922e973c13ff1946c660727e716d8051706de2d35103bbe36d89aaf14
data/README.md CHANGED
@@ -8,8 +8,7 @@ $ bundle exec cap production github:releases:create # Auto creation by last pull
8
8
  $ bundle exec cap production github:releases:add_comment # Auto comment to last pull-request
9
9
  ```
10
10
 
11
- [![Gem Version](https://badge.fury.io/rb/capistrano-github-releases.png)][gem]
12
- [gem]: https://rubygems.org/gems/capistrano-github-releases
11
+ [![Gem version](https://img.shields.io/gem/v/capistrano-github-releases.svg?style=flat-square)](https://rubygems.org/gems/capistrano-github-releases)
13
12
 
14
13
  Installation
15
14
  ------------
@@ -18,11 +18,11 @@ 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 "capistrano", "~> 3.1"
22
- spec.add_dependency "octokit", "~> 3.1.0"
23
- spec.add_dependency "highline", "~> 1.6.20"
24
- spec.add_dependency "dotenv", "~> 0.11.0"
21
+ spec.add_dependency "capistrano", ">= 3.1"
22
+ spec.add_dependency "octokit", ">= 3.1.0"
23
+ spec.add_dependency "highline", ">= 1.6.20"
24
+ spec.add_dependency "dotenv", ">= 0.11.0"
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.5"
26
+ spec.add_development_dependency "bundler", "~> 2.0"
27
27
  spec.add_development_dependency "rake"
28
28
  end
File without changes
@@ -1,10 +1,3 @@
1
- load File.expand_path('../../tasks/github_releases.rake', __FILE__)
2
-
1
+ require 'capistrano/all'
3
2
  require 'capistrano/github/releases/version'
4
-
5
- module Capistrano
6
- module Github
7
- module Releases
8
- end
9
- end
10
- end
3
+ load File.expand_path('../../tasks/github_releases.rake', __FILE__)
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Github
3
3
  module Releases
4
- VERSION = '0.4.0'
4
+ VERSION = '0.7.0'
5
5
  end
6
6
  end
7
7
  end
@@ -55,8 +55,10 @@ namespace :github do
55
55
  MD
56
56
 
57
57
  if fetch(:ask_release)
58
- body = HighLine.new.ask("Release Body?")
59
- "#{body + "\n" unless body.empty?}#{default_body}"
58
+ body = HighLine.new.ask("Release Body?") do |q|
59
+ q.gather = ''
60
+ end
61
+ "#{body.join("\n") + "\n" unless body.empty?}\n#{default_body}"
60
62
  else
61
63
  default_body
62
64
  end
@@ -128,7 +130,7 @@ namespace :github do
128
130
  fetch(:release_tag),
129
131
  name: fetch(:release_title),
130
132
  body: fetch(:release_body),
131
- target_commitish: 'master',
133
+ target_commitish: fetch(:branch, 'master'),
132
134
  draft: false,
133
135
  prerelease: false
134
136
  )
@@ -155,6 +157,21 @@ namespace :github do
155
157
  end
156
158
  end
157
159
  end
160
+
161
+ desc 'Remove all labels of the pull request'
162
+ task remove_labels: :authentication do
163
+ run_locally do
164
+ begin
165
+ Octokit.remove_all_labels(
166
+ fetch(:github_repo),
167
+ fetch(:pull_request_id)
168
+ )
169
+ info "Labels of #{fetch(:github_repo)}/pull##{fetch(:pull_request_id)} was removed"
170
+ rescue => e
171
+ error e.message
172
+ end
173
+ end
174
+ end
158
175
  end
159
176
 
160
177
  namespace :git do
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-github-releases
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-26 00:00:00.000000000 Z
11
+ date: 2020-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.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: '3.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: octokit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 3.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 3.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: highline
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.6.20
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.6.20
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: dotenv
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.11.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.11.0
69
69
  - !ruby/object:Gem::Dependency
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.5'
75
+ version: '2.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.5'
82
+ version: '2.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -107,6 +107,7 @@ files:
107
107
  - README.md
108
108
  - Rakefile
109
109
  - capistrano-github-releases.gemspec
110
+ - lib/capistrano-github-releases.rb
110
111
  - lib/capistrano/github/releases.rb
111
112
  - lib/capistrano/github/releases/version.rb
112
113
  - lib/capistrano/tasks/github_releases.rake
@@ -129,8 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
132
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.2.2
133
+ rubygems_version: 3.1.2
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: GitHub Releases tasks for Capistrano v3